| | |
| | | > |
| | | <template #menu-left> |
| | | <div style="display: flex;"> |
| | | <el-button type="primary" size="default" icon="el-icon-circle-plus" @click="importData">导入</el-button> |
| | | <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleWarehouse" style="margin-left: 12px;">下传</el-button> |
| | | <el-button type="primary" size="default" icon="el-icon-upload" @click="importData">导入</el-button> |
| | | <el-button type="warning" size="default" icon="el-icon-delete" @click="clearList">清空</el-button> |
| | | <el-button type="primary" size="default" icon="el-icon-check" plain @click="handleWarehouse" style="margin-left: 12px;">下传</el-button> |
| | | </div> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | prop: 'machineCode', |
| | | }, |
| | | { |
| | | label: '固化状态', |
| | | prop: 'programStatus'/*, |
| | | formatter: (val, value, label) => { |
| | | |
| | | return `${val?.variables?.machineCode}`; |
| | | }*/ |
| | | }, |
| | | // { |
| | | // label: '处理方式', |
| | | // prop: '' |
| | | // }, |
| | | // { |
| | | // label: '处理时间', |
| | | // prop: '' |
| | | // }, |
| | | // { |
| | | // label: '处理人', |
| | | // prop: '' |
| | | // }, |
| | | { |
| | | label: 'MD5值', |
| | | prop: 'md5', |
| | | label: '程序状态', |
| | | prop: 'programStatus' |
| | | } |
| | | ], |
| | | }, |
| | |
| | | this.data = res || [] |
| | | done(); |
| | | }, |
| | | clearList(){ |
| | | this.data = []; |
| | | }, |
| | | handleWarehouse(row,index) { |
| | | if(this.selection.length == 0) { |
| | | this.$message.error("请选择数据") |
| | |
| | | prop: 'deviation' |
| | | }, |
| | | { |
| | | label: '临时更改单序号', |
| | | prop: 'deviationSerial' |
| | | }, |
| | | { |
| | | label: '机床编号', |
| | | prop: 'machineCode', |
| | | }, |
| | |
| | | </template> |
| | | <template #menu-left> |
| | | <div class="menuLeft"> |
| | | <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleExport">导出</el-button> |
| | | <el-button type="primary" size="default" icon="el-icon-download" plain @click="handleExport">导出</el-button> |
| | | <el-button type="primary" size="default" icon="el-icon-compass" plain @click="preMonth">上月</el-button> |
| | | <el-button type="primary" size="default" icon="el-icon-aim" plain @click="thisMonth">本月</el-button> |
| | | </div> |
| | |
| | | total: 0, |
| | | }, |
| | | fileViewModel:false, |
| | | fileContent:'', |
| | | appContent:'', |
| | | option: { |
| | | index: true, |
| | | addBtn: false, |
| | |
| | | methods: { |
| | | showContent(row) { |
| | | this.fileViewModel = true; |
| | | this.fileContent = ''; |
| | | this.appContent = ''; |
| | | axios({ |
| | | url: '/blade-mdm/ossfile/file-content', |
| | | method: 'get', |