duhanyu
杜函宇 2 years ago
parent 0fa418b992
commit ab4db9d889

@ -137,23 +137,23 @@ export default {
A1: "产品名称", A1: "产品名称",
A2: "备案编码", A2: "备案编码",
A3: "生产企业", A3: "生产企业",
types: 1, types: '1',
total: 0, total: 0,
options: [ options: [
{ {
value: 1, value: '1',
label: "国产化妆品", label: "国产化妆品",
}, },
{ {
value: 2, value: '2',
label: "国产特殊化妆品", label: "国产特殊化妆品",
}, },
{ {
value: 3, value: '3',
label: "进口化妆品", label: "进口化妆品",
}, },
{ {
value: 4, value: '4',
label: "进口特殊化妆品", label: "进口特殊化妆品",
}, },
], ],
@ -169,26 +169,26 @@ export default {
}, },
mounted() {}, mounted() {},
created() { created() {
this.changeType(1); this.changeType('1');
}, },
methods: { methods: {
// //
toDetail(e) { toDetail(e) {
let data = ""; let data = "";
if (this.types == 1) { if (this.types == '1') {
data = e.bah; data = e.bah;
} else if (this.types == 2) { } else if (this.types == '2') {
data = e.zczh; data = e.zczh;
} else if (this.types == 3) { } else if (this.types == '3') {
data = e.bah; data = e.bah;
} else if (this.types == 4) { } else if (this.types == '4') {
data = e.zczh; data = e.zczh;
} }
//type //type
//flag //flag
this.$router.push({ this.$router.push({
path: `/cosmeticsDetail`, path: `/cosmeticsDetail`,
query: { type: 1, flag: this.types, data }, query: { type: '1', flag: this.types, data },
}); });
}, },
// //
@ -253,19 +253,19 @@ export default {
this.loading = false; this.loading = false;
}, },
async getData(e) { async getData(e) {
if (e == 1) { if (e == '1') {
this.A2 = "备案编码"; this.A2 = "备案编码";
this.A3 = "生产企业"; this.A3 = "生产企业";
this.chinaCosmetics(); this.chinaCosmetics();
} else if (e == 2) { } else if (e == '2') {
this.A2 = "批准日期"; this.A2 = "批准日期";
this.A3 = "省份"; this.A3 = "省份";
this.chinaSpecialCosmetics(); this.chinaSpecialCosmetics();
} else if (e == 3) { } else if (e == '3') {
this.A2 = "备案编码"; this.A2 = "备案编码";
this.A3 = "生产企业"; this.A3 = "生产企业";
this.importCosmetics(); this.importCosmetics();
} else if (e == 4) { } else if (e == '4') {
this.A2 = "批准日期"; this.A2 = "批准日期";
this.A3 = "省份"; this.A3 = "省份";
this.importSpecialCosmetics(); this.importSpecialCosmetics();

@ -138,7 +138,10 @@ export default {
methods: { methods: {
// //
toDetail(e) { toDetail(e) {
console.log(e); this.$router.push({
path: `/cosmeticsDetail`,
query: { type: '3', data:e.zczh },
});
}, },
// //
searchList() { searchList() {

@ -156,7 +156,7 @@ export default {
toDetail(e) { toDetail(e) {
this.$router.push({ this.$router.push({
path: `/cosmeticsDetail`, path: `/cosmeticsDetail`,
query: { type: 2, data:e.yppzwh }, query: { type: '2', data:e.yppzwh },
}); });
}, },
// //

Loading…
Cancel
Save