| | |
| | | import request from "@/router/axios"; |
| | | |
| | | export const getList = (params,page, limit, url) => { |
| | | export const getList = (params,page, limit, url, method) => { |
| | | return request({ |
| | | url: url, |
| | | method: 'get', |
| | | method: method, |
| | | params: { |
| | | ...params, |
| | | page, |
| | |
| | | column: [ |
| | | { |
| | | label: '主题库/分类编号', |
| | | prop: 'btmtypeid', |
| | | prop: 'id', |
| | | labelWidth:135, |
| | | readonly: true, |
| | | disabled: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "主题库/分类编号", |
| | |
| | | { |
| | | label: '主题库/分类名称', |
| | | prop: 'name', |
| | | readonly: true, |
| | | disabled: true, |
| | | labelWidth:135, |
| | | rules: [{ |
| | | required: true, |
| | |
| | | label:"描述", |
| | | prop:"description", |
| | | labelWidth:128, |
| | | readonly: true, |
| | | disabled: true, |
| | | }, |
| | | { |
| | | label: '存储的业务类型', |
| | | prop: 'btmtypename', |
| | | prop: 'btmTypeName', |
| | | labelWidth:128, |
| | | readonly: true, |
| | | disabled: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "存储的业务类型", |
| | |
| | | }, |
| | | { |
| | | label:"编码规则", |
| | | prop:"coderuleoidName", |
| | | prop:"coderuleOidName", |
| | | labelWidth:128, |
| | | readonly: true, |
| | | disabled: true, |
| | | }, |
| | | { |
| | | label:"关键属性查询规则", |
| | | prop:"codekeyattrrepeatoidName", |
| | | prop:"codeKeyAttrRepeatOidName", |
| | | labelWidth:128, |
| | | readonly: true, |
| | | disabled: true, |
| | | }, |
| | | { |
| | | label:"相似查询规则", |
| | | prop:"codeResembleRuleOidName", |
| | | labelWidth:128, |
| | | readonly: true, |
| | | disabled: true, |
| | | }, |
| | | ] |
| | | }, |
| | |
| | | column: [ |
| | | { |
| | | label: '主题库/分类编号', |
| | | prop: 'btmtypeid', |
| | | prop: 'id', |
| | | labelWidth:128, |
| | | rules: [{ |
| | | required: true, |
| | |
| | | }, |
| | | { |
| | | label: '存储的业务类型', |
| | | prop: 'btmtypename', |
| | | prop: 'btmTypeName', |
| | | labelWidth:128, |
| | | focus:this.btmFoucus, |
| | | readonly: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "存储的业务类型", |
| | |
| | | }, |
| | | { |
| | | label:"编码规则", |
| | | prop:"coderuleoidName", |
| | | prop:"coderuleOidName", |
| | | labelWidth:128, |
| | | focus:this.CodeFoucus |
| | | focus:this.CodeFoucus, |
| | | readonly: true, |
| | | }, |
| | | { |
| | | label:"关键属性查询规则", |
| | | prop:"codekeyattrrepeatoidName", |
| | | prop:"codeKeyAttrRepeatOidName", |
| | | labelWidth:128, |
| | | focus:this.Keyfouce |
| | | focus:this.Keyfouce, |
| | | readonly: true, |
| | | }, |
| | | { |
| | | label:"相似查询规则", |
| | | prop:"codeResembleRuleOidName", |
| | | labelWidth:128, |
| | | focus: this.simFouce |
| | | focus: this.simFouce, |
| | | readonly: true, |
| | | }, |
| | | |
| | | ] |
| | |
| | | this.$set(this.loneTreeNewForm,'coderuleoidName',this.masterName) |
| | | this.$set(this.loneTreeNewForm,'coderuleOid',this.masterOid) |
| | | this.$emit('MasterHandler',this.loneTreeNewForm) |
| | | console.log(this.loneTreeNewForm) |
| | | // console.log(this.loneTreeNewForm) |
| | | } |
| | | }, |
| | | //编码多选 |
| | |
| | | this.masterSelectList=row; |
| | | this.masterName=row[0].name; |
| | | this.masterOid=row[0].oid; |
| | | console.log('oid',this.oid) |
| | | // console.log('oid',this.oid) |
| | | }, |
| | | //编码接口 |
| | | MasterdefaultRend(masterParameter){ |
| | |
| | | }else if(this.btmSelectList.length<=0){ |
| | | this.$message.warning('请选择一条数据') |
| | | }else { |
| | | this.SimidialogVisible=false; |
| | | this.simSelectList=[] |
| | | this.$set(this.loneTreeNewForm,'btmtypename',this.btmName) |
| | | this.$set(this.loneTreeNewForm,'btmtypeoid',this.btmOid) |
| | | this.BtmdialogVisible=false; |
| | | this.btmSelectList=[] |
| | | this.$set(this.loneTreeNewForm,'btmTypeName',this.btmName) |
| | | this.$set(this.loneTreeNewForm,'btmTypeOid',this.btmOid) |
| | | this.$emit('MasterHandler',this.loneTreeNewForm) |
| | | } |
| | | }, |
| | |
| | | //业务类型接口 |
| | | btmdefaultRend(masterParameter){ |
| | | referDataGrid({valueField:'id',isMuti:'false',...masterParameter}).then(res=>{ |
| | | console.log(res) |
| | | // console.log(res) |
| | | this.BtmData=res.data.data.records |
| | | }) |
| | | } |
| | |
| | | <el-input v-model="TreeAddform.description" autocomplete="off" style="width: 585px"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="编码规则:" label-width="150px"> |
| | | <el-input v-model="TreeAddform.coderuleoidName" autocomplete="off" style="width: 585px" @focus="CodeFoucus"></el-input> |
| | | <el-input v-model="TreeAddform.coderuleoidName" readonly autocomplete="off" style="width: 585px" @focus="CodeFoucus"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="关键属性查询规则:" label-width="150px"> |
| | | <el-input v-model="TreeAddform.codekeyattrrepeatoidName" autocomplete="off" @focus="Keyfouce" |
| | | <el-input v-model="TreeAddform.codekeyattrrepeatoidName" readonly autocomplete="off" @focus="Keyfouce" |
| | | style="width: 585px"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="相似查询规则:" label-width="150px"> |
| | | <el-input v-model="TreeAddform.codeResembleRuleOidName" autocomplete="off" @focus="simFouce" |
| | | <el-input v-model="TreeAddform.codeResembleRuleOidName" |
| | | autocomplete="off" |
| | | readonly |
| | | @focus="simFouce" |
| | | style="width: 585px"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | prop: 'tab2', |
| | | }] |
| | | }, |
| | | //模拟表单假数据 |
| | | Treeform: [ |
| | | { |
| | | name: "测试1", |
| | | sex: "男", |
| | | value: 0 |
| | | }, |
| | | { |
| | | name: "测试2", |
| | | sex: "女", |
| | | value: 1 |
| | | } |
| | | ], |
| | | //传递给子组件动态渲染的数据 |
| | | TreeList: {}, |
| | | codeClassifyOid: "" |
| | |
| | | TreeAddHandler() { |
| | | const data = this.TreeAddform |
| | | this.$set(data, "parentCodeClassifyOid", this.nodeClickList.oid) |
| | | console.log('data',data) |
| | | // console.log('data',data) |
| | | TreeSave(data).then(() => { |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | label: this.referConfig.textField || this.referConfig.options.textField || "name" |
| | | }, |
| | | url: this.referConfig.options.url || '/api/ubcs-code/mdmEngineController/defaultReferDataGrid', |
| | | method: this.referConfig.options.method || 'GET', |
| | | tableDefinedUrl:'',//平台表格地址 |
| | | copyParam: ['referBo', 'textField', 'valueField', 'displayTable', 'whereSql', 'queryScheme'], |
| | | query: {}, |
| | |
| | | query['conditionMap["' + key + '"]'] = this.query[key]; |
| | | } |
| | | } |
| | | getList(Object.assign(params,this.params,this.query, query),page.currentPage, page.pageSize, this.url).then(res => { |
| | | getList(Object.assign(params,this.params,this.query, query),page.currentPage, page.pageSize, this.url, this.method).then(res => { |
| | | this.data = res.data.records; |
| | | this.page.total=res.data.total |
| | | this.loading = false; |
| | |
| | | proxy: { |
| | | '/api': { |
| | | //本地服务接口地址 |
| | | // target: 'http://localhost:37000', |
| | | target: 'http://localhost:37000', |
| | | // target: 'http://192.168.1.51:37000', |
| | | // target: 'http://192.168.1.46:37000', |
| | | target: 'http://dev.vci-tech.com:37000', |
| | | // target: 'http://dev.vci-tech.com:37000', |
| | | // target: 'http://192.168.1.51:37000/', |
| | | // target: 'http://192.168.1.104:37000', |
| | | // target: 'http://192.168.1.63:37000', |
| | |
| | | * @return 分类码值的内容 |
| | | */ |
| | | @GetMapping("/listCodeClassifyValueBySecOid") |
| | | public DataGrid<CodeClassifyValueVO> listCodeClassifyValueBySecOid(String classifySecOid, String parentClassifyValueOid){ |
| | | public IPage<CodeClassifyValueVO> listCodeClassifyValueBySecOid(String classifySecOid, String parentClassifyValueOid){ |
| | | List<CodeClassifyValueVO> valueVOS = engineService.listCodeClassifyValueBySecOid(classifySecOid, parentClassifyValueOid); |
| | | DataGrid<CodeClassifyValueVO> dataGrid = new DataGrid<>(); |
| | | dataGrid.setData(valueVOS); |
| | | dataGrid.setTotal(valueVOS==null?0:valueVOS.size()); |
| | | return dataGrid; |
| | | IPage<CodeClassifyValueVO> valueVOIPage = new Page<>(); |
| | | valueVOIPage.setRecords(valueVOS); |
| | | valueVOIPage.setTotal(valueVOS==null?0:valueVOS.size()); |
| | | return valueVOIPage; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | CodeClassifyFullInfoBO getClassifyFullInfo(String codeClassifyOid); |
| | | |
| | | |
| | | /** |
| | | * 使用编号的路径获取对象 |
| | | * @param clsfNamePath 分类名称的路径,一定要从最顶层节点开始,格式为xxx/yyy/zz 这样 |
| | |
| | | return codeClassifyMapper.selectObjs(wrapper); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @Override |
| | | public IPage<CodeClassifyVO> selectPlCodeClassifyPage(IPage<CodeClassifyVO> page, CodeClassifyVO plCodeClassify) { |
| | | return page.setRecords(codeClassifyMapper.selectPlCodeClassifyPage(page, plCodeClassify)); |
| | |
| | | * @return 数据对象 |
| | | */ |
| | | private CodeClassify selectByOid(String oid){ |
| | | |
| | | CodeClassify codeClassifyEntity = codeClassifyMapper.selectClassifyByKeyAndReseRel("'"+oid.trim()+"'").get(0); |
| | | if(codeClassifyEntity == null || StringUtils.isBlank(codeClassifyEntity.getOid())){ |
| | | throw new ServiceException("dataOidNotExist");//根据主键id未查到相关数据 |