|
@@ -31,7 +31,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="是否启用:" prop="enable">
|
|
|
|
|
|
|
+ <el-form-item label="状态:" prop="enable">
|
|
|
<el-switch
|
|
<el-switch
|
|
|
:disabled="type=='view'"
|
|
:disabled="type=='view'"
|
|
|
v-model="dialogForm.enable"
|
|
v-model="dialogForm.enable"
|
|
@@ -81,6 +81,11 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ computed:{
|
|
|
|
|
+ isQianKun() {
|
|
|
|
|
+ return window.__POWERED_BY_QIANKUN__;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
init(type, id = '') {
|
|
init(type, id = '') {
|
|
|
this.title = type == 'add' ? '新增' : type == 'edit' ? '修改' : '详情'
|
|
this.title = type == 'add' ? '新增' : type == 'edit' ? '修改' : '详情'
|
|
@@ -100,7 +105,11 @@ export default {
|
|
|
if (!valid) return;
|
|
if (!valid) return;
|
|
|
let API = this.type == 'add' ? parameterSaveAPI : updateParameterAPI
|
|
let API = this.type == 'add' ? parameterSaveAPI : updateParameterAPI
|
|
|
await API(this.dialogForm)
|
|
await API(this.dialogForm)
|
|
|
- await this.$store.dispatch('paramsSetData/setParamsDataInfo');
|
|
|
|
|
|
|
+ if (this.isQianKun) {
|
|
|
|
|
+ await this.$portalStore.dispatch('paramsSetData/setParamsDataInfo');
|
|
|
|
|
+ } else {
|
|
|
|
|
+ await this.$store.dispatch('paramsSetData/setParamsDataInfo');
|
|
|
|
|
+ }
|
|
|
this.$message.success('操作成功')
|
|
this.$message.success('操作成功')
|
|
|
this.cancel();
|
|
this.cancel();
|
|
|
this.$emit('reload')
|
|
this.$emit('reload')
|