fujunling
2023-06-28 5e9e87b983ca0d293ea5ee4ec72e84e0000f56fd
Source/UBCS-WEB/src/components/work/BusinessWork.vue
对比新文件
@@ -0,0 +1,66 @@
<template>
<div>
  <el-button @click="HandlerRend"></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} from '@/api/work/businese'
export default {
  name: "BusinessWork",
  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() {
   // this.HandlerRend()
  },
  mounted() {
  },
  methods:{
    HandlerRend(){
      businese({
        btmType:'wupin',
        'conditionMap[oid]':this.BuinessOids.toString()
      }).then(res=>{
        console.log(res)
      })
    }
  }
}
</script>
<style scoped>
</style>