Merge branch 'test_dispaly' of https://git.code.tencent.com/lian-cbtc/jl-client into test_dispaly
This commit is contained in:
commit
d7c5ce2c6e
@ -108,6 +108,7 @@ export default {
|
||||
name: '',
|
||||
type: '',
|
||||
usage: '',
|
||||
desc: '',
|
||||
memberId: '',
|
||||
client: '',
|
||||
function: '',
|
||||
@ -164,7 +165,7 @@ export default {
|
||||
if (row && row.id) {
|
||||
this.mapSystemId = row.id;
|
||||
this.ruleForm.name = row.name;
|
||||
this.ruleForm.desc = row.desc;
|
||||
this.ruleForm.desc = row.desc || '';
|
||||
this.ruleForm.type = row.paramVO.type;
|
||||
this.ruleForm.usage = row.paramVO.usageInfo.usage;
|
||||
this.ruleForm.client = row.paramVO.usageInfo.param.client;
|
||||
@ -248,6 +249,7 @@ export default {
|
||||
this.mapSystemId = '';
|
||||
this.ruleForm = {
|
||||
name: '',
|
||||
desc: '',
|
||||
type: '',
|
||||
usage: '',
|
||||
memberId: '',
|
||||
@ -285,6 +287,7 @@ export default {
|
||||
functionMap: functionMap
|
||||
}
|
||||
};
|
||||
console.log(data, '----');
|
||||
if (this.title === '创建子系统') {
|
||||
createMapSystem(data).then(resp => {
|
||||
this.visible = false;
|
||||
|
@ -116,14 +116,14 @@ export default {
|
||||
params['mapId'] = this.$route.query.mapId;
|
||||
return queryMapSystemPaged(params);
|
||||
},
|
||||
deleteRow(row) {
|
||||
deleteRow(index, row) {
|
||||
this.$confirm('删除子系统,是否继续?', '提 示', {
|
||||
confirmButtonText: '确 定',
|
||||
cancelButtonText: '取 消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
deleteMapSystem(row.id).then(resp => {
|
||||
this.reload();
|
||||
this.reloadTable();
|
||||
}).catch(error => {
|
||||
this.$message.error(`删除子系统: ${error.message}`);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user