jufubao-admin-library 1.1.51 → 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.
|
@@ -912,6 +912,7 @@ export default {
|
|
|
912
912
|
this.getList();
|
|
913
913
|
},
|
|
914
914
|
handleAdd() {
|
|
915
|
+
this.editId = "";
|
|
915
916
|
console.log(this.searchParams.tabType, "tttt");
|
|
916
917
|
// this.listValue = null;
|
|
917
918
|
this.formKey = Date.now();
|
|
@@ -923,7 +924,6 @@ export default {
|
|
|
923
924
|
} else {
|
|
924
925
|
this.$router.push("/apply/add");
|
|
925
926
|
}
|
|
926
|
-
this.editId = "";
|
|
927
927
|
this.initForm({});
|
|
928
928
|
},
|
|
929
929
|
handlePublish() {
|
|
@@ -1251,14 +1251,20 @@ export default {
|
|
|
1251
1251
|
if (item.valueKey === "site_id") {
|
|
1252
1252
|
item.list = this.siteData;
|
|
1253
1253
|
}
|
|
1254
|
-
if
|
|
1254
|
+
if(item.editDisabled&&this.editId){
|
|
1255
|
+
item.disabled = true
|
|
1256
|
+
}else{
|
|
1257
|
+
item.disabled = false
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
if(item.type==='password'){
|
|
1255
1261
|
item.rules = [
|
|
1256
|
-
{
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
},
|
|
1261
|
-
]
|
|
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
|
+
]
|
|
1262
1268
|
}
|
|
1263
1269
|
});
|
|
1264
1270
|
this.listForm = listForm;
|