项目配置 代码调整

This commit is contained in:
joylink_cuiweidong 2022-10-12 16:42:33 +08:00
parent a3e908d1c2
commit b4452102e9
2 changed files with 10 additions and 13 deletions

View File

@ -10,9 +10,6 @@
<el-form-item label="项目描述:" prop="description">
<el-input v-model="formModel.description" style="width: 260px;" />
</el-form-item>
<el-form-item label="关联项目:" prop="viewShow">
<el-switch v-model="formModel.viewShow" />
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button v-loading="loading" type="primary" @click="doSave">{{ $t('global.confirm') }}</el-button>
@ -31,8 +28,7 @@ export default {
id: '',
code: '', //
name: '', //
description: '', //
viewShow:false // 01
description: '' //
},
loading: false
};
@ -64,7 +60,6 @@ export default {
this.formModel.code = row.code;
this.formModel.name = row.name;
this.formModel.description = row.description;
this.formModel.viewShow = !!row.viewShow;
} else {
this.$nextTick(() => {
this.$refs.ruleForm.resetFields();
@ -76,8 +71,7 @@ export default {
id: '',
code: '', //
name: '', //
description: '', //
viewShow:false // 01
description: '' //
};
this.$refs.ruleForm.resetFields();
this.dialogVisible = false;
@ -88,7 +82,6 @@ export default {
if (valid) {
this.loading = true;
const data = Object.assign({}, this.formModel);
data.viewShow = data.viewShow ? 1 : 0;
// code
checkBackProjectExist({code:data.code}).then(res=>{
if (!res.data) {

View File

@ -51,10 +51,14 @@ export default {
prop: 'description'
},
{
title: '关联项目选择',
prop: 'viewShow',
type: 'tag',
columnValue: (row) => { return row.viewShow ? '是' : '否'; },
title: '默认组织',
prop: 'defaultOrgName'
},
{
title: '关联组织',
prop: 'orgList',
type: 'tagMore',
columnValue: (row) => { return row.orgList; },
tagType: (row) => { return 'success'; }
},
{