jufubao-admin-library 1.1.51 → 1.1.53

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() {
@@ -1175,6 +1175,9 @@ export default {
1175
1175
  }
1176
1176
  });
1177
1177
  this.listForm = listForm;
1178
+ this.formKey = Date.now();
1179
+ this.status = true;
1180
+ this.dialogShow = true;
1178
1181
  console.log(this.listForm, "llll");
1179
1182
  });
1180
1183
  } else {
@@ -1251,22 +1254,28 @@ export default {
1251
1254
  if (item.valueKey === "site_id") {
1252
1255
  item.list = this.siteData;
1253
1256
  }
1254
- if (!item.rules) {
1257
+ if(item.editDisabled&&this.editId){
1258
+ item.disabled = true
1259
+ }else{
1260
+ item.disabled = false
1261
+ }
1262
+
1263
+ if(item.type==='password'){
1255
1264
  item.rules = [
1256
- {
1257
- required: true,
1258
- message: `请输入${item.label}`,
1259
- trigger: ["blur", "change"],
1260
- },
1261
- ];
1265
+ {required: this.editId?false:true, message: `请输入${item.label}`, trigger: ['blur', 'change']},
1266
+ ]
1267
+ }else{
1268
+ item.rules = [
1269
+ {required: true, message: `请输入${item.label}`, trigger: ['blur', 'change']},
1270
+ ]
1262
1271
  }
1263
1272
  });
1264
1273
  this.listForm = listForm;
1274
+ this.formKey = Date.now();
1275
+ this.status = true;
1276
+ this.dialogShow = true;
1265
1277
  console.log(this.listForm, "llll");
1266
1278
  }
1267
- this.dialogShow = true;
1268
- this.formKey = Date.now();
1269
- this.status = true;
1270
1279
  },
1271
1280
  funOpenAppEdit() {
1272
1281
  let params = {
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.53",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {