ÎļþÃû´Ó Source/UBCS-WEB/src/components/Crud/Crud.vue ÐÞ¸Ä |
| | |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :templateOid="templateOid" |
| | | :type="add" |
| | | type="add" |
| | | :visible.sync="addvisible" |
| | | @submit="AddSumbit" |
| | | > |
| | |
| | | :disabledProp="disabledProp" |
| | | :rowOid="rowOid" |
| | | :templateOid="templateOid" |
| | | :type="edit" |
| | | type="edit" |
| | | :title="'ä¿®æ¹ç¼ç ä¿¡æ¯'" |
| | | :visible.sync="editvisible" |
| | | @submit="EditSumbit" |
| | |
| | | <el-button plain size="small" type="primary">å é¤</el-button> |
| | | <el-button plain size="small" type="primary" @click="setHandler">åå¸</el-button> |
| | | <set-personnel :visible.sync="visibleFlow" :parameter="parameter" |
| | | type="PUBLIC"></set-personnel> |
| | | ></set-personnel> |
| | | <el-button plain size="small" type="primary" @click="DataChange">æ°æ®æ´æ¹</el-button> |
| | | <FormTemplateDialog |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | |
| | | <advanced-query :options="this.options" :visible.sync="findvisible" |
| | | @echoContion="echoContion"></advanced-query> |
| | | </el-button> |
| | | <el-button plain size="small" type="primary">ç¸ä¼¼é¡¹æ¥è¯¢</el-button> |
| | | <el-button plain size="small" type="primary" @click="similarHandler">ç¸ä¼¼é¡¹æ¥è¯¢</el-button> |
| | | <ResembleQueryDialog |
| | | :visible.sync="similarVisible" |
| | | :templateOid="templateOid" |
| | | :codeClassifyOid="codeClassifyOid" |
| | | :rowOid="rowOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | ></ResembleQueryDialog> |
| | | <el-button plain size="small" style="margin-left: 1px;margin-top:10px" type="primary">å·æ°</el-button> |
| | | <el-input placeholder="请è¾å
¥å
³é®åæå车æ¥è¯¢" size="small" |
| | | style="width: 180px;margin-left: 5px;margin-top:10px"></el-input> |
| | |
| | | import {listCodeAttributeByClassId} from '@/api/integration/integration.js' |
| | | import integrationTransfer from '@/views/integration/integrationTransfer' |
| | | import SetPersonnel from '@/components/template/SetPersonnel' |
| | | |
| | | import ResembleQueryDialog from "@/components/FormTemplate/ResembleQueryDialog.vue"; |
| | | export default { |
| | | components: { |
| | | integrationTransfer, |
| | | SetPersonnel |
| | | SetPersonnel, |
| | | ResembleQueryDialog |
| | | }, |
| | | name: "Crud.vue", |
| | | props: { |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | //ç¸ä¼¼é¡¹æ¥è¯¢ |
| | | similarVisible:false, |
| | | //åå¸ |
| | | parameter:{ |
| | | ids:['0000','22222222'], |
| | | code:'8b5e2017-990f-454a-9c39-4c4eeeb57553', |
| | | code:this.templateOid, |
| | | type:'PUBLIC', |
| | | name:'模æ¿name', |
| | | template:'模æ¿template' |
| | | }, |
| | | visibleFlow: false, |
| | |
| | | this.page.total = newval; |
| | | } |
| | | }, |
| | | // tableHeadDataFateher: { |
| | | // handler(newval, oldval) { |
| | | // let List = newval.tableDefineVO.cols[0]; |
| | | // List.forEach(item => { |
| | | // let columnItem = { |
| | | // label: item.title, |
| | | // prop: item.field, |
| | | // type: this.columnType[item.type], |
| | | // sortable: item.sort, |
| | | // width: item.minWidth |
| | | // }; |
| | | // this.tableHeadData.push(columnItem); |
| | | // console.log('table',this.tableHeadData) |
| | | // }) |
| | | // } |
| | | // } |
| | | }, |
| | | methods: { |
| | | setHandler() { |
| | | this.visibleFlow = true |
| | | this.visibleFlow = true; |
| | | }, |
| | | huishouHandler() { |
| | | |
| | |
| | | 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() { |
| | |
| | | }, |
| | | //å¤é |
| | | handleSelectionChange(row) { |
| | | this.rowOid = row[0].oid; |
| | | if(this.row){ |
| | | this.rowOid = row[0].oid; |
| | | }else { |
| | | this.rowOid='' |
| | | } |
| | | this.selectRow = row; |
| | | console.log(row) |
| | | }, |
| | |
| | | console.log(res) |
| | | }) |
| | | }, |
| | | //ç¸ä¼¼é¡¹æ¥è¯¢ |
| | | similarHandler(){ |
| | | if (this.selectRow.length <= 0) { |
| | | this.$message.warning('è¯·éæ©ä¸æ¡æ°æ®') |
| | | } else if (this.selectRow.length > 1) { |
| | | this.$message.warning('åªè½éæ©ä¸æ¡æ°æ®') |
| | | } else { |
| | | this.similarVisible=true; |
| | | } |
| | | |
| | | }, |
| | | //æ°æ®æ´æ¹ |
| | | DataChange(){ |
| | | if (this.selectRow.length <= 0) { |
| | |
| | | collapse: true, |
| | | column: [], |
| | | }); |
| | | return |
| | | } |
| | | if ( |
| | | formItem.type === "combox" && |
| | |
| | | this.$set(this.option, "column", column); |
| | | this.$set(this.option, "group", group); |
| | | this.formIndex++; |
| | | if (this.type === 'add' || this.type === 'preview') { |
| | | if (this.type === 'add') { |
| | | this.loading = false; |
| | | } |
| | | this.geDictData(dictKeys); |
| | |
| | | if (type === "truefalse") { |
| | | return [ |
| | | { |
| | | key: 'false', |
| | | key: false, |
| | | value: "å¦", |
| | | }, |
| | | { |
| | | key: 'true', |
| | | key: true, |
| | | value: "æ¯", |
| | | }, |
| | | ]; |
| | |
| | | }, |
| | | // è·å表å详æ
æ°æ® |
| | | getFormDetail() { |
| | | if (this.type === 'add' || this.type === 'preview') return |
| | | if (this.type === 'add') return |
| | | getFormDetail({ templateOid: this.templateOid, oid: this.rowOid }).then( |
| | | (res) => { |
| | | this.form = Object.assign(this.form, res.data.data[0]) |
| | |
| | | import referSelectBtmAttrDialog from "@/components/code-dialog-page/referSelectBtmAttrDialog" |
| | | import advancedQuery from "@/components/advanced-query/advancedQuery" |
| | | import businessAdd from "@/views/modeling/BusinessAdd" |
| | | import TableCrud from "@/components/Crud/Crud" |
| | | import VciMasterCrud from "@/components/Crud/VciMasterCrud" |
| | | import originalAdd from "@/views/modeling/originalAdd" |
| | | import FormTemplateDialog from "@/components/FormTemplate/index" |
| | | import linkTypeAdd from "@/views/modeling/LinkTypeAdd" |
| | |
| | | Vue.component('advancedQuery',advancedQuery) |
| | | Vue.component('businessAdd',businessAdd) |
| | | Vue.component('attrCrud',attrCrud) |
| | | Vue.component('TableCrud',TableCrud) |
| | | Vue.component('VciMasterCrud',VciMasterCrud) |
| | | Vue.component('originalAdd',originalAdd) |
| | | Vue.component('referBtmTypeCrudDialog',referBtmTypeCrudDialog) |
| | | Vue.component('referSelectBtmAttrDialog',referSelectBtmAttrDialog) |
| | |
| | | </el-aside> |
| | | <el-main> |
| | | <!-- è¡¨æ ¼ç»ä»¶--> |
| | | <TableCrud :page="this.page" |
| | | <VciMasterCrud :page="this.page" |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :coderuleoid="this.coderuleoid" |
| | | @pageSize="pageSizes" |
| | |
| | | :isLoading="isLoading" |
| | | :templateOid="templateOid" |
| | | :tableHeadFindData="tableHeadFindData" |
| | | ></TableCrud> |
| | | ></VciMasterCrud> |
| | | </el-main> |
| | | </el-container> |
| | | </template> |
| | |
| | | //æ¬å°æå¡æ¥å£å°å |
| | | // target: 'http://localhost:37000', |
| | | // target: 'http://localhost:37000', |
| | | target: 'http://192.168.1.51: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://192.168.1.104:37000', |
| | | target: 'http://192.168.1.104:37000', |
| | | // target: 'http://192.168.1.63:37000', |
| | | //target: 'http://192.168.3.7:37000', |
| | | // target: 'http://dev.vci-tech.com:37000', |