feat: There is no way the, 新需求 #52633
This commit is contained in:
@@ -26,30 +26,33 @@
|
|||||||
<span
|
<span
|
||||||
:class="data.children.length !== 0 ? 'is-show' : 'is-leaf-none'"></span>
|
:class="data.children.length !== 0 ? 'is-show' : 'is-leaf-none'"></span>
|
||||||
<span style="font-size:12px"> {{ node.label }} </span>
|
<span style="font-size:12px"> {{ node.label }} </span>
|
||||||
<!--<span>
|
<span>
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
size="mini"
|
size="mini"
|
||||||
v-show="data.show"
|
v-show="data.show"
|
||||||
@click="() => append(data)">
|
v-btn-permission="'764f630a49072d76a237dbcc9a1831e1'"
|
||||||
新增
|
@click="() => append(data)">
|
||||||
</el-button>
|
新增
|
||||||
<el-button
|
</el-button>
|
||||||
type="text"
|
<el-button
|
||||||
size="mini"
|
type="text"
|
||||||
v-show="data.show"
|
size="mini"
|
||||||
@click="() => update(data)">
|
v-show="data.show"
|
||||||
编辑
|
v-btn-permission="'afdef0736eb111e9865e19fa3129d0ac'"
|
||||||
</el-button>
|
@click="() => update(data)">
|
||||||
<el-button
|
编辑
|
||||||
type="text"
|
</el-button>
|
||||||
size="mini"
|
<el-button
|
||||||
v-show="data.showDel"
|
type="text"
|
||||||
@click="() => remove(node, data)">
|
size="mini"
|
||||||
删除
|
v-show="data.showDel"
|
||||||
</el-button>
|
v-btn-permission="'c517df26b904cb8f69495f7f38f8f77b'"
|
||||||
</span>-->
|
@click="() => remove(node, data)">
|
||||||
</span>
|
删除
|
||||||
|
</el-button>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
</el-tree>
|
</el-tree>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
@@ -2282,7 +2285,6 @@ export default {
|
|||||||
parentIds: null,
|
parentIds: null,
|
||||||
parentIdsName: "",
|
parentIdsName: "",
|
||||||
displaySeq: "",
|
displaySeq: "",
|
||||||
validFlag: "",
|
|
||||||
creationTime: "",
|
creationTime: "",
|
||||||
modifyTime: "",
|
modifyTime: "",
|
||||||
remarks: "",
|
remarks: "",
|
||||||
@@ -3614,11 +3616,16 @@ export default {
|
|||||||
if (row.parentIds.indexOf(res.data.id) != -1) {
|
if (row.parentIds.indexOf(res.data.id) != -1) {
|
||||||
this.productModelAdd.parentIds = row.parentIds
|
this.productModelAdd.parentIds = row.parentIds
|
||||||
} else {
|
} else {
|
||||||
this.productModelAdd.parentIds = row.parentIds + ',' + res.data.id
|
if(row.parentIds && row.parentIds.substr(-1,1) === ','){
|
||||||
idsName = row.parentIdsName + ',' + res.data.menuName
|
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 {
|
} else {
|
||||||
this.productModelAdd.parentIds = res.data.id
|
this.productModelAdd.parentIds = ','+res.data.id+','
|
||||||
idsName = res.data.menuName;
|
idsName = res.data.menuName;
|
||||||
}
|
}
|
||||||
this.productModelAdd.parentId = res.data.id
|
this.productModelAdd.parentId = res.data.id
|
||||||
|
|||||||
+58
-34
@@ -25,29 +25,32 @@
|
|||||||
<span class="custom-tree-node" slot-scope="{ node, data }" @mouseenter="mouseenter(data)" @mouseleave="mouseleave(data)">
|
<span class="custom-tree-node" slot-scope="{ node, data }" @mouseenter="mouseenter(data)" @mouseleave="mouseleave(data)">
|
||||||
<span :class="data.children.length !== 0 ? 'is-show' : 'is-leaf-none'"></span>
|
<span :class="data.children.length !== 0 ? 'is-show' : 'is-leaf-none'"></span>
|
||||||
<span style="font-size:12px"> {{ node.label }} </span>
|
<span style="font-size:12px"> {{ node.label }} </span>
|
||||||
<!-- <span>
|
<span>
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
size="mini"
|
size="mini"
|
||||||
v-show="data.show"
|
v-show="data.show"
|
||||||
@click="() => append(data)">
|
v-btn-permission="'21f35d66ae92f2e6f20eeba84ce78987'"
|
||||||
新增
|
@click="() => append(data)">
|
||||||
</el-button>
|
新增
|
||||||
<el-button
|
</el-button>
|
||||||
type="text"
|
<el-button
|
||||||
size="mini"
|
type="text"
|
||||||
v-show="data.show"
|
size="mini"
|
||||||
@click="() => update(data)">
|
v-show="data.show"
|
||||||
编辑
|
v-btn-permission="'c06b789cb4d6fba4773b12ce0804c1c3'"
|
||||||
</el-button>
|
@click="() => update(data)">
|
||||||
<el-button
|
编辑
|
||||||
type="text"
|
</el-button>
|
||||||
size="mini"
|
<el-button
|
||||||
v-show="data.showDel"
|
type="text"
|
||||||
@click="() => remove(node, data)">
|
size="mini"
|
||||||
删除
|
v-show="data.showDel"
|
||||||
</el-button>
|
v-btn-permission="'9ca2bd379b83d479110cb51bcb4502ed'"
|
||||||
</span>-->
|
@click="() => remove(node, data)">
|
||||||
|
删除
|
||||||
|
</el-button>
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</el-tree>
|
</el-tree>
|
||||||
</el-card>
|
</el-card>
|
||||||
@@ -1756,13 +1759,12 @@ export default {
|
|||||||
},
|
},
|
||||||
productModelAdd: {
|
productModelAdd: {
|
||||||
id: "",
|
id: "",
|
||||||
sorDivide: "INLAND_STAND",
|
sorDivide: "BUSINESS_STAND",
|
||||||
menuName: "",
|
menuName: "",
|
||||||
parentId: null,
|
parentId: null,
|
||||||
parentIds: null,
|
parentIds: null,
|
||||||
parentIdsName: "",
|
parentIdsName: "",
|
||||||
displaySeq: "",
|
displaySeq: "",
|
||||||
validFlag: "",
|
|
||||||
creationTime: "",
|
creationTime: "",
|
||||||
modifyTime: "",
|
modifyTime: "",
|
||||||
remarks: "",
|
remarks: "",
|
||||||
@@ -2797,7 +2799,7 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.selectMenuList()
|
this.selectMenuListNew()
|
||||||
this.productModal = false
|
this.productModal = false
|
||||||
this.productModelAdd = {
|
this.productModelAdd = {
|
||||||
// 模态框信息
|
// 模态框信息
|
||||||
@@ -2817,7 +2819,7 @@ export default {
|
|||||||
this.$http.putData('sarResource/ts-resource', this.productModelAdd, {
|
this.$http.putData('sarResource/ts-resource', this.productModelAdd, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.selectMenuList()
|
this.selectMenuListNew()
|
||||||
this.productModal = false
|
this.productModal = false
|
||||||
this.productModelAdd = {
|
this.productModelAdd = {
|
||||||
// 模态框信息
|
// 模态框信息
|
||||||
@@ -2851,6 +2853,18 @@ export default {
|
|||||||
this.productModal = false
|
this.productModal = false
|
||||||
},
|
},
|
||||||
// 查询二级菜单
|
// 查询二级菜单
|
||||||
|
selectMenuListNew() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
this.$http.get('sarResource/ts-resource/getListStandLimitData', {
|
||||||
|
sorDivide: 'BUSINESS_STAND',
|
||||||
|
userId: this.$store.getters.userInfo.userId
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
this.treeList = res.data
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
selectMenuList() {
|
selectMenuList() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
this.$http.get('sarResource/ts-resource/getListStandLimitData', {
|
this.$http.get('sarResource/ts-resource/getListStandLimitData', {
|
||||||
@@ -2886,11 +2900,16 @@ export default {
|
|||||||
if (row.parentIds.indexOf(res.data.id) != -1) {
|
if (row.parentIds.indexOf(res.data.id) != -1) {
|
||||||
this.productModelAdd.parentIds = row.parentIds
|
this.productModelAdd.parentIds = row.parentIds
|
||||||
} else {
|
} else {
|
||||||
this.productModelAdd.parentIds = row.parentIds + ',' + res.data.id
|
if(row.parentIds && row.parentIds.substr(-1,1) === ','){
|
||||||
idsName = row.parentIdsName + ',' + res.data.menuName
|
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 {
|
} else {
|
||||||
this.productModelAdd.parentIds = res.data.id
|
this.productModelAdd.parentIds = ','+res.data.id+','
|
||||||
idsName = res.data.menuName;
|
idsName = res.data.menuName;
|
||||||
}
|
}
|
||||||
this.productModelAdd.parentId = res.data.id
|
this.productModelAdd.parentId = res.data.id
|
||||||
@@ -2945,7 +2964,7 @@ export default {
|
|||||||
message: "删除成功"
|
message: "删除成功"
|
||||||
})
|
})
|
||||||
this.getBussionStandTable()
|
this.getBussionStandTable()
|
||||||
this.selectMenuList()
|
this.selectMenuListNew()
|
||||||
} else {
|
} else {
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
@@ -2967,9 +2986,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// 树节点鼠标移入移出
|
// 树节点鼠标移入移出
|
||||||
mouseenter(data) {
|
mouseenter(data) {
|
||||||
this.$set(data, 'show', true)
|
if(data && data.treeType && data.treeType === 'sarMs'){
|
||||||
if (data.parentId !== null) {
|
this.$set(data, 'show', false)
|
||||||
this.$set(data, 'showDel', true)
|
this.$set(data, 'showDel', false)
|
||||||
|
}else {
|
||||||
|
this.$set(data, 'show', true)
|
||||||
|
if (data.parentId !== null) {
|
||||||
|
this.$set(data, 'showDel', true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mouseleave(data) {
|
mouseleave(data) {
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
type="text"
|
type="text"
|
||||||
size="mini"
|
size="mini"
|
||||||
v-show="data.show"
|
v-show="data.show"
|
||||||
|
v-btn-permission="'a3109949cc30dae1ef523c037b2651b8'"
|
||||||
@click="() => append(data)">
|
@click="() => append(data)">
|
||||||
新增
|
新增
|
||||||
</el-button>
|
</el-button>
|
||||||
@@ -37,6 +38,7 @@
|
|||||||
type="text"
|
type="text"
|
||||||
size="mini"
|
size="mini"
|
||||||
v-show="data.show"
|
v-show="data.show"
|
||||||
|
v-btn-permission="'61a33c05ed689934f7d4a0de4220c9ce'"
|
||||||
@click="() => update(data)">
|
@click="() => update(data)">
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
@@ -44,6 +46,7 @@
|
|||||||
type="text"
|
type="text"
|
||||||
size="mini"
|
size="mini"
|
||||||
v-show="data.showDel"
|
v-show="data.showDel"
|
||||||
|
v-btn-permission="'b123231eb8c42b2a61e3dc5f59654f79'"
|
||||||
@click="() => remove(node, data)">
|
@click="() => remove(node, data)">
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
@@ -1434,7 +1437,6 @@
|
|||||||
parentIds : null,
|
parentIds : null,
|
||||||
parentIdsName : "",
|
parentIdsName : "",
|
||||||
displaySeq : "",
|
displaySeq : "",
|
||||||
validFlag : "0",
|
|
||||||
creationTime : "",
|
creationTime : "",
|
||||||
modifyTime : "",
|
modifyTime : "",
|
||||||
remarks : "",
|
remarks : "",
|
||||||
@@ -2360,15 +2362,20 @@
|
|||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
if(this.modalType === 1){
|
if(this.modalType === 1){
|
||||||
let idsName = ""
|
let idsName = ""
|
||||||
if(row.parentIds !== null){
|
if (row.parentIds !== null) {
|
||||||
if(row.parentIds.indexOf(res.data.id) != -1){
|
if (row.parentIds.indexOf(res.data.id) != -1) {
|
||||||
this.productModelAdd.parentIds = row.parentIds
|
this.productModelAdd.parentIds = row.parentIds
|
||||||
}else {
|
} else {
|
||||||
this.productModelAdd.parentIds = row.parentIds + res.data.id+','
|
if(row.parentIds && row.parentIds.substr(-1,1) === ','){
|
||||||
idsName = row.parentIdsName + ',' + res.data.menuName
|
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 {
|
} else {
|
||||||
this.productModelAdd.parentIds = +','+res.data.id+','
|
this.productModelAdd.parentIds = ','+res.data.id+','
|
||||||
idsName = res.data.menuName;
|
idsName = res.data.menuName;
|
||||||
}
|
}
|
||||||
this.productModelAdd.parentId = res.data.id
|
this.productModelAdd.parentId = res.data.id
|
||||||
|
|||||||
@@ -24,29 +24,32 @@
|
|||||||
<span class="custom-tree-node" slot-scope="{ node, data }" @mouseenter="mouseenter(data)" @mouseleave="mouseleave(data)">
|
<span class="custom-tree-node" slot-scope="{ node, data }" @mouseenter="mouseenter(data)" @mouseleave="mouseleave(data)">
|
||||||
<span :class="data.children.length !== 0 ? 'is-show' : 'is-leaf-none'"></span>
|
<span :class="data.children.length !== 0 ? 'is-show' : 'is-leaf-none'"></span>
|
||||||
<span style="font-size:12px"> {{ node.label }} </span>
|
<span style="font-size:12px"> {{ node.label }} </span>
|
||||||
<!-- <span>
|
<span>
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
size="mini"
|
size="mini"
|
||||||
v-show="data.show"
|
v-show="data.show"
|
||||||
@click="() => append(data)">
|
v-btn-permission="'b1c5fe2985a365d90d10607b47885749'"
|
||||||
新增
|
@click="() => append(data)">
|
||||||
</el-button>
|
新增
|
||||||
<el-button
|
</el-button>
|
||||||
type="text"
|
<el-button
|
||||||
size="mini"
|
type="text"
|
||||||
v-show="data.show"
|
size="mini"
|
||||||
@click="() => update(data)">
|
v-show="data.show"
|
||||||
编辑
|
v-btn-permission="'8d2e05ebce16d742a7f1fb895f0306b7'"
|
||||||
</el-button>
|
@click="() => update(data)">
|
||||||
<el-button
|
编辑
|
||||||
type="text"
|
</el-button>
|
||||||
size="mini"
|
<el-button
|
||||||
v-show="data.showDel"
|
type="text"
|
||||||
@click="() => remove(node, data)">
|
size="mini"
|
||||||
删除
|
v-show="data.showDel"
|
||||||
</el-button>
|
v-btn-permission="'88ee8b7e529353511d47eb1e67fcd6a1'"
|
||||||
</span>-->
|
@click="() => remove(node, data)">
|
||||||
|
删除
|
||||||
|
</el-button>
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</el-tree>
|
</el-tree>
|
||||||
</el-card>
|
</el-card>
|
||||||
@@ -2272,7 +2275,6 @@ export default {
|
|||||||
parentIds: null,
|
parentIds: null,
|
||||||
parentIdsName: "",
|
parentIdsName: "",
|
||||||
displaySeq: "",
|
displaySeq: "",
|
||||||
validFlag: "",
|
|
||||||
creationTime: "",
|
creationTime: "",
|
||||||
modifyTime: "",
|
modifyTime: "",
|
||||||
remarks: "",
|
remarks: "",
|
||||||
@@ -3041,11 +3043,16 @@ export default {
|
|||||||
if (row.parentIds.indexOf(res.data.id) != -1) {
|
if (row.parentIds.indexOf(res.data.id) != -1) {
|
||||||
this.productModelAdd.parentIds = row.parentIds
|
this.productModelAdd.parentIds = row.parentIds
|
||||||
} else {
|
} else {
|
||||||
this.productModelAdd.parentIds = row.parentIds + ',' + res.data.id
|
if(row.parentIds && row.parentIds.substr(-1,1) === ','){
|
||||||
idsName = row.parentIdsName + ',' + res.data.menuName
|
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 {
|
} else {
|
||||||
this.productModelAdd.parentIds = res.data.id
|
this.productModelAdd.parentIds = ','+res.data.id+','
|
||||||
idsName = res.data.menuName;
|
idsName = res.data.menuName;
|
||||||
}
|
}
|
||||||
this.productModelAdd.parentId = res.data.id
|
this.productModelAdd.parentId = res.data.id
|
||||||
|
|||||||
Reference in New Issue
Block a user