Commit 0eafe329 authored by 仇晓婷's avatar 仇晓婷

数据字典禁用颜色

parent 50175133
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</ButtonGroup> </ButtonGroup>
</h3> </h3>
<div> <div>
<Input v-model.trim="keys" search placeholder="请输入客户名称" clearable /> <Input v-model.trim="keys" search placeholder="请输入名称/编码" clearable />
<Tree <Tree
:data="projectList" :data="projectList"
@on-select-change="change" @on-select-change="change"
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<template slot-scope="{ row, index }" slot="action"> <template slot-scope="{ row, index }" slot="action">
<div v-if="edit!=index" class="action"> <div v-if="edit!=index" class="action">
<op class="edit" @click="editRow(row,index)">编辑</op> <op class="edit" @click="editRow(row,index)">编辑</op>
<!-- <op class="remove" @click="delRow(row,index)">删除</op> --> <op class="remove" @click="delRow(row,index)">删除</op>
</div> </div>
<div class="action" v-else> <div class="action" v-else>
<op class="edit" @click="save">保存</op> <op class="edit" @click="save">保存</op>
...@@ -259,6 +259,7 @@ export default { ...@@ -259,6 +259,7 @@ export default {
}, },
methods: { methods: {
renderContent(h, { root, node, data }) { renderContent(h, { root, node, data }) {
console.log(data)
return h( return h(
"span", "span",
[ [
...@@ -269,7 +270,8 @@ export default { ...@@ -269,7 +270,8 @@ export default {
placement:"top-start" placement:"top-start"
}, },
style: { style: {
cursor: "pointer" cursor: "pointer",
color:data.data.status==1?'#ccc':'#515a6e'
} }
},[ },[
......
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