jufubao-admin-library 1.1.41 → 1.1.43

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.
@@ -10,7 +10,9 @@ module.exports = {
10
10
  isPublic: true,
11
11
  path: '/idaas-partner/v1/sites/options',
12
12
  isRule: false,
13
- params: {},
13
+ params: {
14
+ group_key:'saas'
15
+ },
14
16
  resultKey: "data",
15
17
  disabled: true,
16
18
  role: '',
@@ -120,7 +120,10 @@ export default {
120
120
  listForm: [],
121
121
  status: false,
122
122
  id:null, //客户记录ID
123
- key: Date.now()
123
+ key: Date.now(),
124
+
125
+ //是否为编辑
126
+ isEdit: false,
124
127
  }
125
128
  },
126
129
 
@@ -159,6 +162,7 @@ export default {
159
162
  this.clearDialog();
160
163
  this.$message({message: '操作成功!', type:"success"});
161
164
  this.getList();
165
+ this.isEdit = false;
162
166
  })
163
167
  .catch(err=>{
164
168
  loading.close()
@@ -199,7 +203,7 @@ export default {
199
203
  placeholder: '请选择指定站点:',
200
204
  setting: { multiple: false,},
201
205
  className: 'input80',
202
- disabled: !!params.company_id,
206
+ disabled: this.isEdit && !!params['site_id'],
203
207
  handleCustom:({action, data}) =>{
204
208
  this.getSaasSiteList()
205
209
  .then(res=>{
@@ -296,6 +300,7 @@ export default {
296
300
  company_status: row.company_status,
297
301
  index_path:row.index_path
298
302
  };
303
+ this.isEdit = !!row.site_id;
299
304
  this.initForm(info);
300
305
  this.dialog = true;
301
306
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.41",
3
+ "version": "1.1.43",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {