Merge remote-tracking branch 'origin/master'
| | |
| | | |
| | | export const MasterTable =(params)=>{ |
| | | return request({ |
| | | url: 'api/ubcs-code/ubcs-code//mdmEngineController/getUIInfoByClassifyOid', |
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/getUIInfoByClassifyOid', |
| | | method: 'get', |
| | | params:{ |
| | | ...params |
| | |
| | | method: 'get', |
| | | params: params |
| | | }) |
| | | } |
| | | } |
| | | // ç³é¢åç¶æ |
| | | export const queryApplyStat = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-applyjtcodeservice/DockingPreApplyCode/queryApplyState', |
| | | method: 'get', |
| | | params: params |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | // éæç³»ç»ä¿¡æ¯ç®¡çå表 |
| | | export const getSysInfoList = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/dockingManagement/gridSysIntBase', |
| | | method: 'get', |
| | | params: params |
| | | }) |
| | | } |
| | | // éæç³»ç»ä¿¡æ¯ç®¡çæ°å¢ |
| | | export const sysInfoAdd = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/dockingManagement/addSave', |
| | | method: 'post', |
| | | data: params |
| | | }) |
| | | } |
| | | // éæç³»ç»ä¿¡æ¯ç®¡çæ°å¢ |
| | | export const sysInfoEdit = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/dockingManagement/editSave', |
| | | method: 'put', |
| | | data: params |
| | | }) |
| | | } |
| | | // éæç³»ç»ä¿¡æ¯ç®¡çæ°å¢ |
| | | export const sysInfoDel = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/dockingManagement/deleteDataById', |
| | | method: 'delete', |
| | | params: params |
| | | }) |
| | | } |
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | export const getPage = (current,size,params) => { |
| | | var model = '/api/ubcs-omd'; |
| | | var controller = '/revision-rule'; |
| | | |
| | | |
| | | export const getPage = (current, size, params) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/revision-rule/page', |
| | | method: 'get', |
| | |
| | | }) |
| | | } |
| | | |
| | | export const refList = (currentPage,pageSize,params) => { |
| | | export const refList = (currentPage, pageSize, params) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/revision-rule/ref', |
| | | method: 'get', |
| | |
| | | pageSize |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getAppayRange = (id) => { |
| | | return request({ |
| | | url: model + controller + '/get-apply-range', |
| | | method: 'get', |
| | | params: { |
| | | id |
| | | } |
| | | }) |
| | | } |
| | |
| | | data:data |
| | | }) |
| | | } |
| | | //ä»ä¸å¡ç±»åä¸éæ©æ°æ® |
| | | export const AttrByBtm = (params) =>{ |
| | | return request({ |
| | | url:'/api/ubcs-code/codeClassifyTempAttrController/codeClassifyTemplateAttrByBtm', |
| | | method: 'get', |
| | | params:{ |
| | | ...params |
| | | } |
| | | }) |
| | | } |
| | |
| | | <FormTemplateDialog |
| | | :visible.sync="addvisible" |
| | | :type="add" |
| | | :templateOid="this.templateOids" |
| | | :codeClassifyOid="this.codeClassifyOids" |
| | | :templateOid="this.templateOid" |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :rowOid="rowOid" |
| | | > |
| | | </FormTemplateDialog></el-button> |
| | | <el-button size="small" type="primary" plain @click="editvisible=true">ç¼è¾ |
| | |
| | | :visible.sync="editvisible" |
| | | :type="edit" |
| | | :templateOid="this.templateOids" |
| | | :codeClassifyOid="this.codeClassifyOids" |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :rowOid="rowOid" |
| | |
| | | <el-button size="small" type="primary" plain>åå¸</el-button> |
| | | <el-button size="small" type="primary" plain>æ°æ®æ´æ¹</el-button> |
| | | <el-button size="small" type="primary" plain>åæ¶</el-button> |
| | | <el-button size="small" type="primary" plain>å¯¼åº |
| | | <transfer filter-placeholder="请è¾å
¥æ¼é³å
¨æ¼æè
æ¼é³ç¼©å" ></transfer> |
| | | <el-button size="small" type="primary" plain @click="openD">å¯¼åº |
| | | <integration-transfer :visible.sync="dialogPush" :data="transferData" |
| | | :props="transferProps" @save="handelTransferSave"></integration-transfer> |
| | | </el-button> |
| | | <el-button size="small" type="primary" plain @click="findvisible=true">æ¥è¯¢ |
| | | <advancedQuery :visible.sync="findvisible" :options="this.options"></advancedQuery> |
| | |
| | | </template> |
| | | <script> |
| | | import {MasterTable, TableData} from "@/api/GetItem"; |
| | | import {listCodeAttributeByClassId} from '@/api/integration/integration.js' |
| | | import integrationTransfer from '@/views/integration/integrationTransfer' |
| | | import pinyin from "js-pinyin"; |
| | | export default { |
| | | components: { |
| | | integrationTransfer |
| | | }, |
| | | name: "Crud.vue", |
| | | props:{ |
| | | page:{ |
| | |
| | | tableDataArray:{ |
| | | type:Array, |
| | | default:[] |
| | | }, |
| | | total:{ |
| | | type:String, |
| | | default:"" |
| | | }, |
| | | tableHeadDataFateher:{ |
| | | type:Array, |
| | | default:[] |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | transferData:[], |
| | | transferProps: { |
| | | key: 'oid', |
| | | label: 'name' |
| | | }, |
| | | templateOid:"", |
| | | addvisible:false, |
| | | editvisible:false, |
| | | findvisible:false, |
| | | templateOids: "78B8C7C5-A042-0B96-FE6D-65421451782A", |
| | | codeClassifyOids: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96", |
| | | codeRuleOid: "B95872A6-9CEA-D490-8F1B-9D26548CAF96", |
| | | dialogPush:false, |
| | | rowOid: '6EF696C3-CD87-0E7C-1EA1-8DE3913A95C9', |
| | | disabledProp: ["id"], |
| | | editingRow:null, |
| | |
| | | }, |
| | | tableData:[], |
| | | tableHeadData:[], |
| | | tableHeadDataFateher:[], |
| | | items:{}, |
| | | aaa:"" |
| | | seniorQueryColumns:[] |
| | | } |
| | | }, |
| | | computed:{ |
| | | }, |
| | | created() { |
| | | this.CrudHeaderRend(); |
| | | this.$emit('tableData',this.tableData) |
| | | // this.CrudHeaderRend(); |
| | | // this.tableHeadHandle() |
| | | }, |
| | | mounted() { |
| | | |
| | |
| | | tableDataArray:{ |
| | | handler(newval,oldval){ |
| | | this.tableData=newval; |
| | | this.CrudRend() |
| | | // |
| | | } |
| | | }, |
| | | total:{ |
| | | handler(newval,oldval){ |
| | | this.page.total=newval; |
| | | } |
| | | }, |
| | | tableHeadData:{ |
| | | handler(newval,oldval){ |
| | | this.tableHeadDataFateher=newval |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | openD(){ |
| | | this.dialogPush=true; |
| | | this.getListCodeByClassId() |
| | | }, |
| | | async getListCodeByClassId() { |
| | | this.transferData = [] |
| | | const response = await listCodeAttributeByClassId({ codeClassifyId: this.codeClassifyOid }) |
| | | if (response.status === 200) { |
| | | const data = response.data.data |
| | | this.transferData = data |
| | | } |
| | | }, |
| | | rend(){ |
| | | this.tableData=this.tableHeadData |
| | | }, |
| | |
| | | this.page.pageSize=val |
| | | this.$emit('pageSize',val) |
| | | this.CrudRend() |
| | | console.log(this.tableData) |
| | | }, |
| | | handleCurrentChange(val){ |
| | | this.page.currentPage=val |
| | | this.$emit('currentPage',val) |
| | | this.CrudRend() |
| | | console.log(val) |
| | | console.log(this.tableData) |
| | | }, |
| | | // çå¬åå
æ ¼ç¹å»äºä»¶å¹¶å卿£å¨ç¼è¾çè¡ |
| | | handleCellClick(row, column) { |
| | | this.editingRow = row; |
| | | this.editShow = column.property; |
| | | console.log(row) |
| | | this.rowOid=row.oid |
| | | }, |
| | | //å é¤ |
| | | enumDeleteRow(row) { |
| | |
| | | this.$nextTick(() => { |
| | | this.$refs.crud.doLayout(); |
| | | }); |
| | | }, |
| | | tableHeadHandle(){ |
| | | this.options=this.tableHeadDataFateher.tableDefineVO.seniorQueryColumns |
| | | this.List = this.tableHeadDataFateher.tableDefineVO.cols[0]; |
| | | this.List.forEach(item => { |
| | | let columnItem = { |
| | | label: item.title, |
| | | prop: item.field, |
| | | type: this.columnType[item.type], |
| | | sortable: item.sort, |
| | | width: item.minWidth |
| | | }; |
| | | this.option.column.push(columnItem); |
| | | this.option.column=this.tableHeadData; |
| | | }) |
| | | }, |
| | | //è¡¨æ ¼å¤´æ¸²æ |
| | | CrudHeaderRend() { |
| | |
| | | this.option.column=this.tableHeadData; |
| | | this.templateOid=res.data.tableDefineVO.oid |
| | | this.$emit('templateOid',this.templateOid) |
| | | console.log(this.templateOid) |
| | | }) |
| | | }) |
| | | } |
| | |
| | | templateOid: this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | page: this.page.currentPage, |
| | | limit:this.page.pageSize, |
| | | limit: this.page.pageSize, |
| | | }).then(res => { |
| | | this.page.total = res.data.total; |
| | | this.data = res.data.data; |
| | |
| | | placeholder: formItem.inputTip, |
| | | options:formItem.referConfig |
| | | }:{}, |
| | | change: () => { |
| | | this.changeFun(formItem.displayExtension, formItem.prop); |
| | | }, |
| | | span: formItem.type === "textarea" ? 24 : this.trendsSpan, |
| | | rules: [ |
| | | { |
| | |
| | | this.$set(this.option, "column", column); |
| | | this.$set(this.option, "group", group); |
| | | this.formIndex++; |
| | | this.loading = false; |
| | | if (this.type === 'add') { |
| | | this.loading = false; |
| | | } |
| | | this.geDictData(dictKeys); |
| | | this.getFormDetail(); |
| | | }, |
| | |
| | | return val; |
| | | } |
| | | }, |
| | | changeFun(displayExtension, prop) { |
| | | // executeCode({displayExtension, data: this.form}).then(res => { |
| | | // this.form[prop] = res.data.data |
| | | // }) |
| | | }, |
| | | // è·åswichåå·²æ¿å°çä¸ææ°æ® |
| | | getDataList(type, dicData) { |
| | | if (type === "truefalse") { |
| | |
| | | // è¡¨åæ ¡éª |
| | | validate() { |
| | | return new Promise((resolve) => { |
| | | this.$refs.form.validate((valid, done, msg) => { |
| | | console.error(msg, valid); |
| | | this.$refs.form.validate((valid, done) => { |
| | | if (valid) { |
| | | done(); |
| | | resolve(true); |
| | |
| | | // è·å表å详æ
æ°æ® |
| | | getFormDetail() { |
| | | if (this.type === 'add') return |
| | | if (this.type === "add") return; |
| | | getFormDetail({ templateOid: this.templateOid, oid: '213D13D5-76D3-6B42-0932-705693F6B6E4' }).then( |
| | | getFormDetail({ templateOid: this.templateOid, oid: this.rowOid }).then( |
| | | (res) => { |
| | | this.form = Object.assign(this.form, res.obj) |
| | | console.log(res, "res"); |
| | | this.form = Object.assign(this.form, res.data.data[0]) |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | }, |
| | |
| | | openFormTemlpate(row) {
|
| | | this.resembleTemplateOid = row.codetemplateoid
|
| | | this.resembleCodeClassifyOid = row.codeClassifyOid
|
| | | this.rowOid = row.iod
|
| | | this.rowOid = row.oid
|
| | | this.formTemplateVisible = true;
|
| | | },
|
| | | getDefaultValueAndFormValues(form) {
|
| | |
| | | <template> |
| | | <el-dialog |
| | | :visible.sync="dialogVisible" |
| | | v-if="dialogVisible" |
| | | v-dialogDrag |
| | | top="0vh" |
| | | :title="title" |
| | |
| | | <script> |
| | | import {getTreeList} from "@/api/MasterData/master"; |
| | | import {mapMutations, mapState} from "vuex"; |
| | | import {TableData} from "@/api/GetItem"; |
| | | import {TableData,MasterTable} from "@/api/GetItem"; |
| | | |
| | | export default { |
| | | name: "MasterTree", |
| | |
| | | }, |
| | | data(){ |
| | | return{ |
| | | tableHeadDataFateher:[], |
| | | templateOids:"", |
| | | tableDataArray:[], |
| | | codeClassifyOid:"", |
| | | coderuleoid:"", |
| | |
| | | this.coderuleoid=res.data[0].attributes.coderuleoid; |
| | | this.$emit("codeClassifyOid", this.codeClassifyOid ) |
| | | this.$emit("coderuleoid", this.coderuleoid ) |
| | | this.TableHeadRends() |
| | | }).catch(res=>{ |
| | | console.log(res) |
| | | }) |
| | |
| | | } |
| | | } |
| | | }, |
| | | //æ ç¹å»äºä»¶ |
| | | nodeClick(data){ |
| | | this.nodeClickList = data; |
| | | console.log(this.currentPage,this.pageSize) |
| | | //è¡¨æ ¼å·æ° |
| | | TableRend(){ |
| | | TableData({ |
| | | templateOid: this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | page: this.pageSize, |
| | | limit:this.currentPage, |
| | | templateOid: this.templateOids, |
| | | codeClassifyOid: this.nodeClickList.oid, |
| | | page: this.currentPage, |
| | | limit: this.pageSize, |
| | | }).then(res => { |
| | | console.log(res) |
| | | // this.page.total = res.data.total; |
| | | // this.data = res.data.data; |
| | | this.tableDataArray=res.data.data; |
| | | this.$emit('tableDataArray',this.tableDataArray) |
| | | console.log(this.tableDataArray) |
| | | this.$emit('total',res.data.total) |
| | | }) |
| | | }, |
| | | //è¡¨æ ¼å¤´é¨ |
| | | TableHeadRend(){ |
| | | MasterTable({ |
| | | codeClassifyOid:this.nodeClickList.oid, |
| | | functionId: 5, |
| | | }).then(res=>{ |
| | | this.tableHeadDataFateher=res.data; |
| | | this.templateOids=res.data.tableDefineVO.oid |
| | | this.$emit("tableHeadDataFateher",this.tableHeadDataFateher) |
| | | console.log("123",res) |
| | | }) |
| | | }, |
| | | TableHeadRends(){ |
| | | MasterTable({ |
| | | codeClassifyOid:this.codeClassifyOid, |
| | | functionId: 5, |
| | | }).then(res=>{ |
| | | this.tableHeadDataFateher=res.data; |
| | | this.templateOids=res.data.tableDefineVO.oid |
| | | this.$emit("tableHeadDataFateher",this.tableHeadDataFateher) |
| | | console.log("123",res) |
| | | }) |
| | | }, |
| | | //æ ç¹å»äºä»¶ |
| | | nodeClick(data){ |
| | | this.nodeClickList = data; |
| | | this.TableHeadRend() |
| | | this.TableRend() |
| | | console.log('code',this.nodeClickList.oid) |
| | | console.log('teoid',this.templateOids) |
| | | console.log() |
| | | } |
| | | } |
| | | } |
| | |
| | | <basic-container> |
| | | <avue-tabs :option="Taboption" @change="handleChange"></avue-tabs> |
| | | <span v-if="type.prop==='tab1'"> |
| | | <attrCrud :ProData="ProData"></attrCrud> |
| | | <attrCrud :ProData="ProData" :crudOid="crudOid" :crudArray="crudArray" :Formlist="Formlist"></attrCrud> |
| | | </span> |
| | | <span v-else-if="type.prop==='tab2'">æ¨¡æ¿æµç¨</span> |
| | | <span v-else-if="type.prop==='tab3'">模æ¿é¶æ®µ</span> |
| | |
| | | <script> |
| | | export default { |
| | | name: "TemplatePro.vue", |
| | | props: ['ProData'], |
| | | props: ['ProData','crudOid','crudArray','Formlist'], |
| | | data: function () { |
| | | return { |
| | | type: {}, |
| | |
| | | <template> |
| | | <avue-crud :data="ProData" :option="option" @sort-change="sortChange" @row-update="addUpdate" |
| | | @cell-click="handleRowClick"> |
| | | @cell-click="handleRowClick" @select="selectHandle"> |
| | | <template slot="menuLeft"> |
| | | <el-button v-if="attrEditVisible == false" size="small" type="primary" @click="addVisible=true">ï¼ æ·»å {{msg}}</el-button> |
| | | <el-button v-if="attrEditVisible == false" size="small" type="primary" @click="busineHandle">ï¼ æ·»å {{msg}}</el-button> |
| | | <el-dialog :visible.sync="addVisible" append-to-body title="ä»ä¸å¡ç±»åä¸éæ©å±æ§"> |
| | | <avue-crud :data="businessData" :option="businessOption"></avue-crud> |
| | | <avue-crud :data="businessData" :option="businessOption"> |
| | | <template slot="menuLeft"> |
| | | <div style="display: flex;"> |
| | | <el-select> |
| | | <el-option>屿§è±æåç§°</el-option> |
| | | <el-option>屿§ä¸æåç§°</el-option> |
| | | </el-select> |
| | | <el-input style="width: 300px;margin-left: 20px"></el-input> |
| | | <el-button size="small" style="margin-left: 10px">æ¥è¯¢</el-button> |
| | | </div> |
| | | |
| | | </template> |
| | | </avue-crud> |
| | | <div style="display: flex;justify-content: flex-end;margin-top: 15px"> |
| | | <el-button size="small" type="primary">ä¿å</el-button> |
| | | <el-button size="small" type="primary">åæ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | | <!-- å
¨å±ç¼è¾--> |
| | |
| | | <el-dialog :visible.sync="attrEditVisible" append-to-body fullscreen="true"> |
| | | <attrCrud></attrCrud> |
| | | </el-dialog> |
| | | </template> |
| | | <!-- ç»åè§å--> |
| | | <template slot="menuLeft"> |
| | | <el-button size="small" @click="isShowformulaEdit=true">ç»åè§å</el-button> |
| | | <formula-editor :visible="isShowformulaEdit" :systemVariableTableData="systemVariableTableData" :thisSceneTableData="thisSceneTableData"></formula-editor> |
| | | |
| | | </template> |
| | | <!-- éªè¯è§å--> |
| | | <template slot="menuLeft"> |
| | |
| | | </template> |
| | | <!-- 级è屿§--> |
| | | <template slot="menuLeft"> |
| | | <el-button size="small" @click="CascadeVisible=true">级è屿§</el-button> |
| | | <el-button size="small" @click="CascadeHandle">级è屿§</el-button> |
| | | <el-dialog :visible.sync="CascadeVisible" append-to-body title="è¯·éæ©çº§è屿§"> |
| | | <avue-crud ref="crud" :data="CascadeData" :option="CascadeOption" @row-click="CascaderowClick"> |
| | | <template slot="radio" |
| | |
| | | </template> |
| | | <!-- 忥å°å
¶ä»æ¨¡æ¿--> |
| | | <template slot="menuLeft"> |
| | | <el-button size="small">忥å°å
¶ä»æ¨¡æ¿</el-button> |
| | | <el-button size="small" style="margin-top: 10px">忥å°å
¶ä»æ¨¡æ¿</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </template> |
| | | |
| | | <script> |
| | | import {AttrByBtm,gridCodeClassifyTemplateAttr} from '@/api/template/templateAttr' |
| | | export default { |
| | | name: "attrCrud .vue", |
| | | props: ['ProData'], |
| | | props: ['ProData','crudOid','crudArray','Formlist'], |
| | | data() { |
| | | return { |
| | | //è¡¨æ ¼åéæ°ç» |
| | | CrudSelect:[], |
| | | //è¡¨æ ¼oid |
| | | CrudOid:"", |
| | | //åºæ¯åé |
| | | thisSceneTableData:[ |
| | | { |
| | | formula: "lcstatus", |
| | | desc: "ç¶æ", |
| | | }, |
| | | { |
| | | formula: "name", |
| | | desc: "éå¢ç ", |
| | | }, |
| | | { |
| | | formula: "materialname", |
| | | desc: "é¨é¨åç§°", |
| | | }, |
| | | { |
| | | formula: "parentcode", |
| | | desc: "ä¸çº§é¨é¨ç¼å·", |
| | | }, |
| | | { |
| | | formula: "parentname", |
| | | desc: "ä¸çº§é¨é¨åç§°", |
| | | }, |
| | | { |
| | | formula: "description", |
| | | desc: "æè¿°", |
| | | }, |
| | | ], |
| | | // ç³»ç»åé |
| | | systemVariableTableData:[ |
| | | { |
| | | formula: "#CURRENTUSER.OID#", |
| | | desc: "å½åç¨æ·ç主é®", |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.ID", |
| | | desc:"å½åç¨æ·çè´¦æ·" |
| | | }, |
| | | { |
| | | formula:"#CURRENTTIME#", |
| | | desc:"å½åæ¶é´" |
| | | }, |
| | | { |
| | | formula:"#CURRENTDATE#", |
| | | desc:"å½åæ¥æ" |
| | | }, |
| | | { |
| | | formula:"#CURRENTDATETIME#", |
| | | desc:"å½åæ¥ææ¶é´" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER_NAME#", |
| | | desc:"å½åç¨æ·çå§å" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.SECRETGRADE#", |
| | | desc:"å½åç¨æ·å¯çº§" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.IPSECRET#", |
| | | desc:"å½åç¨æ·çIPå¯çº§" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.BUSINESSUNIT#", |
| | | desc:"å½åç¨æ·æå±ä¸å¡åå
" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.BUSINESSUNITNAME#", |
| | | desc:"å½åç¨æ·æå±ä¸å¡åå
åç§°" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.GROUPOID#", |
| | | desc:"å½åç¨æ·çé¨é¨ä¸»é®" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.GROUPNAME#", |
| | | desc:"å½åç¨æ·æå±é¨é¨åç§°" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.EMAIL#", |
| | | desc:"å½åç¨æ·é®ä»¶å°å" |
| | | }, |
| | | { |
| | | formula:"#CURRENTUSER.ROLENAME#", |
| | | desc:"å½åç¨æ·æå±è§è²åç§° " |
| | | }, |
| | | ], |
| | | CascadeVisible: false, |
| | | attrEditVisible: false, |
| | | isShowformulaEdit:false, |
| | | // 级èåé |
| | | selectRow: '', |
| | | // 级èdata |
| | | CascadeData: [{ |
| | | id: 1, |
| | | name: 'å¼ ä¸', |
| | | attrIn: 'æµè¯ä¸' |
| | | }, { |
| | | id: 2, |
| | | name: 'æå', |
| | | attrIn: 'æµè¯äº' |
| | | }], |
| | | CascadeData: [], |
| | | // 级èoption |
| | | CascadeOption: { |
| | | menu: false, |
| | |
| | | }, |
| | | { |
| | | label: '屿§è±æç¼å·', |
| | | prop: 'nid' |
| | | }, { |
| | | label: 'æ§å«', |
| | | prop: 'id' |
| | | }, |
| | | { |
| | | label: '屿§ä¸æåç§°', |
| | | prop: 'name' |
| | | }, |
| | | { |
| | | label: '屿§åç»', |
| | | prop: 'attrIn' |
| | | prop: 'attributeGroup' |
| | | }, |
| | | { |
| | | label: 'ç±»å', |
| | | prop: 'type' |
| | | prop: 'attributeDataTypeText' |
| | | }, |
| | | { |
| | | label: 'å表宽度', |
| | |
| | | }, |
| | | { |
| | | label: 'å
³é®å±æ§', |
| | | prop: 'keyattrflag' |
| | | prop: 'keyAttrFlag', |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'æ¥è¯¢å±æ§', |
| | | prop: 'queryattrflag' |
| | | prop: 'queryAttrFlag', |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'é«çº§æ¥è¯¢å±æ§', |
| | | prop: 'seniorqueryattrflag' |
| | | prop: 'seniorQueryAttrFlag', |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'ç¸ä¼¼æ¥é屿§', |
| | | prop: 'samerepeatattrflag' |
| | | prop: 'sameRepeatAttrFlag', |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'ä¸ç»´ç ', |
| | |
| | | { |
| | | label: 'äºç»´ç ', |
| | | prop: 'TwoDimensional' |
| | | }, |
| | | { |
| | | label: 'å¿
è¾', |
| | | prop: 'requireFlag', |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "è¡¨åæ¾ç¤º", |
| | | prop: "formDisplayFlag", |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "å表æ¾ç¤º", |
| | | prop: "tableDisplayFlag", |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "åªè¯»", |
| | | prop: "readonlyFlag", |
| | | }, |
| | | { |
| | | label: "å表æåº", |
| | | prop: "sortAttrFlag", |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | label: "å¤è¡ææ¬", |
| | | prop: "textAreaFlag", |
| | | type:'text', |
| | | dicData:[ |
| | | { |
| | | label:"æ¯", |
| | | value:'true' |
| | | }, |
| | | { |
| | | label:"å¦", |
| | | value:'false' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "é»è®¤å¼", |
| | | prop: "defaultValue", |
| | | }, |
| | | { |
| | | label: "åç¼", |
| | | prop: "prefixValue", |
| | | }, |
| | | { |
| | | label: "åç¼", |
| | | prop: "suffixValue", |
| | | }, |
| | | { |
| | | label: "ç»åè§å", |
| | | prop: "componentRule", |
| | | }, |
| | | { |
| | | label: "éªè¯è§å", |
| | | prop: "verifyRule", |
| | | }, |
| | | { |
| | | label: "æ¶é´æ ¼å¼", |
| | | prop: "codeDateFormat", |
| | | }, |
| | | { |
| | | label: "å类注å
¥", |
| | | prop: "classifyInvokeLevel", |
| | | }, |
| | | { |
| | | label: "æä¸¾æ³¨å
¥", |
| | | prop: "enumString", |
| | | }, |
| | | { |
| | | label: "级è屿§", |
| | | prop: "parentCode", |
| | | }, |
| | | { |
| | | label: "åç
§é
ç½®", |
| | | prop: "referConfig", |
| | | }, |
| | | { |
| | | label: "çº§èæ¥è¯¢å±æ§", |
| | | prop: "parentQueryAttr", |
| | | }, |
| | | { |
| | | label: "éæ©åºæ è¯", |
| | | prop: "libraryIdentification", |
| | | }, |
| | | { |
| | | label: "å¡«åæç¤º", |
| | | prop: "explain", |
| | | }, |
| | | { |
| | | label: "è¡¨åæ¾ç¤ºæ ·å¼", |
| | | prop: "formDisplayStyle", |
| | | }, |
| | | { |
| | | label: "è¡¨æ ¼æ¾ç¤ºæ ·å¼", |
| | | prop: "tableDisplayStyle", |
| | | }, |
| | | { |
| | | label: "表åè¶
龿¥", |
| | | prop: "formHref", |
| | | }, |
| | | { |
| | | label: "è¡¨æ ¼è¶
龿¥", |
| | | prop: "tableHref", |
| | | }, |
| | | { |
| | | label: "è¡¨æ ¼æ¾ç¤ºjs", |
| | | prop: "tableDisplayJs", |
| | | }, |
| | | { |
| | | label: "é¿åº¦", |
| | | prop: "controlLength", |
| | | }, |
| | | { |
| | | label: "å°æ°ç²¾åº¦", |
| | | prop: "precisionLength", |
| | | }, |
| | | { |
| | | label: "åå¼èå´", |
| | | prop: "valueArea", |
| | | }, |
| | | ] |
| | | }, |
| | |
| | | bds: "æµè¯ä¸", |
| | | shiyong: "æµè¯ä¸" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | }, |
| | | { |
| | | bds: "æµè¯äº", |
| | | shiyong: "æµè¯äº" |
| | | } |
| | | ], |
| | | // æ°å¢ä¸å¡ç±»å |
| | | businessData: [ |
| | | { |
| | | id: "æµè¯ä¸", |
| | | name: "æµè¯ä¸", |
| | | attributeLength: "æµè¯ä¸", |
| | | attrDataType: "æµè¯ä¸" |
| | | }, |
| | | { |
| | | id: "æµè¯äº", |
| | | name: "æµè¯äº", |
| | | attributeLength: "æµè¯äº", |
| | | attrDataType: "æµè¯äº" |
| | | }, |
| | | { |
| | | id: "æµè¯ä¸", |
| | | name: "æµè¯ä¸", |
| | | attributeLength: "æµè¯ä¸", |
| | | attrDataType: "æµè¯ä¸", |
| | | }, |
| | | { |
| | | id: "æµè¯ä¸", |
| | | name: "æµè¯ä¸", |
| | | attributeLength: "æµè¯ä¸", |
| | | attrDataType: "æµè¯ä¸", |
| | | } |
| | | ], |
| | | businessData: [], |
| | | businessOption: { |
| | | index: true, |
| | | border: true, |
| | | addBtn: true, |
| | | addBtn: false, |
| | | menu:false, |
| | | column: [ |
| | | { |
| | | label: "屿§è±æåç§°", |
| | |
| | | index: true, |
| | | border: true, |
| | | editBtn: false, |
| | | selection:true, |
| | | labelWidth: 110, |
| | | cellBtn: true, |
| | | cancelBtn: false, |
| | |
| | | console.log(this.ProData) |
| | | }, |
| | | methods: { |
| | | // ä»ä¸å¡ç±»åä¸éæ©æ°æ® |
| | | busineHandle(){ |
| | | if(this.crudArray.length<1){ |
| | | this.$message.error('è¯·éæ©ä¸æ¡æ¨¡æ¿') |
| | | }else { |
| | | this.addVisible=true; |
| | | AttrByBtm({'conditionMap[oid]': this.crudOid}).then(res=>{ |
| | | this.businessData=res.data.data; |
| | | console.log(res.data) |
| | | }) |
| | | } |
| | | }, |
| | | // 级è屿§ |
| | | CascadeHandle(){ |
| | | if(this.CrudSelect.length >0){ |
| | | this.CascadeVisible=true; |
| | | gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': this.Formlist[0].oid, |
| | | 'conditionMap[oid_notequal]':this.CrudOid |
| | | }).then(res=>{ |
| | | this.CascadeData=res.data.data |
| | | }) |
| | | }else { |
| | | this.$message.warning('è¯·éæ©ä¸æ¡æ¨¡æ¿å±æ§') |
| | | } |
| | | }, |
| | | //è¡¨æ ¼åé |
| | | selectHandle(selection,row){ |
| | | this.CrudOid=row.oid; |
| | | this.CrudSelect=selection |
| | | }, |
| | | addsHandler(){ |
| | | |
| | | }, |
| | |
| | | option: { |
| | | submitBtn:false, |
| | | emptyBtn:false, |
| | | |
| | | column: [ |
| | | { |
| | | label: '主é¢åº/åç±»ç¼å·', |
| | |
| | | @row-del="CrudRowDel" |
| | | @row-update="CrudRowUpdata" |
| | | :before-close="beforeClose" |
| | | @select="selectHandle" |
| | | > |
| | | <template slot="menuLeft"> |
| | | <el-button plain size="small" type="primary" @click="FindFormVisible = true;">æ¥è¯¢</el-button> |
| | |
| | | </avue-crud> |
| | | |
| | | </basic-container> |
| | | <templatePro :ProData="this.ProData"></templatePro> |
| | | <templatePro :ProData="this.ProData" :crudOid="this.crudOid" :crudArray="this.crudArray" :Formlist="this.Formlist"></templatePro> |
| | | </span> |
| | | </basic-container> |
| | | </el-main> |
| | |
| | | //使ç¨injectæ¥æ¶åæ° |
| | | //Treeoptionå·¦ä¾§æ æ°å¢è¡¨å项 Treedata左侧æ èç¹ é
置项 crudTreeOptionå³ä¾§è¡¨æ ¼é
置项 crudTreeDataå³ä¾§è¡¨æ ¼æ¾ç¤ºå
容 |
| | | //Treeformå³ä¾§è¡¨åé
置项 |
| | | inject: ['crudTreeOption', "crudTreeData"], |
| | | inject: [, "crudTreeData"], |
| | | data() { |
| | | return { |
| | | //è¡¨æ ¼optioné
置项 |
| | | crudTreeOption: { |
| | | index: true, |
| | | border: true, |
| | | height:180, |
| | | selection:true, |
| | | addBtn:this.addFlag, |
| | | column: [ |
| | | { |
| | | label: "模æ¿ç¼å·", |
| | | prop: "id" |
| | | }, |
| | | { |
| | | label:"模æ¿åç§°", |
| | | prop:"name" |
| | | }, |
| | | { |
| | | label: "æ¨¡æ¿æè¿°", |
| | | prop:"description" |
| | | }, |
| | | { |
| | | label:"çæ¬å·", |
| | | prop:"revisionSeq" |
| | | }, |
| | | { |
| | | label:"ç¶æ", |
| | | prop:"lcStatusText" |
| | | } |
| | | ] |
| | | }, |
| | | addFlag:false, |
| | | // è¡¨æ ¼å½åè¡id |
| | | crudOid:"", |
| | | //è¡¨æ ¼å½åéæ©æ°ç» |
| | | crudArray:[], |
| | | //模æ¿å±æ§å±ç¤ºå
容 |
| | | ProData: [], |
| | | //åè½¦é®æç´¢ç»å®å¼ |
| | |
| | | this.getAttr(); |
| | | }, |
| | | methods: { |
| | | //è¡åéäºä»¶ |
| | | selectHandle(selection,row){ |
| | | this.crudOid=row.oid |
| | | this.crudArray=selection |
| | | }, |
| | | //åç±»æ æ°æ®å¤ç |
| | | getAttr() { |
| | | getAtrrList().then(res => { |
| | |
| | | return item.codeclassifyoid == this.nodeClickList.oid |
| | | } |
| | | }) |
| | | gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': this.Formlist[0].oid}).then(res => { |
| | | this.ProData = res.data.data |
| | | console.log(this.ProData) |
| | | }).catch(res => { |
| | | this.$message.error(res) |
| | | }) |
| | | if(this.Formlist.length >0){ |
| | | gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': this.Formlist[0].oid}).then(res => { |
| | | this.ProData = res.data.data; |
| | | console.log(this.ProData) |
| | | }).catch(res => { |
| | | this.$message.error(res) |
| | | }) |
| | | } |
| | | }).catch(res => { |
| | | console.log(res) |
| | | }) |
| | | // åºæ¬ä¿¡æ¯è¡¨åæ°æ® |
| | | await getObjectByOid(this.nodeClickList.oid).then(res => { |
| | | this.TreeList = res.data.data |
| | | // eslint-disable-next-line no-const-assig |
| | | this.TreeList = res.data.data; |
| | | }).catch(res => { |
| | | this.$message.error(res) |
| | | }) |
| | |
| | | :show-header="false" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column prop="formula" width="40"> |
| | | <el-table-column prop="formula" width="120"> |
| | | </el-table-column> |
| | | <el-table-column prop="desc" width="100"> </el-table-column> |
| | | <el-table-column prop="desc" width="200"> </el-table-column> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="ç³»ç»åé" name="second"> |
| | |
| | | :show-header="false" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column prop="formula" width="150"> |
| | | <el-table-column prop="formula" width="200"> |
| | | </el-table-column> |
| | | <el-table-column prop="desc" width="150"> </el-table-column> |
| | | <el-table-column prop="desc" width="200"> </el-table-column> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | |
| | | |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | export default { |
| | | name: "formulaEditor", |
| | |
| | | } |
| | | //å
¬å¼å
容忾 |
| | | // 触åupdate:dataå°åç»ä»¶å¼ä¼ éç»ç¶ç»ä»¶ |
| | | this.$emit('updateFormulaContent', this.formulaContent) |
| | | this.isShowformulaEdit = false; |
| | | this.$emit('updateFormulaContent', this.formulaContent) |
| | | this.isShowformulaEdit = false; |
| | | }, |
| | | |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | |
| | | <style scoped> |
| | | |
| | | .formula-box-card >>> .el-card__body { |
| | |
| | | height: 85%; |
| | | width: 100%; |
| | | } |
| | | |
| | | |
| | | .formula-editor-total { |
| | | /* margin-top: 3px; */ |
| | | height: 100%; |
| | |
| | | height: auto; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | } |
| | | } |
| | | |
| | | .formula-editor-btn-sm { |
| | | width: 4.5vw; |
| | |
| | | } |
| | | |
| | | </style> |
| | | |
| | |
| | | :currentPage="this.currentPage" |
| | | :templateOid="this.templateOid" |
| | | @tableDataArray="tableDataArrays" |
| | | |
| | | @tableHeadDataFateher="tableHeadDatas" |
| | | @total="totals" |
| | | ></master-tree> |
| | | </basic-container> |
| | | </el-aside> |
| | |
| | | @currentPage="currentPages" |
| | | @templateOid="templateOids" |
| | | :tableDataArray="tableDataArray" |
| | | :total="this.total" |
| | | :tableHeadDataFateher="this.tableHeadDataFateher" |
| | | ></TableCrud> |
| | | </el-main> |
| | | </el-container> |
| | |
| | | codeClassifyOid:"", |
| | | coderuleoid:"", |
| | | templateOid:"", |
| | | tableDataArray:[] |
| | | tableDataArray:[], |
| | | tableHeadDataFateher:[], |
| | | total:"" |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | }, |
| | | tableDataArrays(val){ |
| | | this.tableDataArray=val |
| | | }, |
| | | totals(val){ |
| | | this.total=val |
| | | }, |
| | | tableHeadDatas(val){ |
| | | this.tableHeadDataFateher=val |
| | | } |
| | | } |
| | | } |
| | |
| | | <basic-container> |
| | | <avue-crud :table-loading="loading" :data="data" :option="option" :search.sync="searchParam" :page.sync="page" |
| | | ref="crud" @refresh-change="getDataList" @search-change="handleSearch" @search-reset="handleReset" |
| | | @size-change="handleSizePage" @current-change="handleCurrentPage" @on-load="getDataList"> |
| | | @size-change="handleSizePage" @current-change="handleCurrentPage" @on-load="getDataList" |
| | | @selection-change="selectionChange" @row-click="handleRowClick"> |
| | | <template slot="menuLeft"> |
| | | <el-button icon="el-icon-document" size="small" type="primary" @click="handleStatus">éå¢ç³è¯·ç¶æ |
| | | </el-button> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getList } from '@/api/integration/application.js' |
| | | import { getList, queryApplyStat } from '@/api/integration/application.js' |
| | | import { dateFormat } from '@/util/date.js' |
| | | export default { |
| | | data() { |
| | |
| | | total: 0 |
| | | }, |
| | | searchParam: {}, |
| | | stateParam: {}, |
| | | option: { |
| | | height: "auto", |
| | | index: true, |
| | |
| | | columnBtn: false, |
| | | searchMenuSpan: 8, |
| | | highlightCurrentRow: true, |
| | | menu:false, |
| | | menu: false, |
| | | selection: true, |
| | | column: [ |
| | | { |
| | | label: 'ç³è¯·åå·', |
| | |
| | | prop: 'lastModifyTime', |
| | | type: 'datetime', |
| | | search: true, |
| | | formatter: () => { |
| | | |
| | | } |
| | | }, { |
| | | label: 'è¿åæ è¯', |
| | | width: 100, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | handleStatus() { |
| | | |
| | | async handleStatus() { |
| | | const { oids } = this.stateParam |
| | | if (this.$utilFunc.isEmpty(oids)) { |
| | | this.$message({ |
| | | type: "error", |
| | | message: "请è³å°éæ©ä¸æ¡æ°æ®!" |
| | | }) |
| | | } else { |
| | | console.log(this.stateParam) |
| | | const response = await queryApplyStat(this.stateParam) |
| | | if (response.status === 200) { |
| | | console.log(response) |
| | | } |
| | | } |
| | | }, |
| | | async getDataList() { |
| | | this.loading = true |
| | |
| | | this.page.currentPage = 1 |
| | | this.getDataList() |
| | | done() |
| | | } |
| | | }, |
| | | selectionChange(list) { |
| | | console.log(list) |
| | | let newData = list.map(item => { |
| | | const { dataOid } = item |
| | | return dataOid |
| | | }) |
| | | this.stateParam = { oids: newData.toString() } |
| | | console.log(newData) |
| | | }, |
| | | handleRowClick(row) { |
| | | this.$refs.crud.toggleRowSelection(row, true) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud ref="crud" :table-loading="loading" :data="data" :option="option" :page.sync="page" :search.sync="search" |
| | | @on-load="getDataList" @row-save="handleSave" @row-del="handleDelete" @row-update="handleEdit" |
| | | @refresh-change="handleRefresh" @size-change="handleSizePage" @current-change="handleCurrentPage" |
| | | @selection-change="selectionChange" @row-click="handleRowClick"> |
| | | <template slot="menuLeft"> |
| | | <el-button icon="el-icon-search" size="small" type="primary" @click="handleStatus">æ¥ è¯¢ |
| | | </el-button> |
| | | <el-button icon="el-icon-delete" size="small" type="danger" @click="handleDeleteByIds">å é¤ |
| | | </el-button> |
| | | </template> |
| | | <template slot="search" slot-scope="{row,size}"> |
| | | <el-select v-model="selectValue" size="small" @change="handleSelect"> |
| | | <el-option v-for="item in selectOption" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-input :placeholder="`请è¾å
¥${selectValue === 'id' ? 'ç³»ç»ç¼å·' : 'ç³»ç»åç§°'}å¹¶æå车æ¥è¯¢`" :size="size" |
| | | style="width:300px;margin-left: 10px;" v-model="search[selectValue]" clearable |
| | | @keyup.enter.native="handleEnter" @clear="handleClear"></el-input> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | | <script> |
| | | import { getSysInfoList, sysInfoAdd, sysInfoEdit, sysInfoDel } from '@/api/integration/sysInfo.js' |
| | | export default { |
| | | data() { |
| | | return { |
| | | loading: false, |
| | | page: { |
| | | currentPage: 1, |
| | | pageSize: 10, |
| | | total: 0 |
| | | }, |
| | | selectOption: [{ |
| | | value: 'id', |
| | | label: 'ç³»ç»ç¼å·' |
| | | }, { |
| | | value: 'name', |
| | | label: 'ç³»ç»åç§°' |
| | | }], |
| | | selectValue: 'id', |
| | | search: {}, |
| | | delIds: [], |
| | | data: [], |
| | | option: { |
| | | height: "auto", |
| | | border: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | index: true, |
| | | searchMenuSpan: 8, |
| | | searchBtn: false, |
| | | emptyBtn: false, |
| | | columnBtn: false, |
| | | defaultSort: { |
| | | prop: 'id,name', |
| | | order: 'descending' |
| | | }, |
| | | selection: true, |
| | | column: [ |
| | | { |
| | | label: 'ç³»ç»ç¼å·', |
| | | prop: 'id', |
| | | sortable: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: 'ç³»ç»ç¼å·ä¸è½ä¸ºç©º', |
| | | trigger: 'blur' |
| | | }] |
| | | }, { |
| | | label: 'ç³»ç»åç§°', |
| | | prop: 'name', |
| | | sortable: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: 'ç³»ç»åç§°ä¸è½ä¸ºç©º', |
| | | trigger: 'blur' |
| | | }] |
| | | }, |
| | | { |
| | | label: 'ç³»ç»æè¿°', |
| | | prop: 'description', |
| | | type: 'textarea' |
| | | } |
| | | ] |
| | | }, |
| | | } |
| | | }, |
| | | methods: { |
| | | // è·åå表 |
| | | async getDataList() { |
| | | this.loading = true |
| | | console.log(this.search) |
| | | const { pageSize, currentPage } = this.page |
| | | let param = { size: pageSize, current: currentPage } |
| | | const response = await getSysInfoList({ ...param, ...this.search }) |
| | | if (response.status === 200) { |
| | | console.log(response) |
| | | this.loading = false |
| | | const data = response.data.data |
| | | this.data = data.records |
| | | this.page.total = data.total |
| | | } else this.loading = false |
| | | }, |
| | | // æ°å¢ |
| | | async handleSave(row, done, loading) { |
| | | const response = await sysInfoAdd(row) |
| | | if (response.status === 200) { |
| | | loading() |
| | | this.$message({ |
| | | type: 'success', |
| | | message: 'æ°å¢æ°æ®æåï¼' |
| | | }) |
| | | done() |
| | | this.$refs.crud.refreshTable() |
| | | this.getDataList() |
| | | } |
| | | }, |
| | | // ç¼è¾ |
| | | async handleEdit(row, index, done, loading) { |
| | | console.log(row) |
| | | const { oid, id, name, description } = row |
| | | const response = await sysInfoEdit({ oid, id, name, description }) |
| | | if (response.status === 200) { |
| | | loading() |
| | | this.$message({ |
| | | type: 'success', |
| | | message: 'ä¿®æ¹æ°æ®æåï¼' |
| | | }) |
| | | done() |
| | | this.getDataList() |
| | | } |
| | | }, |
| | | // å é¤åæ¡ |
| | | handleDelete(row) { |
| | | const { oid } = row |
| | | this.deleteSysInfo({ oids: oid }) |
| | | }, |
| | | // 夿¡æ°æ®å é¤ |
| | | handleDeleteByIds() { |
| | | const { oids } = this.delIds |
| | | if (this.$utilFunc.isEmpty(oids)) { |
| | | this.$message({ |
| | | type: "error", |
| | | message: "请è³å°éæ©ä¸æ¡æ°æ®!" |
| | | }) |
| | | } else { |
| | | this.deleteSysInfo(this.delIds) |
| | | } |
| | | }, |
| | | // å 餿¥å£ |
| | | deleteSysInfo(param) { |
| | | this.$confirm('æ¯å¦ç¡®å®å é¤éæ©çéæç³»ç»?', 'æç¤º', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning' |
| | | }).then(async () => { |
| | | const response = await sysInfoDel(param) |
| | | if (response.status === 200) { |
| | | console.log(response) |
| | | this.$message({ |
| | | type: 'success', |
| | | message: 'å 餿å!' |
| | | }); |
| | | this.getDataList() |
| | | } |
| | | }) |
| | | }, |
| | | // éæ©æ¡å
容鿩å |
| | | handleSelect(event) { |
| | | this.selectValue = event |
| | | if (this.selectValue === 'id') { |
| | | this.search['name'] = '' |
| | | delete this.search['name'] |
| | | } else { |
| | | this.search['id'] = '' |
| | | delete this.search['id'] |
| | | } |
| | | }, |
| | | // enteræç´¢ |
| | | handleEnter() { |
| | | if (this.search[this.selectValue] === '') return |
| | | else this.getDataList() |
| | | |
| | | }, |
| | | // è¾å
¥æ¡æ¸
空 |
| | | handleClear() { |
| | | this.search = {} |
| | | this.getDataList() |
| | | }, |
| | | // å·æ°æé® |
| | | handleRefresh() { |
| | | this.getDataList() |
| | | }, |
| | | handleSizePage(event) { |
| | | this.page.pageSize = event |
| | | }, |
| | | handleCurrentPage(event) { |
| | | this.page.currentPage = event |
| | | }, |
| | | // ç¹å»éæ© |
| | | handleRowClick(row) { |
| | | this.$refs.crud.toggleRowSelection(row, true) |
| | | }, |
| | | // å¤é |
| | | selectionChange(list) { |
| | | console.log(list) |
| | | let newData = list.map(item => { |
| | | const { oid } = item |
| | | return oid |
| | | }) |
| | | this.delIds = { oids: newData.toString() } |
| | | console.log(this.delIds) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | ::v-deep(.avue-crud .el-select) { |
| | | width: 100px !important; |
| | | } |
| | | </style> |
| | |
| | | } |
| | | ] |
| | | }, |
| | | data: [{ |
| | | tableName: '1', |
| | | description: '2' |
| | | }] |
| | | data: [], |
| | | } |
| | | } |
| | | }, |
| | |
| | | this.ifRefreshBtmAddRefresh(); |
| | | }, |
| | | businessEdit(){ |
| | | this.$refs.btmAdd.btmType = this.obj; |
| | | var json = JSON.stringify(this.obj); |
| | | this.$refs.btmAdd.btmType = JSON.parse(json); |
| | | this.$refs.btmAdd.showSubmitDialog = true; |
| | | this.ifRefreshBtmAddRefresh(); |
| | | }, |
| | |
| | | data() { |
| | | return { |
| | | addOption: { |
| | | linkType: {}, |
| | | linkType: { |
| | | attributes:[] |
| | | }, |
| | | }, |
| | | domain: null, |
| | | domainOptions: [], |
| | |
| | | }, |
| | | // æ·»å æé®ç¹å»äºä»¶ |
| | | linkTypeAdd() { |
| | | this.$refs.linkAdd.linkType = {}; |
| | | this.$refs.linkAdd.showSubmitDialog = true; |
| | | }, |
| | | // ç¼è¾æé®ç¹å»äºä»¶ |
| | | linkTypeEdit() { |
| | | this.addOption.linkType = this.obj; |
| | | var linktype = this.obj; |
| | | linktype.fromBtmValues = this.obj.fromBtmTypes; |
| | | linktype.toBtmValues = this.obj.toBtmTypes; |
| | | linktype.attributes = this.obj.attributes; |
| | | var json = JSON.stringify(linktype); |
| | | this.addOption.linkType = JSON.parse(json); |
| | | this.$refs.linkAdd.linkType = this.addOption.linkType; |
| | | this.$refs.linkAdd.showSubmitDialog = true; |
| | | console.log(this.obj); |
| | | }, |
| | | // ä»å·²æä¸è·åæé®ç¹å»äºä»¶ |
| | | selectFromTable() { |
| | |
| | | </el-form-item> |
| | | <el-form-item label="From端类å" label-width="100px"> |
| | | <!-- from端ä¸å¡ç±»åéæ© --> |
| | | <el-select v-model="fromBtmValues" :value="fromBtmTypes" value-key="oid" placeholder="è¯·éæ©From端类å" filterable multiple collapse-tags @change="fromSelectChange"> |
| | | <el-select v-model="linkType.fromBtmValues" :value="linkType.fromBtmTypes" value-key="oid" placeholder="è¯·éæ©From端类å" filterable multiple collapse-tags @change="fromSelectChange"> |
| | | <el-option-group v-for="domain in domainList" :key="domain.id" :label="domain.name"> |
| | | <el-option v-for="item in domain.childList" :key="item.oid" :label="item.id + item.name" |
| | | :value="item"> |
| | |
| | | </el-form-item> |
| | | <el-form-item label="To端类å" label-width="100px"> |
| | | <!-- to端ä¸å¡ç±»åéæ© --> |
| | | <el-select v-model="toBtmValues" :value="toBtmTypes" value-key="oid" placeholder="è¯·éæ©To端类å" filterable multiple collapse-tags @change="toSelectChange"> |
| | | <el-select v-model="linkType.toBtmValues" :value="linkType.toBtmTypes" value-key="oid" placeholder="è¯·éæ©To端类å" filterable multiple collapse-tags @change="toSelectChange"> |
| | | <el-option-group v-for="domain in domainList" :key="domain.id" :label="domain.name"> |
| | | <el-option v-for="item in domain.childList" :key="item.oid" :label="item.id + item.name" |
| | | :value="item"> |
| | |
| | | row.$cellEdit = false; |
| | | }, |
| | | fromSelectChange(dataList){ |
| | | console.log(dataList); |
| | | this.linkType.fromBtmTypes = []; |
| | | var fromBtmName = ""; |
| | | var fromBtmType = ""; |
| | |
| | | }) |
| | | this.linkType.fromBtmTypeName = fromBtmName; |
| | | this.linkType.fromBtmType = fromBtmType; |
| | | console.log(this.linkType); |
| | | }, |
| | | toSelectChange(dataList){ |
| | | console.log(dataList); |
| | |
| | | @row-del="rowDel" |
| | | @refresh-change="refreshChange" |
| | | @search-reset="searchChange" |
| | | @search-change="searchChange"> |
| | | @search-change="searchChange" |
| | | @row-click="rowClick"> |
| | | <template slot="menuLeft"> |
| | | <el-tooltip class="item" effect="dark" content="æ¥æ¾çæ¬è§å使ç¨èå´" placement="top"> |
| | | <el-button size="small" |
| | | plain |
| | | type="primary" |
| | | icon="el-icon-zoom-in" |
| | | @click="handleSearch">æ¥ç使ç¨èå´ |
| | | @click="applyRangeSearch">æ¥ç使ç¨èå´ |
| | | </el-button> |
| | | </el-tooltip> |
| | | </template>> |
| | | </template> |
| | | <template slot="radio" |
| | | slot-scope="{row}"> |
| | | <el-radio v-model="selectRow" |
| | | :label="row.$index"> |
| | | </el-radio> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog title="æ¥ç使ç¨èå´" |
| | | append-to-body |
| | | :visible.sync="packageSearchBox" |
| | | width="1200px"> |
| | | <versionpackage></versionpackage> |
| | | </el-dialog> |
| | | <versionpackage :rangeData="applyRangeData" ref="applyRange"></versionpackage> |
| | | </basic-container> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getPage,add,update,remove } from '../../api/omd/revisionRule'; |
| | | import { getPage,add,update,remove,getAppayRange } from '../../api/omd/revisionRule'; |
| | | export default { |
| | | name: "Version", |
| | | data(){ |
| | | return { |
| | | //æ¥ç使ç¨èå´ |
| | | packageSearchBox:false, |
| | | // ç¹å»æ°æ® |
| | | selectRow: '', |
| | | selectRowData: {}, |
| | | //åé¡µæ°æ® |
| | | page: { |
| | | pageSize: 10, |
| | |
| | | border: true, |
| | | index: true, |
| | | searchMenuSpan:5, |
| | | highlightCurrentRow: true, |
| | | stripe:true, |
| | | column:[ |
| | | { |
| | | label: '', |
| | | prop: 'radio', |
| | | width: 120 |
| | | }, |
| | | { |
| | | label:'è±æåç§°', |
| | | prop: 'id' |
| | |
| | | type:"textarea" |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | applyRangeData: [] |
| | | } |
| | | }, |
| | | methods:{ |
| | | handleSearch(){ |
| | | this.packageSearchBox=true |
| | | // è¡ç¹å» |
| | | rowClick(row){ |
| | | this.selectRow = row.$index; |
| | | this.selectRowData = row; |
| | | }, |
| | | // æ¥çåºç¨èå´ |
| | | applyRangeSearch(){ |
| | | if (!this.selectRow && this.selectRow != 0){ |
| | | console.log(this.selectRow); |
| | | this.$message({ |
| | | type:"warning", |
| | | message: "请å
鿩屿§" |
| | | }) |
| | | } |
| | | getAppayRange(this.selectRowData.id).then(res => { |
| | | this.applyRangeData = res.data.data; |
| | | this.$refs.applyRange.rangeData = this.applyRangeData; |
| | | this.$refs.applyRange.showDialog = true; |
| | | }) |
| | | // this.packageSearchBox=true |
| | | }, |
| | | getList() { |
| | | this.loading = true; |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud ref="crud" |
| | | v-model="form" |
| | | :data="data" |
| | | :option="option" |
| | | @on-load="getList" |
| | | @refresh-change="refreshChange" |
| | | @search-change="searchChange" |
| | | > |
| | | </avue-crud> |
| | | </basic-container> |
| | | <el-dialog title="æ¥çåºç¨èå´" :visible.sync="showDialog" append-to-body @close="closeDialog" width="65%" |
| | | style="height: 115vh;"> |
| | | <basic-container> |
| | | <avue-crud ref="crud" :data="rangeData" :option="option"> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "Versionpackage.vue", |
| | | data(){ |
| | | return { |
| | | props: { |
| | | rangeData: { |
| | | type: Array |
| | | }, |
| | | |
| | | data:[ |
| | | { |
| | | name:"æµè¯1", |
| | | source:"æµè¯1", |
| | | shows:"æµè¯1" |
| | | }, |
| | | { |
| | | name:"æµè¯2", |
| | | source:"æµè¯2", |
| | | shows:"æµè¯2" |
| | | }, |
| | | { |
| | | name:"æµè¯3", |
| | | source:"æµè¯3", |
| | | shows:"æµè¯3" |
| | | }, |
| | | { |
| | | name:"æµè¯4", |
| | | source:"æµè¯4", |
| | | shows:"æµè¯4" |
| | | }, |
| | | ], |
| | | form:{}, |
| | | option:{ |
| | | height:300, |
| | | headerAlign:'center', |
| | | }, |
| | | data() { |
| | | return { |
| | | showDialog: false, |
| | | option: { |
| | | height: 300, |
| | | headerAlign: 'center', |
| | | align: 'center', |
| | | border: true, |
| | | menu: false, |
| | | index: true, |
| | | searchMenuSpan:6, |
| | | addBtn:false, |
| | | indexFixed:false, |
| | | menuFixed:false, |
| | | column:[ |
| | | { |
| | | label:"åç§°", |
| | | prop:"name", |
| | | }, |
| | | { |
| | | label:"æ¥æº", |
| | | prop:"source", |
| | | search:true |
| | | }, |
| | | { |
| | | label:"说æ", |
| | | prop:"shows", |
| | | }, |
| | | addBtn: false, |
| | | indexFixed: false, |
| | | menuFixed: false, |
| | | header: false, |
| | | highlightCurrentRow: true, |
| | | column: [{ |
| | | label: 'è±æåç§°', |
| | | prop: 'id' |
| | | }, |
| | | { |
| | | label: '䏿åç§°', |
| | | prop: 'name', |
| | | }, |
| | | { |
| | | label: 'æå±é¢å', |
| | | prop: 'domainText', |
| | | },{ |
| | | label: 'æ°æ®è¡¨å', |
| | | prop: 'tableName', |
| | | width: 200 |
| | | }, |
| | | { |
| | | label: '说æ', |
| | | prop: 'descirption', |
| | | }, |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | methods:{ |
| | | // getList () { |
| | | // this.loading = true; |
| | | // const data = Object.assign({ |
| | | // pageNum: this.page.currentPage, |
| | | // pageSize: this.page.pageSize, |
| | | // }, this.params) |
| | | // this.data = []; |
| | | // getList(data).then(res => { |
| | | // const data = res.data.data |
| | | // this.loading = false; |
| | | // this.page.total = data.total; |
| | | // const result = data.list; |
| | | // this.data = result; |
| | | // }) |
| | | // }, |
| | | //æç´¢ |
| | | searchChange(params, done) { |
| | | if (done) done(); |
| | | this.params = params; |
| | | this.page.currentPage = 1; |
| | | this.getList(); |
| | | this.$message.success('æç´¢æå') |
| | | methods: { |
| | | closeDialog() { |
| | | this.rangeData = []; |
| | | this.showDialog = false; |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| | |
| | | <template> |
| | | <classifyTrees :crudData="crudTreeData" :crudoption="crudTreeOption" :data="Treedata" |
| | | :option="Treeoption" |
| | | <classifyTrees :crudData="crudTreeData" |
| | | ></classifyTrees> |
| | | </template> |
| | | |
| | |
| | | //ç¶ä¼ åæé®é¢ï¼ææ¶æ²¡è§£å³ï¼ç¨provide代æ¿ç¶ä¼ åï¼åä¼ ç¶è¿æ¯ç¨$emitä¼ éï¼æ³¨æï¼ï¼ï¼å
¶ä»ç»ä»¶ä¸è½ä½¿ç¨åæ ·çç±»åå¦å伿¥éã |
| | | provide() { |
| | | return { |
| | | crudTreeOption: { |
| | | index: true, |
| | | border: true, |
| | | height:180, |
| | | column: [ |
| | | { |
| | | label: "模æ¿ç¼å·", |
| | | prop: "id" |
| | | }, |
| | | { |
| | | label:"模æ¿åç§°", |
| | | prop:"name" |
| | | }, |
| | | { |
| | | label: "æ¨¡æ¿æè¿°", |
| | | prop:"description" |
| | | }, |
| | | { |
| | | label:"çæ¬å·", |
| | | prop:"revisionSeq" |
| | | }, |
| | | { |
| | | label:"ç¶æ", |
| | | prop:"lcStatusText" |
| | | } |
| | | ] |
| | | }, |
| | | crudTreeData: this.crudTreeData, |
| | | } |
| | | |
| | |
| | | <el-container> |
| | | <el-main> |
| | | <basic-container> |
| | | <avue-crud v-model="form" |
| | | ref="crud" |
| | | :option="option" |
| | | :data="data" |
| | | @on-load="onLoad" |
| | | :page.sync="page" |
| | | @refresh-change="refreshChange" |
| | | @row-click="rowClick"> |
| | | <template slot="radio" |
| | | slot-scope="{row}"> |
| | | <el-radio v-model="selectRow" |
| | | :label="row.$index"> |
| | | </el-radio> |
| | | </template> |
| | | <template slot="menu"> |
| | | <el-button icon="el-icon-edit" size="small" type="text" @click="updateSave">ç¼è¾</el-button> |
| | | <el-button icon="el-icon-delete" size="small" type="text" @click="deleteSave">å é¤</el-button> |
| | | <avue-crud v-model="form" ref="crud" :option="option" :data="data" @on-load="onLoad" :page.sync="page" |
| | | @refresh-change="refreshChange" @row-click="rowClick"> |
| | | <template slot="radio" slot-scope="{row}"> |
| | | <el-radio v-model="selectRow" :label="row.$index"> |
| | | </el-radio> |
| | | </template> |
| | | <template slot="menuLeft"> |
| | | <el-button size="small" |
| | | type="primary" |
| | | icon="el-icon-plus" |
| | | @click="addSave">æ° å¢ |
| | | <template slot="menu"> |
| | | <el-button icon="el-icon-edit" size="small" type="text" @click="updateSave">ç¼è¾</el-button> |
| | | <el-button icon="el-icon-delete" size="small" type="text" @click="deleteSave">å é¤</el-button> |
| | | </template> |
| | | <template slot="menuLeft"> |
| | | <el-button size="small" type="primary" icon="el-icon-plus" @click="addSave">æ° å¢ |
| | | </el-button> |
| | | <el-button size="small" |
| | | plain |
| | | type="primary" |
| | | icon="el-icon-zoom-in" |
| | | @click="applyRangeOpen">æ¥ç使ç¨èå´ |
| | | <el-button size="small" plain type="primary" icon="el-icon-zoom-in" @click="applyRangeOpen">æ¥ç使ç¨èå´ |
| | | </el-button> |
| | | </template> |
| | | <template slot="typeValue" slot-scope="{row}"> |
| | | <el-tag>{{ row.typeValue }}</el-tag> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog :visible.sync="applyRange.display" append-to-body :title="applyRange.title" width="600px" |
| | | <!-- <el-dialog :visible.sync="applyRange.display" append-to-body :title="applyRange.title" width="600px" |
| | | @close="applyRangeClose"> |
| | | <avue-crud v-model="applyRange.model" :option="applyRange.option" :data="applyRange.data" class="applyRangeTable" |
| | | ></avue-crud> |
| | | </el-dialog> |
| | | </el-dialog> --> |
| | | <Versionpackage :rangeData="applyRangeData" ref="applyRange"></Versionpackage> |
| | | </basic-container> |
| | | </el-main> |
| | | <el-aside> |
| | | <basic-container class="itemForm"> |
| | | <el-descriptions class="margin-top" :column="1" size="medium" border title="屿§é¡¹"> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | 屿§ç¼å· |
| | | </template> |
| | | {{ itemForm.itemData.id }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | 屿§åç§° |
| | | </template> |
| | | {{ itemForm.itemData.name }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | 屿§ç±»å |
| | | </template> |
| | | {{ itemForm.itemData.typeValue }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | æ ç¾ |
| | | </template> |
| | | {{ itemForm.itemData.hashtag }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | é»è®¤å¼ |
| | | </template> |
| | | {{ itemForm.itemData.defaultValue }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | å
许为空 |
| | | </template> |
| | | {{ itemForm.itemData.nullable }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | é¿åº¦ |
| | | </template> |
| | | {{ itemForm.itemData.maxLength }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | æè¿° |
| | | </template> |
| | | {{ itemForm.itemData.description }} |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <div style="height:15px"></div> |
| | | <el-descriptions class="margin-top" :column="1" size="medium" border title="屿§é¡¹"> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | 屿§ç¼å· |
| | | </template> |
| | | {{ itemForm.itemData.id }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | 屿§åç§° |
| | | </template> |
| | | {{ itemForm.itemData.name }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | 屿§ç±»å |
| | | </template> |
| | | {{ itemForm.itemData.typeValue }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | æ ç¾ |
| | | </template> |
| | | {{ itemForm.itemData.hashtag }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | é»è®¤å¼ |
| | | </template> |
| | | {{ itemForm.itemData.defaultValue }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | å
许为空 |
| | | </template> |
| | | {{ itemForm.itemData.nullable }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | é¿åº¦ |
| | | </template> |
| | | {{ itemForm.itemData.maxLength }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | æè¿° |
| | | </template> |
| | | {{ itemForm.itemData.description }} |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <div style="height:15px"></div> |
| | | <el-descriptions class="margin-top" :column="1" size="medium" border title="屿§é
ç½®"></el-descriptions> |
| | | <el-tabs v-model="itemForm.activeName" @tab-click="handleClick" stretch="true" style="height:235px"> |
| | | <el-tab-pane label="åç
§" name="referTab"> |
| | | <el-tab-pane label="åç
§" name="referTab"> |
| | | <el-descriptions class="margin-top" :column="1" size="medium" border> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | |
| | | add, |
| | | update, getPage, getApplyRange |
| | | } from "@/api/omd/OmdAttribute"; |
| | | import Versionpackage from "./Versionpackage.vue"; |
| | | |
| | | export default { |
| | | name: "original", |
| | | data() { |
| | | return { |
| | | return { |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 100 |
| | | }, |
| | | selectRow: '', |
| | | selectRow: "", |
| | | data: [], |
| | | form:{}, |
| | | form: {}, |
| | | attribute: { |
| | | nullable: true |
| | | }, |
| | | applyRangeData: [], |
| | | option: { |
| | | height: "550px", |
| | | headerAlign: 'center', |
| | | headerAlign: "center", |
| | | border: true, |
| | | index: true, |
| | | rowKey: 'id', |
| | | rowKey: "id", |
| | | tabs: true, |
| | | stripe:true, |
| | | stripe: true, |
| | | indexFixed: false, |
| | | menuWidth: 150, |
| | | highlightCurrentRow: true, |
| | | addBtn:false, |
| | | editBtn:false, |
| | | delBtn:false, |
| | | addBtn: false, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | column: [{ |
| | | label: 'éæ©', |
| | | prop: 'radio', |
| | | width: 60, |
| | | hide: false, |
| | | display: false |
| | | }, |
| | | { |
| | | label: '屿§ç¼å·', |
| | | prop: 'id', |
| | | align: 'left', |
| | | display: false, |
| | | width: 200, |
| | | required: true |
| | | label: "éæ©", |
| | | prop: "radio", |
| | | width: 60, |
| | | hide: false, |
| | | display: false |
| | | }, { |
| | | label: "屿§ç¼å·", |
| | | prop: "id", |
| | | align: "left", |
| | | display: false, |
| | | width: 200, |
| | | required: true |
| | | }, { |
| | | label: "屿§åç§°", |
| | | prop: "name", |
| | | align: "left", |
| | | display: false |
| | | }, { |
| | | label: "æ ç¾", |
| | | prop: "hashtag", |
| | | // hide: true, |
| | | display: false |
| | | }, { |
| | | label: "æ¯å¦ä½¿ç¨æä¸¾", |
| | | prop: "usingDict", |
| | | type: "switch", |
| | | hide: true, |
| | | labelWidth: 132, |
| | | display: false, |
| | | dicData: [{ |
| | | label: "æ¯", |
| | | value: "true" |
| | | }, { |
| | | label: '屿§åç§°', |
| | | prop: 'name', |
| | | align: 'left', |
| | | display: false |
| | | }, |
| | | { |
| | | label: 'æ ç¾', |
| | | prop: 'hashtag', |
| | | // hide: true, |
| | | display: false |
| | | }, |
| | | { |
| | | label: 'æ¯å¦ä½¿ç¨æä¸¾', |
| | | prop: 'usingDict', |
| | | type: 'switch', |
| | | hide: true, |
| | | labelWidth: 132, |
| | | display: false, |
| | | dicData: [{ |
| | | label: 'æ¯', |
| | | value: 'true' |
| | | }, { |
| | | label: 'å¦', |
| | | value: 'false' |
| | | }] |
| | | }, |
| | | { |
| | | label: '屿§ç±»å', |
| | | prop: 'typeValue', |
| | | display: false, |
| | | // hide: true |
| | | }, |
| | | { |
| | | label: 'é»è®¤å¼', |
| | | prop: 'defaultValue', |
| | | display: false |
| | | }, |
| | | { |
| | | label: 'å
许为空', |
| | | prop: 'nullable', |
| | | type: 'switch', |
| | | display: false, |
| | | hide: true, |
| | | labelWidth: 132, |
| | | dicData: [{ |
| | | label: 'å¦', |
| | | value: 'false' |
| | | }, { |
| | | label: 'æ¯', |
| | | value: 'true' |
| | | }] |
| | | }, |
| | | { |
| | | label: "é¿åº¦", |
| | | prop: "maxLength", |
| | | hide: true, |
| | | display: false |
| | | }, |
| | | { |
| | | label: 'æè¿°', |
| | | prop: 'description', |
| | | type: "textarea", |
| | | display: false |
| | | }, |
| | | label: "å¦", |
| | | value: "false" |
| | | }] |
| | | }, { |
| | | label: "屿§ç±»å", |
| | | prop: "typeValue", |
| | | display: false, |
| | | // hide: true |
| | | }, { |
| | | label: "é»è®¤å¼", |
| | | prop: "defaultValue", |
| | | display: false |
| | | }, { |
| | | label: "å
许为空", |
| | | prop: "nullable", |
| | | type: "switch", |
| | | display: false, |
| | | hide: true, |
| | | labelWidth: 132, |
| | | dicData: [{ |
| | | label: "å¦", |
| | | value: "false" |
| | | }, { |
| | | label: "æ¯", |
| | | value: "true" |
| | | }] |
| | | }, { |
| | | label: "é¿åº¦", |
| | | prop: "maxLength", |
| | | hide: true, |
| | | display: false |
| | | }, { |
| | | label: "æè¿°", |
| | | prop: "description", |
| | | type: "textarea", |
| | | display: false |
| | | }, |
| | | ] |
| | | }, |
| | | applyRange: { |
| | | model: "", |
| | | title: "åºç¨çä¸å¡ç±»å", |
| | | option: { |
| | | height: 360, |
| | | addBtn: false, |
| | | refreshBtn: false, |
| | | columnBtn: false, |
| | | menu: false, |
| | | border: true, |
| | | reserveSelection: true, |
| | | searchMenuSpan:8, |
| | | searchShowBtn: false, |
| | | highlightCurrentRow: true, |
| | | column: [ |
| | | { |
| | | label: 'ä¸å¡ç±»åç¼å·', |
| | | prop: 'id', |
| | | align: 'left', |
| | | }, |
| | | { |
| | | label: 'ä¸å¡ç±»ååç§°', |
| | | prop: 'name', |
| | | align: 'left', |
| | | }, |
| | | ] |
| | | }, |
| | | data: [], |
| | | display: false, |
| | | }, |
| | | itemForm:{ |
| | | itemForm: { |
| | | itemData: {}, |
| | | activeName: 'referTab', |
| | | form:{} |
| | | activeName: "referTab", |
| | | form: {} |
| | | } |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | methods: { |
| | | refreshChange() { |
| | | this.onLoad(this.pageParent, this.query); |
| | | }, |
| | | addSave(){ |
| | | addSave() { |
| | | this.$refs.originalAdd.showSubmitDialog = true; |
| | | this.$refs.originalAdd.attribute = {}; |
| | | }, |
| | | updateSave(){ |
| | | updateSave() { |
| | | this.$refs.originalAdd.showSubmitDialog = true; |
| | | this.$refs.originalAdd.attribute = this.attribute; |
| | | }, |
| | | deleteSave(){ |
| | | deleteSave() { |
| | | remove(this.itemForm.itemData).then(res => { |
| | | this.$message.success("å 餿å"); |
| | | }) |
| | | }); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | this.loading = false; |
| | | this.data = res.data.data.records |
| | | this.data = res.data.data.records; |
| | | this.itemData = this.data[0]; |
| | | }) |
| | | }); |
| | | }, |
| | | rowClick(row) { |
| | | this.itemForm.itemData = row; |
| | | this.selectRow = row.$index; |
| | | this.attribute = row; |
| | | } |
| | | ,selectBtmType(){ |
| | | this.referType.display = true; |
| | | this.referType.title = "è¯·éæ©" + this.referType.value |
| | | }, |
| | | applyRangeOpen(){ |
| | | if (!this.selectRow){ |
| | | this.$message({ |
| | | type:"warning", |
| | | message: "请å
鿩屿§" |
| | | }) |
| | | } |
| | | var oid = this.data[this.selectRow].oid; |
| | | getApplyRange(oid).then(res => { |
| | | this.applyRange.data = res.data.data; |
| | | }) |
| | | this.applyRange.display = true; |
| | | selectBtmType() { |
| | | this.referType.display = true; |
| | | this.referType.title = "è¯·éæ©" + this.referType.value; |
| | | }, |
| | | applyRangeClose(){ |
| | | this.applyRange.data = []; |
| | | this.applyRange.display = false; |
| | | } |
| | | applyRangeOpen() { |
| | | if (!this.selectRow && this.selectRow != 0) { |
| | | this.$message({ |
| | | type: "warning", |
| | | message: "请å
鿩屿§" |
| | | }); |
| | | } |
| | | var oid = this.data[this.selectRow].oid; |
| | | getApplyRange(oid).then(res => { |
| | | this.applyRangeData = res.data.data; |
| | | this.$refs.applyRange.rangeData = this.applyRangeData; |
| | | this.$refs.applyRange.showDialog = true; |
| | | |
| | | }); |
| | | }, |
| | | }, |
| | | components: { Versionpackage } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | .applyRangeTable > .el-card:nth-of-type(2) > .el-card__body > .avue-crud__menu{ |
| | | display: none !important; |
| | | .applyRangeTable>.el-card:nth-of-type(2)>.el-card__body>.avue-crud__menu { |
| | | display: none !important; |
| | | } |
| | | </style> |
| | |
| | | search: true |
| | | }, |
| | | { |
| | | label:"䏿åç§°", |
| | | prop:"name", |
| | | label:'䏿åç§°', |
| | | prop:'name', |
| | | search:true, |
| | | }, |
| | | { |
| | | label: "æè¿°", |
| | | prop:"description", |
| | | type:"textarea" |
| | | label: 'æè¿°', |
| | | prop:'description', |
| | | type:'textarea' |
| | | } |
| | | ] |
| | | } |
| | |
| | | }, |
| | | methods:{ |
| | | handleSearch(){ |
| | | this.packageSearchBox=true |
| | | // this.packageSearchBox=true |
| | | }, |
| | | getList() { |
| | | this.loading = true; |
| | |
| | | proxy: { |
| | | '/api': { |
| | | //æ¬å°æå¡æ¥å£å°å |
| | | target: 'http://localhost:37000', |
| | | // target: 'http://localhost:37000', |
| | | //target: 'http://192.168.1.51:37000', |
| | | //target: 'http://192.168.3.7:37000', |
| | | // target: 'http://localhost:37000', |
| | | // target: 'http://192.168.1.51:37000', |
| | | target: 'http://192.168.1.46:37000', |
| | | // target: 'http://dev.vci-tech.com:37000', |
| | | // target: 'http://192.168.1.51:37000/', |
| | | // target: 'http://localhost:37000', |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.vci.ubcs.starter.annotation.Transient; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | /** |
| | | * ç¸ä¼¼é¡¹ |
| | | * @author weidy |
| | | * @date 2022-1-14 |
| | | */ |
| | | //@VciBtmType(name = MdmBtmTypeConstant.CODE_CLASSIFY,text = "主é¢åºåç±»",lifeCycle = FrameWorkLcStatusConstant.FRAME_WORK_LIFE_CYCLE_NAME) |
| | | @Data |
| | | @TableName("PL_CODE_RESEMBLERULE") |
| | | @ApiModel(value = "CodeResemblerule对象", description = "ç¸ä¼¼é¡¹") |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class CodeResembleRule extends BaseModel { |
| | | |
| | | /** |
| | | * åºåå |
| | | */ |
| | | private static final long serialVersionUID = 7375719926432663351L; |
| | | |
| | | /** |
| | | * æ¯å¦å¿½ç¥å¤§å°å |
| | | */ |
| | | // @Column(columnDefinition = "æ¯å¦å¿½ç¥å¤§å°å") |
| | | private String ignoreCaseFlag; |
| | | |
| | | /** |
| | | * æ¯å¦å¿½ç¥ç©ºæ ¼ |
| | | */ |
| | | // @Column(columnDefinition = "æ¯å¦å¿½ç¥ç©ºæ ¼") |
| | | private String ignoreSpaceFlag; |
| | | |
| | | /** |
| | | * æ¯å¦å¿½ç¥å
¨é¨ç©ºæ ¼ |
| | | */ |
| | | // @Column(columnDefinition = "æ¯å¦å¿½ç¥å
¨é¨ç©ºæ ¼") |
| | | private String ignoreAllSpaceFlag; |
| | | |
| | | /** |
| | | * æ¯å¦å¿½ç¥å
¨åè§ |
| | | */ |
| | | // @Column(columnDefinition = "æ¯å¦å¿½ç¥å
¨åè§") |
| | | private String ignoreWidthFlag; |
| | | |
| | | /** |
| | | * è¿æ¥ç¬¦ |
| | | */ |
| | | // @Column(columnDefinition = "è¿æ¥ç¬¦",length = 200) |
| | | private String linkCharacter; |
| | | |
| | | public String getIgnoreWidthFlag() { |
| | | return ignoreWidthFlag; |
| | | } |
| | | |
| | | public void setIgnoreWidthFlag(String ignoreWidthFlag) { |
| | | this.ignoreWidthFlag = ignoreWidthFlag; |
| | | } |
| | | |
| | | public String getIgnoreCaseFlag() { |
| | | return ignoreCaseFlag; |
| | | } |
| | | |
| | | public void setIgnoreCaseFlag(String ignoreCaseFlag) { |
| | | this.ignoreCaseFlag = ignoreCaseFlag; |
| | | } |
| | | |
| | | public String getIgnoreSpaceFlag() { |
| | | return ignoreSpaceFlag; |
| | | } |
| | | |
| | | public void setIgnoreSpaceFlag(String ignoreSpaceFlag) { |
| | | this.ignoreSpaceFlag = ignoreSpaceFlag; |
| | | } |
| | | |
| | | public String getIgnoreAllSpaceFlag() { |
| | | return ignoreAllSpaceFlag; |
| | | } |
| | | |
| | | public void setIgnoreAllSpaceFlag(String ignoreAllSpaceFlag) { |
| | | this.ignoreAllSpaceFlag = ignoreAllSpaceFlag; |
| | | } |
| | | |
| | | |
| | | public String getLinkCharacter() { |
| | | return linkCharacter; |
| | | } |
| | | |
| | | public void setLinkCharacter(String linkCharacter) { |
| | | this.linkCharacter = linkCharacter; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "CodeResembleRuleDO{" + |
| | | " ignoreCaseFlag='" + ignoreCaseFlag + '\'' + |
| | | ", ignoreSpaceFlag='" + ignoreSpaceFlag + '\'' + |
| | | ", ignoreAllSpaceFlag='" + ignoreAllSpaceFlag + '\'' + |
| | | ", ignoreWidthFlag='" + ignoreWidthFlag + '\'' + |
| | | ", linkCharacter='" + linkCharacter + '\'' + |
| | | "} " + super.toString(); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | String API_PREFIX = "/client"; |
| | | String MENU = API_PREFIX + "/menu"; |
| | | String MENU_BUTTON = API_PREFIX + "/menu-button"; |
| | | String DEPT = API_PREFIX + "/dept"; |
| | | String DEPT_IDS = API_PREFIX + "/dept-ids"; |
| | | String DEPT_IDS_FUZZY = API_PREFIX + "/dept-ids-fuzzy"; |
| | |
| | | R<Menu> getMenu(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * è·åèåä¸é¢çæé® |
| | | * |
| | | * @param btmType ä¸å¡ç±»å |
| | | * @return List<Menu> |
| | | */ |
| | | @GetMapping(MENU_BUTTON) |
| | | R<List<Menu>> getMenuButtonByType(@RequestParam("btmType") String btmType); |
| | | |
| | | /** |
| | | * è·åé¨é¨ |
| | | * |
| | | * @param id ä¸»é® |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R<List<Menu>> getMenuButtonByType(String btmType) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | | |
| | | @Override |
| | | public R<Dept> getDept(Long id) { |
| | | return R.fail("è·åæ°æ®å¤±è´¥"); |
| | | } |
| | |
| | | </exclusion> |
| | | </exclusions> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <artifactId>ubcs-user-api</artifactId> |
| | | <version>3.0.1.RELEASE</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <artifactId>ubcs-system-api</artifactId> |
| | | <version>3.0.1.RELEASE</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | <!--<dependency> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <artifactId>ubcs-webservice</artifactId> |
| | |
| | | import com.vci.ubcs.code.wrapper.CodeRuleWrapper; |
| | | import com.vci.ubcs.code.wrapper.DockingSystemConfigWrapper; |
| | | import com.vci.ubcs.code.wrapper.DockingSystemWrapper; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | /** |
| | | * å é¤ç³»ç»éæçç³»ç»ä¿¡æ¯ |
| | | * @param dockingSystemDTO ç³»ç»éæçç³»ç»ä¿¡æ¯æ°æ®ä¼ è¾å¯¹è±¡ï¼oidåtséè¦ä¼ è¾ |
| | | * @param oids ç³»ç»éæçç³»ç»ä¿¡æ¯æ°æ®ä¼ è¾å¯¹è±¡ï¼oidåtséè¦ä¼ è¾ |
| | | * @return å é¤ç»æåé¦ï¼ï¼successï¼æåï¼failï¼å¤±è´¥ |
| | | */ |
| | | @DeleteMapping( "/deleteData") |
| | | public R delSystemData( DockingSystemDTO dockingSystemDTO) { |
| | | return R.status(dockingSystemService.delSystemData(dockingSystemDTO)); |
| | | @DeleteMapping( "/deleteDataById") |
| | | public R deleteDataById( String oids) { |
| | | try { |
| | | return R.status(dockingSystemService.deleteDataById(oids)); |
| | | }catch (VciBaseException e){ |
| | | R.fail(e.getMessage()); |
| | | } |
| | | return R.success("æä½æå"); |
| | | } |
| | | /** |
| | | * ç³»ç»éæåºç¡ä¿¡æ¯å表 |
| | |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | | //@AllArgsConstructor |
| | |
| | | String excelFileName = LocalFileUtil.getDefaultTempFolder() + File.separator + LocalFileUtil.getFileNameForIE(file.getOriginalFilename()); |
| | | File file1 = new File(excelFileName); |
| | | try { |
| | | // file.transferTo(new File(excelFileName)); |
| | | // CodeImProtRusultVO codeImProtRusultVO = mdmIOService.batchImportCode(orderDTO,file1); |
| | | // if(StringUtils.isNotBlank(codeImProtRusultVO.getFilePath())||StringUtils.isNotBlank(codeImProtRusultVO.getRedisUuid())){ |
| | | // //æ¾å°mapé |
| | | // R result = R.fail("导å
¥å¤±è´¥"); |
| | | // if(StringUtils.isNotBlank(codeImProtRusultVO.getFilePath())) { |
| | | // String filedUUid = ControllerUtil.putErrorFile(codeImProtRusultVO.getFilePath()); |
| | | // codeImProtRusultVO.setFileOid(filedUUid); |
| | | // } |
| | | // result.setData(codeImProtRusultVO); |
| | | // return result; |
| | | // }else { |
| | | // return R.success("æä½æåï¼"); |
| | | // } |
| | | file.transferTo(new File(excelFileName)); |
| | | CodeImProtRusultVO codeImProtRusultVO = mdmIOService.batchImportCode(orderDTO,file1); |
| | | if(StringUtils.isNotBlank(codeImProtRusultVO.getFilePath())||StringUtils.isNotBlank(codeImProtRusultVO.getRedisUuid())){ |
| | | //æ¾å°mapé |
| | | R result = R.fail("导å
¥å¤±è´¥"); |
| | | if(StringUtils.isNotBlank(codeImProtRusultVO.getFilePath())) { |
| | | String filedUUid = ControllerUtil.putErrorFile(codeImProtRusultVO.getFilePath()); |
| | | codeImProtRusultVO.setFileOid(filedUUid); |
| | | } |
| | | result.setData(codeImProtRusultVO); |
| | | return result; |
| | | }else { |
| | | return R.success("æä½æåï¼"); |
| | | } |
| | | }catch (Throwable e) { |
| | | logger.error("导å
¥é误",e); |
| | | String errorFile = LocalFileUtil.getDefaultTempFolder() + File.separator + "é误.txt"; |
| | |
| | | }finally { |
| | | file1.delete(); |
| | | } |
| | | return null; |
| | | // return null; |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | @GetMapping("/thisistest") |
| | | @ResponseBody |
| | | public List<BaseModel> thisistest(String codeClassifyOid, String functionId) throws Exception { |
| | | return engineService.selectByTypeAndOid("wupin", "b1511bb3-a773-43e2-ac85-a7fde7314a0f,3e08970024835e69f6c2b2ecd90c48c3,582ff205-0dfb-43e0-8223-e772ff1851ab,db0400fe-cc90-4d9d-8da7-1edf06b1481b"); |
| | | public Integer thisistest(String codeClassifyOid, String functionId) throws Exception { |
| | | // return engineService.selectByTypeAndOid("wupin", "b1511bb3-a773-43e2-ac85-a7fde7314a0f,3e08970024835e69f6c2b2ecd90c48c3,582ff205-0dfb-43e0-8223-e772ff1851ab,db0400fe-cc90-4d9d-8da7-1edf06b1481b"); |
| | | |
| | | List<BaseModel> models = new ArrayList<>(); |
| | | BaseModel baseModel = new BaseModel(); |
| | | Map<String,String > map = new HashMap<>(); |
| | | map.put("JZL","6789"); |
| | | map.put("JZRXX","67891"); |
| | | map.put("JZXZB","67892"); |
| | | map.put("JSZGL","67893"); |
| | | map.put("JSSXT","67894"); |
| | | baseModel.setBtmname("djii"); |
| | | baseModel.setCreator("fjivis"); |
| | | baseModel.setId("vcia"); |
| | | baseModel.setOid("0d86b1ba-9e9e-4d3d-9ae4-f862c3684e74"); |
| | | baseModel.setCreateTime(new Date()); |
| | | baseModel.setTs(new Date()); |
| | | baseModel.setData(map); |
| | | models.add(baseModel); |
| | | |
| | | BaseModel baseModel1 = new BaseModel(); |
| | | Map<String,String > map1 = new HashMap<>(); |
| | | map1.put("JZL","6789z"); |
| | | map1.put("JZRXX","67891z"); |
| | | map1.put("JZXZB","67892z"); |
| | | map1.put("JSZGL","67893z"); |
| | | map1.put("JSSXT","67894z"); |
| | | baseModel1.setBtmname("djiiz"); |
| | | baseModel1.setCreator("fjivisz"); |
| | | baseModel1.setId("vciaz"); |
| | | baseModel1.setTs(new Date()); |
| | | baseModel1.setOid("4a00be07-f5a8-4a9b-88fb-d52a0d9cf546"); |
| | | baseModel1.setCreateTime(new Date()); |
| | | baseModel1.setData(map1); |
| | | models.add(baseModel1); |
| | | |
| | | BaseModel baseModel2 = new BaseModel(); |
| | | Map<String,String > map2 = new HashMap<>(); |
| | | map2.put("JZL","67892"); |
| | | map2.put("JZRXX","678912"); |
| | | map2.put("JZXZB","678922"); |
| | | map2.put("JSZGL","678932"); |
| | | map2.put("JSSXT","678942"); |
| | | baseModel2.setBtmname("djii2"); |
| | | baseModel2.setCreator("fjivis2"); |
| | | baseModel2.setTs(new Date()); |
| | | baseModel2.setId("vcia2"); |
| | | baseModel2.setOid("fa430ff9-f141-4dcf-8809-6f87905c1dea"); |
| | | baseModel2.setCreateTime(new Date()); |
| | | baseModel2.setData(map2); |
| | | models.add(baseModel2); |
| | | |
| | | return 0; |
| | | |
| | | |
| | | |
| | | // return engineService.updateBatchByBaseModel("wupin", models); |
| | | // return engineService.getUIInfoByClassifyOid(codeClassifyOid,functionId); |
| | | } |
| | | } |
| | |
| | | /** |
| | | * æ¥æ¾æ å½¢ç»æ |
| | | * |
| | | * @return æ°æ®éå |
| | | */ |
| | | List<CodeClassify> selectCodeClassifyDOByTree(@Param("id") String id,@Param("lcstatus") String lcstatus,@Param("parentcodeclassifyoid") String parentcodeclassifyoid); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ°æ®ä¸PL_CODE_KEYATTRREPEATãPL_CODE_RESEMBLERULEãPL_CODE_RULEèæ¥ |
| | | * |
| | | * @param oids åç±»çä¸»é® |
| | | * @return æ°æ®éå |
| | | */ |
| | | List<CodeClassify> selectClassifyByKeyAndReseRel(@Param("oids") String oids); |
| | | |
| | | /** |
| | | * æ¥æ¾æ å½¢ç»æ |
| | | * |
| | | * @param oid åç±»çä¸»é® |
| | | * @return æ°æ®éå |
| | | */ |
| | |
| | | |
| | | List<CodeClassifyTemplateAttr> selectRefByOid(String oid); |
| | | |
| | | /** |
| | | * æ¡ä»¶,å
³èæ¥è¯¢æåº |
| | | * |
| | | * @param classifytemplateoids |
| | | * @return |
| | | */ |
| | | List<CodeClassifyTemplateAttr> selectByClassifytemplateoidRel(String classifytemplateoids); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.yulichang.base.MPJBaseMapper; |
| | | import com.vci.ubcs.code.entity.CodeResembleRule; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä¸»æ°æ®ç¼ç è§åæ°æ®æä½å± |
| | | * |
| | | * @author ludc |
| | | * @date 2022-01-24 |
| | | */ |
| | | public interface CodeResembleRuleMapper extends BaseMapper<CodeResembleRule>, MPJBaseMapper<CodeResembleRule> { |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | List<Map> selectBySql(@Param("inSql") String inSql); |
| | | |
| | | List<Map<String,String>> queryByOnlySqlForMap(@Param("inSql") String inSql); |
| | | |
| | | /** |
| | | * ä¼ å
¥è¡¨åï¼mapï¼list<map>宿æ¹éæ´æ°æä½ |
| | | * @param tableName 表å |
| | |
| | | package com.vci.ubcs.code.service; |
| | | |
| | | import com.github.yulichang.base.MPJBaseService; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.entity.CodeResembleRule; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeResembleRuleVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | |
| | | public interface ICodeResembleRuleService { |
| | | public interface ICodeResembleRuleService extends MPJBaseService<CodeResembleRule> { |
| | | CodeResembleRuleVO getObjectByOid(String codeResembleRuleOid); |
| | | } |
| | | |
| | | /** |
| | | * æ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * @param codeResembleRuleDO æ°æ®å¯¹è±¡ |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | | * @throws VciBaseException æ·è´å±æ§åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | CodeResembleRuleVO codeResembleRuleDO2VO(CodeResembleRule codeResembleRuleDO) throws VciBaseException; |
| | | |
| | | } |
| | |
| | | DockingSystemVO editSave(DockingSystemDTO dockingSystemDTO); |
| | | |
| | | |
| | | boolean delSystemData(DockingSystemDTO dockingSystemDTO); |
| | | boolean deleteDataById(String oids); |
| | | } |
| | |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import com.vci.ubcs.core.log.exception.ServiceException; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢æ°æ®å¯¹è±¡,å
³èæ¥è¯¢ |
| | | * @param oid ä¸»é® |
| | | * @return æ°æ®å¯¹è±¡ |
| | | */ |
| | | private CodeClassify selectByOidRel(String oid){ |
| | | |
| | | List<CodeClassify> codeClassifyList = codeClassifyMapper.selectClassifyByKeyAndReseRel("'"+oid.trim()+"'"); |
| | | // CodeClassify codeClassifyEntity = (CodeClassify) codeClassifyList; |
| | | if(codeClassifyList.size() == 0 ){ |
| | | throw new ServiceException("dataNotExist");//æ ¹æ®ä¸»é®idæªæ¥å°ç¸å
³æ°æ® |
| | | } |
| | | // if(codeClassifyEntity == null || StringUtils.isBlank(codeClassifyEntity.getOid())){ |
| | | // throw new ServiceException("dataOidNotExist");//æ ¹æ®ä¸»é®idæªæ¥å°ç¸å
³æ°æ® |
| | | // } |
| | | return codeClassifyList.get(0); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ä¸»é¢åºåç±» æ |
| | | * @param treeQueryObject æ æ¥è¯¢å¯¹è±¡ |
| | | * @return 主é¢åºåç±» æ¾ç¤ºæ |
| | | */ |
| | | @Override |
| | | public List<Tree> treeCodeClassify(TreeQueryObject treeQueryObject) { |
| | | List<CodeClassify> doList =codeClassifyMapper.selectCodeClassifyVOByTree(treeQueryObject.getParentOid()); |
| | | List<CodeClassify> doList =codeClassifyMapper |
| | | .selectCodeClassifyDOByTree(treeQueryObject.getConditionMap().get("id"),treeQueryObject.getConditionMap().get("lcStatus"),treeQueryObject.getParentOid()); |
| | | // List<CodeClassify> doList =codeClassifyMapper.selectCodeClassifyVOByTree(treeQueryObject.getParentOid()); |
| | | |
| | | List<CodeClassifyVO> voList = codeClassifyDO2VOs(doList); |
| | | TreeWrapperOptions treeWrapperOptions = new TreeWrapperOptions(PARENT_FIELD_NAME.toLowerCase(Locale.ROOT)); |
| | | treeWrapperOptions.copyFromTreeQuery(treeQueryObject); |
| | |
| | | } |
| | | |
| | | //使ç¨ä¸»é®æ¥è¯¢ä¸ä¸ |
| | | List<CodeClassify> classifyDOS = codeClassifyMapper.selectBatchIds(oidLevelMap.keySet()); |
| | | String oids = ""; |
| | | for (String s : oidLevelMap.keySet()) { |
| | | oids += "'"+s+"',"; |
| | | } |
| | | List<CodeClassify> classifyDOS = codeClassifyMapper.selectClassifyByKeyAndReseRel(oids.substring(0,oids.length()-1)); |
| | | if(!CollectionUtils.isEmpty(classifyDOS)){ |
| | | classifyDOS.stream().forEach(classifyDO->{ |
| | | classifyDO.setDataLevel(VciBaseUtil.getInt(oidLevelMap.getOrDefault(classifyDO.getOid(),"0"))); |
| | | classifyDO.setLcStatusText(EnumCache.getValue("codeLcstatus",classifyDO.getLcStatus())); |
| | | }); |
| | | } |
| | | return classifyDOS; |
| | |
| | | public CodeClassifyFullInfoBO getClassifyFullInfo(String codeClassifyOid) { |
| | | VciBaseUtil.alertNotNull(codeClassifyOid,"åç±»ç主é®"); |
| | | CodeClassifyFullInfoBO fullInfo = new CodeClassifyFullInfoBO(); |
| | | CodeClassify classifyDO = selectByOid(codeClassifyOid); |
| | | CodeClassify classifyDO = selectByOidRel(codeClassifyOid); |
| | | //æ¥è¯¢ä¸çº§ |
| | | fullInfo.setCurrentClassifyVO(codeClassifyDO2VO(classifyDO)); |
| | | // List<Map<String, Object>> maps = codeClassifyMapper.selectAllLevelParentByOid(codeClassifyOid); |
| | |
| | | // conditionMap.put("classifytemplateoid", QueryOptionConstant.IN + "(" + VciBaseUtil.toInSql(templateOids.toArray(new String[0])) + ")"); |
| | | // PageHelper pageHelper = new PageHelper(-1); |
| | | // pageHelper.addDefaultAsc("orderNum"); |
| | | QueryWrapper<CodeClassifyTemplateAttr> wrapper = new QueryWrapper<>(); |
| | | wrapper.in("classifytemplateoid",templateOids); |
| | | wrapper.orderByAsc("orderNum"); |
| | | List<CodeClassifyTemplateAttr> attrDOS = baseMapper.selectList(wrapper); |
| | | // QueryWrapper<CodeClassifyTemplateAttr> wrapper = new QueryWrapper<>(); |
| | | // wrapper.in("classifytemplateoid",templateOids); |
| | | // wrapper.orderByAsc("orderNum"); |
| | | List<CodeClassifyTemplateAttr> attrDOS = baseMapper.selectByClassifytemplateoidRel(VciBaseUtil.toInSql(templateOids.toArray(new String[0]))); |
| | | // baseMapper.selectByClassifytemplateoid(VciBaseUtil.toInSql(templateOids.toArray(new String[0]))); |
| | | |
| | | if(!CollectionUtils.isEmpty(attrDOS)){ |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.github.yulichang.base.MPJBaseServiceImpl; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import com.vci.ubcs.code.entity.CodeResembleRule; |
| | | import com.vci.ubcs.code.enumpack.FrameworkDataLCStatus; |
| | | import com.vci.ubcs.code.mapper.CodeReferConfigMapper; |
| | | import com.vci.ubcs.code.mapper.CodeResembleRuleMapper; |
| | | import com.vci.ubcs.code.service.ICodeResembleRuleService; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeResembleRuleVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.web.util.BeanUtilForVCI; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import net.logstash.logback.encoder.org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import static com.vci.ubcs.code.constant.FrameWorkLangCodeConstant.DATA_OID_NOT_EXIST; |
| | | |
| | | /** |
| | | * ç¸ä¼¼æ¥è¯¢è§åæå¡ |
| | |
| | | * @date 2022-04-10 |
| | | */ |
| | | @Service |
| | | public class CodeResembleRuleServiceImpl implements ICodeResembleRuleService { |
| | | public class CodeResembleRuleServiceImpl extends MPJBaseServiceImpl<CodeResembleRuleMapper, CodeResembleRule> implements ICodeResembleRuleService { |
| | | @Override |
| | | public CodeResembleRuleVO getObjectByOid(String codeResembleRuleOid) { |
| | | return null; |
| | | public CodeResembleRuleVO getObjectByOid(String oid) { |
| | | return codeResembleRuleDO2VO(selectByOid(oid)); |
| | | } |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢æ°æ®å¯¹è±¡ |
| | | * @param oid ä¸»é® |
| | | * @return æ°æ®å¯¹è±¡ |
| | | * @throws VciBaseException åæ°ä¸ºç©ºï¼å¹¶ä¸æ°æ®ä¸åå¨çæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | private CodeResembleRule selectByOid(String oid) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(oid,"主é®"); |
| | | CodeResembleRule codeResembleRuleDO = baseMapper.selectById(oid.trim()); |
| | | // CodeResembleRule codeResembleRuleDO = codeResembleRuleMapper.selectByPrimaryKey(oid.trim()); |
| | | if(codeResembleRuleDO == null || StringUtils.isBlank(codeResembleRuleDO.getOid())){ |
| | | throw new VciBaseException(DATA_OID_NOT_EXIST); |
| | | } |
| | | return codeResembleRuleDO; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ°æ®å¯¹è±¡è½¬æ¢ä¸ºæ¾ç¤ºå¯¹è±¡ |
| | | * @param codeResembleRuleDO æ°æ®å¯¹è±¡ |
| | | * @return æ¾ç¤ºå¯¹è±¡ |
| | | * @throws VciBaseException æ·è´å±æ§åºéçæ¶å伿åºå¼å¸¸ |
| | | */ |
| | | @Override |
| | | public CodeResembleRuleVO codeResembleRuleDO2VO(CodeResembleRule codeResembleRuleDO) throws VciBaseException{ |
| | | CodeResembleRuleVO vo = new CodeResembleRuleVO(); |
| | | if(codeResembleRuleDO != null){ |
| | | BeanUtilForVCI.copyPropertiesIgnoreCase(codeResembleRuleDO,vo); |
| | | //妿ælcstatusçç±»çè¯ |
| | | vo.setLcStatusText(FrameworkDataLCStatus.getTextByValue(vo.getLcStatus())); |
| | | |
| | | } |
| | | return vo; |
| | | } |
| | | } |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.code.constant.MdmBtmTypeConstant; |
| | | import com.vci.ubcs.code.dto.DockingSystemDTO; |
| | | import com.vci.ubcs.code.entity.CodeRule; |
| | | import com.vci.ubcs.code.entity.DockingSystem; |
| | | import com.vci.ubcs.code.entity.DockingSystemConfig; |
| | | import com.vci.ubcs.code.mapper.DockingSystemConfigMapper; |
| | | import com.vci.ubcs.code.mapper.DockingSystemMapper; |
| | | import com.vci.ubcs.code.service.IDockingSystemService; |
| | | import com.vci.ubcs.code.vo.pagemodel.DockingSystemVO; |
| | | import com.vci.ubcs.code.wrapper.DockingSystemWrapper; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.service.RevisionModelUtil; |
| | | import com.vci.ubcs.starter.util.DefaultAttrAssimtUtil; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.Objects; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static com.vci.ubcs.code.constant.FrameWorkDefaultValueConstant.FRAMEWORK_RELEASE_EDITING; |
| | | import static com.vci.ubcs.code.constant.MdmLifeCycleConstant.CODE_RULE_LC; |
| | |
| | | */ |
| | | @Autowired(required = false) |
| | | private DockingSystemMapper dockingSystemMapper; |
| | | |
| | | /*** |
| | | * éæç³»ç»ç®¡çæå¡ |
| | | */ |
| | | @Autowired(required = false) |
| | | private DockingSystemConfigMapper dockingSystemConfigMapper; |
| | | |
| | | /** |
| | | * 对象çæä½ |
| | |
| | | return DockingSystemWrapper.build().entityVO(dockingSystem); |
| | | } |
| | | |
| | | /*** |
| | | * æ ¹æ®ç³»ç»ä¸»é®å é¤ç³»ç»åç§° |
| | | * @param oids |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | @Override |
| | | public boolean delSystemData(DockingSystemDTO dockingSystemDTO) { |
| | | VciBaseUtil.alertNotNull(dockingSystemDTO,"ç³»ç»éæçç³»ç»ä¿¡æ¯æ°æ®å¯¹è±¡",dockingSystemDTO.getOid(),"ç³»ç»éæçç³»ç»ä¿¡æ¯ç主é®"); |
| | | /*DockingSystem dockingSystem = dockingSystemMapper.selectById(dockingSystemDTO.getOid()); |
| | | BaseResult baseResult = checkIsCanDeleteForDO(sysIntBaseDTO,sysIntBaseDO); |
| | | if(baseResult.isSuccess()) { |
| | | public boolean deleteDataById(String oids) throws VciBaseException { |
| | | String message=""; |
| | | try { |
| | | VciBaseUtil.alertNotNull(oids, "ç³»ç»éæçç³»ç»ä¿¡æ¯ç主é®"); |
| | | List<DockingSystem> dockingSystemList = dockingSystemMapper.selectBatchIds(VciBaseUtil.str2List(oids)); |
| | | Map<String/**ç³»ç»oid**/, String/**ç³»ç»åç§°**/> systemNameMap = dockingSystemList.stream().collect(Collectors.toMap(s -> s.getOid(), t -> t.getName(),(o1, o2)->o2)); |
| | | List<DockingSystemConfig> dockingSystemConfigList = dockingSystemConfigMapper.selectList(Wrappers.<DockingSystemConfig>query().lambda().in(DockingSystemConfig::getSourceSystemOid, VciBaseUtil.str2List(oids))); |
| | | Set<String> systemOidList=new HashSet<>(); |
| | | Map<String,String> errorMap = new HashMap<>(); |
| | | if (!CollectionUtils.isEmpty(dockingSystemConfigList)) { |
| | | dockingSystemConfigList.stream().forEach(dockingSystemConfig -> { |
| | | if(!systemOidList.contains(dockingSystemConfig.getSourceSystemOid())&& |
| | | systemNameMap.containsKey(dockingSystemConfig.getSourceSystemOid())){ |
| | | String systemName=systemNameMap.get(dockingSystemConfig.getSourceSystemOid()); |
| | | errorMap.put("error",errorMap.getOrDefault("error","") + ";"+systemName); |
| | | } |
| | | systemOidList.add(dockingSystemConfig.getSourceSystemOid()); |
| | | }); |
| | | } |
| | | if(errorMap.size()>0){ |
| | | throw new Throwable(errorMap.getOrDefault("error","")); |
| | | } |
| | | return dockingSystemMapper.deleteBatchIds(VciBaseUtil.str2List(oids))>0; |
| | | }catch (Throwable e){ |
| | | e.printStackTrace(); |
| | | throw new VciBaseException(e.getMessage()); |
| | | |
| | | }else{ |
| | | return baseResult; |
| | | } |
| | | //æ§è¡å é¤æä½ |
| | | BatchCBO batchCBO = sysIntBaseMapper.deleteByPrimaryKey(sysIntBaseDO.getOid()); |
| | | return (batchCBO!=null && batchCBO.getDeleteCbos() !=null &&batchCBO.getDeleteCbos().size() > 0)?BaseResult.successMsg(DELETE_SUCCESS):BaseResult.fail(DELETE_FAIL); |
| | | */ |
| | | return false; |
| | | } |
| | | } |
| | |
| | | import com.vci.ubcs.omd.feign.IBtmTypeClient; |
| | | import com.vci.ubcs.omd.feign.IEnumClient; |
| | | import com.vci.ubcs.omd.feign.IRevisionRuleClient; |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | import com.vci.ubcs.omd.vo.BtmTypeVO; |
| | | import com.vci.ubcs.omd.vo.EnumVO; |
| | | import com.vci.ubcs.omd.vo.RevisionRuleVO; |
| | |
| | | import com.vci.ubcs.starter.web.toolmodel.DateConverter; |
| | | import com.vci.ubcs.starter.web.util.*; |
| | | import com.vci.ubcs.system.entity.DictBiz; |
| | | import com.vci.ubcs.system.entity.Menu; |
| | | import com.vci.ubcs.system.feign.IDictBizClient; |
| | | import com.vci.ubcs.system.feign.ISysClient; |
| | | import com.vci.ubcs.system.user.entity.User; |
| | | import com.vci.ubcs.system.user.feign.IUserClient; |
| | | import net.logstash.logback.encoder.org.apache.commons.lang3.StringUtils; |
| | | import oracle.sql.TIMESTAMP; |
| | | import org.slf4j.Logger; |
| | |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.StringPool; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.cache.Cache; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | |
| | | import java.time.ZonedDateTime; |
| | | import java.util.*; |
| | | import java.util.concurrent.ConcurrentHashMap; |
| | | import java.util.function.Supplier; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static com.vci.ubcs.code.constant.FrameWorkLangCodeConstant.DATA_OID_NOT_EXIST; |
| | |
| | | */ |
| | | @Resource |
| | | IDictBizClient iDictBizClient; |
| | | |
| | | /** |
| | | * ç³»ç»çæå¡ |
| | | */ |
| | | @Resource |
| | | ISysClient iSysClient; |
| | | /** |
| | | * ç¨æ·æå¡ |
| | | */ |
| | | @Resource |
| | | IUserClient iUserClient; |
| | | /** |
| | | * åå
¸çæå¡ |
| | | */ |
| | |
| | | data.put(CODE_TEMPLATE_OID_FIELD,templateVO.getOid()); |
| | | data.put(CODE_FULL_PATH_FILED,fullPath); |
| | | cbo.setData(data); |
| | | cbo.setOid(VciBaseUtil.getPk()); |
| | | cbo.setCreateTime(new Date()); |
| | | cbo.setLastModifyTime(new Date()); |
| | | cbo.setCreator(AuthUtil.getUser().getUserName()); |
| | | cbo.setLastModifier(AuthUtil.getUser().getUserName()); |
| | | // cbo.setCodeclsfid(classifyFullInfo.getCurrentClassifyVO().getOid()); |
| | | // cbo.setTemplateOid(templateVO.getOid()); |
| | | // cbo.setCodeclsfpath(fullPath); |
| | |
| | | // cbo.setLcStatus("Editing"); |
| | | //// cbo.setLcStatus(lifeCycleVO.getStartStatus()); |
| | | // } else { |
| | | cbo.setLcStatus(CodeDefaultLC.EDITING.getValue()); |
| | | cbo.setLcStatus(CodeDefaultLC.EDITING.getValue()); |
| | | // } |
| | | } else { |
| | | cbo.setLcStatus(CodeDefaultLC.EDITING.getValue()); |
| | |
| | | } |
| | | |
| | | int secret = VciBaseUtil.getInt(String.valueOf(cbo.getSecretGrade())); |
| | | //æä¸ªç¹ï¼åç»çå¯çº§æå¡æ¯å¦å¯ç¨ |
| | | //åç»çå¯çº§æå¡æ¯å¦å¯ç¨ |
| | | // if (secret == 0 || !secretService.checkDataSecret(secret)) { |
| | | if (secret == 0 ) { |
| | | Integer userSecret = VciBaseUtil.getCurrentUserSecret(); |
| | |
| | | btmName = btmName.trim().toLowerCase(); |
| | | } |
| | | try { |
| | | String keyPrefix = BTM_NAME.concat(StringPool.DASH).concat(AuthUtil.getTenantId()).concat(StringPool.COLON); |
| | | String finalBtmName = btmName; |
| | | return CacheUtil.get(BTM_INIT_CACHE, keyPrefix, btmName, () -> { |
| | | BaseModel baseModel = createBaseModel(finalBtmName); |
| | | return baseModel; |
| | | }); |
| | | String keyPrefix = BTM_INIT_CACHE.concat(StringPool.COLON).concat(AuthUtil.getTenantId()).concat(StringPool.COLON); |
| | | // String finalBtmName = btmName; |
| | | Cache.ValueWrapper valueWrapper = CacheUtil.getCache(keyPrefix).get(keyPrefix.concat(String.valueOf(btmName))); |
| | | if(valueWrapper == null){ |
| | | CacheUtil.getCache(keyPrefix).put(keyPrefix.concat(String.valueOf(btmName)), createBaseModel(btmName)); |
| | | valueWrapper = CacheUtil.getCache(keyPrefix).get(keyPrefix.concat(String.valueOf(btmName))); |
| | | } |
| | | return (BaseModel) valueWrapper.get(); |
| | | } catch (Exception e) { |
| | | logger.error("å建ä¸å¡ç±»å对象",e); |
| | | throw new VciBaseException("initBtmError",new String[]{btmName}); |
| | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public MdmUIInfoVO getFormDefineByTemplateOid(String templateOid, String codeClassifyOid) { |
| | | @Override |
| | | public MdmUIInfoVO getFormDefineByTemplateOid(String templateOid, String codeClassifyOid) { |
| | | CodeClassifyTemplateVO templateVO = templateService.getObjectHasAttrByOid(templateOid); |
| | | MdmUIInfoVO uiInfoVO = new MdmUIInfoVO(); |
| | | uiInfoVO.setTemplateVO(templateVO); |
| | | uiInfoVO.setFormDefineVO(wrapperFormDefineByTemplate(templateVO, codeClassifyOid)); |
| | | wrapperResemble(templateVO, uiInfoVO); |
| | | return uiInfoVO; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | |
| | | //没æéå¶åç±»ï¼ä½æ¯ä¸ä¸ªæ¨¡æ¿åªå¯è½å¨ä¸ä¸ªä¸å¡ç±»åéé¢ï¼æä»¥ç´æ¥æ¥è¯¢è¿ä¸ªä¸å¡ç±»åå³å¯ |
| | | if (!CollectionUtils.isEmpty(conditionMap)) { |
| | | Map<String, String> andConditionMap = new HashMap<>(); |
| | | andConditionMap.put("lastr", "1"); |
| | | andConditionMap.put("lastv", "1"); |
| | | andConditionMap.put("t.lastr", "1"); |
| | | andConditionMap.put("t.lastv", "1"); |
| | | if (StringUtils.isNotBlank(orderDTO.getOid())) { |
| | | andConditionMap.put("oid", QueryOptionConstant.NOTEQUAL + orderDTO.getOid()); |
| | | andConditionMap.put("t.oid", QueryOptionConstant.NOTEQUAL + orderDTO.getOid()); |
| | | } |
| | | conditionMap.putAll(andConditionMap); |
| | | PageHelper pageHelper = new PageHelper(-1); |
| | |
| | | public DataGrid<Map<String, String>> queryGrid(String btmType, CodeClassifyTemplateVO templateVO, Map<String, String> conditionMap, PageHelper pageHelper) { |
| | | CodeTemplateAttrSqlBO sqlBO = getSqlByTemplateVO(btmType, templateVO, conditionMap, pageHelper); |
| | | // List<Map> maps = boService.queryByOnlySqlForMap(sqlBO.getSqlHasPage()); |
| | | List<Map> maps = commonsMapper.selectBySql(sqlBO.getSqlHasPage()); |
| | | List<Map<String,String>> maps = commonsMapper.queryByOnlySqlForMap(sqlBO.getSqlHasPage()); |
| | | |
| | | DataGrid<Map<String, String>> dataGrid = new DataGrid<>(); |
| | | List<Map<String, String>> dataList = new ArrayList<>(); |
| | | // if (!CollectionUtils.isEmpty(maps)) { |
| | | // maps.stream().forEach(map -> { |
| | | // Map<String, String> data = new HashMap<>(); |
| | | // map.forEach((key, value) -> { |
| | | // data.put(((String) key).toLowerCase(Locale.ROOT), String.valueOf(value)); |
| | | // }); |
| | | // dataList.add(data); |
| | | // }); |
| | | // } |
| | | // dataGrid.setData(dataList); |
| | | if (!CollectionUtils.isEmpty(maps)) { |
| | | wrapperData(maps, templateVO, sqlBO.getSelectFieldList(), false); |
| | | maps.stream().forEach(map -> { |
| | | Map<String, String> data = new HashMap<>(); |
| | | map.forEach((key, value) -> { |
| | | data.put(((String) key).toLowerCase(Locale.ROOT), String.valueOf(value)); |
| | | }); |
| | | // map.forEach((key, value) -> { |
| | | // data.put(((String) key).toLowerCase(Locale.ROOT), String.valueOf(value)); |
| | | // }); |
| | | for (String s : map.keySet()) { |
| | | data.put(((String) s).toLowerCase(Locale.ROOT), String.valueOf(map.get(s))); |
| | | } |
| | | dataList.add(data); |
| | | }); |
| | | } |
| | | dataGrid.setData(dataList); |
| | | if (!CollectionUtils.isEmpty(dataList)) { |
| | | wrapperData(dataGrid.getData(), templateVO, sqlBO.getSelectFieldList(), false); |
| | | dataGrid.setData(dataList); |
| | | dataGrid.setTotal(Long.parseLong(commonsMapper.selectBySql(sqlBO.getSqlCount()).get(0).values().toArray()[0].toString())); |
| | | } |
| | | return dataGrid; |
| | |
| | | } |
| | | }); |
| | | if (!CollectionUtils.isEmpty(userIds)) { |
| | | Map<String, User> userVOMap = new HashMap<>(); |
| | | for (String userId : userIds) { |
| | | if(!StringUtils.isNumeric(userId)){ |
| | | continue; |
| | | } |
| | | User data = iUserClient.userInfoById(Long.valueOf(userId)).getData(); |
| | | if(data != null){ |
| | | userVOMap.put(String.valueOf(data.getId()),data); |
| | | } |
| | | } |
| | | // Map<String, SmUserVO> userVOMap = Optional.ofNullable(userQueryService.listUserByUserIds(userIds)).orElseGet(() -> new ArrayList<>()).stream().collect(Collectors.toMap(s -> s.getId().toLowerCase(Locale.ROOT), t -> t)); |
| | | // dataMap.stream().forEach(data -> { |
| | | // String creator = data.getOrDefault("creator", null); |
| | | // if (StringUtils.isNotBlank(creator) && userVOMap.containsKey(creator.toLowerCase(Locale.ROOT))) { |
| | | // data.put("creator", creator + "(" + userVOMap.get(creator.toLowerCase(Locale.ROOT)).getName() + ")"); |
| | | // } |
| | | // String lastmodifier = data.getOrDefault("lastmodifier", null); |
| | | // if (StringUtils.isNotBlank(lastmodifier) && userVOMap.containsKey(lastmodifier.toLowerCase(Locale.ROOT))) { |
| | | // data.put("lastmodifier", lastmodifier + "(" + userVOMap.get(lastmodifier.toLowerCase(Locale.ROOT)).getName() + ")"); |
| | | // } |
| | | // }); |
| | | dataMap.stream().forEach(data -> { |
| | | String creator = data.getOrDefault("creator", null); |
| | | if (StringUtils.isNotBlank(creator) && userVOMap.containsKey(creator.toLowerCase(Locale.ROOT))) { |
| | | data.put("creator", creator + "(" + userVOMap.get(creator.toLowerCase(Locale.ROOT)).getRealName() + ")"); |
| | | } |
| | | String lastmodifier = data.getOrDefault("lastmodifier", null); |
| | | if (StringUtils.isNotBlank(lastmodifier) && userVOMap.containsKey(lastmodifier.toLowerCase(Locale.ROOT))) { |
| | | data.put("lastmodifier", lastmodifier + "(" + userVOMap.get(lastmodifier.toLowerCase(Locale.ROOT)).getRealName() + ")"); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | |
| | | //å¤çæä¸¾çå
容ï¼ä¸ºäºå
¼å®¹ä»¥åçæ°æ®,å¦ææ°æ®ä¸è½ä½¿ç¨æä¸¾è½¬æ¢çè¯ï¼é£è¿æ¯æ¾ç¤ºä»¥åçå¼ |
| | | if (!CollectionUtils.isEmpty(enumAttrVOs)) { |
| | | enumAttrVOs.stream().forEach(enumAttrVO -> { |
| | | // String attrId = enumAttrVO.getId().toUpperCase(Locale.ROOT); |
| | | String attrId = enumAttrVO.getId().toLowerCase(Locale.ROOT); |
| | | String oldValue = data.getOrDefault(attrId, null); |
| | | String oldValue = String.valueOf(data.getOrDefault(attrId, null)); |
| | | if (StringUtils.isNotBlank(oldValue)) { |
| | | List<KeyValue> comboxKVs = listComboboxItems(enumAttrVO); |
| | | String newValue = oldValue; |
| | |
| | | referVO.setValueField(VciQueryWrapperForDO.OID_FIELD); |
| | | referVO.setTextField("name"); |
| | | } |
| | | //表éè¦æ¹ |
| | | //使ç¨ä¼ å
¥çä¸å¡ç±»åæ¥è¯¢è¡¨ |
| | | R<List<BtmTypeVO>> listR = btmTypeClient.selectByIdCollection(Collections.singletonList(referVO.getReferType())); |
| | | // String referTable = VciBaseUtil.getTableName(referVO.getReferType()); |
| | | String referTable = "pl_code_wupin"; |
| | | String referTable = listR.getData().get(0).getTableName(); |
| | | // String referTable = "pl_code_classify"; |
| | | String referTableNick = attrVO.getId() + "0"; |
| | | String left = " left join " + referTable + " " + referTableNick + " on " + referTableNick + "." + referVO.getValueField() + " = t." + attrVO.getId(); |
| | | joinTableList.put(attrVO.getId(), left); |
| | |
| | | selectFieldList.add(referTableNick + "." + showFieldInSource + " as " + referShowField); |
| | | }); |
| | | } |
| | | // å¾
å®å |
| | | // Optional.ofNullable(attributeService.getDefaultAttributeVOMap()).orElseGet(() -> new HashMap<>()).keySet().stream().forEach(attrId -> { |
| | | // if (!selectFieldList.contains(attrId) && !"secretgrade".equalsIgnoreCase(attrId)) { |
| | | // selectFieldList.add(attrId); |
| | | R<BtmTypeVO> allAttributeByBtmId = btmTypeClient.getDefaultAttrByBtmId(btmType); |
| | | // Optional.ofNullable(allAttributeByBtmId.getData()).orElseGet(allAttributeByBtmId.getData().getAttributes()).stream().forEach(attrId -> { |
| | | // if (!selectFieldList.contains(attrId.getOid()) && !"secretgrade".equalsIgnoreCase(attrId.getOid())) { |
| | | // selectFieldList.add(attrId.getOid()); |
| | | // } |
| | | // }); |
| | | if(allAttributeByBtmId.getData() != null ){ |
| | | for (BtmTypeAttributeVO attribute : allAttributeByBtmId.getData().getAttributes()) { |
| | | if (!selectFieldList.contains(attribute.getId()) && !"secretgrade".equalsIgnoreCase(attribute.getId())) { |
| | | selectFieldList.add(attribute.getId()); |
| | | } |
| | | } |
| | | } |
| | | |
| | | if (!selectFieldList.contains(CODE_FIELD)) { |
| | | selectFieldList.add(CODE_FIELD); |
| | | } |
| | |
| | | } |
| | | //è¦æ¹ï¼è¡¨æè·åæé®é¢ |
| | | // String tableName = VciBaseUtil.getTableName(btmType); |
| | | String tableName = "pl_code_wupin"; |
| | | // String tableName = "pl_code_wupin"; |
| | | R<List<BtmTypeVO>> listR = btmTypeClient.selectByIdCollection(Collections.singletonList(btmType)); |
| | | // String referTable = VciBaseUtil.getTableName(referVO.getReferType()); |
| | | String tableName = listR.getData().get(0).getTableName(); |
| | | String sql = "select " + selectFieldList.stream().map(s -> (s.contains(".") ? s : ("t." + s))).collect(Collectors.joining(",")) |
| | | + " from " + tableName + SPACE + "t" + SPACE |
| | | + joinTableList.values().stream().collect(Collectors.joining(SPACE)) |
| | |
| | | */ |
| | | private String getSqlByValue(String selectKey, String value, Map<String, CodeClassifyTemplateAttrVO> attrVOMap) { |
| | | StringBuilder sql = new StringBuilder(); |
| | | // å¾
å®å |
| | | //å¾
å®å |
| | | // if (!selectKey.contains(".") && (attrVOMap.containsKey(selectKey.toLowerCase(Locale.ROOT)) || attributeService.isDefaultAttr(selectKey) || selectKey.matches(RegExpConstant.LETTER))) { |
| | | // sql.append("t."); |
| | | // } |
| | |
| | | CodeClassifyVO topClassifyVO = classifyService.getTopClassifyVO(templateVO.getCodeclassifyoid()); |
| | | String btmId = topClassifyVO.getBtmtypeid(); |
| | | //æ¥è¯¢æ°æ® |
| | | Map<String, String> conditionMap = WebUtil.getOidQuery(oid); |
| | | Map<String, String> conditionMap = new HashMap<>(); |
| | | conditionMap.put("t.oid",oid); |
| | | CodeTemplateAttrSqlBO sqlBO = getSqlByTemplateVO(btmId, templateVO, conditionMap, new PageHelper(-1)); |
| | | //æä»¬ä½¿ç¨åä¸å¡ç±»åçæ¥æ¥è¯¢ |
| | | List<Map> cbos = commonsMapper.selectBySql(sqlBO.getSqlUnPage()); |
| | | List<Map> cbosB = commonsMapper.selectBySql(sqlBO.getSqlUnPage()); |
| | | List<Map<String,String>> cbos = new ArrayList<>(); |
| | | cbosB.stream().forEach(map -> { |
| | | Map<String, String> data = new HashMap<>(); |
| | | for (Object o : map.keySet()) { |
| | | data.put(((String) o).toLowerCase(Locale.ROOT), String.valueOf(map.get(o))); |
| | | } |
| | | cbos.add(data); |
| | | }); |
| | | |
| | | // List<ClientBusinessObject> cbos = boService.queryByOnlySql(sqlBO.getSqlUnPage()); |
| | | if (CollectionUtils.isEmpty(cbos)) { |
| | | throw new VciBaseException("æ°æ®å¨ç³»ç»ä¸ä¸åå¨ï¼æ¯å¦å 为修æ¹è¿ä¸å¡ç±»åï¼"); |
| | |
| | | wrapperData(dataList, templateVO, sqlBO.getSelectFieldList(), true); |
| | | R<List<Map<String, String>>> result = R.data(Collections.singletonList(cbo)); |
| | | //æä»¬è¦çæ¯å¦ä¸æ¯åççï¼åççè¯ï¼éè¦å¯¹æ¯ä¸ç¸çç屿§ |
| | | String copy = String.valueOf(cbo.get("COPYFROMVERSION")); |
| | | String copy = cbo.get("copyfromversion"); |
| | | // if (StringUtils.isBlank(copy)) { |
| | | // copy = cbo.getAttributeValue("copyfromversion"); |
| | | // } |
| | |
| | | MdmUIInfoVO uiInfoVO = getTableDefineByTemplateVO(getUsedTemplateByClassifyOid(codeClassifyOid)); |
| | | uiInfoVO.setLeaf(classifyService.countChildrenByClassifyOid(codeClassifyOid) == 0); |
| | | if (StringUtils.isNotBlank(functionId) && !"~".equalsIgnoreCase(functionId)) { |
| | | List<Menu> buttonVOS = iSysClient.getMenuButtonByType(uiInfoVO.getTemplateVO().getBtmTypeId()).getData(); |
| | | |
| | | //åè½æé®æå¡è¿æªå®ç°ï¼çå®ç°äºï¼å¨è¿è¡è°ç¨ |
| | | //List<SmOperationVO> operationVOS = operationService.listButtonByFunctionId(functionId); |
| | | // List<SmOperationVO> operationVOS = operationService.listButtonByFunctionId(functionId); |
| | | // if (operationVOS == null) { |
| | | // operationVOS = new ArrayList<>(); |
| | | // } |
| | | //æ¥è¯¢æ©å±æé® |
| | | // //æ¥è¯¢æ©å±æé® |
| | | // List<CodeButtonVO> buttonVOS = listButtonInToolbarByClassifyOid(codeClassifyOid); |
| | | // if (!CollectionUtils.isEmpty(buttonVOS)) { |
| | | // for (int i = 0; i < buttonVOS.size(); i++) { |
| | | // CodeButtonVO buttonVO = buttonVOS.get(i); |
| | | // SmOperationVO operationVO = new SmOperationVO(); |
| | | // operationVO.setModuleNo(functionId); |
| | | // operationVO.setUniqueFlag(buttonVO.getId()); |
| | | // operationVO.setName(buttonVO.getName()); |
| | | // operationVO.setAlias(operationVO.getName()); |
| | | // operationVO.setExecuteJs(buttonVO.getExecutejs()); |
| | | // operationVO.setIconCls(buttonVO.getIconcls()); |
| | | // operationVOS.add(operationVO); |
| | | // } |
| | | // } |
| | | // uiInfoVO.setButtons(operationVOS); |
| | | List<SmOperationVO> operationVOS = new ArrayList<>(); |
| | | if (!CollectionUtils.isEmpty(buttonVOS)) { |
| | | for (int i = 0; i < buttonVOS.size(); i++) { |
| | | Menu buttonVO = buttonVOS.get(i); |
| | | SmOperationVO operationVO = new SmOperationVO(); |
| | | operationVO.setModuleNo(functionId); |
| | | operationVO.setUniqueFlag(buttonVO.getCode()); |
| | | operationVO.setName(buttonVO.getName()); |
| | | operationVO.setAlias(buttonVO.getAlias()); |
| | | operationVO.setOrderNo(String.valueOf(buttonVO.getSort())); |
| | | // operationVO.setExecuteJs(buttonVO.getExecuteJs()); |
| | | // operationVO.setIconCls(buttonVO.getIconCls()); |
| | | operationVOS.add(operationVO); |
| | | } |
| | | } |
| | | uiInfoVO.setButtons(operationVOS); |
| | | } |
| | | return uiInfoVO; |
| | | } |
| | |
| | | R<List<BtmTypeVO>> listR = btmTypeClient.selectByIdCollection(Collections.singletonList(boName)); |
| | | String userName = AuthUtil.getUser().getUserName(); |
| | | BaseModel bo = new BaseModel(); |
| | | bo.setOid(VciBaseUtil.getPk()); |
| | | // bo.setOid(VciBaseUtil.getPk()); |
| | | // bo.setRevisionid(VciBaseUtil.getPk()); |
| | | // bo.setNameoid(VciBaseUtil.getPk()); |
| | | bo.setBtmname(boName); |
| | |
| | | bo.setLctid(listR.getData().get(0).getLifeCycleId()); |
| | | // if(StringUtils.isNotBlank(listR.getData().get(0).getLifeCycleId())){ |
| | | // OsLifeCycleVO lifeCycleVO = lifeService.getLifeCycleById(listR.getData().get(0).getLifeCycleId()); |
| | | bo.setLcStatus("Editing"); |
| | | bo.setLcStatus("Editing"); |
| | | // } |
| | | bo.setId(""); |
| | | bo.setName(""); |
| | |
| | | import com.vci.ubcs.starter.web.enumpck.VciFieldTypeEnum; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid; |
| | | import com.vci.ubcs.starter.web.pagemodel.KeyValue; |
| | | import com.vci.ubcs.starter.web.util.LangBaseUtil; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import com.vci.ubcs.starter.web.util.VciDateUtil; |
| | | import lombok.AllArgsConstructor; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | String redisUUid=batchImportCodes(orderDTO,templateVO,dataSet,errorMap,true); |
| | | CodeImProtRusultVO codeImProtRusultVO = new CodeImProtRusultVO(); |
| | | List<String> needRowIndexList = new ArrayList<>(); |
| | | // String filePath = returnErrorToExcel(dataSet.getRowData(), errorMap, needRowIndexList, dataSet.getColName()); |
| | | // if(StringUtils.isNotBlank(filePath)) { |
| | | // codeImProtRusultVO.setFilePath(filePath); |
| | | // } |
| | | // if(StringUtils.isNotBlank(redisUUid)){ |
| | | // codeImProtRusultVO.setRedisUuid(redisUUid); |
| | | // } |
| | | return null; |
| | | // return codeImProtRusultVO; |
| | | String filePath = returnErrorToExcel(dataSet.getRowData(), errorMap, needRowIndexList, dataSet.getColName()); |
| | | if(StringUtils.isNotBlank(filePath)) { |
| | | codeImProtRusultVO.setFilePath(filePath); |
| | | } |
| | | if(StringUtils.isNotBlank(redisUUid)){ |
| | | codeImProtRusultVO.setRedisUuid(redisUUid); |
| | | } |
| | | // return null; |
| | | return codeImProtRusultVO; |
| | | } |
| | | |
| | | /** |
| | | * é误信æ¯è¿åexcel |
| | | * @param rowDataList ææç导å
¥æ°æ® |
| | | * @param errorMap é误çä¿¡æ¯ |
| | | * @param needRowIndexList éè¦åå
¥çæ°æ®çè¡å· |
| | | * @param titleRowData æ é¢è¡ |
| | | * |
| | | * @return é误çexcelæä»¶ï¼æ²¡æé误ä¼è¿å空 |
| | | */ |
| | | private String returnErrorToExcel(Collection<SheetRowData> rowDataList, |
| | | Map<String,String> errorMap, |
| | | List<String> needRowIndexList,List<String> titleRowData){ |
| | | if(CollectionUtils.isEmpty(errorMap)){ |
| | | return ""; |
| | | } |
| | | Map<String, SheetRowData> rowIndexDataMap = rowDataList.stream().filter(s -> !needRowIndexList.contains(s.getRowIndex())).collect(Collectors.toMap(s -> s.getRowIndex(), t -> t)); |
| | | List<WriteExcelData> errorDataList = new ArrayList<>(); |
| | | errorDataList.add(new WriteExcelData(0,0,"é误信æ¯")); |
| | | for (int i = 0; i < titleRowData.size(); i++) { |
| | | //é误信æ¯å¨æå |
| | | errorDataList.add(new WriteExcelData(0,i+1,titleRowData.get(i))); |
| | | } |
| | | Integer[] newRowIndex = new Integer[]{1}; |
| | | errorMap.forEach((index,error)->{ |
| | | //é误信æ¯å
¨é¨ç»åå°ä¸èµ· |
| | | SheetRowData rowData = rowIndexDataMap.getOrDefault(index, null); |
| | | if(rowData!=null){ |
| | | errorDataList.add(new WriteExcelData(newRowIndex[0],0,error)); |
| | | rowData.getData().forEach((colIndex,value)->{ |
| | | errorDataList.add(new WriteExcelData(newRowIndex[0],colIndex+1,value)); |
| | | }); |
| | | newRowIndex[0]++; |
| | | } |
| | | }); |
| | | String excelFileName = LocalFileUtil.getDefaultTempFolder() + File.separator + "é误信æ¯.xls"; |
| | | WriteExcelOption eo = new WriteExcelOption(errorDataList); |
| | | try { |
| | | new File(excelFileName).createNewFile(); |
| | | } catch (IOException e) { |
| | | throw new VciBaseException(LangBaseUtil.getErrorMsg(e)); |
| | | } |
| | | ExcelUtil.writeDataToFile(excelFileName,eo); |
| | | return excelFileName; |
| | | } |
| | | |
| | | /** |
| | |
| | | order by id asc |
| | | </select> |
| | | |
| | | <select id="selectCodeClassifyDOByTree" resultMap="plCodeClassifyResultMap"> |
| | | select codeclassify0.OWNER as owner, |
| | | codeclassify0.BTMTYPEID as btmtypeid, |
| | | codeclassify0.CREATOR as creator, |
| | | codeclassify0.CREATETIME as createtime, |
| | | codeclassify0.LASTMODIFIER as lastmodifier, |
| | | codeclassify0.DESCRIPTION as description, |
| | | codeclassify0.ORDERNUM as ordernum, |
| | | codeclassify0.CODERULEOID as coderuleoid, |
| | | codeclassify0.OID as oid, |
| | | codeclassify0.BTMNAME as btmname, |
| | | codeclassify0.BTMTYPENAME as btmtypename, |
| | | codeclassify0.CODEKEYATTRREPEATOID as codekeyattrrepeatoid, |
| | | codeclassify0.PARENTCODECLASSIFYOID as parentcodeclassifyoid, |
| | | codeclassify0.NAME as name, |
| | | codeclassify0.LASTMODIFYTIME as lastmodifytime, |
| | | codeclassify0.ID as id, |
| | | codeclassify0.CODERESEMBLERULEOID as coderesembleruleoid, |
| | | codeclassify0.LCSTATUS as lcstatus, |
| | | codeclassify0.TS as ts, |
| | | coderuleoid.name as codeRuleOidName, |
| | | codekeyattrrepeatoid.name as codeKeyAttrRepeatOidName, |
| | | coderesembleruleoid.name as codeResembleRuleOidName |
| | | from pl_code_classify codeclassify0 |
| | | left join pl_code_rule coderuleoid |
| | | on codeclassify0.codeRuleOid = coderuleoid.oid |
| | | left join pl_code_keyattrrepeat codekeyattrrepeatoid |
| | | on codeclassify0.codeKeyAttrRepeatOid = codekeyattrrepeatoid.oid |
| | | left join pl_code_resemblerule coderesembleruleoid |
| | | on codeclassify0.codeResembleRuleOid = coderesembleruleoid.oid |
| | | where codeclassify0.lcstatus = #{lcstatus} |
| | | <if test="parentcodeclassifyoid != null and parentcodeclassifyoid != ''"> |
| | | and codeclassify0.parentcodeclassifyoid = #{parentcodeclassifyoid} |
| | | </if> |
| | | <if test="parentcodeclassifyoid == null or parentcodeclassifyoid == ''"> |
| | | and codeclassify0.parentcodeclassifyoid is null |
| | | and codeclassify0.id = #{id} |
| | | </if> |
| | | order by id asc |
| | | </select> |
| | | |
| | | <select id="selectClassifyByKeyAndReseRel" resultMap="plCodeClassifyResultMap"> |
| | | SELECT PCC.*, |
| | | PCK.NAME AS CODEKEYATTRREPEATOIDNAME, |
| | | PCR.NAME AS CODERESEMBLERULEOIDNAME, |
| | | PCE.NAME CODERULEOIDNAME |
| | | FROM PL_CODE_CLASSIFY PCC |
| | | LEFT JOIN PL_CODE_KEYATTRREPEAT PCK |
| | | ON PCC.CODEKEYATTRREPEATOID = PCK.OID |
| | | LEFT JOIN PL_CODE_RESEMBLERULE PCR |
| | | ON PCC.CODERESEMBLERULEOID = PCR.OID |
| | | LEFT JOIN PL_CODE_RULE PCE |
| | | ON PCC.CODERULEOID = PCE.OID |
| | | WHERE PCC.OID IN (${oids}) |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | where codeclstempattr0.classifytemplateoid = #{oid} |
| | | </select> |
| | | |
| | | <select id="selectByClassifytemplateoidRel" resultMap="CodeClstempattrResultMap"> |
| | | select PCC.*, PLT.NAME classifyTemplateOidName |
| | | from PL_CODE_CLSTEMPATTR PCC, PL_CODE_CLSTEMPLATE PLT |
| | | where PCC.CLASSIFYTEMPLATEOID = PLT.OID |
| | | AND PCC.classifytemplateoid IN (${oid}) |
| | | ORDER BY PCC.ORDERNUM ASC |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.vci.ubcs.code.mapper.CodeResembleRuleMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="CodeResembleRuleResultMap" type="com.vci.ubcs.code.entity.CodeResembleRule"> |
| | | <id property="oid" column="OID"/> |
| | | <result property="btmname" column="BTMNAME"/> |
| | | <result property="revisionOid" column="REVISIONOID"/> |
| | | <result property="nameOid" column="NAMEOID"/> |
| | | <result property="lastR" column="LASTR"/> |
| | | <result property="firstR" column="FIRSTR"/> |
| | | <result property="lastV" column="LASTV"/> |
| | | <result property="firstV" column="FIRSTV"/> |
| | | <result property="creator" column="CREATOR"/> |
| | | <result property="createTime" column="CREATETIME"/> |
| | | <result property="lastModifier" column="LASTMODIFIER"/> |
| | | <result property="lastModifyTime" column="LASTMODIFYTIME"/> |
| | | <result property="revisionRule" column="REVISIONVALUE"/> |
| | | <result property="versionRule" column="VISIONRULE"/> |
| | | <result property="revisionValue" column="REVISIONRULE"/> |
| | | <result property="versionValue" column="VERSIONVALUE"/> |
| | | <result property="revisionSeq" column="REVISIONSEQ"/> |
| | | <result property="versionSeq" column="VERSIONSEQ"/> |
| | | <result property="lctid" column="LCTID"/> |
| | | <result property="lcStatus" column="LCSTATUS"/> |
| | | <result property="ts" column="TS"/> |
| | | <result property="id" column="ID"/> |
| | | <result property="name" column="NAME"/> |
| | | <result property="description" column="DESCRIPTION"/> |
| | | <result property="owner" column="OWNER"/> |
| | | <result property="copyFromVersion" column="COPYFROMVERSION"/> |
| | | <result property="ignoreCaseFlag" column="IGNORECASEFLAG"/> |
| | | <result property="ignoreSpaceFlag" column="IGNORESPACEFLAG"/> |
| | | <result property="ignoreAllSpaceFlag" column="IGNOREALLSPACEFLAG"/> |
| | | <result property="ignoreWidthFlag" column="IGNOREWIDTHFLAG"/> |
| | | <result property="linkCharacter" column="LINKCHARACTER"/> |
| | | </resultMap> |
| | | |
| | | </mapper> |
| | |
| | | ${inSql} |
| | | </select> |
| | | |
| | | <select id="queryByOnlySqlForMap" resultType="java.util.Map"> |
| | | ${inSql} |
| | | </select> |
| | | |
| | | <insert id="insertByBaseModel" parameterType="java.util.Map"> |
| | | insert into ${tableName} |
| | | ( |
| | |
| | | <artifactId>orai18n</artifactId> |
| | | <version>${orai18n.version}</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.vci.ubcs</groupId> |
| | | <artifactId>ubcs-code-api</artifactId> |
| | | <version>3.0.1.RELEASE</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | <build> |
| | |
| | | revisionRuleService.batchDelete(revisionRuleVOList); |
| | | return R.status(true); |
| | | } |
| | | |
| | | /** |
| | | * æ¥ç使ç¨èå´ |
| | | * @param id çæ¬è§åid |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | @GetMapping("/get-apply-range") |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "çæ¬è§åid",notes = "ä¼ å
¥id") |
| | | public R getApplyRange(String id){ |
| | | return R.data(revisionRuleService.getApplyRange(id)); |
| | | } |
| | | } |
| | |
| | | */ |
| | | IPage<RevisionRuleVO> pageQueryVO(BaseQueryObject baseQueryObject) throws VciBaseException; |
| | | |
| | | /** |
| | | * æ¥çåºç¨èå´ |
| | | * @param id id |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | List<BtmTypeVO> getApplyRange(String id); |
| | | } |
| | |
| | | @Override |
| | | public List<BtmTypeVO> applyRange(String oid) { |
| | | List<BtmType> btmTypes = baseMapper.selectApplyRange(oid); |
| | | if (!CollectionUtils.isEmpty(btmTypes)){ |
| | | return btmTypes.stream().map(btm -> { |
| | | BtmTypeVO vo = new BtmTypeVO(); |
| | | vo.setId(btm.getId()); |
| | | vo.setName(btm.getName()); |
| | | return vo; |
| | | }).collect(Collectors.toList()); |
| | | if (CollectionUtils.isEmpty(btmTypes)){ |
| | | return null; |
| | | } |
| | | return null; |
| | | return BtmTypeWrapper.build().listEntityVO(btmTypes); |
| | | } |
| | | |
| | | /** |
| | |
| | | }else { |
| | | throw new VciBaseException("é¢ååç§°ä¸ç¬¦åè§å"); |
| | | } |
| | | return PL + StringPool.UNDERSCORE + domain + StringPool.UNDERSCORE + id; |
| | | return PL + StringPool.UNDERSCORE + domain.toUpperCase(Locale.ROOT) + StringPool.UNDERSCORE + id.toUpperCase(Locale.ROOT); |
| | | } |
| | | |
| | | /** |
| | |
| | | beanMap.putAll(conditionMap); |
| | | return RevisionRuleWrapper.build().pageVO(baseMapper.selectPage(Condition.getPage(query),Condition.getQueryWrapper(queryConditionObj).lambda().orderByAsc(RevisionRule::getId))); |
| | | } |
| | | |
| | | /** |
| | | * æ¥çåºç¨èå´ |
| | | * |
| | | * @param id id |
| | | * @return æ§è¡ç»æ |
| | | */ |
| | | @Override |
| | | public List<BtmTypeVO> getApplyRange(String id) { |
| | | VciBaseUtil.alertNotNull(id,"çæ¬è§åè±æåç§°"); |
| | | return BtmTypeWrapper.build().listEntityVO(btmTypeMapper.selectList(Wrappers.<BtmType>query().lambda().eq(BtmType::getRevisionRuleId,id))); |
| | | } |
| | | } |
| | |
| | | }); |
| | | vo.setFromBtmTypes(fromBtm); |
| | | vo.setToBtmTypes(toBtm); |
| | | vo.setTableName(vo.getTableName().toUpperCase(Locale.ROOT)); |
| | | // æä¸¾å¤ç |
| | | vo.setDomainText(NewAppConstantEnum.getTextByName(vo.getDomain())); |
| | | return vo; |
| | |
| | | </select> |
| | | <select id="selectApplyRange" resultType="com.vci.ubcs.omd.entity.BtmType"> |
| | | select |
| | | btm.name, |
| | | btm.ID |
| | | btm.* |
| | | from pl_omd_btm_type btm |
| | | join pl_omd_btm_type_attribute btmAttr on btmAttr.pk_btm_type = btm.oid |
| | | join <include refid="tableName"/> attr on attr.id = btmAttr.id |
| | |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import java.util.List; |
| | |
| | | public R<Menu> getMenu(Long id) { |
| | | return R.data(menuService.getById(id)); |
| | | } |
| | | @Override |
| | | @GetMapping(MENU_BUTTON) |
| | | public R<List<Menu>> getMenuButtonByType(String btmType) { |
| | | return R.data(menuService.getMenuButtonByType(btmType)); |
| | | } |
| | | |
| | | @Override |
| | | @GetMapping(DEPT) |
| | |
| | | * @return |
| | | */ |
| | | List<Menu> allMenu(); |
| | | /** |
| | | * æ ¹æ®ä¸å¡ç±»åæ¥è¯¢èåçåæé® |
| | | * |
| | | * @return |
| | | */ |
| | | List<Menu> selectMenuChildByBtnType(String btmType); |
| | | |
| | | /** |
| | | * æéé
ç½®èå |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.springblade.core.secure.BladeUser; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.node.TreeNode; |
| | | import org.springblade.core.tool.support.Kv; |
| | | import com.vci.ubcs.system.entity.Menu; |
| | |
| | | * @return |
| | | */ |
| | | boolean submit(Menu menu); |
| | | |
| | | /** |
| | | * è·åèåä¸é¢çæé® |
| | | * |
| | | * @param btmType ä¸å¡ç±»å |
| | | * @return List<Menu> |
| | | */ |
| | | List<Menu> getMenuButtonByType(String btmType); |
| | | } |
| | |
| | | import com.vci.ubcs.system.service.ITopMenuSettingService; |
| | | import com.vci.ubcs.system.wrapper.MenuWrapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import com.vci.ubcs.core.log.exception.ServiceException; |
| | | import org.springblade.core.secure.BladeUser; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.constant.BladeConstant; |
| | | import org.springblade.core.tool.node.ForestNodeMerger; |
| | | import org.springblade.core.tool.node.TreeNode; |
| | |
| | | return saveOrUpdate(menu); |
| | | } |
| | | |
| | | @Override |
| | | public List<Menu> getMenuButtonByType(String btmType) { |
| | | return baseMapper.selectMenuChildByBtnType(btmType); |
| | | } |
| | | |
| | | } |
| | |
| | | GROUP BY m.path |
| | | </select> |
| | | |
| | | <select id="selectMenuChildByBtnType" resultMap="menuResultMap"> |
| | | select pm.* |
| | | from pl_sys_menu ps, pl_sys_menu pm |
| | | where ps.is_deleted = 0 |
| | | and ps.category = 1 |
| | | and ps.alias = #{btmType} |
| | | and ps.id = pm.parent_id order by pm.sort asc |
| | | </select> |
| | | |
| | | </mapper> |