Commit ee71c89d authored by “lixuyan”'s avatar “lixuyan”

修改el-tree的状态颜色

parent f59bca27
......@@ -32,12 +32,12 @@
:expand-on-click-node="false"
@node-click="handleNodeClick"
>
<span slot-scope="{ node, data }" class="custom-tree-node" :class="data.state">
<span slot-scope="{ node, data }" class="custom-tree-node">
<span class="tree-row">
<i :class="'tree' + node.level" />
<span v-if="node.level === 1" class="label" :title="data.serialNumber">{{ data.serialNumber }}</span>
<span v-if="node.level === 2">{{ data.serialNumber + ',' + data.name }}</span>
<span v-if="node.level === 3">{{ data.target.serialNumber + ',' + data.target.name }}</span>
<span v-if="node.level === 3" :class="[data.target.wrProduction?data.target.wrProduction[0].planState:'']">{{ data.target.serialNumber + ',' + data.target.name }}</span>
</span>
</span>
</el-tree>
......@@ -441,23 +441,23 @@ export default {
.label {
vertical-align: middle;
}
.Issued.custom-tree-node,
.Run.custom-tree-node,
.New.custom-tree-node,
.Yes.custom-tree-node,
.Delivery.custom-tree-node {
.Issued,
.Run,
.New,
.Yes,
.Delivery {
color: #0000ff;
}
.Finish.custom-tree-node {
.Finish {
color: #008000;
}
.Reserved.custom-tree-node {
.Reserved {
color: #ff0000;
}
.Not.custom-tree-node {
.Not {
color: #999999;
}
.Paused.custom-tree-node {
.Paused {
color: #ffff00;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment