jufubao-admin-library 1.1.50 → 1.1.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -437,6 +437,9 @@ export default {
|
|
|
437
437
|
if (!this.$channelCode) {
|
|
438
438
|
this.$channelCode = "meituan";
|
|
439
439
|
}
|
|
440
|
+
if(this.$route.query.tab) {
|
|
441
|
+
this.mainFilterIndex = this.$route.query.tab
|
|
442
|
+
}
|
|
440
443
|
console.log(this.$channelCode, this.$route, "11111");
|
|
441
444
|
// #ifdef partner
|
|
442
445
|
await getOptions({
|
|
@@ -909,6 +912,7 @@ export default {
|
|
|
909
912
|
this.getList();
|
|
910
913
|
},
|
|
911
914
|
handleAdd() {
|
|
915
|
+
this.editId = "";
|
|
912
916
|
console.log(this.searchParams.tabType, "tttt");
|
|
913
917
|
// this.listValue = null;
|
|
914
918
|
this.formKey = Date.now();
|
|
@@ -920,7 +924,6 @@ export default {
|
|
|
920
924
|
} else {
|
|
921
925
|
this.$router.push("/apply/add");
|
|
922
926
|
}
|
|
923
|
-
this.editId = "";
|
|
924
927
|
this.initForm({});
|
|
925
928
|
},
|
|
926
929
|
handlePublish() {
|
|
@@ -1248,14 +1251,20 @@ export default {
|
|
|
1248
1251
|
if (item.valueKey === "site_id") {
|
|
1249
1252
|
item.list = this.siteData;
|
|
1250
1253
|
}
|
|
1251
|
-
if
|
|
1254
|
+
if(item.editDisabled&&this.editId){
|
|
1255
|
+
item.disabled = true
|
|
1256
|
+
}else{
|
|
1257
|
+
item.disabled = false
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
if(item.type==='password'){
|
|
1252
1261
|
item.rules = [
|
|
1253
|
-
{
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
},
|
|
1258
|
-
]
|
|
1262
|
+
{required: this.editId?false:true, message: `请输入${item.label}`, trigger: ['blur', 'change']},
|
|
1263
|
+
]
|
|
1264
|
+
}else{
|
|
1265
|
+
item.rules = [
|
|
1266
|
+
{required: true, message: `请输入${item.label}`, trigger: ['blur', 'change']},
|
|
1267
|
+
]
|
|
1259
1268
|
}
|
|
1260
1269
|
});
|
|
1261
1270
|
this.listForm = listForm;
|