Merge branch 'dev' of https://e.coding.net/g-cphe0354/yinshoukeguanliduan/management into dwb
This commit is contained in:
commit
0210e61816
|
|
@ -437,7 +437,7 @@ export default {
|
||||||
Editor,
|
Editor,
|
||||||
addImg,
|
addImg,
|
||||||
},
|
},
|
||||||
name:'add_shop',
|
name: 'add_shop',
|
||||||
data() {
|
data() {
|
||||||
const validatordateUsed = (rule, value, callback) => {
|
const validatordateUsed = (rule, value, callback) => {
|
||||||
if (!this.form.notices.dateUsed) {
|
if (!this.form.notices.dateUsed) {
|
||||||
|
|
@ -602,6 +602,7 @@ export default {
|
||||||
batchNumberForm: {
|
batchNumberForm: {
|
||||||
batchNumber: 0,
|
batchNumber: 0,
|
||||||
},
|
},
|
||||||
|
routequery:''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -612,6 +613,20 @@ export default {
|
||||||
if (this.$route.query.goods_id) {
|
if (this.$route.query.goods_id) {
|
||||||
this.tbProductGetDetail();
|
this.tbProductGetDetail();
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
// 监听路由对象中的参数变化
|
||||||
|
$route(to, from) {
|
||||||
|
console.log(to.query.goods_id)
|
||||||
|
if (to.query.goods_id) {
|
||||||
|
if (this.routequery == to.query.goods_id) {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
this.tbProductGetDetail();
|
||||||
|
}
|
||||||
|
this.routequery = to.query.goods_id
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
uploadImgSucess(res, item) {
|
uploadImgSucess(res, item) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue