| | |
| | | return request({ |
| | | url: 'api/ubcs-code/mdmEngineController/getFlowdUIInfoByClassifyOid', |
| | | method: 'get', |
| | | data |
| | | params:{ |
| | | ...data |
| | | } |
| | | }) |
| | | } |
| | |
| | | size="small" style="width: 180px; margin-left: 5px; margin-top: 10px"></el-input> |
| | | </div> |
| | | <el-table v-if="tableData.length != 0" v-loading="isLoading" :data="tableData" max-height="700" style="" |
| | | @cell-click="handleCellClick" @selection-change="handleSelectionChange" @sort-change="sortChange"> |
| | | @cell-click="handleCellClick" @row-click="handleRowClick" @selection="handleSelection" @selection-change="handleSelectionChange" @sort-change="sortChange"> |
| | | <el-table-column fixed type="selection" width="55"></el-table-column> |
| | | <el-table-column fixed label="序号" type="index" width="55"> |
| | | </el-table-column> |
| | |
| | | // 主数据按钮 |
| | | masterVrBtnList: [], |
| | | fileOptions:{ |
| | | ownbizOid:"1", |
| | | ownbizBtm:"1", |
| | | ownbizOid:"0", |
| | | ownbizBtm:"0", |
| | | fileDocClassify:'!=processAuditSuggest', |
| | | fileDocClassifyName:'', |
| | | hasDownload:true, |
| | |
| | | templateOid: { |
| | | handler(newval, oldval) { |
| | | this.parameter.code = newval; |
| | | this.fileOptions.ownbizOid="1"; |
| | | this.fileOptions.ownbizOid="0"; |
| | | this.parameter.vars.templateOid = newval |
| | | }, |
| | | deep: true, |
| | |
| | | handleRowClick(row,column){ |
| | | this.fileOptions.ownbizOid= row.oid; |
| | | this.fileOptions.ownbizBtm=row.btmname; |
| | | this.$refs.crud.toggleRowSelection(row); |
| | | }, |
| | | //删除 |
| | | enumDeleteRow(row) { |
| | |
| | | tableData:[], |
| | | editingRow: null, |
| | | editShow: "", |
| | | editAttr: "" |
| | | editAttr: "", |
| | | columnType: { |
| | | text: "input", |
| | | combox: "select", |
| | | truefalse: "switch", |
| | | number: "number", |
| | | datetime: "datetime", |
| | | } |
| | | } |
| | | }, |
| | | watch:{ |
| | | ids:{ |
| | | handler(newval,oldval){ |
| | | this.BuinessOids=newval; |
| | | this.CrudHeaderRend() |
| | | this.BuinseseRend() |
| | | console.log(newval) |
| | | console.log(this.BuinessOids) |
| | | }, |
| | | deep:true |
| | | } |
| | |
| | | //表格头渲染 |
| | | CrudHeaderRend() { |
| | | if (this.codeClassifyOid != "") { |
| | | var data=new FormData() |
| | | data.append('templateId', this.templateId) |
| | | data.append('taskId', this.taskId) |
| | | data.append('modelKey', this.modelKey) |
| | | data.append('codeClassifyOid', this.codeClassifyOid) |
| | | FlowTable({ |
| | | templateId: this.templateId, |
| | | taskId : this.taskId , |
| | | modelKey: this.modelKey, |
| | | codeClassifyOid: this.codeClassifyOid |
| | | 'templateId': this.templateId, |
| | | 'taskId': this.taskId, |
| | | 'modelKey': this.modelKey, |
| | | 'codeClassifyOid': this.codeClassifyOid |
| | | }).then((res) => { |
| | | this.options = res.data.tableDefineVO.seniorQueryColumns; |
| | | this.List = res.data.tableDefineVO.cols[0]; |