已修改26个文件
已重命名1个文件
已添加4个文件
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //æ¥è¯¢ |
| | | export const gridCodeClassifyFindTemplate = (params) =>{ |
| | | return request({ |
| | | url:'/api/ubcs-code/codeClassifyTemplateController/gridCodeClassifyTemplate', |
| | |
| | | params:{ |
| | | ...params |
| | | } |
| | | })} |
| | | |
| | | //å
鿍¡æ¿copy |
| | | export const copy = (data) =>{ |
| | | return request({ |
| | | url:'/api/ubcs-code/codeClassifyTemplateController/copy', |
| | | method: 'post', |
| | | data:data |
| | | }) |
| | | } |
| | | |
| | |
| | | type: {}, |
| | | Taboption: { |
| | | column: [{ |
| | | icon: 'el-icon-info', |
| | | label: '模æ¿å±æ§', |
| | | prop: 'tab1', |
| | | }, { |
| | | icon: 'el-icon-warning', |
| | | label: 'æ¨¡æ¿æµç¨', |
| | | prop: 'tab2', |
| | | }, { |
| | | icon: 'el-icon-question', |
| | | label: '模æ¿é¶æ®µ', |
| | | prop: 'tab3', |
| | | }, { |
| | | icon: 'el-icon-question', |
| | | label: 'æ¨¡æ¿æé®æµç¨', |
| | | prop: 'tab4', |
| | | }] |
| | | }, |
| | | |
| | |
| | | sex: "ç·" |
| | | }, |
| | | option: { |
| | | submitBtn:false, |
| | | emptyBtn:false, |
| | | column: [ |
| | | { |
| | | label: '主é¢åº/åç±»ç¼å·', |
| | |
| | | <div> |
| | | <div style="display: flex;justify-content: space-around"> |
| | | <el-button plain size="small" type="primary" @click="TreeAdd">æ·»å </el-button> |
| | | <el-button plain size="small" type="primary" @click="TreeEdit">ä¿®æ¹</el-button> |
| | | <el-button plain size="small" type="primary" @click="TreeDel">å é¤</el-button> |
| | | <el-button plain size="small" type="primary" @click="Enable">å¯ç¨</el-button> |
| | | </div> |
| | | <div style="display: flex;justify-content: space-around;margin-top: 5px;margin-bottom: 5px"> |
| | | <el-button plain size="small" type="primary" @click="Deactivate">åç¨</el-button> |
| | | <el-button plain size="small" type="primary" @click="ExportExcel">导åº</el-button> |
| | | <el-button plain size="small" type="primary" @click="ImportExcel">导å
¥</el-button> |
| | | <el-button plain size="small" type="primary" @click="flushed">å·æ°</el-button> |
| | | </div> |
| | | <div style="display: flex;justify-content: space-around;margin-top: 5px;margin-bottom: 5px"> |
| | | |
| | | </div> |
| | | </div> |
| | | <!-- æ èç¹æ·»å å¯¹è¯æ¡--> |
| | |
| | | @check-change="checkChange" |
| | | > |
| | | </avue-tree> |
| | | |
| | | </basic-container> |
| | | </el-aside> |
| | | <el-main> |
| | |
| | | <!-- å³ä¾§è¡¨æ ¼--> |
| | | <avue-tabs :option="tabOption" @change="handleChange"></avue-tabs> |
| | | <span v-if="type.prop==='tab1'"> |
| | | <basic-container> |
| | | <classifyTreeform ref="childForm" :TreeNewForm="TreeList" :nodeList="nodeList"></classifyTreeform> |
| | | </span> |
| | | <span v-else-if="type.prop==='tab2'"> |
| | | <basic-container> |
| | | <avue-crud v-model="crudForm" v-loading="FormLoing" :data="this.Formlist" :option="this.crudTreeOption" |
| | | @row-save="CrudRowSave" |
| | | @row-del="CrudRowDel" |
| | |
| | | <template slot="menuLeft"> |
| | | <el-button plain size="small" type="primary" @click="FindFormVisible = true;">æ¥è¯¢</el-button> |
| | | <el-button plain size="small" type="primary" @click="TemRefresh">å·æ°</el-button> |
| | | <el-button plain size="small" type="primary">ä»å
¶å®æ¨¡æ¿å
é</el-button> |
| | | <el-button plain size="small" type="primary" @click="TreeEdit">ä¿®æ¹</el-button> |
| | | <el-button plain size="small" type="primary" @click="TreeDel">å é¤</el-button> |
| | | <el-button plain size="small" type="primary" @click="Enable">å¯ç¨</el-button> |
| | | <el-button plain size="small" type="primary" @click="Deactivate">åç¨</el-button> |
| | | <el-button plain size="small" type="primary" @click="CloneBtn">ä»å
¶å®æ¨¡æ¿å
é</el-button> |
| | | <div style="display: inline-block"> <el-input v-model="FindText" placeholder="请è¾å
¥å
³é®åæå车æ¥è¯¢" |
| | | size="small" |
| | | @keyup.enter.native="EnterFind"></el-input></div> |
| | | <!-- æ¥è¯¢å¯¹è¯æ¡--> |
| | | <el-dialog :visible.sync="FindFormVisible" append-to-body title="é«çº§æ¥è¯¢"> |
| | | <div> |
| | | <el-button size="small" type="primary" @click="AdvQueries">æ¥è¯¢</el-button> |
| | |
| | | <div style="padding-left: 80px;margin-top: 15px;"> |
| | | <template v-for="(value, key) in FindSelect"> |
| | | <div style="display: flex;justify-content: space-around;width: 85%;margin-bottom: 15px"> |
| | | <el-select v-model="FindSelect[key]" placeholder="è¯·éæ©" style="width: 28%" @change="handleSelectChange(key)"> |
| | | <el-select v-model="FindSelect[key]" placeholder="è¯·éæ©" style="width: 28%" |
| | | @change="handleSelectChange(key)"> |
| | | <el-option label="模æ¿ç¼å·" value="0"></el-option> |
| | | <el-option label="模æ¿åç§°" value="1"></el-option> |
| | | <el-option label="æ¨¡æ¿æè¿°" value="2"></el-option> |
| | |
| | | </el-select> |
| | | <el-input v-model="QueryArray[key]" style="width: 49%"></el-input> |
| | | <span> <i class="el-icon-delete" style="font-size: 22px;margin-top:8px;margin-left: 10px"/></span> |
| | | </div> |
| | | </template> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | </div> |
| | | </el-dialog> |
| | | <!-- 模æ¿å
é --> |
| | | <el-dialog :visible.sync="CloneVisible" append-to-body title="å
鿍¡æ¿"> |
| | | <el-container> |
| | | <el-aside width="300px"> |
| | | <div style="margin-bottom: 5px"><el-tag>主é¢åºåç±»</el-tag></div> |
| | | <avue-tree ref="tree" v-model="TreeAvueform" v-loading="loading" :data="Treedata" |
| | | :defaultExpandAll="false" |
| | | :option="Treeoption" |
| | | style="height: 50.5vh;margin-right: 10px" |
| | | @node-click=" nodeClick" |
| | | @check-change="checkChange" |
| | | > |
| | | </avue-tree> |
| | | </el-aside> |
| | | <el-container> |
| | | <el-main> |
| | | <div style="padding-left: 10px;height: 50.5vh"> |
| | | <div style="margin: 8px 0;display: flex"> |
| | | <el-select v-model="Clonevalue" size="small" style="width: 130px;"> |
| | | <el-option |
| | | v-for="item in this.CloneSelectOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-input v-model="CloneFind" size="small" style="width: 40%;margin-left: 15px" placeholder="è¾å
¥å¼åæå车è¿è¡æ¨¡ç³æ¥è¯¢"></el-input> |
| | | <el-button size="small" type="primary" plain style="margin-left: 10px" @click="CloneEnterFind" @keyup.enter.native="CloneEnterFind">æ¥è¯¢</el-button> |
| | | </div> |
| | | <avue-crud v-model="ClonecrudForm" v-loading="FormLoing" :data="this.CloneFormlist" |
| | | :option="this.ClonecrudTreeOption" |
| | | @selection-change="selectionChange" |
| | | ></avue-crud> |
| | | </div> |
| | | </el-main> |
| | | </el-container> |
| | | </el-container > |
| | | <div style="display: flex; justify-content: flex-end; align-items: center;margin-top: 10px" > |
| | | <el-button size="small " type="primary" @click="Clonehandler">ç¡®å®</el-button> |
| | | <el-button size="small" @click="CloneVisible=false" >åæ¶</el-button> |
| | | </div> |
| | | <el-dialog |
| | | width="30%" |
| | | title="å
鿍¡æ¿" |
| | | :visible.sync="CloneinnerVisible" |
| | | append-to-body> |
| | | <div> |
| | | <avue-form :option="CloneOption" @submit="Clonesubmit" v-model="CloneModel"></avue-form> |
| | | </div> |
| | | </el-dialog> |
| | | </el-dialog> |
| | | </template> |
| | | </avue-crud> |
| | | |
| | | </basic-container> |
| | | <templatePro :ProData="this.ProData"></templatePro> |
| | | </span> |
| | | <span v-else-if="type.prop==='tab2'"> |
| | | <classifyTreeform ref="childForm" :TreeNewForm="TreeList" :nodeList="nodeList"></classifyTreeform> |
| | | <templatePro :ProData="this.ProData"></templatePro> |
| | | </span> |
| | | </basic-container> |
| | | </el-main> |
| | |
| | | gridCodeClassifyFindTemplate, |
| | | addSave, |
| | | deleteData, |
| | | editSave |
| | | editSave, |
| | | copy |
| | | } from "@/api/template/templateAttr"; |
| | | import done from "@/views/work/done"; |
| | | |
| | | export default { |
| | | name: "classifyTrees.vue", |
| | |
| | | FindText: "", |
| | | //é«çº§æ¥è¯¢å¯¹è¯æ¡ |
| | | FindFormVisible: false, |
| | | //å
鿍¡æ¿å¯¹è¯æ¡ |
| | | CloneVisible: false, |
| | | CloneinnerVisible:false, |
| | | //é«çº§æ¥è¯¢ä¸ææ¡ |
| | | FindSelect: { |
| | | id: "0", |
| | |
| | | // //è¿ä¸ªæ¯å¤é |
| | | // multiple: true, |
| | | }, |
| | | //模æ¿ç®¡çform |
| | | crudForm: "", |
| | | //卿忢å¤çè¿çè¡¨æ ¼æ°æ® |
| | | //å
鿍¡æ¿form |
| | | ClonecrudForm: "", |
| | | //卿忢å¤çè¿ç模æ¿è¡¨æ ¼æ°æ® |
| | | Formlist: [], |
| | | //å
鿍¡æ¿æ°æ® |
| | | CloneFormlist: [], |
| | | //å
鿍¡æ¿ä¸ææ¡value |
| | | Clonevalue: "0", |
| | | //å
鿍¡æ¿æç´¢è¾å
¥æ¡ |
| | | CloneFind:"", |
| | | //å
鿍¡æ¿ä¸ææ¡æ°æ® |
| | | CloneSelectOptions: [{ |
| | | value: '0', |
| | | label: '模æ¿ç¼å·' |
| | | }, |
| | | { |
| | | value: '1', |
| | | label: '模æ¿åç§°' |
| | | }, |
| | | ], |
| | | //å
鿍¡æ¿ç¡®è®¤è¡¨åæ°æ® |
| | | CloneOption:{ |
| | | column:[ |
| | | { |
| | | label:'模æ¿ç¼å·', |
| | | prop:'id', |
| | | rules: [{ |
| | | required: true, |
| | | message: "请è¾å
¥æ¨¡æ¿ç¼å·", |
| | | trigger: "blur" |
| | | }] |
| | | }, { |
| | | label:'模æ¿åç§°', |
| | | prop:'name', |
| | | rules: [{ |
| | | required: true, |
| | | message: "请è¾å
¥æ¨¡æ¿åç§°", |
| | | trigger: "blur" |
| | | }] |
| | | }, |
| | | { |
| | | label:'æè¿°', |
| | | prop:'desc', |
| | | type:'textarea', |
| | | span:24 |
| | | } |
| | | ] |
| | | }, |
| | | //å
鿍¡æ¿ååç»å®æ°æ® |
| | | CloneModel:[], |
| | | CloneSelect:[], |
| | | //å
鿍¡æ¿option |
| | | ClonecrudTreeOption: { |
| | | index: true, |
| | | border: true, |
| | | menu: false, |
| | | addBtn: false, |
| | | selection: true, |
| | | header: false, |
| | | height: 430, |
| | | column: [ |
| | | { |
| | | label: "模æ¿ç¼å·", |
| | | prop: "id" |
| | | }, |
| | | { |
| | | label: "模æ¿åç§°", |
| | | prop: "name" |
| | | }, |
| | | { |
| | | label: "æ¨¡æ¿æè¿°", |
| | | prop: "description" |
| | | }, |
| | | { |
| | | label: "çæ¬å·", |
| | | prop: "revisionSeq", |
| | | display: false |
| | | }, |
| | | { |
| | | label: "ç¶æ", |
| | | prop: "lcStatusText", |
| | | display: false |
| | | } |
| | | ] |
| | | }, |
| | | //tabç¶æ |
| | | type: {}, |
| | | //Tabé
置项 |
| | | tabOption: { |
| | | column: [{ |
| | | icon: 'el-icon-info', |
| | | label: 'åºæ¬ä¿¡æ¯', |
| | | prop: 'tab1', |
| | | }, { |
| | | icon: 'el-icon-warning', |
| | | label: '模æ¿ç®¡ç', |
| | | prop: 'tab2', |
| | | }] |
| | |
| | | ], |
| | | //ä¼ éç»åç»ä»¶å¨ææ¸²æçæ°æ® |
| | | TreeList: {}, |
| | | codeClassifyOid:"" |
| | | codeClassifyOid: "" |
| | | } |
| | | }, |
| | | //tabæ é»è®¤æ¯è¡¨æ ¼ |
| | |
| | | async nodeClick(data) { |
| | | //å®ä¹ä¸ä¸ªæ¨¡æ¿å±æ§idï¼æ°æ®æ¯æ¨¡æ¿ç®¡çè¡¨æ ¼éé¢çoid |
| | | this.nodeClickList = data |
| | | //console.log(data.oid) |
| | | console.log(data.oid) |
| | | try { |
| | | await TreeObjcet(data.oid).then(res => { |
| | | this.FlagObj = res.data.data |
| | |
| | | this.$message.error(res) |
| | | }) |
| | | //模æ¿ç®¡çè¡¨æ ¼æ°æ® |
| | | await gridCodeClassifyTemplate({'conditionMap[codeClassifyOid]':data.oid }).then(res => { |
| | | this.Formlist = res.data.data.filter(item => { |
| | | if (item.codeclassifyoid != "") { |
| | | this.codeClassifyOid=item.codeclassifyoid |
| | | return item.codeclassifyoid == this.nodeClickList.oid |
| | | } |
| | | }) |
| | | console.log("formlist", this.Formlist) |
| | | await gridCodeClassifyTemplate({'conditionMap[codeclassifyoid]': data.oid}).then(res => { |
| | | if (this.CloneVisible != true) { |
| | | this.Formlist = res.data.data.filter(item => { |
| | | if (item.codeclassifyoid != "") { |
| | | this.codeClassifyOid = item.codeclassifyoid |
| | | return item.codeclassifyoid == this.nodeClickList.oid |
| | | } |
| | | }) |
| | | } else { |
| | | this.CloneFormlist = res.data.data.filter(item => { |
| | | if (item.codeclassifyoid != "") { |
| | | this.codeClassifyOid = item.codeclassifyoid |
| | | return item.codeclassifyoid == this.nodeClickList.oid |
| | | } |
| | | }) |
| | | } |
| | | gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': this.Formlist[0].oid}).then(res => { |
| | | this.ProData = res.data.data |
| | | console.log(this.ProData) |
| | |
| | | } |
| | | }, |
| | | //模æ¿ç®¡ç渲æ |
| | | CrudRend(){ |
| | | gridCodeClassifyTemplate({'conditionMap[codeclassifyoid]':this.nodeClickList.oid }).then(res=>{ |
| | | CrudRend() { |
| | | gridCodeClassifyTemplate({'conditionMap[codeclassifyoid]': this.nodeClickList.oid}).then(res => { |
| | | this.Formlist = res.data.data |
| | | }) |
| | | }, |
| | | //模æ¿ç®¡çè¡¨æ ¼æ·»å |
| | | CrudRowSave(row){ |
| | | if(this.nodeClickList.length <= 0){ |
| | | CrudRowSave(row,done) { |
| | | debugger |
| | | console.log(nodeClickList.length) |
| | | if (this.nodeClickList.length <= 0) { |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: '请å
仿 ä¸éæ©ä¸æ¡æ°æ®!' |
| | | }); |
| | | }else { |
| | | } else { |
| | | console.log(this.nodeClickList) |
| | | let codeClassifyOid=this.codeClassifyOid |
| | | this.$set(row,"codeclassifyoid",codeClassifyOid) |
| | | addSave(row).then(res=>{ |
| | | let codeClassifyOid = this.codeClassifyOid |
| | | this.$set(row, "codeclassifyoid", codeClassifyOid) |
| | | addSave(row).then(res => { |
| | | this.CrudRend() |
| | | }).catch(res=>{ |
| | | done() |
| | | }).catch(res => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: res |
| | |
| | | } |
| | | }, |
| | | //模æ¿ç®¡çä¿®æ¹ |
| | | CrudRowUpdata(row){ |
| | | editSave(row).then(()=>{ |
| | | CrudRowUpdata(row) { |
| | | editSave(row).then(() => { |
| | | this.CrudRend() |
| | | }).catch(res=>{ |
| | | }).catch(res => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: res |
| | |
| | | }) |
| | | }, |
| | | //模æ¿ç®¡çå é¤ |
| | | CrudRowDel(row){ |
| | | deleteData(row).then(res=>{ |
| | | CrudRowDel(row) { |
| | | deleteData(row).then(res => { |
| | | this.CrudRend() |
| | | }).catch(res=>{ |
| | | }).catch(res => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: res |
| | |
| | | }) |
| | | } |
| | | }, |
| | | //å
鿍¡æ¿æ¥è¯¢ |
| | | CloneEnterFind(){ |
| | | gridCodeClassifyTemplate().then(res => { |
| | | this.CloneFormlist = res.data.data.filter(item => { |
| | | if(this.Clonevalue == 0){ |
| | | return item.id.includes(this.CloneFind) |
| | | }else if(this.Clonevalue == 1){ |
| | | return item.name.includes(this.CloneFind) |
| | | } |
| | | }) |
| | | }) |
| | | }, |
| | | //å
鿍¡æ¿éæ©ç¡®å® |
| | | Clonehandler(){ |
| | | if(this.CloneFormlist.length <= 0){ |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: 'è¯·éæ©è¦å
éçæ¨¡æ¿!' |
| | | }); |
| | | }else if(this.CloneSelect.length >1){ |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: 'åªè½éæ©ä¸æ¡æ°æ®!' |
| | | }); |
| | | } else { |
| | | this.CloneinnerVisible=true |
| | | } |
| | | }, |
| | | //ç¹å»ä»å
¶å®æ¨¡æ¿å
é |
| | | CloneBtn(){ |
| | | if(this.nodeClickList.length <= 0){ |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: '请å
ä»[主é¢åºåç±»ãæ ä¸éæ©ä¸æ¡æ°æ®!' |
| | | }); |
| | | }else { |
| | | this.CloneVisible=true; |
| | | } |
| | | }, |
| | | //å
鿍¡æ¿åéæ¡æ¹å |
| | | selectionChange(row){ |
| | | console.log(row) |
| | | this.CloneSelect=row |
| | | this.CloneModel.id=row[0].id; |
| | | this.CloneModel.name=row[0].name; |
| | | }, |
| | | //å
é表åæäº¤ |
| | | Clonesubmit(done){ |
| | | copy(this.CloneSelect[0]).then(res=>{ |
| | | console.log(res) |
| | | done() |
| | | }) |
| | | }, |
| | | //å·æ° |
| | | TemRefresh() { |
| | | this.FormLoing = true |
| | | if (this.nodeClickList.oid != "") { |
| | | gridCodeClassifyTemplate({'conditionMap[codeclassifyoid]':this.nodeClickList.oid}).then(res => { |
| | | gridCodeClassifyTemplate({'conditionMap[codeclassifyoid]': this.nodeClickList.oid}).then(res => { |
| | | this.Formlist = res.data.data.filter(item => { |
| | | return item.codeclassifyoid == this.nodeClickList.oid |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-dialog |
| | | title="éæ©åç
§é
ç½®" |
| | | append-to-body |
| | | :visible.sync="isShowReferConfigCrud" |
| | | width="94%" |
| | | id="refer-config-dialog" |
| | | style="height: 115vh; margin-top: -14vh; overflow-y: hidden"> |
| | | <div style="width: 100%; overflow-y: auto; height: 70vh"> |
| | | <el-row style="width: 100%; height:70%"> |
| | | <el-col style="width: 70%; height: 100%;"> |
| | | <basic-container style="width: 100%; "> |
| | | <avue-crud :option="referConfigCrudOption" |
| | | class="refer-config-crud" |
| | | :page.sync="referConfigParams.referConfigPage" |
| | | :table-loading="referConfigParams.referConfigLoading" |
| | | :data="referConfigParams.referConfigData" |
| | | :ref= "referConfigParams.ref" |
| | | @row-click="referConfigRowClick" |
| | | @selection-change="referConfigDataChange" |
| | | @search-change="referConfigSearchChange" |
| | | @search-reset="referConfigSearchReset"> |
| | | <template #radio="{row}"> |
| | | <el-radio v-model="referConfigParams.referConfigSelectedRow" |
| | | :label="row.$index"> |
| | | |
| | | </el-radio> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </el-col> |
| | | <el-col v-show="true" style="width: 30%; height: 100%;"> |
| | | <basic-container style="width: 100%;"> |
| | | <avue-form ref="refereConfigForm" |
| | | style="height: 65vh;" |
| | | :option="formOption" |
| | | class="refer-confg-form" |
| | | ></avue-form> |
| | | </basic-container> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row style="width: 100%; height:30%; margin-top: 130px"> |
| | | <basic-container style="width: 100%; height:100%;"> |
| | | <avue-crud :option="attrAndSrchCondOption" |
| | | class="refer-attrorsrchcond-crud" |
| | | :table-loading="attrAndSrchCondParams.attrAndSrchCondLoading" |
| | | :data="attrAndSrchCondParams.attrAndSrchCondData" |
| | | :ref= "attrAndSrchCondParams.ref" |
| | | @row-click="attrAndSrchCondRowClick"> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </el-row> |
| | | </div> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="selectedreferConfig('selectedSave')">鿩并ä¿å</el-button> |
| | | <el-button @click="selectedreferConfig('selectedEdit')">éæ©å¹¶ä¿®æ¹</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | <script> |
| | | //import func from "@/util/func"; |
| | | export default { |
| | | name: "referConfigDialog", |
| | | props: { |
| | | }, |
| | | data() { |
| | | return{ |
| | | isShowReferConfigCrud:false, |
| | | referConfigCrudOption: { |
| | | border: true, |
| | | height: '56vh', |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | index: true, |
| | | selection: false, |
| | | menu: false, |
| | | addBtn: false, |
| | | refreshBtn: false, |
| | | searchShowBtn: false, |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | column: [ |
| | | { |
| | | label: '-', |
| | | prop: 'radio', |
| | | width: 60, |
| | | hide: false |
| | | },{ |
| | | label: 'åç
§é
ç½®ç¼å·', |
| | | width: 120, |
| | | search: true, |
| | | searchSpan: 9, |
| | | searchLabelWidth: 100, |
| | | prop: 'id' |
| | | },{ |
| | | label: 'åç
§é
ç½®åç§°', |
| | | search: true, |
| | | searchSpan: 9, |
| | | searchLabelWidth: 100, |
| | | prop: 'name' |
| | | },{ |
| | | label: 'åç
§çä¸å¡ç±»å', |
| | | search: false, |
| | | prop: 'referType' |
| | | },{ |
| | | label: 'æ¾ç¤ºç屿§', |
| | | search: false, |
| | | prop: 'textField' |
| | | },{ |
| | | label: 'åå¨å¼ç屿§', |
| | | search: false, |
| | | prop: 'valueField' |
| | | },{ |
| | | label: 'åç
§çªå£ç±»å', |
| | | search: false, |
| | | prop: 'typeText' |
| | | } |
| | | ], |
| | | }, |
| | | referConfigParams: { |
| | | ref: "referConfigCrud", |
| | | referConfigLoading: false, |
| | | referConfigData: [], |
| | | referConfigPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0 |
| | | }, |
| | | referConfigQuery: {}, |
| | | referConfigSelectedRowData: '', |
| | | // å½åéä¸è¡ |
| | | referConfigSelectedRow: '', |
| | | }, |
| | | formOption: { |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | labelWidth: '110', //é»è®¤æ ç¾å®½åº¦ |
| | | column: [{ |
| | | label: 'æ¯é¡µæ¾ç¤ºæ¡æ°', |
| | | prop: 'limit', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'sortField', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºç±»å', |
| | | prop: 'sortType', |
| | | span: 24, |
| | | dicData: [{ |
| | | label: 'ååº', value: 'asc' |
| | | }, { |
| | | label: 'éåº', value: 'desc' |
| | | }], |
| | | type: 'select', |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | } |
| | | ] |
| | | }, |
| | | // æåºç±»åç表åé
ç½® |
| | | sortColumn:[{ |
| | | label: 'æ¯é¡µæ¾ç¤ºæ¡æ°', |
| | | prop: 'limit', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'sortField', |
| | | span: 24, |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | },{ |
| | | label: 'æåºç±»å', |
| | | prop: 'sortType', |
| | | span: 24, |
| | | dicData: [{ |
| | | label: 'ååº', value: 'asc' |
| | | }, { |
| | | label: 'éåº', value: 'desc' |
| | | }], |
| | | type: 'select', |
| | | disabled: true, |
| | | row: true, |
| | | placeholder: ' ', |
| | | }], |
| | | // æ 形类åç表åé
ç½® |
| | | treeColumn:[{ |
| | | label: 'æ å½¢çä¸çº§å±æ§', |
| | | prop: 'parentFieldName', |
| | | span: 7, |
| | | tip: 'æ å½¢å±ç¤ºçæ¶åï¼ä¸ä¸çº§å
³ç³»æ¥æ¾ç屿§ã', |
| | | tipPlacement: 'right', |
| | | rules: [{ |
| | | required: true, |
| | | message: "(æ å½¢çä¸çº§å±æ§)å¿
填项ä¸è½ä¸ºç©º", |
| | | trigger: "blur", |
| | | }], |
| | | },{ |
| | | label: 'ä¸çº§å±æ§å¼å¯¹åºå±æ§', |
| | | prop: 'parentUsedField', |
| | | span: 7, |
| | | tip: 'ä¸çº§å±æ§åå¨çå¼,æ¯ä¸çº§æ°æ®çä»ä¹å±æ§ãä¸è¬é½æ¯oidã', |
| | | value: 'oid', |
| | | tipPlacement: 'right', |
| | | },{ |
| | | label: 'æ ¹èç¹çå¼', |
| | | prop: 'parentValue', |
| | | span: 7, |
| | | tip: 'æ å½¢å±ç¤ºçæ¶åï¼ä¸çº§çå¼ã', |
| | | tipPlacement: 'right', |
| | | },{ |
| | | label: 'æ å è½½æ¹å¼', |
| | | prop: 'loadType', |
| | | span: 7, |
| | | value: 'all', |
| | | dicData: [{ |
| | | label: 'å
¨é¨', value: 'all' |
| | | }, { |
| | | label: 'é级å è½½', value: 'node' |
| | | }], |
| | | type: 'select', |
| | | },{ |
| | | label: 'æ¯å¦åªè½éæ©å¶åèç¹', |
| | | prop: 'onlyLeaf', |
| | | span: 7, |
| | | value: false, |
| | | type: 'switch', |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'sortField', |
| | | span: 7, |
| | | //type: 'table', |
| | | tip: 'æ¥è¯¢æ°æ®æ¶çæåºå段', |
| | | tipPlacement: 'right', |
| | | },{ |
| | | label: 'æåºç±»å', |
| | | prop: 'sortType', |
| | | span: 7, |
| | | type: 'select', |
| | | value: 'asc', |
| | | dicData: [{ |
| | | label: 'ååº', value: 'asc' |
| | | }, { |
| | | label: 'éåº', value: 'desc' |
| | | }], |
| | | },], |
| | | // å¹³å°ç±»åç表åé
ç½® |
| | | standColumn:[{ |
| | | label: 'åèçUIä¸ä¸æ', |
| | | prop: 'referContent', |
| | | span: 7, |
| | | tip: 'åªæåç
§çªå£ç±»åæ¯standæ¶æå¿
须设置,ä¸å¨standç±»å䏿è½çæ', |
| | | tipPlacement: 'right', |
| | | }, |
| | | { |
| | | label: 'å¹³å°çè¡¨æ ¼ç¼å·', |
| | | prop: 'displayTable', |
| | | span: 7, |
| | | tip: 'ä¸åç
§çUIä¸ä¸æäºæ¥ï¼åªæåç
§çªå£ç±»åæ¯standæ¶æå¿
须设置ï¼ä¸å¨standç±»å䏿è½çæ', |
| | | tipPlacement: 'right', |
| | | }], |
| | | |
| | | // æ¾ç¤ºç屿§åæ¥è¯¢æ¡ä»¶è¡¨æ ¼åºå |
| | | attrAndSrchCondOption: { |
| | | border: true, |
| | | height: '40vh', |
| | | tip: false, |
| | | searchShow: false, |
| | | searchMenuSpan: 6, |
| | | index: true, |
| | | selection: false, |
| | | menu: false, |
| | | addBtn: false, |
| | | refreshBtn: false, |
| | | searchShowBtn: false, |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | column: [ |
| | | { |
| | | label: 'æ¥è¯¢æ¡ä»¶', |
| | | children: [ |
| | | { |
| | | label: 'çéåæ®µ', |
| | | prop: 'filterField', |
| | | },{ |
| | | label: 'çéç±»å', |
| | | prop: 'filterType', |
| | | },{ |
| | | label: 'çéçå¼', |
| | | prop: 'filterValue', |
| | | } |
| | | ], |
| | | },{ |
| | | label: 'æ¾ç¤ºç屿§', |
| | | children: [ |
| | | { |
| | | label: 'ååæ®µ', |
| | | // width: 120, |
| | | prop: 'field', |
| | | //type: 'select', |
| | | // props: { |
| | | // label: 'name', |
| | | // value: 'code' |
| | | // }, |
| | | // dicUrl: 'https://cli.avuejs.com/api/area/getProvince' |
| | | },{ |
| | | label: 'åå', |
| | | prop: 'title' |
| | | },{ |
| | | label: 'åæ®µç±»å', |
| | | prop: 'fieldType' |
| | | },{ |
| | | label: 'åè¡¨å¯æåº', |
| | | prop: 'sort' |
| | | },{ |
| | | label: 'æåºå段', |
| | | prop: 'sortField' |
| | | },{ |
| | | label: 'åæ®µå®½åº¦', |
| | | prop: 'width' |
| | | },{ |
| | | label: 'ååºå®ä½ç½®', |
| | | prop: 'fixedText' |
| | | },{ |
| | | label: 'jsæ¾ç¤ºä»£ç ', |
| | | prop: 'templet' |
| | | } |
| | | ] |
| | | }, |
| | | ], |
| | | }, |
| | | attrAndSrchCondParams: { |
| | | ref: "attrOrSrchCondCrud", |
| | | attrAndSrchCondLoading: false, |
| | | attrAndSrchCondData: [], |
| | | }, |
| | | |
| | | } |
| | | }, |
| | | methods: { |
| | | // ä¸ä¸æ¥è¦è¿è¡çæä½éæ©å¹¶ä¿åæéæ©å¹¶ä¿®æ¹ |
| | | selectedreferConfig(condition) { |
| | | // å½åéä¸çåç
§é
ç½®è¡ |
| | | let currentSeletedRow = this.referConfigParams.referConfigSelectedRowData; |
| | | if(!currentSeletedRow){ |
| | | this.$message.warning("è¯·éæ©ä¸æ¡æ°æ®ï¼"); |
| | | return; |
| | | } |
| | | if(condition == "selectedSave"){ |
| | | console.log(currentSeletedRow); |
| | | }else { |
| | | console.log(currentSeletedRow); |
| | | } |
| | | }, |
| | | referConfigOnload(page, params = {}){ |
| | | this.referConfigParams.referConfigLoading = true; |
| | | this.referConfigParams.referConfigData = [ |
| | | { |
| | | id: 'test', |
| | | name: 'æµè¯', |
| | | referType: 'test', |
| | | textField: 'test', |
| | | valueField: 'test', |
| | | typeText:'é»è®¤é
ç½®', |
| | | },{ |
| | | id: 'test1', |
| | | name: 'æµè¯1', |
| | | referType: 'test1', |
| | | textField: 'test1', |
| | | valueField: 'test1', |
| | | typeText:'å¹³å°é
ç½®', |
| | | } |
| | | ]; |
| | | this.$nextTick(() => { |
| | | this.$refs[this.referConfigParams.ref].doLayout() |
| | | }) |
| | | this.referConfigParams.referConfigLoading = false; |
| | | }, |
| | | referBtmTypeSizeChange(pageSize){ |
| | | this.referConfigParams.referConfigPage.pageSize = pageSize; |
| | | }, |
| | | referBtmTypeCurrentChange(currentPage){ |
| | | this.referConfigParams.referConfigPage.currentPage = currentPage; |
| | | }, |
| | | referConfigRowClick(row){ |
| | | this.referConfigParams.referConfigSelectedRowData = row; |
| | | this.referConfigParams.referConfigSelectedRow = row.$index |
| | | this.attrAndSrchCondOnload(row); |
| | | }, |
| | | referConfigDataChange(params, done){ |
| | | this.referConfigParams.referConfigQuery = params; |
| | | this.referConfigParams.referConfigPage.currentPage = 1; |
| | | this.referConfigOnload(this.referConfigParams.referConfigPage, params); |
| | | done(); |
| | | }, |
| | | referConfigSearchReset(){ |
| | | this.referConfigParams.referConfigQuery = {}; |
| | | this.referConfigOnload(this.referConfigParams.referConfigPage); |
| | | }, |
| | | |
| | | |
| | | // æ¾ç¤ºç屿§åæ¥è¯¢æ¡ä»¶ç¸å
³æ¹æ³ |
| | | attrAndSrchCondOnload(row){ |
| | | this.attrAndSrchCondParams.attrAndSrchCondLoading = true; |
| | | this.attrAndSrchCondParams.attrAndSrchCondParams = row.attrAndSrchCondParams |
| | | this.attrAndSrchCondParams.attrAndSrchCondLoading = false; |
| | | }, |
| | | |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | .refer-config-crud > .el-card > .el-card__body > .avue-crud__menu { |
| | | display: none!important; |
| | | } |
| | | .refer-attrorsrchcond-crud > .el-card > .el-card__body > .avue-crud__menu { |
| | | display: none!important; |
| | | } |
| | | |
| | | </style> |
ÎļþÃû´Ó Source/UBCS-WEB/src/components/code-dialog-page/referConfigDialog.vue ÐÞ¸Ä |
| | |
| | | <el-dialog |
| | | title="åç
§é
ç½®" |
| | | append-to-body |
| | | :visible.sync="isShowReferConfig" |
| | | :visible.sync="isShowReferConfigForm" |
| | | width="90%" |
| | | id="refer-config" |
| | | id="refer-config-form" |
| | | @close="recoveryDataAndForm('initData')" |
| | | style="height: 115vh; margin-top: -14vh; overflow-y: hidden"> |
| | | <el-tabs v-model="activeName" @tab-click="handleClick"> |
| | | <el-tab-pane label="èªå®ä¹åç
§é
ç½®" name="first"> |
| | | <div style="width: 100%; overflow-y: auto; height: 65vh"> |
| | | <el-row> |
| | | <avue-form ref="form" :option="formOption" v-model="form" class="referTypeForm"> |
| | | <template #referTypeName="{disabled,size}"> |
| | | <el-input :disabled="disabled" |
| | | :size="size" |
| | | v-model="form.referTypeName" |
| | | ref="referTypeName" |
| | | placeholder="è¯·éæ© åç
§çä¸å¡ç±»å" |
| | | prefix-icon="el-icon-search" |
| | | readonly="true" |
| | | @focus="openSelectionTable('referType')"> |
| | | <i v-show="!disabled" slot="suffix" class="el-icon-circle-close" @click="clearSelectionTable('referType')" style="margin-right: 5px;cursor: pointer;"></i> |
| | | </el-input> |
| | | </template> |
| | | <template #sortField="{disabled,size}"> |
| | | <el-input :disabled="disabled" |
| | | :size="size" |
| | | v-model="form.sortField" |
| | | ref="sortField" |
| | | placeholder="è¯·éæ© æåºå段" |
| | | prefix-icon="el-icon-search" |
| | | readonly="true" |
| | | @focus="openSelectionTable('sortField')"> |
| | | <i slot="suffix" class="el-icon-circle-close" @click="clearSelectionTable('sortField')" style="margin-right: 5px;cursor: pointer;"></i> |
| | | </el-input> |
| | | </template> |
| | | </avue-form> |
| | | </el-row> |
| | | <el-row v-show="form.type=='default' || form.type=='grid'"> |
| | | <avue-crud |
| | | ref="crudAttr" |
| | | class="crud-attr" |
| | | :option="attrOption" |
| | | @cell-click="clickAttrEdit" |
| | | :data="attrData"> |
| | | <!-- è¡¨æ ¼å
æä½æé® --> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-search" |
| | | plain |
| | | @click="scope.row.isquery=!scope.row.isquery"> |
| | | {{scope.row.isquery ? "åæ¶å¿«éæ¥è¯¢":"å¿«éæ¥è¯¢"}} |
| | | </el-button> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-minus" |
| | | plain |
| | | @click="removeCurrentRow(scope.row,'removeAttr')">ç§»é¤ |
| | | </el-button> |
| | | </template> |
| | | <!-- è¡¨æ ¼å·¦ä¸æ¹æé®åºå --> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button type="primary" |
| | | size="small" |
| | | icon="el-icon-plus" |
| | | @click="openSelectionTable('selectAttr')">鿩屿§ |
| | | </el-button> |
| | | <div class="tag-group" style="display: inline"> |
| | | <el-tag |
| | | v-for="item in attrData" |
| | | v-show="item.isquery && item.title!=''" |
| | | style="margin-left: 3px" |
| | | :key="item.title" |
| | | type="info" |
| | | size="small" |
| | | effect="dark"> |
| | | {{ item.title }} |
| | | </el-tag> |
| | | </div> |
| | | </template> |
| | | </avue-crud> |
| | | </el-row> |
| | | <el-row style="margin-top: 10px"> |
| | | <avue-crud |
| | | ref="crudAddCondition" |
| | | :option="addSearchCondtionOption" |
| | | @cell-click="clickAddSearchCondtionEdit" |
| | | :data="addSearchCondtionData"> |
| | | <!-- è¡¨æ ¼å
æä½æé® --> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-minus" |
| | | plain |
| | | @click="removeCurrentRow(scope.row,'removeaddSearchCondtion')">ç§»é¤ |
| | | </el-button> |
| | | </template> |
| | | <!-- è¡¨æ ¼å·¦ä¸æ¹æé®åºå --> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button type="primary" |
| | | size="small" |
| | | icon="el-icon-plus" |
| | | @click="openSelectionTable('addSearchCondition')"> |
| | | æ·»å æ¥è¯¢æ¡ä»¶ |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </el-row> |
| | | </div> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="ç´æ¥éååç
§é
ç½®" name="second"> |
| | | <div style="width: 100%; overflow-y: auto; height: 65vh"> |
| | | <avue-crud |
| | | :option="selectReferConfigOption" |
| | | :table-loading="selectReferConfigLoading" |
| | | :data="selectReferConfigData" |
| | | :page.sync="selectReferConfigPage" |
| | | ref="selectReferConfigCrud" |
| | | @row-click="codeRuleRowClick" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @selection-change="selectionChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad"> |
| | | </avue-crud> |
| | | </div> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | <div style="width: 100%; overflow-y: auto; height: 70vh"> |
| | | <el-row> |
| | | <avue-form ref="form" :option="formOption" v-model="form" class="referTypeForm"> |
| | | <template #referTypeName="{disabled,size}"> |
| | | <el-input :disabled="disabled" |
| | | :size="size" |
| | | v-model="form.referTypeName" |
| | | ref="referTypeName" |
| | | placeholder="è¯·éæ© åç
§çä¸å¡ç±»å" |
| | | prefix-icon="el-icon-search" |
| | | readonly="true" |
| | | @focus="openSelectionTable('referType')"> |
| | | <i v-show="!disabled" slot="suffix" class="el-icon-circle-close" @click="clearSelectionTable('referType')" style="margin-right: 5px;cursor: pointer;"></i> |
| | | </el-input> |
| | | </template> |
| | | <template #sortField="{disabled,size}"> |
| | | <el-input :disabled="disabled" |
| | | :size="size" |
| | | v-model="form.sortField" |
| | | ref="sortField" |
| | | placeholder="è¯·éæ© æåºå段" |
| | | prefix-icon="el-icon-search" |
| | | readonly="true" |
| | | @focus="openSelectionTable('sortField')"> |
| | | <i slot="suffix" class="el-icon-circle-close" @click="clearSelectionTable('sortField')" style="margin-right: 5px;cursor: pointer;"></i> |
| | | </el-input> |
| | | </template> |
| | | </avue-form> |
| | | </el-row> |
| | | <el-row v-show="form.type=='default' || form.type=='grid'"> |
| | | <avue-crud |
| | | ref="crudAttr" |
| | | class="crud-attr" |
| | | :option="attrOption" |
| | | @cell-click="clickAttrEdit" |
| | | :data="attrData"> |
| | | <!-- è¡¨æ ¼å
æä½æé® --> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-search" |
| | | plain |
| | | @click="scope.row.isquery=!scope.row.isquery"> |
| | | {{scope.row.isquery ? "åæ¶å¿«éæ¥è¯¢":"å¿«éæ¥è¯¢"}} |
| | | </el-button> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-minus" |
| | | plain |
| | | @click="removeCurrentRow(scope.row,'removeAttr')">ç§»é¤ |
| | | </el-button> |
| | | </template> |
| | | <!-- è¡¨æ ¼å·¦ä¸æ¹æé®åºå --> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button type="primary" |
| | | size="small" |
| | | icon="el-icon-plus" |
| | | @click="openSelectionTable('selectAttr')">鿩屿§ |
| | | </el-button> |
| | | <div class="tag-group" style="display: inline"> |
| | | <el-tag |
| | | v-for="item in attrData" |
| | | v-show="item.isquery && item.title!=''" |
| | | style="margin-left: 3px" |
| | | :key="item.title" |
| | | type="info" |
| | | size="small" |
| | | effect="dark"> |
| | | {{ item.title }} |
| | | </el-tag> |
| | | </div> |
| | | </template> |
| | | </avue-crud> |
| | | </el-row> |
| | | <el-row style="margin-top: 10px"> |
| | | <avue-crud |
| | | ref="crudAddCondition" |
| | | :option="addSearchCondtionOption" |
| | | @cell-click="clickAddSearchCondtionEdit" |
| | | :data="addSearchCondtionData"> |
| | | <!-- è¡¨æ ¼å
æä½æé® --> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button type="text" |
| | | size="small" |
| | | icon="el-icon-minus" |
| | | plain |
| | | @click="removeCurrentRow(scope.row,'removeaddSearchCondtion')">ç§»é¤ |
| | | </el-button> |
| | | </template> |
| | | <!-- è¡¨æ ¼å·¦ä¸æ¹æé®åºå --> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button type="primary" |
| | | size="small" |
| | | icon="el-icon-plus" |
| | | @click="openSelectionTable('addSearchCondition')"> |
| | | æ·»å æ¥è¯¢æ¡ä»¶ |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </el-row> |
| | | </div> |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="selectedListReferConfig">ç¡® å®</el-button> |
| | | <el-button @click="recoveryDataAndForm('initForm')">æ¸
空å
容</el-button> |
| | | <el-button @click="isShowReferConfig = false">å æ¶</el-button> |
| | | <el-button @click="isShowReferConfigForm = false">å æ¶</el-button> |
| | | </div> |
| | | |
| | | <el-dialog title="为ãåç
§çä¸å¡ç±»åãéåå¼" |
| | |
| | | <template #radio="{row}"> |
| | | <el-radio v-model="referBtmTypeSelectRow" |
| | | :label="row.$index"> |
| | | - |
| | | |
| | | </el-radio> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | <template #radio="{row}"> |
| | | <el-radio v-model="sortFieldSelectRow" |
| | | :label="row.$index"> |
| | | - |
| | | |
| | | </el-radio> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import func from "@/util/func"; |
| | | export default { |
| | | name: "referConfigDialog", |
| | | props: { |
| | | //æ¬åºæ¯åé |
| | | thisSceneTableData: { |
| | | type: Array, |
| | | }, |
| | | }, |
| | | data() { |
| | | let element = ''; |
| | | return { |
| | | //æµè¯è¡¨æ ¼è¡ç¼è¾ææ |
| | | // tableData:[{ |
| | | // field: 'id', |
| | | // title: 'ç¼å·', |
| | | // fieldType: 'text', |
| | | // fieldTypeText: 'ææ¬æ¡', |
| | | // sort: true, |
| | | // sortField: 'id', |
| | | // width: '150', |
| | | // isquery: true, |
| | | // $cellEdit: false |
| | | // },{ |
| | | // field: 'name', |
| | | // title: 'åç§°', |
| | | // fieldType: 'text', |
| | | // fieldTypeText: 'ææ¬æ¡', |
| | | // sort: true, |
| | | // sortField: 'name', |
| | | // width: '180', |
| | | // isquery: true, |
| | | // $cellEdit: false |
| | | // }], |
| | | // tableOption:{ |
| | | // tableData:[], //è¡¨æ ¼æ°æ® |
| | | // options:[] //è¡¨æ ¼é
置项信æ¯ï¼è¡¨å¤´ï¼label宽度çï¼ |
| | | // }, |
| | | |
| | | activeName: 'first', //å½åæ´»å¨çtabs |
| | | labelWidth: '150', // æ é¢å®½åº¦ |
| | | isShowReferConfig: false, // 第ä¸å±å¯¹è¯æ¡æ¾ç¤ºéèæ§å¶ |
| | | isShowReferConfigForm: false, // 第ä¸å±å¯¹è¯æ¡æ¾ç¤ºéèæ§å¶ |
| | | referTypeIsReadOnly: false, |
| | | // 表å对象 |
| | | form: { |
| | |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | selectReferConfigOption: { |
| | | height:'auto', |
| | | tip: false, |
| | | addBtn: false, |
| | | editBtn: false, |
| | | //searchShow: false, |
| | | searchMenuSpan: 6, |
| | | border: false, |
| | | index: true, |
| | | viewBtn: false, |
| | | delBtn: false, |
| | | //selection: false, |
| | | //disablePage: false, |
| | | //refreshBtn: false, |
| | | //columnBtn: false, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | column: [ |
| | | { |
| | | label: "ååæ®µ(*)", |
| | | prop: "field", |
| | | },{ |
| | | label: "åå(*)", |
| | | prop: "title", |
| | | },{ |
| | | label: "åæ®µç±»å(*)", |
| | | prop: "fieldTypeText", |
| | | },{ |
| | | label: "åè¡¨å¯æåº", |
| | | prop: "sort", |
| | | },{ |
| | | label: "æåºå段", |
| | | prop: "sortField", |
| | | },{ |
| | | label: "åæ®µå®½åº¦", |
| | | prop: "width", |
| | | },{ |
| | | label: "ååºå®ä½ç½®", |
| | | prop: "fixedText", |
| | | },{ |
| | | label: "jsæ¾ç¤ºä»£ç ", |
| | | prop: "templet", |
| | | }, |
| | | ] |
| | | }, |
| | | selectReferConfigLoading: false, |
| | | selectReferConfigData: [ |
| | | { |
| | | field: 'id', |
| | | title: 'ç¼å·', |
| | | fieldType: 'text', |
| | | fieldTypeText: 'ææ¬æ¡', |
| | | sort: "true", |
| | | sortField: 'id', |
| | | width: '150', |
| | | isquery: true, |
| | | },{ |
| | | field: 'name', |
| | | title: 'åç§°', |
| | | fieldType: 'text', |
| | | fieldTypeText: 'ææ¬æ¡', |
| | | sort: "true", |
| | | sortField: 'name', |
| | | width: '180', |
| | | isquery: true, |
| | | } |
| | | ], |
| | | selectReferConfigPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0 |
| | | }, |
| | | selectReferConfigQuery: {}, |
| | | |
| | | //为ãåç
§çä¸å¡ç±»åãéåå¼å¯¹è¯æ¡ |
| | | selectionReferBtmTypeOption: { |
| | |
| | | //type: 'table', |
| | | tip: 'æ¥è¯¢æ°æ®æ¶çæåºå段', |
| | | tipPlacement: 'right', |
| | | // children: { |
| | | // border: true, |
| | | // column: [{ |
| | | // label: '屿§è±æç¼å·', |
| | | // width: 120, |
| | | // search: true, |
| | | // searchSpan: 8, |
| | | // searchLabelWidth: 100, |
| | | // prop: 'id' |
| | | // },{ |
| | | // label: '屿§ä¸æåç§°', |
| | | // search: true, |
| | | // searchSpan: 8, |
| | | // searchLabelWidth: 100, |
| | | // prop: 'name' |
| | | // },{ |
| | | // label: '屿§é¿åº¦', |
| | | // search: false, |
| | | // prop: 'attrLength' |
| | | // },{ |
| | | // label: '屿§ç±»å', |
| | | // search: false, |
| | | // prop: 'attrType' |
| | | // }], |
| | | // }, |
| | | // è¿å¿éè¦æ·»å ä¸å¡ç±»åæ¥å£è¯·æ±å®ç°å¼¹çªçé¢è¡¨æ ¼æ¸²æ |
| | | },{ |
| | | label: 'æåºç±»å', |
| | | prop: 'sortType', |
| | |
| | | ] |
| | | } |
| | | }, |
| | | |
| | | }, |
| | | mounted() { |
| | | // 麻çè¿ä¸ªå°æ¹è°æ»æäº |
| | | this.element = document.getElementById('refer-config'); |
| | | this.element = document.getElementById('refer-config-form'); |
| | | this.element.addEventListener("click", (e) => { |
| | | //<table cellspacing="0" cellpadding="0" border="0" class="el-table__body" style="width: 911px;"> |
| | | //console.log(e.target); |
| | |
| | | this.preClickAttrRow = row; |
| | | }, |
| | | // 屿§è¡¨æ ¼è¡ç¼è¾å¤±å»ç¦ç¹æ¶ä¿åæ¹æ³ |
| | | updateAttrBlur(value){ |
| | | // updateAttrBlur(value){ |
| | | //console.log(this.attrData[0]); |
| | | |
| | | }, |
| | | // }, |
| | | // åå»è¡¨æ ¼å®ç°è¡¨æ ¼è¡ç¼è¾ |
| | | clickAddSearchCondtionEdit(row, column, event){ |
| | | if(this.preClickAddSearchConditionRow && this.preClickAddSearchConditionRow != row){ |
| | |
| | | }, |
| | | //ä¸ä¸ä¸ªé¡µé¢å·²ç»éä¸åç
§åºç¨çä¸å¡ç±»åçæ
åµï¼åä¸ä¸æ¬¡å·²ç»é
ç½®è¿åç
§é
ç½®çæ
åµä¸è¿è¡é¡µé¢åå§å渲æ |
| | | initPageData(val){ |
| | | let value = JSON.parse(val); |
| | | if(value != null || value != 'undefined' ){ |
| | | this.form = value; |
| | | //console.log(val); |
| | | if(func.notEmpty(val.referConfig)){ |
| | | this.form = JSON.parse(val.referConfig); |
| | | //console.log(val); |
| | | this.referTypeIsReadOnly = true; |
| | | return; |
| | | } |
| | | if(func.notEmpty(val.referType)){ |
| | | this.form.referTypeName = val.referTypeName; |
| | | this.form.referType = val.referType; |
| | | this.referTypeIsReadOnly = true; |
| | | return; |
| | | } |
| | | //console.log(localStorage.getItem("userId")); |
| | | }, |
| | | // 忢å½åæ´»å¨çtabs |
| | | handleClick(tab, event) { |
| | | if(tab.index=='0'){ |
| | | this.onloadAttrData(); |
| | | }else{ |
| | | //this.onloadSelectReferConfigData(); |
| | | } |
| | | }, |
| | | // éæ©å®åç
§é
ç½®ä¹åç¹å»ä¿åæé®è§¦å |
| | | selectedListReferConfig(){ |
| | |
| | | let submitForm = this.filterForm(); |
| | | //console.log(submitForm); |
| | | this.$emit('echoReferConfig', submitForm) // 触åupdate:dataå°åç»ä»¶å¼ä¼ éç»ç¶ç»ä»¶ |
| | | this.isShowReferConfig = false; |
| | | this.isShowReferConfigForm = false; |
| | | done() |
| | | } else { |
| | | for(let attr in msg) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | //ä»ç¼åä¸é£form表å对象 |
| | | getLocalStoregeForm(){ |
| | | localStorage.getItem("userId"); |
| | | |
| | | }, |
| | | /** å
¶å®éå屿§è¡¨æ ¼çé»è®¤æ°æ®ä¸éè¦å è½½ï¼ |
| | | 使¯å¼¹çªæå¼ä¼æè¡¨æ ¼éè¡é®é¢æä»¥éè¦å¨è¿è°ç¨doLayoutæ¹æ³*/ |
| | | onloadAttrData(){ |
| | | this.$nextTick(() => { |
| | | this.$refs.crudAttr.doLayout() |
| | | }) |
| | | this.attrData = [ |
| | | { |
| | | field: 'id', |
| | |
| | | $cellEdit: false |
| | | } |
| | | ]; |
| | | this.$nextTick(() => { |
| | | this.$refs.crudAttr.doLayout() |
| | | }) |
| | | }, |
| | | // 屿§éæ©è¡¨æ ¼ä¸çç§»é¤æé®åè½ |
| | | removeCurrentRow(row,condition){ |
| | |
| | | */ |
| | | checkArrayIsUndefined(val){ |
| | | return typeof val === 'array' && (val.length === 0 ||val === null || typeof val === 'undefined'); |
| | | }, |
| | | onloadSelectReferConfigData(){ |
| | | this.$nextTick(() => { |
| | | this.$refs.selectReferConfigCrud.doLayout() |
| | | }) |
| | | this.selectReferConfigData = [{ |
| | | field: 'id', |
| | | title: 'ç¼å·', |
| | | fieldType: 'text', |
| | | fieldTypeText: 'ææ¬æ¡', |
| | | sort: "true", |
| | | sortField: 'id', |
| | | width: '150', |
| | | isquery: true, |
| | | },{ |
| | | field: 'name', |
| | | title: 'åç§°', |
| | | fieldType: 'text', |
| | | fieldTypeText: 'ææ¬æ¡', |
| | | sort: "true", |
| | | sortField: 'name', |
| | | width: '180', |
| | | isquery: true, |
| | | }]; |
| | | }, |
| | | // æå¼è¡¨æ ¼éæ©æ¡ |
| | | openSelectionTable(condition){ |
| | |
| | | import TemplatePro from "@/components/Tree/TemplatePro" |
| | | import attrCrud from "@/components/Tree/attrCrud" |
| | | import formulaEditor from "@/components/code-dialog-page/formulaEditor" |
| | | import referConfigDialog from "@/components/code-dialog-page/referConfigDialog" |
| | | import referConfigCrudDialog from "@/components/code-dialog-page/referConfigCrudDialog" |
| | | import referConfigFormDialog from "@/components/code-dialog-page/referConfigFormDialog" |
| | | import businessAdd from "@/views/modeling/BusinessAdd" |
| | | import tableEdit from "@/components/code-dialog-page/tableEdit" |
| | | |
| | | // 注åå
¨å±crudé©±å¨ |
| | | window.$crudCommon = crudCommon; |
| | |
| | | Vue.component('classifyTreeform',classifyTreeform) |
| | | Vue.component('TemplatePro',TemplatePro) |
| | | Vue.component('formulaEditor',formulaEditor) |
| | | Vue.component('referConfigDialog',referConfigDialog) |
| | | Vue.component('referConfigCrudDialog',referConfigCrudDialog) |
| | | Vue.component('referConfigFormDialog',referConfigFormDialog) |
| | | Vue.component('businessAdd',businessAdd) |
| | | Vue.component('attrCrud',attrCrud) |
| | | Vue.component('tableEdit',tableEdit) |
| | | |
| | | |
| | | |
| | |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <!-- 第äºå±å¯¹è¯æ¡,åç
§é
ç½®ç»ä»¶ --> |
| | | <refer-config-dialog |
| | | ref="referConfigDialog" |
| | | <!-- 第äºå±å¯¹è¯æ¡,èªå®ä¹åç
§é
ç½®Formç»ä»¶ --> |
| | | <refer-config-form-dialog |
| | | ref="referConfigFormDialog" |
| | | @echoReferConfig="echoReferConfig" > |
| | | </refer-config-dialog> |
| | | </refer-config-form-dialog> |
| | | <!-- 第äºå±å¯¹è¯æ¡,ç´æ¥éæ©åç
§é
ç½®curdç»ä»¶ --> |
| | | <refer-config-crud-dialog |
| | | ref="referConfigCrudDialog"> |
| | | </refer-config-crud-dialog> |
| | | |
| | | </el-dialog> |
| | | |
| | |
| | | echoReferConfig(content){ |
| | | this.form.referBtmId = content.referType; |
| | | this.form.referBtmName = content.referTypeName; |
| | | //console.log(content); |
| | | //è½¬æ¢æJSONå符串è¿è¡ç¶ç»ä»¶åæ¾ |
| | | let submitFormJson = JSON.stringify(content); |
| | | this.form.referConfig = submitFormJson; |
| | |
| | | this.isShowSelectReferBtmOption = true; |
| | | this.refreshReferBtmDataChange(); |
| | | }else if(condition === 'referConfig'){ |
| | | this.$refs.referConfigDialog.isShowReferConfig = true; |
| | | if(func.notEmpty(this.form.referConfig)){ |
| | | this.$refs.referConfigDialog.initPageData(this.form.referConfig); |
| | | if(func.notEmpty(this.form.referConfig) || func.notEmpty(this.form.referBtmName)){ |
| | | this.$refs.referConfigFormDialog.isShowReferConfig = true; |
| | | let value = { |
| | | referTypeName: this.form.referBtmName, |
| | | referType: this.form.referBtmId, |
| | | referConfig: this.form.referConfig, |
| | | } |
| | | this.$refs.referConfigFormDialog.initPageData(value); |
| | | }else{ |
| | | this.openTipsChooseOrCust(); |
| | | } |
| | | //è¡¨æ ¼éè¡çé®é¢æ |
| | | this.$refs.referConfigDialog.onloadAttrData(); |
| | | //this.$refs.referConfigFormDialog.onloadAttrData(); |
| | | } |
| | | }, |
| | | // æå¼èªå®ä¹åç
§é
ç½®æç´æ¥éæ©åç
§é
ç½®çé¢ |
| | | openTipsChooseOrCust(){ |
| | | this.$confirm('è¯·éæ©åç
§é
ç½®çå®ä¹æ¹å¼ï¼','åç
§é
ç½®çæ¹å¼', { |
| | | distinguishCancelAndClose: true, |
| | | closeOnClickModal: false, |
| | | confirmButtonText: 'èªå®ä¹åç
§é
ç½®', |
| | | cancelButtonText: 'ç´æ¥éæ©åç
§é
ç½®' |
| | | }) |
| | | .then(() => { |
| | | // æå¼èªå®åç
§é
ç½®å¯¹è¯æ¡ |
| | | this.$refs.referConfigFormDialog.isShowReferConfigForm = true; |
| | | // è¡¨æ ¼éè¡çé®é¢ |
| | | this.$refs.referConfigFormDialog.onloadAttrData(); |
| | | }) |
| | | .catch(action => { |
| | | if (action === "cancel") { |
| | | // æå¼ç´æ¥éæ©åç
§é
ç½®å¯¹è¯æ¡ |
| | | this.$refs.referConfigCrudDialog.isShowReferConfigCrud = true; |
| | | this.$refs.referConfigCrudDialog.referConfigOnload(); |
| | | } |
| | | //console.log(action); |
| | | }); |
| | | // 让åç
§é
ç½®è¾å
¥æ¡å¤±å»ç¦ç¹ï¼å¦å该æç¤ºæ¡æ æ³è¢«å
³é |
| | | this.$refs.referConfig.$el.querySelector('input').blur(); |
| | | }, |
| | | |
| | | // ç¹å»è¾å
¥æ¡çÃå·ï¼æ¸
空è¾å
¥æ¡ä¸çå
容 |
| | | clearAttrDataByIcon(condition){ |
| | | if(condition === 'attr'){ |
| | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.sql.Clob; |
| | | |
| | | /** |
| | | * åºç¡ç 段çä¿¡æ¯ |
| | | * æ¹ä¾¿å¨åä¸ä¸ªé¡µé¢éæ¾ç¤ºææçç æ®µ |
| | |
| | | */ |
| | | private String filterSql ; |
| | | |
| | | |
| | | /** |
| | | * æµæ°´å·èµ·å§å¼ |
| | | */ |
| | |
| | | * æµæ°´çæ¥é¿ |
| | | */ |
| | | private Integer serialStep; |
| | | |
| | | |
| | | /** |
| | | * ç¼ç è¡¥ä½æ¹å¼ |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.code.vo.CodeShowFieldConfigVO; |
| | | import com.vci.ubcs.code.vo.CodeSrchCondConfigVO; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | import org.apache.commons.math3.util.Precision; |
| | | import org.aspectj.weaver.ast.Not; |
| | | import org.ietf.jgss.Oid; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç æ®µåºç¡ä¿¡æ¯æ°æ®æä½å± |
| | |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = 957685333614390234L; |
| | | |
| | | /** |
| | | * ç§æ·ID |
| | | */ |
| | | private String tenantId; |
| | | |
| | | /** |
| | | * åç
§çä¸å¡ç±»å |
| | |
| | | */ |
| | | private Integer orderNum; |
| | | |
| | | /** |
| | | * æ¾ç¤ºç屿§-æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @TableField(exist = false) |
| | | private List<CodeShowFieldConfig> codeShowFieldConfigs; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¡ä»¶æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @TableField(exist = false) |
| | | private List<CodeSrchCondConfig> codeSrchCondConfigs; |
| | | |
| | | } |
| | |
| | | /** |
| | | * ååºå®ä½ç½® |
| | | */ |
| | | private String fixedText; |
| | | private String fixedPosition; |
| | | |
| | | /** |
| | | * jsæ¾ç¤ºä»£ç |
| | |
| | | private String templet; |
| | | |
| | | /** |
| | | * å
³èçåç
§é
ç½®ä¸»é® |
| | | */ |
| | | private String referConfigOid; |
| | | |
| | | /** |
| | | * æåº |
| | | */ |
| | | private Integer orderNum; |
| | |
| | | private String filterValue; |
| | | |
| | | /** |
| | | * å
³èçåç
§é
ç½®ä¸»é® |
| | | */ |
| | | private String referConfigOid; |
| | | |
| | | /** |
| | | * æåº |
| | | */ |
| | | private Integer orderNum; |
| | | |
| | | |
| | | } |
| | |
| | | package com.vci.ubcs.code.vo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.entity.CodeShowFieldConfig; |
| | | import com.vci.ubcs.code.entity.CodeSrchCondConfig; |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç æ®µåºç¡ä¿¡æ¯æ°æ®æä½å± |
| | |
| | | * @date 2023/5/19 17:24 |
| | | */ |
| | | @Data |
| | | public class CodeReferConfigVO extends BaseModelVO { |
| | | public class CodeReferConfigVO extends CodeReferConfig { |
| | | |
| | | /** |
| | | * åºåå |
| | |
| | | private static final long serialVersionUID = 957685333614390234L; |
| | | |
| | | /** |
| | | * åç
§çä¸å¡ç±»å |
| | | * åç
§çä¸å¡ç±»å-æ¾ç¤ºææ¬ |
| | | */ |
| | | private String referType; |
| | | private String referTypeText; |
| | | |
| | | /** |
| | | * æ¾ç¤ºç屿§ |
| | | * åç
§çªå£ç±»å-æ¾ç¤ºææ¬ |
| | | */ |
| | | private String textField; |
| | | |
| | | /** |
| | | * åå¨å¼ç屿§ |
| | | */ |
| | | private String valueField; |
| | | |
| | | /** |
| | | * åç
§çªå£ç±»å |
| | | */ |
| | | private String type; |
| | | |
| | | /** |
| | | * èªå®ä¹çåå°è·¯å¾ |
| | | */ |
| | | private String url; |
| | | |
| | | /** |
| | | * æå¡çå°å |
| | | */ |
| | | private String backPath; |
| | | private String typeText; |
| | | |
| | | /** |
| | | * 请æ±åå°çåè®®æ¹å¼ |
| | | */ |
| | | private String method; |
| | | |
| | | /** |
| | | * çªå£æ¾ç¤ºçé«åº¦ |
| | | */ |
| | | private Long height; |
| | | |
| | | /** |
| | | * è¿æ»¤å±æ§è¯·æ±åæ° |
| | | */ |
| | | private String paramForFormKey; |
| | | |
| | | /** |
| | | * æ¯å¦å¤é |
| | | */ |
| | | private String isMuti; |
| | | |
| | | /** |
| | | * æ å°å
¶ä»å±æ§ |
| | | */ |
| | | private String mapFields; |
| | | |
| | | /** |
| | | * åèçUIä¸ä¸æ |
| | |
| | | */ |
| | | private String onlyLeaf; |
| | | |
| | | /** |
| | | * æ¾ç¤ºç屿§-æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @TableField(exist = false) |
| | | private List<CodeShowFieldConfigVO> codeShowFieldConfigVOS; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¡ä»¶æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @TableField(exist = false) |
| | | private List<CodeSrchCondConfigVO> codeSrchCondConfigVOS; |
| | | } |
| | |
| | | package com.vci.ubcs.code.vo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.code.entity.CodeShowFieldConfig; |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | |
| | | * @date 2023/5/19 17:35 |
| | | */ |
| | | @Data |
| | | public class CodeShowFieldConfigVO extends BaseModelVO { |
| | | public class CodeShowFieldConfigVO extends CodeShowFieldConfig { |
| | | |
| | | private static final long serialVersionUID = -71135592796848692L; |
| | | |
| | | /** |
| | | * ååæ®µ |
| | | * å
³èçåç
§é
ç½®id |
| | | */ |
| | | private String field; |
| | | private String configOid; |
| | | |
| | | /** |
| | | * åå |
| | | * åæ®µç±»å-æ¾ç¤ºææ¬ |
| | | */ |
| | | private String title; |
| | | private String fieldTypeText; |
| | | |
| | | /** |
| | | * åæ®µç±»å |
| | | * ååºå®ä½ç½®-æ¾ç¤ºææ¬ |
| | | */ |
| | | private String fieldType; |
| | | private String fixedPositionText; |
| | | |
| | | /** |
| | | * åè¡¨å¯æåº |
| | | */ |
| | | private String sort; |
| | | |
| | | /** |
| | | * æåºå段 |
| | | */ |
| | | private String sortField; |
| | | |
| | | /** |
| | | * åæ®µå®½åº¦ |
| | | */ |
| | | private Long width; |
| | | |
| | | /** |
| | | * ååºå®ä½ç½® |
| | | */ |
| | | private String fixedText; |
| | | |
| | | /** |
| | | * jsæ¾ç¤ºä»£ç |
| | | */ |
| | | private String templet; |
| | | |
| | | } |
| | |
| | | package com.vci.ubcs.code.vo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.code.entity.CodeSrchCondConfig; |
| | | import com.vci.ubcs.code.vo.pagemodel.BaseModelVO; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | |
| | | */ |
| | | |
| | | @Data |
| | | public class CodeSrchCondConfigVO extends BaseModelVO { |
| | | public class CodeSrchCondConfigVO extends CodeSrchCondConfig { |
| | | |
| | | private static final long serialVersionUID = -51655155561881523L; |
| | | |
| | | /** |
| | | * çéåæ®µ |
| | | * å
³èçåç
§é
ç½®id |
| | | */ |
| | | private String filterField; |
| | | private String configOid; |
| | | |
| | | /** |
| | | * çéç±»å |
| | | */ |
| | | private String filterType; |
| | | |
| | | /** |
| | | * çéçå¼ |
| | | */ |
| | | private String filterValue; |
| | | private String filterTypeText; |
| | | |
| | | } |
| | |
| | | * @date 2023/4/24 |
| | | */ |
| | | @FeignClient( |
| | | value = AppConstant.APPLICATION_NAME_OMD, |
| | | fallback = IBtmTypeFallback.class |
| | | value = AppConstant.APPLICATION_NAME_OMD |
| | | //fallback = IBtmTypeFallback.class |
| | | ) |
| | | public interface IBtmTypeClient { |
| | | |
| | |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @GetMapping(GET_REF) |
| | | R<List<BtmTypeVO>> getRef(@RequestParam("condition")Map<String,Object> condition, @RequestParam("domain") String domain); |
| | | R<List<BtmTypeVO>> getRef(@RequestParam("condition")Map<String,Object> condition,@RequestParam("domain") String domain); |
| | | |
| | | /** |
| | | * æ ¹æ®è±æåç§°æ¹éæ¥è¯¢å¯¹è±¡ |
| | |
| | | @TableId(value = "OID",type = IdType.ASSIGN_UUID) |
| | | private String oid; |
| | | |
| | | @TableField(value = "ID") |
| | | private String id; |
| | | |
| | | private String name; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.starter.util; |
| | | |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 忬çTreeQueryObjectä¸map对象为Stringï¼String |
| | | * æä»¥æ¹ä¸ºStringï¼Object |
| | | * @author ludc |
| | | * @date 2023/5/23 15:25 |
| | | */ |
| | | @Data |
| | | public class BladeTreeQueryObject implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -7570704940199743059L; |
| | | private Map<String, Object> conditionMap; |
| | | private boolean multipleSelect; |
| | | private boolean showCheckBox; |
| | | private boolean queryAllLevel; |
| | | private String parentOid; |
| | | private String parentBtmName; |
| | | private String valueField = "oid"; |
| | | private String textField = "name"; |
| | | private String parentFieldName; |
| | | private Map<String, Object> extendParamsMap; |
| | | private boolean queryAllRev; |
| | | private String sort; |
| | | private String order; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.starter.web.pagemodel; |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONField; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import org.springblade.core.mp.support.Query; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * å 为å½åæ¡æ¶ä½¿ç¨çæ¯queryæ¥ååé¡µï¼ |
| | | * æä»¥æè¿è¾¹åç
§ä»¥åçBladeQueryObjectæ¥ä¿®æ¹ |
| | | * ä¸ä¸ªå½åæ¡æ¶ä½¿ç¨èµ·æ¥æ¹ä¾¿ä¸ç¹ç对象 |
| | | * @author ludc |
| | | * @date 2023/5/23 13:00 |
| | | */ |
| | | public class BladeQueryObject implements Serializable { |
| | | |
| | | @JSONField( |
| | | serialize = false, |
| | | deserialize = false |
| | | ) |
| | | private static final long serialVersionUID = 5608634730007623041L; |
| | | @JSONField |
| | | private Map<String, Object> conditionMap = new HashMap(); |
| | | @JSONField |
| | | private int page = 1; |
| | | @JSONField |
| | | private String sort; |
| | | @JSONField |
| | | private String order; |
| | | @JSONField |
| | | private int limit = 25; |
| | | |
| | | public BladeQueryObject() { |
| | | } |
| | | |
| | | public BladeQueryObject(Map<String, Object> conditionMap) { |
| | | this.setConditionMap(conditionMap); |
| | | } |
| | | |
| | | public BladeQueryObject(int limit) { |
| | | this.setLimit(limit); |
| | | } |
| | | |
| | | public BladeQueryObject(Map<String, Object> conditionMap, int limit) { |
| | | this.setConditionMap(conditionMap); |
| | | this.setLimit(limit); |
| | | } |
| | | |
| | | public Map<String, Object> getConditionMap() { |
| | | return this.conditionMap; |
| | | } |
| | | |
| | | public Map<String, Object> getConditionMapByNick(String nick) { |
| | | if (this.conditionMap != null) { |
| | | Map<String, Object> conditionMapHasNick = new HashMap(); |
| | | this.conditionMap.forEach((k, v) -> { |
| | | if (!k.contains(".")) { |
| | | conditionMapHasNick.put(nick + "." + k, v); |
| | | } else { |
| | | conditionMapHasNick.put(k, v); |
| | | } |
| | | |
| | | }); |
| | | return conditionMapHasNick; |
| | | } else { |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | public void setConditionMap(Map<String, Object> conditionMap) { |
| | | this.conditionMap = conditionMap; |
| | | } |
| | | |
| | | public int getPage() { |
| | | return this.page; |
| | | } |
| | | |
| | | public void setPage(int page) { |
| | | this.page = page; |
| | | } |
| | | |
| | | public String getSort() { |
| | | return this.sort; |
| | | } |
| | | |
| | | public void setSort(String sort) { |
| | | this.sort = sort; |
| | | } |
| | | |
| | | public String getOrder() { |
| | | return this.order; |
| | | } |
| | | |
| | | public void setOrder(String order) { |
| | | this.order = order; |
| | | } |
| | | |
| | | public int getLimit() { |
| | | return this.limit; |
| | | } |
| | | |
| | | public void setLimit(int limit) { |
| | | this.limit = limit; |
| | | } |
| | | |
| | | @JSONField( |
| | | serialize = false, |
| | | deserialize = false |
| | | ) |
| | | public Query getQuery() { |
| | | Query query = new Query(); |
| | | query.setCurrent(this.getPage()); |
| | | query.setSize(this.getLimit()); |
| | | query.setAscs(this.getSort()); |
| | | //query.setOrder(this.getOrder()); |
| | | return query; |
| | | } |
| | | |
| | | public BladeQueryObject addSort(String sort, String order) { |
| | | this.setSort(StringUtils.isBlank(this.getSort()) ? sort : this.getSort() + "," + sort); |
| | | this.setOrder(StringUtils.isBlank(this.getOrder()) ? order : this.getOrder() + "," + order); |
| | | return this; |
| | | } |
| | | |
| | | public BladeQueryObject addCondition(String key, String value) { |
| | | if (this.getConditionMap() == null) { |
| | | this.conditionMap = new HashMap(); |
| | | } |
| | | |
| | | this.conditionMap.put(key, value); |
| | | return this; |
| | | } |
| | | |
| | | public BladeQueryObject page(Query query) { |
| | | this.setSort(query.getDescs()); |
| | | this.setSort(query.getAscs()); |
| | | //this.setOrder(query.getOrder()); |
| | | this.setPage(query.getCurrent()); |
| | | this.setLimit(query.getSize()); |
| | | return this; |
| | | } |
| | | |
| | | @JSONField( |
| | | serialize = false, |
| | | deserialize = false |
| | | ) |
| | | public Map<String, Object> getFeignRequestMap() { |
| | | Map<String, Object> feignRequestMap = new HashMap(); |
| | | if (this.conditionMap != null) { |
| | | this.getConditionMap().forEach((k, v) -> { |
| | | feignRequestMap.put("conditionMap[\"" + k + "\"]", v); |
| | | }); |
| | | } |
| | | |
| | | feignRequestMap.put("page", this.getPage() + ""); |
| | | feignRequestMap.put("limit", this.getLimit() + ""); |
| | | feignRequestMap.put("sort", this.getSort()); |
| | | feignRequestMap.put("order", this.getOrder()); |
| | | return feignRequestMap; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "BladeQueryObject{conditionMap=" + this.conditionMap + ", page=" + this.page + ", sort='" + this.sort + '\'' + ", order='" + this.order + '\'' + ", limit=" + this.limit + '}'; |
| | | } |
| | | |
| | | } |
| | |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO; |
| | | import com.vci.ubcs.code.wrapper.CodeClassifyWrapper; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.util.BladeTreeQueryObject; |
| | | import com.vci.ubcs.starter.util.LocalFileUtil; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid; |
| | |
| | | public DataGrid<CodeOsattributeVO> listClassifyLinkAttr(BaseQueryObject baseQueryObject){ |
| | | return codeClassifyService.listClassifyLinkAttr(baseQueryObject); |
| | | } |
| | | |
| | | /** |
| | | * 主é®è·å主é¢åºåç±» |
| | | * @param oid ä¸»é® |
| | |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.cglib.beans.BeanMap; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | |
| | | if(baseQueryObject == null){ |
| | | baseQueryObject = new BaseQueryObject(); |
| | | } |
| | | return R.data(codeClassifyProcessTempService.gridCodeClassifyProcessTemp(baseQueryObject.getConditionMap(),baseQueryObject.getPageHelper())); |
| | | return R.data(codeClassifyProcessTempService.gridCodeClassifyProcessTemp(baseQueryObject.getConditionMap(),baseQueryObject.getPageHelper())); |
| | | } |
| | | |
| | | /** |
| | |
| | | package com.vci.ubcs.code.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.service.CodeReferConfigService; |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.PageRequest; |
| | | import org.springframework.http.ResponseEntity; |
| | |
| | | @RestController |
| | | @RequestMapping("codeReferConfig") |
| | | public class CodeReferConfigController { |
| | | |
| | | /** |
| | | * æå¡å¯¹è±¡ |
| | | */ |
| | | @Resource |
| | | private CodeReferConfigService plCodeReferconfigService; |
| | | private CodeReferConfigService codeReferconfigService; |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param codeReferConfig ç鿡件 |
| | | * @param pageRequest å页对象 |
| | | * @param bladeQueryObject ç鿡件 |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @GetMapping |
| | | public ResponseEntity<Page<CodeReferConfig>> queryByPage(CodeReferConfig codeReferConfig, PageRequest pageRequest) { |
| | | return ResponseEntity.ok(this.plCodeReferconfigService.queryByPage(codeReferConfig, pageRequest)); |
| | | @GetMapping("getReferConfigPage") |
| | | public R<IPage<CodeReferConfigVO>> queryByPage(BladeQueryObject bladeQueryObject) { |
| | | return R.data(this.codeReferconfigService.queryByPage(bladeQueryObject)); |
| | | } |
| | | |
| | | /** |
| | | * éè¿ä¸»é®æ¥è¯¢åæ¡æ°æ® |
| | | * |
| | | * @param id ä¸»é® |
| | | * @param oid ä¸»é® |
| | | * @return åæ¡æ°æ® |
| | | */ |
| | | @GetMapping("{id}") |
| | | public ResponseEntity<CodeReferConfig> queryById(@PathVariable("id") String id) { |
| | | return ResponseEntity.ok(this.plCodeReferconfigService.queryById(id)); |
| | | @GetMapping("getByOid") |
| | | public R<CodeReferConfig> queryById(@RequestParam("oid") String oid) { |
| | | return R.data(this.codeReferconfigService.queryById(oid)); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param codeReferConfig å®ä½ |
| | | * @return æ°å¢ç»æ |
| | | */ |
| | | @PostMapping |
| | | public ResponseEntity<CodeReferConfig> add(CodeReferConfig codeReferConfig) { |
| | | return ResponseEntity.ok(this.plCodeReferconfigService.insert(codeReferConfig)); |
| | | @PostMapping("/save") |
| | | public R<CodeReferConfig> add(CodeReferConfig codeReferConfig) { |
| | | return R.data(this.codeReferconfigService.insert(codeReferConfig)); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param codeReferConfig å®ä½ |
| | | * @return ç¼è¾ç»æ |
| | | */ |
| | | @PutMapping |
| | | public ResponseEntity<CodeReferConfig> edit(CodeReferConfig codeReferConfig) { |
| | | return ResponseEntity.ok(this.plCodeReferconfigService.update(codeReferConfig)); |
| | | @PutMapping("/edit") |
| | | public R<CodeReferConfig> edit(CodeReferConfig codeReferConfig) { |
| | | return R.data(this.codeReferconfigService.update(codeReferConfig)); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param id ä¸»é® |
| | | * @return å 餿¯å¦æå |
| | | */ |
| | | @DeleteMapping |
| | | public ResponseEntity<Boolean> deleteById(String id) { |
| | | return ResponseEntity.ok(this.plCodeReferconfigService.deleteById(id)); |
| | | @DeleteMapping("/del") |
| | | public R<Boolean> deleteById(String id) { |
| | | return R.data(this.codeReferconfigService.deleteById(id)); |
| | | } |
| | | |
| | | } |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.data.domain.Pageable; |
| | |
| | | * @author makejava |
| | | * @since 2023-05-19 17:47:51 |
| | | */ |
| | | public interface CodeReferConfigMapper { |
| | | public interface CodeReferConfigMapper extends BaseMapper<CodeReferConfig> { |
| | | |
| | | /** |
| | | * éè¿IDæ¥è¯¢åæ¡æ°æ® |
| | |
| | | /** |
| | | * æ¥è¯¢æå®è¡æ°æ® |
| | | * |
| | | * @param plCodeReferconfig æ¥è¯¢æ¡ä»¶ |
| | | * @param codeReferConfig æ¥è¯¢æ¡ä»¶ |
| | | * @param pageable å页对象 |
| | | * @return 对象å表 |
| | | */ |
| | | List<CodeReferConfig> queryAllByLimit(CodeReferConfig plCodeReferconfig, @Param("pageable") Pageable pageable); |
| | | |
| | | /** |
| | | * ç»è®¡æ»è¡æ° |
| | | * |
| | | * @param plCodeReferconfig æ¥è¯¢æ¡ä»¶ |
| | | * @return æ»è¡æ° |
| | | */ |
| | | long count(CodeReferConfig plCodeReferconfig); |
| | | |
| | | /** |
| | | * æ°å¢æ°æ® |
| | | * |
| | | * @param plCodeReferconfig å®ä¾å¯¹è±¡ |
| | | * @return å½±åè¡æ° |
| | | */ |
| | | int insert(CodeReferConfig plCodeReferconfig); |
| | | |
| | | /** |
| | | * æ¹éæ°å¢æ°æ®ï¼MyBatisåçforeachæ¹æ³ï¼ |
| | | * |
| | | * @param entities List<CodeReferConfig> å®ä¾å¯¹è±¡å表 |
| | | * @return å½±åè¡æ° |
| | | */ |
| | | int insertBatch(@Param("entities") List<CodeReferConfig> entities); |
| | | |
| | | /** |
| | | * æ¹éæ°å¢ææä¸»é®æ´æ°æ°æ®ï¼MyBatisåçforeachæ¹æ³ï¼ |
| | | * |
| | | * @param entities List<CodeReferConfig> å®ä¾å¯¹è±¡å表 |
| | | * @return å½±åè¡æ° |
| | | * @throws org.springframework.jdbc.BadSqlGrammarException å
¥åæ¯ç©ºListçæ¶å伿SQLè¯å¥é误çå¼å¸¸ï¼è¯·èªè¡æ ¡éªå
¥å |
| | | */ |
| | | int insertOrUpdateBatch(@Param("entities") List<CodeReferConfig> entities); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * |
| | | * @param plCodeReferconfig å®ä¾å¯¹è±¡ |
| | | * @return å½±åè¡æ° |
| | | */ |
| | | int update(CodeReferConfig plCodeReferconfig); |
| | | |
| | | /** |
| | | * éè¿ä¸»é®å 餿°æ® |
| | | * |
| | | * @param oid ä¸»é® |
| | | * @return å½±åè¡æ° |
| | | */ |
| | | int deleteById(String oid); |
| | | List<CodeReferConfig> queryAllByPage(CodeReferConfig codeReferConfig, @Param("pageable") Pageable pageable); |
| | | |
| | | } |
| | | |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.entity.CodeShowFieldConfig; |
| | | import com.vci.ubcs.code.entity.CodeSrchCondConfig; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.data.domain.Pageable; |
| | | import java.util.List; |
| | |
| | | * @author makejava |
| | | * @since 2023-05-19 17:58:55 |
| | | */ |
| | | public interface CodeShowFieldConfigMapper { |
| | | public interface CodeShowFieldConfigMapper extends BaseMapper<CodeShowFieldConfig> { |
| | | |
| | | /** |
| | | * éè¿IDæ¥è¯¢åæ¡æ°æ® |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.entity.CodeSrchCondConfig; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.data.domain.Pageable; |
| | |
| | | * @author makejava |
| | | * @since 2023-05-19 17:58:56 |
| | | */ |
| | | public interface CodeSrchCondConfigMapper { |
| | | public interface CodeSrchCondConfigMapper extends BaseMapper<CodeSrchCondConfig> { |
| | | |
| | | /** |
| | | * éè¿IDæ¥è¯¢åæ¡æ°æ® |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.PageRequest; |
| | | |
| | |
| | | * @author ludc |
| | | * @since 2023-05-19 17:47:59 |
| | | */ |
| | | public interface CodeReferConfigService { |
| | | public interface CodeReferConfigService extends IService<CodeReferConfig> { |
| | | |
| | | /** |
| | | * éè¿IDæ¥è¯¢åæ¡æ°æ® |
| | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param plCodeReferconfig ç鿡件 |
| | | * @param pageRequest å页对象 |
| | | * @param bladeQueryObject ç鿡件 |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | Page<CodeReferConfig> queryByPage(CodeReferConfig plCodeReferconfig, PageRequest pageRequest); |
| | | IPage<CodeReferConfigVO> queryByPage(BladeQueryObject bladeQueryObject); |
| | | |
| | | /** |
| | | * æ°å¢æ°æ® |
| | | * |
| | | * @param plCodeReferconfig å®ä¾å¯¹è±¡ |
| | | * @param codeReferconfig å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | CodeReferConfig insert(CodeReferConfig plCodeReferconfig); |
| | | CodeReferConfig insert(CodeReferConfig codeReferconfig); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * |
| | | * @param plCodeReferconfig å®ä¾å¯¹è±¡ |
| | | * @param codeReferconfig å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | CodeReferConfig update(CodeReferConfig plCodeReferconfig); |
| | | CodeReferConfig update(CodeReferConfig codeReferconfig); |
| | | |
| | | /** |
| | | * éè¿ä¸»é®å 餿°æ® |
| | |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.util.BladeTreeQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid; |
| | | import com.vci.ubcs.starter.web.pagemodel.Tree; |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.entity.CodeShowFieldConfig; |
| | | import com.vci.ubcs.code.entity.CodeSrchCondConfig; |
| | | import com.vci.ubcs.code.mapper.CodeReferConfigMapper; |
| | | import com.vci.ubcs.code.service.CodeReferConfigService; |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.code.wrapper.CodeReferConfigWraper; |
| | | import com.vci.ubcs.starter.util.Map2MPJLambdaUtil; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.PageImpl; |
| | |
| | | * @since 2023-05-19 17:48:02 |
| | | */ |
| | | @Service("CodeReferconfigService") |
| | | public class CodeReferConfigServiceImpl implements CodeReferConfigService { |
| | | public class CodeReferConfigServiceImpl extends ServiceImpl<CodeReferConfigMapper,CodeReferConfig> implements CodeReferConfigService { |
| | | @Resource |
| | | private CodeReferConfigMapper codeReferconfigMapper; |
| | | |
| | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param plCodeReferconfig ç鿡件 |
| | | * @param pageRequest å页对象 |
| | | * @param bladeQueryObject ç鿡件 |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | @Override |
| | | public Page<CodeReferConfig> queryByPage(CodeReferConfig plCodeReferconfig, PageRequest pageRequest) { |
| | | long total = this.codeReferconfigMapper.count(plCodeReferconfig); |
| | | return new PageImpl<>(this.codeReferconfigMapper.queryAllByLimit(plCodeReferconfig, pageRequest), pageRequest, total); |
| | | } |
| | | public IPage<CodeReferConfigVO> queryByPage(BladeQueryObject bladeQueryObject) { |
| | | MPJLambdaWrapper<CodeReferConfig> mpjLambdaWrapper = Map2MPJLambdaUtil.getMPJLambdaWrapper(bladeQueryObject.getConditionMap(), CodeReferConfig.class) |
| | | .selectAll(CodeReferConfig.class) |
| | | .selectCollection("PCS",CodeShowFieldConfig.class, CodeReferConfig::getCodeShowFieldConfigs) |
| | | .selectCollection("PCSR",CodeSrchCondConfig.class, CodeReferConfig::getCodeSrchCondConfigs) |
| | | .leftJoin(CodeShowFieldConfig.class, CodeShowFieldConfig::getReferConfigOid,CodeReferConfig::getOid) |
| | | .leftJoin(CodeSrchCondConfig.class, CodeSrchCondConfig::getReferConfigOid, CodeReferConfig::getOid) |
| | | .orderBy(true, true, CodeReferConfig::getCreateTime); |
| | | IPage<CodeReferConfig> codeReferConfigIPage = this.codeReferconfigMapper.selectPage(Condition.getPage(bladeQueryObject.getQuery()), mpjLambdaWrapper); |
| | | return CodeReferConfigWraper.build().pageVO(codeReferConfigIPage); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ°æ® |
| | | * |
| | | * @param plCodeReferconfig å®ä¾å¯¹è±¡ |
| | | * @param codeReferConfig å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public CodeReferConfig insert(CodeReferConfig plCodeReferconfig) { |
| | | this.codeReferconfigMapper.insert(plCodeReferconfig); |
| | | return plCodeReferconfig; |
| | | public CodeReferConfig insert(CodeReferConfig codeReferConfig) { |
| | | this.codeReferconfigMapper.insert(codeReferConfig); |
| | | return codeReferConfig; |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * |
| | | * @param plCodeReferconfig å®ä¾å¯¹è±¡ |
| | | * @param codeReferConfig å®ä¾å¯¹è±¡ |
| | | * @return å®ä¾å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public CodeReferConfig update(CodeReferConfig plCodeReferconfig) { |
| | | this.codeReferconfigMapper.update(plCodeReferconfig); |
| | | return this.queryById(plCodeReferconfig.getOid()); |
| | | public CodeReferConfig update(CodeReferConfig codeReferConfig) { |
| | | this.codeReferconfigMapper.updateById(codeReferConfig); |
| | | return this.queryById(codeReferConfig.getOid()); |
| | | } |
| | | |
| | | /** |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.wrapper; |
| | | |
| | | import com.vci.ubcs.code.entity.CodePhaseAttr; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.vo.CodeReferConfigVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodePhaseAttrVO; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * åç
§é
ç½®-å
è£
ç±»,è¿åè§å¾å±æéçåæ®µ |
| | | * |
| | | * @author ludc |
| | | * @date 2023/5/23 10:51 |
| | | */ |
| | | public class CodeReferConfigWraper extends BaseEntityWrapper<CodeReferConfig, CodeReferConfigVO> { |
| | | |
| | | |
| | | public static CodeReferConfigWraper build() { |
| | | return new CodeReferConfigWraper(); |
| | | } |
| | | |
| | | @Override |
| | | public CodeReferConfigVO entityVO(CodeReferConfig codeReferConfig) { |
| | | CodeReferConfigVO codeReferConfigVO = Objects.requireNonNull(BeanUtil.copy(codeReferConfig, CodeReferConfigVO.class)); |
| | | |
| | | |
| | | return codeReferConfigVO; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap type="com.vci.ubcs.code.entity.CodeBasicSec" id="CodeBasicsecMap"> |
| | | <result property="oid" column="OID" jdbcType="VARCHAR"/> |
| | | <result property="oid" column="OID"/> |
| | | <result property="revisionOid" column="REVISIONOID" jdbcType="VARCHAR"/> |
| | | <result property="nameOid" column="NAMEOID" jdbcType="VARCHAR"/> |
| | | <result property="btmname" column="BTMNAME" jdbcType="VARCHAR"/> |
| | |
| | | </select> |
| | | |
| | | <!--æ¥è¯¢æå®è¡æ°æ®--> |
| | | <select id="queryAllByLimit" resultMap="CodeReferconfigMap"> |
| | | <select id="queryAllByPage" resultMap="CodeReferconfigMap"> |
| | | select |
| | | OID, REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, REFERTYPE, TEXTFIELD, VALUEFIELD, TYPE, URL, BACKPATH, METHOD, HEIGHT, PARAMFORFORMKEY, ISMUTI, MAPFIELDS, REFERCONTENT, DISPLAYTABLE, LIMIT, SORTFIELD, SORTTYPE, PARENTFIELDNAME, PARENTUSEDFIELD, PARENTVALUE, LOADTYPE, ONLYLEAF |
| | | from PL_CODE_REFERCONFIG |
| | |
| | | </where> |
| | | limit #{pageable.offset}, #{pageable.pageSize} |
| | | </select> |
| | | |
| | | <!--ç»è®¡æ»è¡æ°--> |
| | | <select id="count" resultType="java.lang.Long"> |
| | | select count(1) |
| | | from PL_CODE_REFERCONFIG |
| | | <where> |
| | | <if test="oid != null and oid != ''"> |
| | | and OID = #{oid} |
| | | </if> |
| | | <if test="revisionoid != null and revisionoid != ''"> |
| | | and REVISIONOID = #{revisionoid} |
| | | </if> |
| | | <if test="nameoid != null and nameoid != ''"> |
| | | and NAMEOID = #{nameoid} |
| | | </if> |
| | | <if test="btmname != null and btmname != ''"> |
| | | and BTMNAME = #{btmname} |
| | | </if> |
| | | <if test="lastr != null and lastr != ''"> |
| | | and LASTR = #{lastr} |
| | | </if> |
| | | <if test="firstr != null and firstr != ''"> |
| | | and FIRSTR = #{firstr} |
| | | </if> |
| | | <if test="lastv != null and lastv != ''"> |
| | | and LASTV = #{lastv} |
| | | </if> |
| | | <if test="firstv != null and firstv != ''"> |
| | | and FIRSTV = #{firstv} |
| | | </if> |
| | | <if test="creator != null and creator != ''"> |
| | | and CREATOR = #{creator} |
| | | </if> |
| | | <if test="createtime != null and createtime != ''"> |
| | | and CREATETIME = #{createtime} |
| | | </if> |
| | | <if test="revisionseq != null"> |
| | | and REVISIONSEQ = #{revisionseq} |
| | | </if> |
| | | <if test="revisionvalue != null and revisionvalue != ''"> |
| | | and REVISIONVALUE = #{revisionvalue} |
| | | </if> |
| | | <if test="versionseq != null"> |
| | | and VERSIONSEQ = #{versionseq} |
| | | </if> |
| | | <if test="versionvalue != null and versionvalue != ''"> |
| | | and VERSIONVALUE = #{versionvalue} |
| | | </if> |
| | | <if test="lctid != null and lctid != ''"> |
| | | and LCTID = #{lctid} |
| | | </if> |
| | | <if test="lcstatus != null and lcstatus != ''"> |
| | | and LCSTATUS = #{lcstatus} |
| | | </if> |
| | | <if test="ts != null and ts != ''"> |
| | | and TS = #{ts} |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | and NAME = #{name} |
| | | </if> |
| | | <if test="description != null and description != ''"> |
| | | and DESCRIPTION = #{description} |
| | | </if> |
| | | <if test="owner != null and owner != ''"> |
| | | and OWNER = #{owner} |
| | | </if> |
| | | <if test="copyfromversion != null and copyfromversion != ''"> |
| | | and COPYFROMVERSION = #{copyfromversion} |
| | | </if> |
| | | <if test="ordernum != null"> |
| | | and ORDERNUM = #{ordernum} |
| | | </if> |
| | | <if test="refertype != null and refertype != ''"> |
| | | and REFERTYPE = #{refertype} |
| | | </if> |
| | | <if test="textfield != null and textfield != ''"> |
| | | and TEXTFIELD = #{textfield} |
| | | </if> |
| | | <if test="valuefield != null and valuefield != ''"> |
| | | and VALUEFIELD = #{valuefield} |
| | | </if> |
| | | <if test="type != null and type != ''"> |
| | | and TYPE = #{type} |
| | | </if> |
| | | <if test="url != null and url != ''"> |
| | | and URL = #{url} |
| | | </if> |
| | | <if test="backpath != null and backpath != ''"> |
| | | and BACKPATH = #{backpath} |
| | | </if> |
| | | <if test="method != null and method != ''"> |
| | | and METHOD = #{method} |
| | | </if> |
| | | <if test="height != null"> |
| | | and HEIGHT = #{height} |
| | | </if> |
| | | <if test="paramforformkey != null and paramforformkey != ''"> |
| | | and PARAMFORFORMKEY = #{paramforformkey} |
| | | </if> |
| | | <if test="ismuti != null and ismuti != ''"> |
| | | and ISMUTI = #{ismuti} |
| | | </if> |
| | | <if test="mapfields != null and mapfields != ''"> |
| | | and MAPFIELDS = #{mapfields} |
| | | </if> |
| | | <if test="refercontent != null and refercontent != ''"> |
| | | and REFERCONTENT = #{refercontent} |
| | | </if> |
| | | <if test="displaytable != null and displaytable != ''"> |
| | | and DISPLAYTABLE = #{displaytable} |
| | | </if> |
| | | <if test="limit != null and limit != ''"> |
| | | and LIMIT = #{limit} |
| | | </if> |
| | | <if test="sortfield != null and sortfield != ''"> |
| | | and SORTFIELD = #{sortfield} |
| | | </if> |
| | | <if test="sorttype != null and sorttype != ''"> |
| | | and SORTTYPE = #{sorttype} |
| | | </if> |
| | | <if test="parentfieldname != null and parentfieldname != ''"> |
| | | and PARENTFIELDNAME = #{parentfieldname} |
| | | </if> |
| | | <if test="parentusedfield != null and parentusedfield != ''"> |
| | | and PARENTUSEDFIELD = #{parentusedfield} |
| | | </if> |
| | | <if test="parentvalue != null and parentvalue != ''"> |
| | | and PARENTVALUE = #{parentvalue} |
| | | </if> |
| | | <if test="loadtype != null and loadtype != ''"> |
| | | and LOADTYPE = #{loadtype} |
| | | </if> |
| | | <if test="onlyleaf != null and onlyleaf != ''"> |
| | | and ONLYLEAF = #{onlyleaf} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <!--æ°å¢ææå--> |
| | | <insert id="insert" keyProperty="oid" useGeneratedKeys="true"> |
| | | insert into PL_CODE_REFERCONFIG(REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, REFERTYPE, TEXTFIELD, VALUEFIELD, TYPE, URL, BACKPATH, METHOD, HEIGHT, PARAMFORFORMKEY, ISMUTI, MAPFIELDS, REFERCONTENT, DISPLAYTABLE, LIMIT, SORTFIELD, SORTTYPE, PARENTFIELDNAME, PARENTUSEDFIELD, PARENTVALUE, LOADTYPE, ONLYLEAF) |
| | | values (#{revisionoid}, #{nameoid}, #{btmname}, #{lastr}, #{firstr}, #{lastv}, #{firstv}, #{creator}, #{createtime}, #{revisionseq}, #{revisionvalue}, #{versionseq}, #{versionvalue}, #{lctid}, #{lcstatus}, #{ts}, #{name}, #{description}, #{owner}, #{copyfromversion}, #{ordernum}, #{refertype}, #{textfield}, #{valuefield}, #{type}, #{url}, #{backpath}, #{method}, #{height}, #{paramforformkey}, #{ismuti}, #{mapfields}, #{refercontent}, #{displaytable}, #{limit}, #{sortfield}, #{sorttype}, #{parentfieldname}, #{parentusedfield}, #{parentvalue}, #{loadtype}, #{onlyleaf}) |
| | | </insert> |
| | | |
| | | <insert id="insertBatch" keyProperty="oid" useGeneratedKeys="true"> |
| | | insert into PL_CODE_REFERCONFIG(REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, REFERTYPE, TEXTFIELD, VALUEFIELD, TYPE, URL, BACKPATH, METHOD, HEIGHT, PARAMFORFORMKEY, ISMUTI, MAPFIELDS, REFERCONTENT, DISPLAYTABLE, LIMIT, SORTFIELD, SORTTYPE, PARENTFIELDNAME, PARENTUSEDFIELD, PARENTVALUE, LOADTYPE, ONLYLEAF) |
| | | values |
| | | <foreach collection="entities" item="entity" separator=","> |
| | | (#{entity.revisionoid}, #{entity.nameoid}, #{entity.btmname}, #{entity.lastr}, #{entity.firstr}, #{entity.lastv}, #{entity.firstv}, #{entity.creator}, #{entity.createtime}, #{entity.revisionseq}, #{entity.revisionvalue}, #{entity.versionseq}, #{entity.versionvalue}, #{entity.lctid}, #{entity.lcstatus}, #{entity.ts}, #{entity.name}, #{entity.description}, #{entity.owner}, #{entity.copyfromversion}, #{entity.ordernum}, #{entity.refertype}, #{entity.textfield}, #{entity.valuefield}, #{entity.type}, #{entity.url}, #{entity.backpath}, #{entity.method}, #{entity.height}, #{entity.paramforformkey}, #{entity.ismuti}, #{entity.mapfields}, #{entity.refercontent}, #{entity.displaytable}, #{entity.limit}, #{entity.sortfield}, #{entity.sorttype}, #{entity.parentfieldname}, #{entity.parentusedfield}, #{entity.parentvalue}, #{entity.loadtype}, #{entity.onlyleaf}) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | <insert id="insertOrUpdateBatch" keyProperty="oid" useGeneratedKeys="true"> |
| | | insert into PL_CODE_REFERCONFIG(REVISIONOID, NAMEOID, BTMNAME, LASTR, FIRSTR, LASTV, FIRSTV, CREATOR, CREATETIME, REVISIONSEQ, REVISIONVALUE, VERSIONSEQ, VERSIONVALUE, LCTID, LCSTATUS, TS, NAME, DESCRIPTION, OWNER, COPYFROMVERSION, ORDERNUM, REFERTYPE, TEXTFIELD, VALUEFIELD, TYPE, URL, BACKPATH, METHOD, HEIGHT, PARAMFORFORMKEY, ISMUTI, MAPFIELDS, REFERCONTENT, DISPLAYTABLE, LIMIT, SORTFIELD, SORTTYPE, PARENTFIELDNAME, PARENTUSEDFIELD, PARENTVALUE, LOADTYPE, ONLYLEAF) |
| | | values |
| | | <foreach collection="entities" item="entity" separator=","> |
| | | (#{entity.revisionoid}, #{entity.nameoid}, #{entity.btmname}, #{entity.lastr}, #{entity.firstr}, #{entity.lastv}, #{entity.firstv}, #{entity.creator}, #{entity.createtime}, #{entity.revisionseq}, #{entity.revisionvalue}, #{entity.versionseq}, #{entity.versionvalue}, #{entity.lctid}, #{entity.lcstatus}, #{entity.ts}, #{entity.name}, #{entity.description}, #{entity.owner}, #{entity.copyfromversion}, #{entity.ordernum}, #{entity.refertype}, #{entity.textfield}, #{entity.valuefield}, #{entity.type}, #{entity.url}, #{entity.backpath}, #{entity.method}, #{entity.height}, #{entity.paramforformkey}, #{entity.ismuti}, #{entity.mapfields}, #{entity.refercontent}, #{entity.displaytable}, #{entity.limit}, #{entity.sortfield}, #{entity.sorttype}, #{entity.parentfieldname}, #{entity.parentusedfield}, #{entity.parentvalue}, #{entity.loadtype}, #{entity.onlyleaf}) |
| | | </foreach> |
| | | on duplicate key update |
| | | REVISIONOID = values(REVISIONOID), |
| | | NAMEOID = values(NAMEOID), |
| | | BTMNAME = values(BTMNAME), |
| | | LASTR = values(LASTR), |
| | | FIRSTR = values(FIRSTR), |
| | | LASTV = values(LASTV), |
| | | FIRSTV = values(FIRSTV), |
| | | CREATOR = values(CREATOR), |
| | | CREATETIME = values(CREATETIME), |
| | | REVISIONSEQ = values(REVISIONSEQ), |
| | | REVISIONVALUE = values(REVISIONVALUE), |
| | | VERSIONSEQ = values(VERSIONSEQ), |
| | | VERSIONVALUE = values(VERSIONVALUE), |
| | | LCTID = values(LCTID), |
| | | LCSTATUS = values(LCSTATUS), |
| | | TS = values(TS), |
| | | NAME = values(NAME), |
| | | DESCRIPTION = values(DESCRIPTION), |
| | | OWNER = values(OWNER), |
| | | COPYFROMVERSION = values(COPYFROMVERSION), |
| | | ORDERNUM = values(ORDERNUM), |
| | | REFERTYPE = values(REFERTYPE), |
| | | TEXTFIELD = values(TEXTFIELD), |
| | | VALUEFIELD = values(VALUEFIELD), |
| | | TYPE = values(TYPE), |
| | | URL = values(URL), |
| | | BACKPATH = values(BACKPATH), |
| | | METHOD = values(METHOD), |
| | | HEIGHT = values(HEIGHT), |
| | | PARAMFORFORMKEY = values(PARAMFORFORMKEY), |
| | | ISMUTI = values(ISMUTI), |
| | | MAPFIELDS = values(MAPFIELDS), |
| | | REFERCONTENT = values(REFERCONTENT), |
| | | DISPLAYTABLE = values(DISPLAYTABLE), |
| | | LIMIT = values(LIMIT), |
| | | SORTFIELD = values(SORTFIELD), |
| | | SORTTYPE = values(SORTTYPE), |
| | | PARENTFIELDNAME = values(PARENTFIELDNAME), |
| | | PARENTUSEDFIELD = values(PARENTUSEDFIELD), |
| | | PARENTVALUE = values(PARENTVALUE), |
| | | LOADTYPE = values(LOADTYPE), |
| | | ONLYLEAF = values(ONLYLEAF) |
| | | </insert> |
| | | |
| | | <!--éè¿ä¸»é®ä¿®æ¹æ°æ®--> |
| | | <update id="update"> |
| | | update PL_CODE_REFERCONFIG |
| | | <set> |
| | | <if test="revisionoid != null and revisionoid != ''"> |
| | | REVISIONOID = #{revisionoid}, |
| | | </if> |
| | | <if test="nameoid != null and nameoid != ''"> |
| | | NAMEOID = #{nameoid}, |
| | | </if> |
| | | <if test="btmname != null and btmname != ''"> |
| | | BTMNAME = #{btmname}, |
| | | </if> |
| | | <if test="lastr != null and lastr != ''"> |
| | | LASTR = #{lastr}, |
| | | </if> |
| | | <if test="firstr != null and firstr != ''"> |
| | | FIRSTR = #{firstr}, |
| | | </if> |
| | | <if test="lastv != null and lastv != ''"> |
| | | LASTV = #{lastv}, |
| | | </if> |
| | | <if test="firstv != null and firstv != ''"> |
| | | FIRSTV = #{firstv}, |
| | | </if> |
| | | <if test="creator != null and creator != ''"> |
| | | CREATOR = #{creator}, |
| | | </if> |
| | | <if test="createtime != null and createtime != ''"> |
| | | CREATETIME = #{createtime}, |
| | | </if> |
| | | <if test="revisionseq != null"> |
| | | REVISIONSEQ = #{revisionseq}, |
| | | </if> |
| | | <if test="revisionvalue != null and revisionvalue != ''"> |
| | | REVISIONVALUE = #{revisionvalue}, |
| | | </if> |
| | | <if test="versionseq != null"> |
| | | VERSIONSEQ = #{versionseq}, |
| | | </if> |
| | | <if test="versionvalue != null and versionvalue != ''"> |
| | | VERSIONVALUE = #{versionvalue}, |
| | | </if> |
| | | <if test="lctid != null and lctid != ''"> |
| | | LCTID = #{lctid}, |
| | | </if> |
| | | <if test="lcstatus != null and lcstatus != ''"> |
| | | LCSTATUS = #{lcstatus}, |
| | | </if> |
| | | <if test="ts != null and ts != ''"> |
| | | TS = #{ts}, |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | NAME = #{name}, |
| | | </if> |
| | | <if test="description != null and description != ''"> |
| | | DESCRIPTION = #{description}, |
| | | </if> |
| | | <if test="owner != null and owner != ''"> |
| | | OWNER = #{owner}, |
| | | </if> |
| | | <if test="copyfromversion != null and copyfromversion != ''"> |
| | | COPYFROMVERSION = #{copyfromversion}, |
| | | </if> |
| | | <if test="ordernum != null"> |
| | | ORDERNUM = #{ordernum}, |
| | | </if> |
| | | <if test="refertype != null and refertype != ''"> |
| | | REFERTYPE = #{refertype}, |
| | | </if> |
| | | <if test="textfield != null and textfield != ''"> |
| | | TEXTFIELD = #{textfield}, |
| | | </if> |
| | | <if test="valuefield != null and valuefield != ''"> |
| | | VALUEFIELD = #{valuefield}, |
| | | </if> |
| | | <if test="type != null and type != ''"> |
| | | TYPE = #{type}, |
| | | </if> |
| | | <if test="url != null and url != ''"> |
| | | URL = #{url}, |
| | | </if> |
| | | <if test="backpath != null and backpath != ''"> |
| | | BACKPATH = #{backpath}, |
| | | </if> |
| | | <if test="method != null and method != ''"> |
| | | METHOD = #{method}, |
| | | </if> |
| | | <if test="height != null"> |
| | | HEIGHT = #{height}, |
| | | </if> |
| | | <if test="paramforformkey != null and paramforformkey != ''"> |
| | | PARAMFORFORMKEY = #{paramforformkey}, |
| | | </if> |
| | | <if test="ismuti != null and ismuti != ''"> |
| | | ISMUTI = #{ismuti}, |
| | | </if> |
| | | <if test="mapfields != null and mapfields != ''"> |
| | | MAPFIELDS = #{mapfields}, |
| | | </if> |
| | | <if test="refercontent != null and refercontent != ''"> |
| | | REFERCONTENT = #{refercontent}, |
| | | </if> |
| | | <if test="displaytable != null and displaytable != ''"> |
| | | DISPLAYTABLE = #{displaytable}, |
| | | </if> |
| | | <if test="limit != null and limit != ''"> |
| | | LIMIT = #{limit}, |
| | | </if> |
| | | <if test="sortfield != null and sortfield != ''"> |
| | | SORTFIELD = #{sortfield}, |
| | | </if> |
| | | <if test="sorttype != null and sorttype != ''"> |
| | | SORTTYPE = #{sorttype}, |
| | | </if> |
| | | <if test="parentfieldname != null and parentfieldname != ''"> |
| | | PARENTFIELDNAME = #{parentfieldname}, |
| | | </if> |
| | | <if test="parentusedfield != null and parentusedfield != ''"> |
| | | PARENTUSEDFIELD = #{parentusedfield}, |
| | | </if> |
| | | <if test="parentvalue != null and parentvalue != ''"> |
| | | PARENTVALUE = #{parentvalue}, |
| | | </if> |
| | | <if test="loadtype != null and loadtype != ''"> |
| | | LOADTYPE = #{loadtype}, |
| | | </if> |
| | | <if test="onlyleaf != null and onlyleaf != ''"> |
| | | ONLYLEAF = #{onlyleaf}, |
| | | </if> |
| | | </set> |
| | | where OID = #{oid} |
| | | </update> |
| | | |
| | | <!--éè¿ä¸»é®å é¤--> |
| | | <delete id="deleteById"> |
| | | delete from PL_CODE_REFERCONFIG where OID = #{oid} |
| | | </delete> |
| | | |
| | | </mapper> |
| | | |