Commit 9a08d561 authored by Gakki's avatar Gakki

添加搜索字段

parent 14ffc5f4
......@@ -441,7 +441,15 @@ export default {
methods: {
onCheck(keys, node) {
console.log(keys, node.checkedNodesPositions)
this.checkedKeys = []
for(let i = 0; i < node.checkedNodesPositions.length; i++) {
// 一级菜单
console.log(node.checkedNodesPositions[i].pos.split('-').length)
if(node.checkedNodesPositions[i].pos.split('-').length == 2) {
this.checkedKeys.push(keys[i])
}
}
console.log(this.checkedKeys.toString())
},
getLabelList() {
this.$ajax.get({
......@@ -596,6 +604,7 @@ export default {
// 'finishDate_lt': !!this.isBeforeTwoThousand? '2000-01-01': '',
'finishDate_lt': this.isBeforeTwoThousand == '1' ? '2020-01-01':'',
'finishDate_gt': this.isBeforeTwoThousand == '2' ? '2020-01-01':'',
'labelIds': this.checkedKeys.toString(),
'cspContractEndDate_lt': !!this.form.getFieldValue('cspContractEndDate_lt') ? this.$moment(this.form.getFieldValue('cspContractEndDate_lt')).format('YYYY-MM-DD') : ''
}, obj, isHocId)// 融合obj 和isHocId 到入参
......
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