下班了下班

VXETable.menus.add('Delete', (params, event) => {
  menusDelete(params, event)
})
VXETable.menus.add('Update', (params, event) => {
  menusUpdate(params, event)
})
VXETable.menus.add('MoveUp', (params, event) => {
  menusMoveUp(params, event)
})
VXETable.menus.add('MoveDown', (params, event) => {
  menusMoveDown(params, event)
})
VXETable.renderer.add('TDButton',{
        renderDefault(renderOpts,params,{row,column,columnIndex,$columnIndex}){
          let _this = this
            let {type} = params
            let width = column.width-10
            return [
                  <a-button
                   type={type}
                    style={{
                    width:width+'px',
                    height:'21px',
                    padding:'5px',
                    padding:type==='link'? '0px':'0 15px 0 15px',
                   }}
                   onClick={()=>{
                    debugger
                    _this.$emit('TDButtonClick',{row ,column,columnIndex,$columnIndex})
                   }}
                  >
                    {row[column.property]}
                  </a-button>
            ]
        }
      })
export default {
  name: 'DataTable',
  components: { CustomHeader, Transfer, TableTransfer },
  props: {
    // 使用baseUrl,从数据量查询数据
    isSourceSearch:{
      type: Boolean,
      default: true,
    },
    <a-row v-show="RCJButtonList[1].isShow">
      <a-col>
        <data-table
          :url-data="urlData2"
          :need-export="true"
          tableId="ImmersionStackingWip"
          :isSourceSearch="false"
          ref="immersionInfo2"
          tableName="Immersion Stacking Wip Detail List"
          :columns="PortInfoTable2"
          :height="height - 20"
          @TDButtonClick="tdbuttonclick"
        ></data-table>
      </a-col>
    </a-row>
    tdbuttonclick({ row, column, cloumnIndex,cloumnInde }) {
      debugger
      if (this.key == 0) {
        return
      }
      let _this = this
      // let params = {
      //   techId: row.techId,
      //   prodgrpId:row.prodgrpId,
      //   schEqpId:column.property.replace(column.title,'')
      // }
      if (row[column.property] == '' || row[column.property] == undefined) {
        return
      }
      if (this.paramsData[2].value == '8 Hour') {
        this.$refs.detailsInfos.modalData.time = 8
      } else if (this.paramsData[2].value == '1 Day') {
        this.$refs.detailsInfos.modalData.time = 24
      } else if (this.paramsData[2].value == '8 Day') {
        this.$refs.detailsInfos.modalData.time = 192
      }

      this.$refs.detailsInfos.modalData.techId = row.techId
      this.$refs.detailsInfos.modalData.prodgrpId = row.prodgrpId
      this.$refs.detailsInfos.modalData.schOpeNo = row.schOpeNo
      this.$refs.detailsInfos.modalData.schEqpId = column.property.replace(column.title, '')
      this.$refs.detailsInfos.visible = true
      this.$refs.detailsInfos.modalTitle = 'Detail'
    },
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值