[update] 树形弹框
This commit is contained in:
@@ -75,14 +75,6 @@ export default {
|
||||
required: false,
|
||||
default: ''
|
||||
},
|
||||
// 自定义取值字段
|
||||
replaceFields: {
|
||||
type: Object,
|
||||
required: false,
|
||||
default: () => {
|
||||
return { children: 'childPartNameList', title: 'name', key: 'id' }
|
||||
}
|
||||
},
|
||||
// 标签库的限制,只能选第三级
|
||||
isTagLibraryRestriction: {
|
||||
type: Boolean,
|
||||
@@ -140,6 +132,13 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
if (this.optionsHref === '/laws/standard/partName/') {
|
||||
this.replaceFields = { children: 'childPartNameList', title: 'name', key: 'id' }
|
||||
} else { // 标签库
|
||||
this.replaceFields = { children: 'childrenList', title: 'itemText', key: 'id' }
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
width: 800,
|
||||
@@ -152,7 +151,8 @@ export default {
|
||||
checkedKeys: [],
|
||||
checkedRows: [],
|
||||
loadedKeys: [], // 已经加载的节点
|
||||
searchValue: '' // 查询框内容
|
||||
searchValue: '', // 查询框内容
|
||||
replaceFields: {}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user