前端 (Surely Vue)
<a-button @click="handleOperation(3)" type="primary" icon="pause">暂停</a-button>
<a-button @click="handleOperation(1)" type="primary" icon="play-circle">继续生产</a-button>
//开工、暂停、完工操作
handleOperation(tag) {
//具体操作
let message = ''
//数据
let arr = []
//提示
let msg = ''
switch (tag) {
case 1:
message = '开工'
break
case 3:
message = '暂停'
break
}
if (this.selectionRows.length <= 0) {
this.$message.warning('请选择需要' + message + '的装配工单!')
return
}
if (tag == 1) {
//开工
arr = this.selectionRows