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