| | |
| | | </template> |
| | | <span slot="action" slot-scope="text, record"> |
| | | <div v-if="nodeValue===record.status"> |
| | | <a @click="handleStreamNext(record)" :disabled="nodeSort===1&&nodeValue!==record.status" >{{button1.name}}</a> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleStreamLast(record)" :disabled="nodeSort===1" >{{button2.name}}</a> |
| | | <a @click="handleStreamNext(record)" :disabled="nodeSort===1&&nodeValue!==record.status" v-if="button1!={}">{{button1.name}}</a> |
| | | <a-divider type="vertical" v-if="button2!={}"/> |
| | | <a @click="handleStreamLast(record)" :disabled="nodeSort===1" v-if="button2!={}" >{{button2.name}}</a> |
| | | </div> |
| | | <div v-if="nodeSort===1&&nodeValue===record.status"> |
| | | <a-divider type="vertical" /> |
| | |
| | | return { |
| | | description: '设备ABC评价管理页面', |
| | | // 表头 |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | |
| | | getAction(this.url.getPreInfo).then(res=>{ |
| | | if(res.result.msg==='ok'){ |
| | | this.button1 = res.result.buttons[0]; |
| | | this.button2 = res.result.buttons[1]; |
| | | if(res.result.buttons.length===2){ |
| | | this.button2 = res.result.buttons[1]; |
| | | } |
| | | this.nodeSort = res.result.nodeSort; |
| | | this.nodeValue = res.result.nodeValue; |
| | | } |