模板线路功能&线路功能里新增分组

This commit is contained in:
fan 2023-02-21 17:11:28 +08:00
parent f5b0fcb452
commit 014c743a10
3 changed files with 33 additions and 4 deletions

View File

@ -45,6 +45,13 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col :span="12">
<el-form-item label="分组:" prop="subset">
<el-input v-model="ruleForm.subset" placeholder="请输入内容" />
</el-form-item>
</el-col>
</el-row>
<el-card style="padding: 10px;"> <el-card style="padding: 10px;">
<el-table <el-table
:data="endTableData" :data="endTableData"
@ -174,7 +181,8 @@ export default {
name: '', name: '',
type: '', type: '',
desc: '', desc: '',
bgUrl: '' bgUrl: '',
subset: ''
}, },
memberMetroList: [], memberMetroList: [],
memberRailwayList: [], memberRailwayList: [],
@ -242,6 +250,7 @@ export default {
this.ruleForm.desc = row.desc || ''; this.ruleForm.desc = row.desc || '';
this.ruleForm.bgUrl = row.bgUrl || ''; this.ruleForm.bgUrl = row.bgUrl || '';
this.loginProLogoImg = row.bgUrl || ''; this.loginProLogoImg = row.bgUrl || '';
this.ruleForm.subset = row.subset || '';
this.ruleForm.type = row.paramVO.type; this.ruleForm.type = row.paramVO.type;
this.typeChange(this.ruleForm.type); this.typeChange(this.ruleForm.type);
this.frontTableData.forEach(item => { this.frontTableData.forEach(item => {
@ -361,7 +370,8 @@ export default {
name: '', name: '',
type: '', type: '',
desc: '', desc: '',
bgUrl: '' bgUrl: '',
subset: ''
}; };
this.frontTableData = [ this.frontTableData = [
{ key: 'singleMember', label: '是否单角色', value: false, type: 'checkbox' }, { key: 'singleMember', label: '是否单角色', value: false, type: 'checkbox' },
@ -408,6 +418,7 @@ export default {
name: this.ruleForm.name, name: this.ruleForm.name,
desc: this.ruleForm.desc, desc: this.ruleForm.desc,
bgUrl: this.ruleForm.bgUrl, bgUrl: this.ruleForm.bgUrl,
subset: this.ruleForm.subset,
paramVO: { paramVO: {
type: this.ruleForm.type, type: this.ruleForm.type,
itemMap:itemMap, itemMap:itemMap,

View File

@ -64,6 +64,13 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col :span="12">
<el-form-item label="分组:" prop="subset">
<el-input v-model="ruleForm.subset" placeholder="请输入内容" />
</el-form-item>
</el-col>
</el-row>
<el-card style="padding: 10px;"> <el-card style="padding: 10px;">
<el-table <el-table
:data="endTableData" :data="endTableData"
@ -194,7 +201,8 @@ export default {
name: '', name: '',
type: '', type: '',
desc: '', desc: '',
bgUrl: '' bgUrl: '',
subset: ''
} }
}; };
}, },
@ -213,6 +221,7 @@ export default {
this.ruleForm.name = row.mapFunctionParam.name; this.ruleForm.name = row.mapFunctionParam.name;
this.ruleForm.desc = row.mapFunctionParam.desc || ''; this.ruleForm.desc = row.mapFunctionParam.desc || '';
this.ruleForm.bgUrl = row.mapFunctionParam.bgUrl || ''; this.ruleForm.bgUrl = row.mapFunctionParam.bgUrl || '';
this.ruleForm.subset = row.mapFunctionParam.subset || '';
this.ruleForm.type = row.mapFunctionParam.paramVO.type; this.ruleForm.type = row.mapFunctionParam.paramVO.type;
this.frontTableData.forEach(item => { this.frontTableData.forEach(item => {
item.value = row.mapFunctionParam.paramVO.domConfig[item.key]; item.value = row.mapFunctionParam.paramVO.domConfig[item.key];
@ -242,7 +251,8 @@ export default {
name: '', name: '',
type: '', type: '',
desc: '', desc: '',
bgUrl: '' bgUrl: '',
subset: ''
}; };
this.loginProLogoImg = ''; this.loginProLogoImg = '';
this.frontTableData = [ this.frontTableData = [
@ -297,6 +307,7 @@ export default {
name: this.ruleForm.name, name: this.ruleForm.name,
desc: this.ruleForm.desc, desc: this.ruleForm.desc,
bgUrl: this.ruleForm.bgUrl, bgUrl: this.ruleForm.bgUrl,
subset: this.ruleForm.subset,
paramVO: { paramVO: {
type: this.ruleForm.type, type: this.ruleForm.type,
itemMap:itemMap, itemMap:itemMap,

View File

@ -53,6 +53,13 @@ export default {
columnValue: (row) => { return row.mapFunctionParam.name; }, columnValue: (row) => { return row.mapFunctionParam.name; },
tagType: () => { return 'success'; } tagType: () => { return 'success'; }
}, },
{
title: '分组',
prop: 'subset',
type: 'tag',
columnValue: (row) => { return row.mapFunctionParam.subset; },
tagType: () => { return 'success'; }
},
{ {
title: '系统', title: '系统',
prop: 'simType', prop: 'simType',