jufubao-admin-library 1.1.41 → 1.1.42
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.
|
@@ -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
|
|
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
|
},
|