| | |
| | | <template> |
| | | <div> |
| | | <el-button @click="add"></el-button> |
| | | <el-button @click="HandlerRend"></el-button> |
| | | <el-table :data="data"> |
| | | <el-table-column |
| | | fixed |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {businese,add} from '@/api/work/businese' |
| | | import {businese} from '@/api/work/businese' |
| | | export default { |
| | | name: "BusinessWork", |
| | | props:['oid','templateId'], |
| | | props:['ids','templateId'], |
| | | data() { |
| | | return { |
| | | BuinessOids:[], |
| | | data:[ |
| | | { |
| | | label:'app' |
| | |
| | | ] |
| | | } |
| | | }, |
| | | watch:{ |
| | | ids:{ |
| | | handler(newval,oldval){ |
| | | this.BuinessOids=newval; |
| | | this.HandlerRend() |
| | | console.log(newval) |
| | | console.log(this.BuinessOids) |
| | | }, |
| | | deep:true |
| | | } |
| | | }, |
| | | created() { |
| | | businese({oid: this.oid, |
| | | templateOid: this.templateId}).then(res=>{ |
| | | console.log(res) |
| | | }) |
| | | // this.HandlerRend() |
| | | }, |
| | | mounted() { |
| | | }, |
| | | methods:{ |
| | | add(){ |
| | | // businese({oid: this.oid[2], |
| | | // templateOid: this.templateId}).then(res=>{ |
| | | // console.log(res) |
| | | // }) |
| | | add({ |
| | | HandlerRend(){ |
| | | businese({ |
| | | btmType:'wupin', |
| | | 'conditionMap[oid]':'D49A28F3-3740-D0EF-A3C6-5A71CA6978CC' |
| | | 'conditionMap[oid]':this.BuinessOids.toString() |
| | | }).then(res=>{ |
| | | console.log(res) |
| | | }) |
| | |
| | | <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--> |