Commit 0d66bebb authored by 沈翠玲's avatar 沈翠玲

切换页签保存数据

parent db6587d4
......@@ -23,7 +23,7 @@ import './permission' // permission control
import { getDicts } from "@/api/system/dict/data";
import { getConfigKey } from "@/api/system/config";
import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree, formatMoney } from "@/utils/ruoyi";
window.store = store
import TipLabel from '@/components/TipLabel/index.vue'
import PageTitle from '@/components/Page/PageTitle.vue'
......
......@@ -248,7 +248,7 @@
import { listArea, getArea, delArea, addArea, updateArea } from "@/api/mes/wm/area";
import {genCode} from "@/api/system/autocode/rule"
export default {
name: "Area",
name: "areaList",
dicts: ['sys_yes_no'],
data() {
return {
......@@ -307,6 +307,14 @@ export default {
this.queryParams.locationId = locationId;
this.getList();
},
activated() {
if (this.$route.query && this.$route.query.locationId && this.locationId !== this.$route.query.locationId) {
this.reset()
this.locationId = this.$route.query.locationId
this.queryParams.locationId = this.locationId;
this.getList();
}
},
methods: {
/** 查询库位设置列表 */
getList() {
......
......@@ -152,7 +152,7 @@
import { listLocation, getLocation, delLocation, addLocation, updateLocation } from "@/api/mes/wm/location";
import {genCode} from "@/api/system/autocode/rule"
export default {
name: "Location",
name: "locationList",
dicts: ['sys_yes_no'],
data() {
return {
......@@ -208,6 +208,14 @@ export default {
this.queryParams.warehouseId = warehouseId;
this.getList();
},
activated() {
if (this.$route.query && this.$route.query.warehouseId && this.warehouseId !== this.$route.query.warehouseId) {
this.reset()
this.warehouseId = this.$route.query.warehouseId
this.queryParams.warehouseId = this.warehouseId;
this.getList();
}
},
methods: {
/** 查询库区设置列表 */
getList() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment