¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from "@/router/axios"; |
| | | // è¡¨åæ°æ®æ§è¡ä»£ç |
| | | export function executeCode(params) { |
| | | return request({ |
| | | url: 'api/ubcs-code/uiDataController/defaultReferDataGrid', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | |
| | | }
|
| | | // ä¸è½½é误æ¥å¿
|
| | | export const downloadErrorFile = (params) => {
|
| | | ret |
| | | return request({
|
| | | url: '/api/ubcs-code/mdmEngineController/downloadErrorFile',
|
| | | method: 'get',
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from "@/router/axios"; |
| | | |
| | | export const businese = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/mdmEngineController/getDataByOid', |
| | | method: 'get', |
| | | params:{ |
| | | ...params |
| | | } |
| | | }) |
| | | } |
| | | export const add = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/mdmEngineController/getTableDataByOids', |
| | | method: 'get', |
| | | params:{ |
| | | ...params |
| | | } |
| | | }) |
| | | } |
| | |
| | | <template> |
| | | <basic-container> |
| | | <div class="testbox"> |
| | | <div style="margin-top: 10px;display: flex;flex-wrap: wrap;width: 100%;"> |
| | | <div> |
| | | <el-button plain size="small" type="primary" @click="addvisible=true">å¢å |
| | | </el-button> |
| | | <FormTemplateDialog |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :templateOid="templateOid" |
| | | type="add" |
| | | :visible.sync="addvisible" |
| | | @submit="AddSumbit" |
| | | > |
| | | </FormTemplateDialog> |
| | | <el-button plain size="small" type="primary" @click="editHandler">ç¼è¾ |
| | | </el-button> |
| | | <FormTemplateDialog |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :rowOid="rowOid" |
| | | :templateOid="templateOid" |
| | | type="edit" |
| | | :title="'ä¿®æ¹ç¼ç ä¿¡æ¯'" |
| | | :visible.sync="editvisible" |
| | | @submit="EditSumbit" |
| | | ></FormTemplateDialog> |
| | | <el-button plain size="small" type="primary">æ¹é导å
¥ç³è¯·</el-button> |
| | | <el-button plain size="small" type="primary" @click="historyVisible = true">å岿°æ®å¯¼å
¥</el-button> |
| | | <el-button plain size="small" type="primary">å岿°æ®å¯¼å
¥</el-button> |
| | | <el-button plain size="small" type="primary">æ¹éç³è¯·ç¼ç </el-button> |
| | | <el-button plain size="small" type="primary">æ¹éåå¸</el-button> |
| | | <el-button plain size="small" type="primary">æ¥çæµç¨åå²</el-button> |
| | | <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" |
| | | ></set-personnel> |
| | | <el-button plain size="small" type="primary" @click="DataChange">æ°æ®æ´æ¹</el-button> |
| | | <FormTemplateDialog |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :rowOid="rowOid" |
| | | :templateOid="templateOid" |
| | | :type="edit" |
| | | :title="'å·²å叿°æ®æ´æ¹'" |
| | | :visible.sync="DataVisible" |
| | | ></FormTemplateDialog> |
| | | <el-button plain size="small" type="primary" @click="huishouHandler">åæ¶</el-button> |
| | | <el-button plain size="small" type="primary" @click="openD">å¯¼åº |
| | | <integration-transfer :data="transferData" :props="transferProps" |
| | | :visible.sync="dialogPush" @save="handelTransferSave"></integration-transfer> |
| | | </el-button> |
| | | <el-button plain size="small" type="primary" @click="findHandler">æ¥è¯¢ |
| | | <advanced-query :options="this.options" :visible.sync="findvisible" |
| | | @echoContion="echoContion"></advanced-query> |
| | | </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-button plain size="small" type="primary">å·æ°</el-button> |
| | | <el-input placeholder="请è¾å
¥å
³é®åæå车æ¥è¯¢" size="small" |
| | | style="width: 180px;margin-left: 5px;margin-top:10px"></el-input> |
| | | </div> |
| | |
| | | <!-- </div>--> |
| | | </el-table> |
| | | </el-row> |
| | | <FormTemplateDialog |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :templateOid="templateOid" |
| | | type="add" |
| | | :visible.sync="addvisible" |
| | | @submit="AddSumbit" |
| | | > |
| | | </FormTemplateDialog> |
| | | <FormTemplateDialog |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :rowOid="rowOid" |
| | | :templateOid="templateOid" |
| | | type="edit" |
| | | :title="'ä¿®æ¹ç¼ç ä¿¡æ¯'" |
| | | :visible.sync="editvisible" |
| | | @submit="EditSumbit" |
| | | ></FormTemplateDialog> |
| | | <FormTemplateDialog |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :rowOid="rowOid" |
| | | :templateOid="templateOid" |
| | | :type="edit" |
| | | :title="'å·²å叿°æ®æ´æ¹'" |
| | | :visible.sync="DataVisible" |
| | | ></FormTemplateDialog> |
| | | <set-personnel :visible.sync="visibleFlow" :parameter="this.parameter" |
| | | ></set-personnel> |
| | | <advanced-query :options="this.options" :visible.sync="findvisible" |
| | | @echoContion="echoContion"></advanced-query> |
| | | <integration-transfer :data="transferData" :props="transferProps" |
| | | :visible.sync="dialogPush" @save="handelTransferSave"></integration-transfer> |
| | | <ResembleQueryDialog |
| | | :visible.sync="similarVisible" |
| | | :templateOid="templateOid" |
| | | :codeClassifyOid="codeClassifyOid" |
| | | :rowOid="rowOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | ></ResembleQueryDialog> |
| | | </div> |
| | | <div class="block" style="display: flex;justify-content: flex-end"> |
| | | <el-pagination |
| | |
| | | @current-change="handleCurrentChange"> |
| | | </el-pagination> |
| | | </div> |
| | | <historyImport :visible.sync="historyVisible" :codeClassifyOid="codeClassifyOid" type="historyImport"></historyImport> |
| | | </basic-container> |
| | | </template> |
| | | <script> |
| | |
| | | import integrationTransfer from '@/views/integration/integrationTransfer' |
| | | import SetPersonnel from '@/components/template/SetPersonnel' |
| | | import ResembleQueryDialog from "@/components/FormTemplate/ResembleQueryDialog.vue"; |
| | | import historyImport from '../BatchImport/index.vue' |
| | | export default { |
| | | components: { |
| | | integrationTransfer, |
| | | SetPersonnel, |
| | | ResembleQueryDialog, |
| | | historyImport |
| | | ResembleQueryDialog |
| | | }, |
| | | name: "Crud.vue", |
| | | props: { |
| | |
| | | }, |
| | | templateOid: { |
| | | type: String, |
| | | default:'' |
| | | }, |
| | | tableHeadDataFateher: { |
| | | type: Array, |
| | |
| | | similarVisible:false, |
| | | //åå¸ |
| | | parameter:{ |
| | | ids:['0000','22222222'], |
| | | code:this.templateOid, |
| | | ids:[], |
| | | code:'', |
| | | type:'PUBLIC', |
| | | template:'模æ¿template' |
| | | template:'' |
| | | }, |
| | | visibleFlow: false, |
| | | transferData: [], |
| | |
| | | label: 'name' |
| | | }, |
| | | tableHeadFindDatas:[], |
| | | templateOid: "", |
| | | addvisible: false, |
| | | editvisible: false, |
| | | findvisible: false, |
| | |
| | | items: {}, |
| | | seniorQueryColumns: [], |
| | | selectRow: [], |
| | | historyVisible: false |
| | | userName:"" |
| | | } |
| | | }, |
| | | computed: {}, |
| | | created() { |
| | | // this.CrudHeaderRend(); |
| | | // this.tableHeadHandle() |
| | | |
| | | }, |
| | | mounted() { |
| | | |
| | | }, |
| | | activated() { |
| | | this.doLayout() |
| | | }, |
| | | watch: { |
| | | tableHeadDataFateher:{ |
| | | handler(newval,oldval){ |
| | | this.options=newval.tableDefineVO.seniorQueryColumns |
| | | } |
| | | }, |
| | | codeClassifyOid: { |
| | | handler(newval, oldval) { |
| | | this.codeClassifyOid = newval; |
| | |
| | | this.page.total = newval; |
| | | } |
| | | }, |
| | | templateOid:{ |
| | | handler(newval,oldval) { |
| | | this.parameter.code=newval; |
| | | }, |
| | | deep:true |
| | | } |
| | | }, |
| | | methods: { |
| | | setHandler() { |
| | | this.visibleFlow = true; |
| | | }, |
| | | huishouHandler() { |
| | | console.log('1111') |
| | | console.log('ç¶',this.parameter) |
| | | |
| | | if (this.selectRow.length <= 0) { |
| | | this.$message.warning('è¯·éæ©ä¸æ¡æ°æ®') |
| | | } else { |
| | | this.userName=localStorage.getItem('username') |
| | | this.parameter.template=this.userName+'-åå¸'+'[ç©å]' |
| | | this.visibleFlow = true; |
| | | } |
| | | }, |
| | | openD() { |
| | | this.dialogPush = true; |
| | | this.getListCodeByClassId() |
| | | }, |
| | | async getListCodeByClassId() { |
| | |
| | | }, |
| | | //å页巿° |
| | | async onLoad(val) { |
| | | console.log('å页', this.templateOid) |
| | | await TableData({ |
| | | templateOid: this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |
| | |
| | | this.rowOid='' |
| | | } |
| | | this.selectRow = row; |
| | | console.log(row) |
| | | row.forEach(item=>{ |
| | | this.parameter.ids.push(item.oid) |
| | | }) |
| | | }, |
| | | //ç¼è¾ |
| | | editHandler() { |
| | | console.log('row',this.rowOid) |
| | | console.log('temp',this.templateOid) |
| | | console.log('code',this.codeClassifyOid) |
| | | console.log('rule',this.coderuleoid) |
| | | if (this.selectRow.length <= 0) { |
| | | this.$message.warning('è¯·éæ©ä¸æ¡æ°æ®') |
| | | } else if (this.selectRow.length > 1) { |
| | |
| | | //é«çº§æ¥è¯¢æé® |
| | | findHandler(){ |
| | | this.findvisible=true; |
| | | console.log(this.options) |
| | | }, |
| | | // é«çº§æ¥è¯¢ |
| | | echoContion(val) { |
| | | console.log(val) |
| | | FindData({templateOid:this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | ...val |
| | | }).then(res=>{ |
| | | console.log(res) |
| | | }) |
| | | }, |
| | | //ç¸ä¼¼é¡¹æ¥è¯¢ |
| | |
| | | }, |
| | | //å¢å ä¿å |
| | | AddSumbit(val){ |
| | | console.log(val) |
| | | this.addvisible=false |
| | | }, |
| | | EditSumbit(val){ |
| | | console.log(val) |
| | | this.editvisible=false |
| | | } |
| | | } |
| | |
| | | <!-- å
¨å±ç¼è¾--> |
| | | <template slot="menuLeft"> |
| | | <el-button v-if=" attrEditVisible == false && attrFlagChiledren==false" size="small" @click="fullscreenHandle">å
¨å±ç¼è¾</el-button> |
| | | <!-- <el-button v-if="attrFlagChiledren !=false" size="small" plain type="success" @click="escEdit">éåºå
¨å±ç¼è¾</el-button>--> |
| | | <el-dialog :visible.sync="attrEditVisible" append-to-body fullscreen="true"> |
| | | <attrCrud :ProData="this.ProData" :attrFlagChiledren="this.attrFlag"></attrCrud> |
| | | </el-dialog> |
| | |
| | | <template slot="menuLeft"> |
| | | <el-button icon="el-icon-info" size="small" @click="rulesVisible=true">éªè¯è§å</el-button> |
| | | <el-dialog :visible.sync="rulesVisible" append-to-body title="屿§éªè¯è§å"> |
| | | <el-container style="border: 1px solid #eee;padding: 10px"> |
| | | <el-container style="border: 1px solid #9e3333;padding: 10px"> |
| | | <el-aside style="width: 330px;"> |
| | | <div style="display: flex"> |
| | | <p style="display: inline-block;width: 160px"> æ£å表达å¼ï¼</p> |
| | |
| | | <div class="injectBox"> |
| | | <div style="color: #FF5722;margin: 1px 0 5px 20px">åç±»å±çº§å
³è说æï¼</div> |
| | | <div |
| | | style="color: #01AAED;margin: 0 10px 0 45px;line-height: 20px">1ï¼ä¸»è¦æ¯è®¾ç½®æ¨¡æ¿å±æ§ååç±»çå
³ç³»<br/>2ï¼å¦åç±»å±çº§è®¾ç½®ä¸º2 <br/>3ï¼å½å
¥èµæºæ°æ®æ¶ï¼è¯¥å±æ§å¯¹åºç弿 ¹æ®å±çº§å
³ç³»å»å¯¹åºçåç±»éå |
| | | style="color: #01aaed;margin: 0 10px 0 45px;line-height: 20px">1ï¼ä¸»è¦æ¯è®¾ç½®æ¨¡æ¿å±æ§ååç±»çå
³ç³»<br/>2ï¼å¦åç±»å±çº§è®¾ç½®ä¸º2 <br/>3ï¼å½å
¥èµæºæ°æ®æ¶ï¼è¯¥å±æ§å¯¹åºç弿 ¹æ®å±çº§å
³ç³»å»å¯¹åºçåç±»éå |
| | | <br/>4ï¼å±çº§å¿
é¡»æ¯å¤§äº0çæ´æ°å¼ |
| | | </div> |
| | | <div style="padding-top: 15px;padding-left: 35px"> |
| | |
| | | this.$set(this.busineAddList,'classifytemplateoid',this.crudOid) |
| | | this.$set(this.busineAddList,'oid','') |
| | | this.ProData.push(JSON.parse(JSON.stringify(this.busineAddList))) |
| | | console.log(this.busineAddList) |
| | | this.addVisible=false; |
| | | console.log('prodata',this.ProData) |
| | | } |
| | | }, |
| | | //ä¸å¡ç±»ååé |
| | |
| | | this.addVisible=true; |
| | | AttrByBtm({'conditionMap[oid]': this.crudOid}).then(res=>{ |
| | | this.businessData=res.data.data; |
| | | console.log(res.data) |
| | | }) |
| | | } |
| | | }, |
| | |
| | | this.CrudOid=row.oid; |
| | | this.CrudSelect=selection; |
| | | this.attrRow=row; |
| | | console.log(selection.length) |
| | | }, |
| | | //ä¿å |
| | | addsHandler(){ |
| | | batchAddSave(this.ProData).then(res=>{ |
| | | console.log(res) |
| | | this.$message.success('ä¿åæå') |
| | | }) |
| | | }, |
| | |
| | | // 级è屿§è¡åé |
| | | CascaderowClick(row) { |
| | | this.selectRow = row.$index |
| | | console.log(row) |
| | | }, |
| | | // æä¸¾æ³¨å
¥æ·»å ä¸è¡ç©ºæ°æ® |
| | | addRow() { |
| | |
| | | }, |
| | | //æä¸¾æ³¨å
¥å é¤ |
| | | enumDeleteRow(row) { |
| | | console.log(row) |
| | | this.tableData.splice(row, 1) |
| | | }, |
| | | //æä¸¾æ³¨å
¥æé® |
| | |
| | | }, |
| | | //æä¸¾æ³¨å
¥å¤éæ¡ |
| | | handleSelectionChange(row){ |
| | | console.log(row) |
| | | this.enumRow=JSON.parse(JSON.stringify(row)); |
| | | }, |
| | | //æä¸¾æ³¨å
¥ä¿å |
| | | enumAddHandle(){ |
| | | console.log(this.enumRow) |
| | | if(this.enumRow.length<1){ |
| | | this.$message.warning('请è³å°éæ©ä¸æ¡æ°æ®') |
| | | }else { |
| | |
| | | // const cellName=this.List[0] |
| | | // |
| | | // } |
| | | console.log("list", this.List) |
| | | console.log(column) |
| | | // console.log(row) |
| | | console.log(column.columnKey) |
| | | } |
| | | }, |
| | | //ç¼è¾ä¿åäºä»¶ |
| | |
| | | //ç¼ç ç³è¯·é¢è§ |
| | | applicationHandle(){ |
| | | this.addvisible=true; |
| | | console.log('temp',this.crudOid) |
| | | console.log('code',this.codeClassifyOid) |
| | | // getFormDefineByTemplate({templateOid:this.crudOid,codeClassifyOid:this.codeClassifyOid}).then(res=>{ |
| | | // console.log(res) |
| | | // }) |
| | | }, |
| | | //ç»åè§å |
| | | isShowHandler(){ |
| | |
| | | }else { |
| | | this.attrEditVisible=true; |
| | | this.attrFlag=true; |
| | | console.log(this.attrEditVisible) |
| | | } |
| | | |
| | | }, |
| | |
| | | escEdit(){ |
| | | this.attrFlagChiledren=false; |
| | | this.attrEditVisible=false; |
| | | console.log(this.attrEditVisible) |
| | | }, |
| | | updataFormlaContent(val){ |
| | | console.log(val) |
| | | this.$set(this.attrRow,'componentRule',val) |
| | | }, |
| | | // æåº |
| | |
| | | <template> |
| | | <avue-form v-model="TreeNewForm" :option="option" @submit="submit"> |
| | | <div> |
| | | <avue-form v-model="loneTreeNewForm" :option="option" @submit="submit" v-if="flag == 'renonly'"> |
| | | </avue-form> |
| | | |
| | | <avue-form v-model="loneTreeNewForm" :option="options" @submit="submit" v-else-if="flag == 'edit'"> |
| | | </avue-form> |
| | | <div> |
| | | <el-dialog :visible.sync="dialogVisible" title="为ãç¼ç è§åãéåå¼" append-to-body> |
| | | <div> |
| | | <el-input placeholder="è¯·éæ©å
容" v-model="masterInput" class="input-with-select"> |
| | | <el-select v-model="MasterSearchSelects" placeholder="è¯·éæ©"> |
| | | <el-option label="è±æåç§°" value="0"></el-option> |
| | | <el-option label="䏿åç§°" value="1"></el-option> |
| | | </el-select> |
| | | <el-button slot="append" icon="el-icon-search"></el-button> |
| | | </el-input> |
| | | </div> |
| | | <avue-crud :data="masterData" :option="masterOption" @select="masterSelect"></avue-crud> |
| | | <div style="padding-top: 10px;display: flex; justify-content: flex-end" > |
| | | <el-button type="primary" size="small" @click="MasterHandlerClick">ç¡®å®</el-button> |
| | | <el-button size="small" @click="dialogVisible=false">åæ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "classifyTreeform.vue", |
| | | props: ["TreeNewForm"], |
| | | props: ['loneTreeNewForm','flag'], |
| | | data() { |
| | | return { |
| | | masterInput:'', |
| | | MasterSearchSelects:"", |
| | | masterData:[ |
| | | { |
| | | id:'001', |
| | | name:'001', |
| | | description:'001' |
| | | }, |
| | | { |
| | | id:'002', |
| | | name:'002', |
| | | description:'002' |
| | | } |
| | | ], |
| | | masterOption:{ |
| | | addBtn:false, |
| | | index:true, |
| | | border:true, |
| | | selection:true, |
| | | height:380, |
| | | column:[ |
| | | { |
| | | label:'è±æåç§°', |
| | | prop:'id' |
| | | }, |
| | | { |
| | | label:'䏿åç§°', |
| | | prop:'name' |
| | | }, |
| | | { |
| | | label:'æè¿°', |
| | | prop:'description' |
| | | } |
| | | ] |
| | | }, |
| | | dialogVisible:false, |
| | | form: { |
| | | name: "åå", |
| | | sex: "ç·" |
| | |
| | | label:"æè¿°", |
| | | prop:"description", |
| | | labelWidth:128, |
| | | readonly: true, |
| | | }, |
| | | { |
| | | label: 'åå¨çä¸å¡ç±»å', |
| | |
| | | label:"ç¼ç è§å", |
| | | prop:"coderuleoidName", |
| | | labelWidth:128, |
| | | readonly: true, |
| | | }, |
| | | { |
| | | label:"å
³é®å±æ§æ¥è¯¢è§å", |
| | | prop:"codekeyattrrepeatoidName", |
| | | labelWidth:128, |
| | | readonly: true, |
| | | }, |
| | | { |
| | | label:"ç¸ä¼¼æ¥è¯¢è§å", |
| | | prop:"codeResembleRuleOidName", |
| | | labelWidth:128, |
| | | readonly: true, |
| | | }, |
| | | ] |
| | | }, |
| | | options: { |
| | | submitBtn:false, |
| | | emptyBtn:false, |
| | | column: [ |
| | | { |
| | | label: '主é¢åº/åç±»ç¼å·', |
| | | prop: 'btmtypeid', |
| | | labelWidth:128, |
| | | rules: [{ |
| | | required: true, |
| | | message: "主é¢åº/åç±»ç¼å·", |
| | | trigger: "blur" |
| | | }] |
| | | }, |
| | | { |
| | | label: '主é¢åº/åç±»åç§°', |
| | | prop: 'name', |
| | | labelWidth:128, |
| | | rules: [{ |
| | | required: true, |
| | | message: "主é¢åº/åç±»åç§°", |
| | | trigger: "blur" |
| | | }] |
| | | }, |
| | | { |
| | | label:"æè¿°", |
| | | prop:"description", |
| | | labelWidth:128, |
| | | }, |
| | | { |
| | | label: 'åå¨çä¸å¡ç±»å', |
| | | prop: 'btmtypename', |
| | | labelWidth:128, |
| | | rules: [{ |
| | | required: true, |
| | | message: "åå¨çä¸å¡ç±»å", |
| | | trigger: "blur" |
| | | }] |
| | | }, |
| | | { |
| | | label:"ç¼ç è§å", |
| | | prop:"coderuleoidName", |
| | | labelWidth:128, |
| | | focus:this.CodeFoucus |
| | | }, |
| | | { |
| | | label:"å
³é®å±æ§æ¥è¯¢è§å", |
| | |
| | | prop:"codeResembleRuleOidName", |
| | | labelWidth:128, |
| | | }, |
| | | |
| | | ] |
| | | }, |
| | | FormList: {} |
| | | FormList: {}, |
| | | masterSelectList:[] |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | error(err) { |
| | | this.$message.success('请æ¥çæ§å¶å°'); |
| | | console.log(err) |
| | | }, |
| | | CodeFoucus(){ |
| | | this.dialogVisible=true; |
| | | console.log(this.dialogVisible) |
| | | }, |
| | | MasterHandlerClick(){ |
| | | if(this.masterSelectList.length>1){ |
| | | this.$message.warning('åªè½éæ©ä¸æ¡æ°æ®') |
| | | }else if(this.masterSelectList.length<=0){ |
| | | this.$message.warning('è¯·éæ©ä¸æ¡æ°æ®') |
| | | }else { |
| | | this.dialogVisible=false; |
| | | console.log(this.masterInput) |
| | | console.log(this.MasterSearchSelect) |
| | | } |
| | | }, |
| | | masterSelect(row){ |
| | | console.log(row) |
| | | this.masterSelectList=row; |
| | | } |
| | | } |
| | | } |
| | |
| | | </el-dialog> |
| | | <!-- ä¿®æ¹å¯¹è¯æ¡--> |
| | | <el-dialog :visible.sync="TreeEditFormVisible" append-to-body title="ä¿®æ¹åç±»"> |
| | | <classifyTreeform ref="childForm" :loneTreeNewForm="TreeList" :nodeList="nodeList"></classifyTreeform> |
| | | <classifyTreeform ref="childForm" :loneTreeNewForm="TreeList" :nodeList="nodeList" :flag="'edit'"></classifyTreeform> |
| | | </el-dialog> |
| | | <avue-tree ref="tree" v-model="CloneTreeAvueform" v-loading="loading" :data="CloneTreedata" :defaultExpandAll="false" |
| | | :option="Treeoption" |
| | |
| | | <!-- å³ä¾§è¡¨æ ¼--> |
| | | <avue-tabs :option="tabOption" @change="handleChange"></avue-tabs> |
| | | <span v-if="type.prop==='tab1'"> |
| | | <classifyTreeform ref="childForm" :TreeNewForm="TreeList" :nodeList="nodeList"></classifyTreeform> |
| | | <classifyTreeform ref="childForm" :loneTreeNewForm="TreeList" :nodeList="nodeList" :flag="'renonly'"></classifyTreeform> |
| | | </span> |
| | | <span v-else-if="type.prop==='tab2'"> |
| | | <basic-container> |
| | |
| | | }, |
| | | //ä¿®æ¹åå¡« |
| | | TreeEdit() { |
| | | if (this.nodeClickList == "") { |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: '请å
仿 ä¸éæ©ä¸æ¡æ°æ®!' |
| | | }); |
| | | } else { |
| | | this.TreeEditFormVisible = true |
| | | } |
| | | // if (this.nodeClickList == "") { |
| | | // this.$message({ |
| | | // type: 'warning', |
| | | // message: '请å
仿 ä¸éæ©ä¸æ¡æ°æ®!' |
| | | // }); |
| | | // } else { |
| | | // this.TreeEditFormVisible = true; |
| | | // console.log('---',this.CloneTreedata) |
| | | // } |
| | | this.TreeEditFormVisible=true; |
| | | }, |
| | | //æ å·æ° |
| | | flushed() { |
| | |
| | | mounted() { |
| | | // this.apiInit() |
| | | // this.apiDict() |
| | | console.log('---',this.parameter) |
| | | }, |
| | | created() { |
| | | console.log('parameter',this.parameter) |
| | | }, |
| | | methods: { |
| | | setSaveParam() { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <el-button @click="add"></el-button> |
| | | <el-table :data="data"> |
| | | <el-table-column |
| | | fixed |
| | | type="selection" |
| | | width="55"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | fixed |
| | | label="åºå·" |
| | | type="index" |
| | | width="55"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import {businese,add} from '@/api/work/businese' |
| | | export default { |
| | | name: "BusinessWork", |
| | | props:['oid','templateId'], |
| | | data() { |
| | | return { |
| | | data:[ |
| | | { |
| | | label:'app' |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | created() { |
| | | businese({oid: this.oid, |
| | | templateOid: this.templateId}).then(res=>{ |
| | | console.log(res) |
| | | }) |
| | | }, |
| | | methods:{ |
| | | add(){ |
| | | // businese({oid: this.oid[2], |
| | | // templateOid: this.templateId}).then(res=>{ |
| | | // console.log(res) |
| | | // }) |
| | | add({ |
| | | btmType:'wupin', |
| | | 'conditionMap[oid]':'D49A28F3-3740-D0EF-A3C6-5A71CA6978CC' |
| | | }).then(res=>{ |
| | | console.log(res) |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| | | |
| | | <!--mdmEngineController/getTableDataByOids?page=1&limit=-1&btmType=wupin&conditionMap%5B%27oid%27%5D=90DC514B-396D-9664-67D0-1587640FE15E&_=1687773044552--> |
| | | <!--mdmEngineController/getTableDataByOids?conditionMap%5Boid%5D=D49A28F3-3740-D0EF-A3C6-5A71CA6978CC--> |
| | |
| | | import MasterTree from "@/components/Master/MasterTree"; |
| | | import FlowPath from "@/components/template/FlowPath"; |
| | | import Stage from "@/components/template/Stage"; |
| | | import businesswork from "@/components/work/BusinessWork" |
| | | |
| | | // å°å·¥å
·å½æ°æ·»å å°å
¨å± |
| | | import utilFunc from './util/func' |
| | |
| | | Vue.component('FlowPath',FlowPath) |
| | | Vue.component('Stage',Stage) |
| | | Vue.component('Divider', Divider) |
| | | Vue.component('businesswork', businesswork) |
| | | |
| | | // å è½½ç¸å
³urlå°å |
| | | Object.keys(urls).forEach(key => { |
| | |
| | | name: "login", |
| | | components: { |
| | | userLogin, |
| | | |
| | | thirdLogin, |
| | | topLang, |
| | | topColor |
| | |
| | | }, |
| | | handleLogin: function () { |
| | | this.userInfo = this.$store.state.upadatastatus |
| | | //console.log(this.userInfo) |
| | | localStorage.setItem('username',this.loginForm.username) |
| | | this.$refs.loginForm.validate(valid => { |
| | | if (valid) { |
| | | const loading = this.$loading({ |
| | |
| | | <el-card class="dialogwarp_tab_card"> |
| | | <el-tabs v-model="activeName" @tab-click="handleClick"> |
| | | <el-tab-pane label="ä¸å¡æ°æ®ä¿¡æ¯" name="first"> |
| | | |
| | | <businesswork :oid="oid" :templateId="templateId"></businesswork> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="æµç¨è·è¸ª" name="second"> |
| | | <avue-crud :data="flowList" :option="option" ref="crud"> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | oid:'', |
| | | templateId:'', |
| | | taskId: '', |
| | | businessId: '', |
| | | processInstanceId: '', |
| | |
| | | async apiGetBtnTask(id) { |
| | | const response = await getBtnTask({ processInstanceId: id }) |
| | | const res = response.data |
| | | this.oid=res.data.variables.ids; |
| | | this.templateId=res.data.variables.templateId; |
| | | if (res.success) { |
| | | console.log(res) |
| | | this.btnList = res.data.toTasks |
| | |
| | | port: 38000, |
| | | proxy: { |
| | | '/api': { |
| | | //æ¬å°æå¡æ¥å£å°å |
| | | // target: 'http://localhost:37000', |
| | | // target: 'http://192.168.1.46: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://192.168.1.104:37000', |
| | | // target: 'http://192.168.1.63:37000', |
| | | //target: 'http://192.168.3.7:37000', |