|
|
@ -82,7 +82,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="已选数据"> |
|
|
|
<el-form-item label="已选数据"> |
|
|
|
<el-button type="primary" @click="configData">配置数据权限</el-button> |
|
|
|
<el-button type="primary" @click="configData">配置数据权限</el-button> |
|
|
|
<div class="type-wrap" ref="typeWrap" @scroll="loadType"> |
|
|
|
<div class="type-wrap" ref="typeWrap" @scroll="loadType" v-if='configChecked.length>0'> |
|
|
|
<el-tree ref="type" :data="typeList" show-checkbox accordion node-key="id" :default-expanded-keys="checkedIds" :default-checked-keys="checkedIds" :props="defaultProps" @node-expand="typeExpand"> |
|
|
|
<el-tree ref="type" :data="typeList" show-checkbox accordion node-key="id" :default-expanded-keys="checkedIds" :default-checked-keys="checkedIds" :props="defaultProps" @node-expand="typeExpand"> |
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data }"> |
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data }"> |
|
|
|
<span :title="node.label">{{ node.label }}</span> |
|
|
|
<span :title="node.label">{{ node.label }}</span> |
|
|
@ -356,7 +356,6 @@ export default { |
|
|
|
if(!curExpand){ |
|
|
|
if(!curExpand){ |
|
|
|
let id = this.checkedIds[0] |
|
|
|
let id = this.checkedIds[0] |
|
|
|
let list = this.typeList |
|
|
|
let list = this.typeList |
|
|
|
|
|
|
|
|
|
|
|
function handleId(data,parentId){ |
|
|
|
function handleId(data,parentId){ |
|
|
|
data.map(n => { |
|
|
|
data.map(n => { |
|
|
|
if(n.id == id){ |
|
|
|
if(n.id == id){ |
|
|
|