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: {
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
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'
},