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

修改el-tree的状态颜色

parent f59bca27
...@@ -32,12 +32,12 @@ ...@@ -32,12 +32,12 @@
:expand-on-click-node="false" :expand-on-click-node="false"
@node-click="handleNodeClick" @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"> <span class="tree-row">
<i :class="'tree' + node.level" /> <i :class="'tree' + node.level" />
<span v-if="node.level === 1" class="label" :title="data.serialNumber">{{ data.serialNumber }}</span> <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 === 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>
</span> </span>
</el-tree> </el-tree>
...@@ -441,23 +441,23 @@ export default { ...@@ -441,23 +441,23 @@ export default {
.label { .label {
vertical-align: middle; vertical-align: middle;
} }
.Issued.custom-tree-node, .Issued,
.Run.custom-tree-node, .Run,
.New.custom-tree-node, .New,
.Yes.custom-tree-node, .Yes,
.Delivery.custom-tree-node { .Delivery {
color: #0000ff; color: #0000ff;
} }
.Finish.custom-tree-node { .Finish {
color: #008000; color: #008000;
} }
.Reserved.custom-tree-node { .Reserved {
color: #ff0000; color: #ff0000;
} }
.Not.custom-tree-node { .Not {
color: #999999; color: #999999;
} }
.Paused.custom-tree-node { .Paused {
color: #ffff00; 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