feat: There is no way the, 新需求 #52633

This commit is contained in:
super_liu
2022-04-19 16:44:14 +08:00
parent 181cc36207
commit 3485a9a8b0
4 changed files with 142 additions and 97 deletions
@@ -30,6 +30,7 @@
type="text"
size="mini"
v-show="data.show"
v-btn-permission="'a3109949cc30dae1ef523c037b2651b8'"
@click="() => append(data)">
新增
</el-button>
@@ -37,6 +38,7 @@
type="text"
size="mini"
v-show="data.show"
v-btn-permission="'61a33c05ed689934f7d4a0de4220c9ce'"
@click="() => update(data)">
编辑
</el-button>
@@ -44,6 +46,7 @@
type="text"
size="mini"
v-show="data.showDel"
v-btn-permission="'b123231eb8c42b2a61e3dc5f59654f79'"
@click="() => remove(node, data)">
删除
</el-button>
@@ -1434,7 +1437,6 @@
parentIds : null,
parentIdsName : "",
displaySeq : "",
validFlag : "0",
creationTime : "",
modifyTime : "",
remarks : "",
@@ -2360,15 +2362,20 @@
if (res.ok) {
if(this.modalType === 1){
let idsName = ""
if(row.parentIds !== null){
if(row.parentIds.indexOf(res.data.id) != -1){
if (row.parentIds !== null) {
if (row.parentIds.indexOf(res.data.id) != -1) {
this.productModelAdd.parentIds = row.parentIds
}else {
this.productModelAdd.parentIds = row.parentIds + res.data.id+','
idsName = row.parentIdsName + ',' + res.data.menuName
} else {
if(row.parentIds && row.parentIds.substr(-1,1) === ','){
this.productModelAdd.parentIds = row.parentIds + res.data.id+','
idsName = row.parentIdsName + ',' + res.data.menuName
}else {
this.productModelAdd.parentIds = row.parentIds + ',' + res.data.id+','
idsName = row.parentIdsName + ',' + res.data.menuName
}
}
}else {
this.productModelAdd.parentIds = +','+res.data.id+','
} else {
this.productModelAdd.parentIds = ','+res.data.id+','
idsName = res.data.menuName;
}
this.productModelAdd.parentId = res.data.id