This commit is contained in:
2025-08-07 16:38:11 +08:00
parent bb2ffd967d
commit 348f6969c1
8 changed files with 1030 additions and 195 deletions

View File

@@ -7,7 +7,7 @@
>
当前{{
currentNode &&
["wait", "false", "all", "success"].includes(currentNode.data.id)
["wait", "false", "all", "success",'caogao','shengpi'].includes(currentNode.data.id)
? "状态"
: "标签"
}}<span
@@ -24,7 +24,7 @@
</p>
<el-button
v-if="
currentNode && !['wait', 'false', 'all'].includes(currentNode.data.id)
currentNode && !['wait', 'false', 'all','caogao','shengpi'].includes(currentNode.data.id)
"
type="primary"
@click="addOrUpdateHandle()"
@@ -94,7 +94,8 @@
:style="
`${data.color ? `color:${data.color};font-weight:bold` : ''}`
"
>{{ node.label }}</span
>{{ node.label }}{{ data.number?`&nbsp;&nbsp;(${data.number})`:'' }}</span
></span
>
<span v-if="source == 'tags'">
@@ -422,13 +423,25 @@ export default {
this.addForm = {};
// console.log(this.$refs.tree.handleClickNodes(), "当前选中节点");
console.log(node, data, "当前选中节点-----------");
this.currentNode = node;
if(data.id=='success'){
this.$set(this.currentNode, 'data', node.data.children[0])
console.log('this.currentNode at line 427:', this.currentNode)
data={...node.data.children[0]}
node={data:{...node.data.children[0]}}
this.$forceUpdate()
}else{
this.currentNode = node;
}
this.isFresh = false;
this.isFresh = true;
this.$forceUpdate();
var form = {};
if (this.source == "shop") {
await this.selectShop(data);
} else if (this.source == "tags") {
switch (type) {