活动管理

This commit is contained in:
魏啾
2024-11-11 13:36:44 +08:00
parent 96730712f3
commit a8f01db5e3

View File

@@ -437,7 +437,7 @@ export default {
Editor,
addImg,
},
name:'add_shop',
name: 'add_shop',
data() {
const validatordateUsed = (rule, value, callback) => {
if (!this.form.notices.dateUsed) {
@@ -602,6 +602,7 @@ export default {
batchNumberForm: {
batchNumber: 0,
},
routequery:''
};
},
mounted() {
@@ -613,7 +614,21 @@ export default {
this.tbProductGetDetail();
}
},
methods: {
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: {
uploadImgSucess(res, item) {
console.log(res);
console.log(item);