| | |
| | | @search-change="searchChange" @search-reset="searchReset" @current-change="currentChange" |
| | | @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad" @selection-change="selectionChange"> |
| | | <template #menu-left> |
| | | <!-- |
| | | <el-button type="primary" plain @click="exportExcel">导出到EXCEL</el-button> |
| | | --> |
| | | |
| | | <el-button type="primary" :disabled="this.selection.length==0" plain @click="handleDelBatch">批量删除</el-button> |
| | | |
| | | </template> |
| | | <template #menu="scope"> |
| | | <el-button type="primary" text size="default" |
| | |
| | | </el-button> |
| | | <el-button type="primary" text size="default" icon="el-icon-delete" @click.stop="handleDel(scope.row, scope.index)">删除</el-button> |
| | | </template> |
| | | |
| | | |
| | | |
| | | <template slot="errMsg" slot-scope="scope"> |
| | | <avue-text-ellipsis :text="scope.row.errMsg" :height="100"> |
| | | <small slot=""more>...</small> |
| | | </avue-text-ellipsis> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | |
| | | }, |
| | | { |
| | | label: '工序号', |
| | | width: 70, |
| | | prop: 'processNo' |
| | | }, |
| | | { |
| | |
| | | prop: 'processName', |
| | | }, |
| | | { |
| | | label: '工艺班次', |
| | | label: '批次号', |
| | | width:85, |
| | | prop: 'craftEdition' |
| | | }, |
| | | { |
| | | label: '偏离单号', |
| | | prop: 'deviation' |
| | | }, |
| | | { |
| | | label: '异常类型', |
| | | prop: 'status', |
| | | width:85, |
| | | render: ({ row }) => { |
| | | let txt = ''; |
| | | switch(row.status){ |
| | | case 3: |
| | | txt = '重复派工' |
| | | break; |
| | | case 4: |
| | | txt = '验证失败' |
| | | break; |
| | | case 5: |
| | | txt = '启动异常' |
| | | break; |
| | | default: |
| | | txt = ''; |
| | | } |
| | | |
| | | return txt; |
| | | |
| | | }, |
| | | }, |
| | | { |
| | | label: '错误信息', |
| | | prop: 'errMsg', |
| | | slot: true, |
| | | showOverflowTooltip:true, |
| | | width:100, |
| | | }, |
| | | { |
| | | label: '创建时间', |
| | | prop: 'createTime', |
| | | type: 'datetime', |
| | | showOverflowTooltip:true, |
| | | width: 155, |
| | | format: 'YYYY-MM-DD HH:mm:ss', |
| | | valueFormat: 'YYYY-MM-DD HH:mm:ss', |
| | | search: true, |
| | |
| | | hide: false, |
| | | } |
| | | ], |
| | | selectedList: [], |
| | | } |
| | | selection: [], |
| | | }, |
| | | |
| | | selection: [], |
| | | } |
| | | }, |
| | | methods: { |
| | | selectionChange (list) { |
| | | this.selectedList = list; |
| | | this.selection = list; |
| | | }, |
| | | |
| | | handleStart(row,index) { |
| | |
| | | // this.$message.info('已取消操作'); |
| | | }); |
| | | }, |
| | | handleDelBatch() { |
| | | //console.log(this.selection); |
| | | var ids = this.selection.map(row => row.id).join(); |
| | | //console.log("ids",ids) |
| | | |
| | | this.$confirm('确定要删除吗?', '', { |
| | | confirmButtonText: this.$t('submitText'), |
| | | cancelButtonText: this.$t('cancelText'), |
| | | type: 'warning', |
| | | }).then(() => { |
| | | this.loading = true; |
| | | axios({ |
| | | url: '/blade-mdm/flow/task/remove', |
| | | method: 'post', |
| | | params: {ids: ids}, |
| | | }).then( |
| | | res => { |
| | | this.loading = false; |
| | | if(res.data.code == 200){ |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '操作成功!', |
| | | }); |
| | | }else{ |
| | | this.$message.error('操作失败!'); |
| | | } |
| | | this.onLoad(this.page,this.query); |
| | | |
| | | }, |
| | | error => { |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | }).catch(() => { |
| | | // this.$message.info('已取消操作'); |
| | | }); |
| | | |
| | | }, |
| | | searchChange(params, done) { |
| | | let data = {} |
| | | this.query = params; |