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.
@@ -543,7 +543,7 @@ export default {
543
543
  this.$router.push({
544
544
  path: "/apply/list",
545
545
  query: {
546
- tab: "3",
546
+ tab: '3',
547
547
  },
548
548
  });
549
549
  },
@@ -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 (!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'){
1252
1261
  item.rules = [
1253
- {
1254
- required: true,
1255
- message: `请输入${item.label}`,
1256
- trigger: ["blur", "change"],
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.50",
3
+ "version": "1.1.52",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {