| | |
| | | refreshParentClassifyDataChange() { |
| | | this.parentClassifyOnLoad(this.parentClsfyParams.parentClassifyDataPage, this.parentClsfyParams.parentClassifyQuery); |
| | | }, |
| | | // TODO:待修改 |
| | | parentClassifyOnLoad(page, params = {}) { |
| | | let parentClsParam = this.parentClsfyParams; |
| | | parentClsParam.classifyDialogLoading = true; |
| | |
| | | loadlistClassifyLinkAttr() { |
| | | let attrParam = this.selectAttrParams; |
| | | //console.log(this.currentSelectTreeData); |
| | | attrParam.selectAttrOptionLoading = true; |
| | | this.selectAttrParams.selectAttrOptionLoading = true; |
| | | let conditionMaps = {}; |
| | | if(attrParam.selectAttrQeury){ |
| | | Object.keys(attrParam.selectAttrQeury).forEach(key=>{ |
| | | conditionMaps['conditionMap['+key+']'] = attrParam.selectAttrQeury[key]; |
| | | conditionMaps['conditionMap['+key+']'] = attrParam.selectAttrQeury[key].trim(); |
| | | }); |
| | | } |
| | | conditionMaps['conditionMap[codeClassifyOid]'] = this.currentSelectTreeData.oid; |
| | | conditionMaps['conditionMap[btmTypeOid]'] = this.currentSelectTreeData.btmTypeOid; |
| | | listClassifyLinkAttr(conditionMaps).then(res=>{ |
| | | //console.log(res.data.data); |
| | | attrParam.selectAttrData = res.data.data; |
| | | attrParam.selectAttrOptionLoading = false; |
| | | const data = res.data; |
| | | this.$nextTick(() => { |
| | | this.$refs[attrParam.ref].doLayout() |
| | | this.$refs[attrParam.ref].doLayout() |
| | | }); |
| | | //console.log(data.data); |
| | | this.selectAttrParams.selectAttrData = data.data; |
| | | this.selectAttrParams.selectAttrOptionLoading = false; |
| | | // 将搜索框内容置空 |
| | | this.selectAttrParams.selectAttrQeury = {}; |
| | | }) |
| | | }, |
| | | // 点击搜索后触发该事件 |
| | |
| | | //存储当前关联的编码规则相关信息 |
| | | this.currentCodeRuleOid = row.oid; |
| | | this.currentRuleLcStatus = row.lcStatus; |
| | | this.sendGridCodeBasicSec({"pkCodeRule_equal":row.oid},false); |
| | | this.sendGridCodeBasicSec({"cpkCodeRule":row.oid},false); |
| | | }, |
| | | // 发送加载基础码段的请求 |
| | | sendGridCodeBasicSec(condition,isAdancedQuery/** 是否高级查询 */){ |
| | |
| | | let conditionMaps = {}; |
| | | if(condition && !isAdancedQuery){ |
| | | Object.keys(condition).forEach(key=>{ |
| | | conditionMaps['conditionMap[t.'+key+']'] = condition[key]; |
| | | conditionMaps['conditionMap[pl_code_basicsec.'+key+']'] = condition[key].trim(); |
| | | }); |
| | | } |
| | | if(isAdancedQuery){ |
| | | condition['conditionMap[t.pkCodeRule_equal]'] = this.currentCodeRuleOid == null || this.currentCodeRuleOid == '' |
| | | condition['conditionMap[pl_code_basicsec.pkCodeRule]'] = this.currentCodeRuleOid == null || this.currentCodeRuleOid == '' |
| | | ? this.selectionList[0].oid:this.currentCodeRuleOid; |
| | | } |
| | | gridCodeBasicSec(1, -1,isAdancedQuery ? condition:conditionMaps).then(res => { |
| | |
| | | }, |
| | | basicSearchChange(params, done){ |
| | | //console.log(this.$refs.crudBasic); |
| | | this.sendGridCodeBasicSec(Object.assign(params,{"pkCodeRule_equal":this.selectionList[this.selectionList.length-1].oid}),false); |
| | | this.sendGridCodeBasicSec(Object.assign(params,{"pkCodeRule":this.selectionList[this.selectionList.length-1].oid}),false); |
| | | done(); |
| | | }, |
| | | basicSearchReset(){ |
| | | this.sendGridCodeBasicSec({"pkCodeRule_equal":this.selectionList[this.selectionList.length-1].oid},false); |
| | | this.sendGridCodeBasicSec({"pkCodeRule":this.selectionList[this.selectionList.length-1].oid},false); |
| | | }, |
| | | // 上移下移基础码段 |
| | | upOrderNum(row){ |
| | |
| | | fieldType: 'combox', |
| | | queryField: 'lcStatus', |
| | | comboxKey: 'codeSearchLCStatus', |
| | | } |
| | | }, |
| | | ] |
| | | }else { |
| | | this.advancedQueryParam.options = [ |
| | |
| | | data: [], |
| | | title: '码段编号', |
| | | fieldType: 'text', |
| | | queryField: 't.id', |
| | | queryField: 'pl_code_basicsec.id', |
| | | },{ |
| | | data: [], |
| | | title: '码段名称', |
| | | fieldType: 'text', |
| | | queryField: 't.name', |
| | | queryField: 'pl_code_basicsec.name', |
| | | },{ |
| | | data: [], |
| | | title: '描述', |
| | | fieldType: 'text', |
| | | queryField: 't.description', |
| | | queryField: 'pl_code_basicsec.description', |
| | | },{ |
| | | data: [], |
| | | title: '码段类型', |
| | | fieldType: 'combox', |
| | | queryField: 't.secType', |
| | | queryField: 'pl_code_basicsec.secType', |
| | | comboxKey: 'codeSecType', |
| | | } |
| | | ] |
| | |
| | | searchChange(params, done) { |
| | | this.page.currentPage = 1; |
| | | // 多个conditionMap这样传参,快速查询默认采用模糊查询 |
| | | let requestData = {}; |
| | | if(params){ |
| | | Object.keys(params).forEach(key=>{ |
| | | this.query['conditionMap['+key+'_like]'] = params[key]; |
| | | requestData["conditionMap"+'['+key+']'] = params[key].trim(); |
| | | }); |
| | | } |
| | | this.query = requestData; |
| | | this.onLoad(this.page); |
| | | done(); |
| | | }, |