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 (!item.rules) {
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
- required: true,
1258
- message: `请输入${item.label}`,
1259
- trigger: ["blur", "change"],
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.51",
3
+ "version": "1.1.52",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {