| | |
| | | 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]; |