| | |
| | | <template> |
| | | <div class="gongkongMain"> |
| | | <div> |
| | | <div > |
| | | <el-tree :data="treeData" :props="defaultProps" node-key="id" :default-expand-all="false" :default-expanded-keys="defaultKeys" @node-click="handleNodeClick" /> |
| | | </div> |
| | | <div> |
| | |
| | | <el-button type="primary" v-if="this.search.dirType!='REC'" :disabled="this.selection.length==0" size="default" icon="el-icon-circle-plus" plain @click="receiveBtn">接收已选</el-button> |
| | | <el-button type="primary" v-if="this.search.dirType!='REC'" :disabled="this.selection.length==0" size="default" icon="el-icon-circle-plus" plain @click="rejectBtn">拒绝</el-button> |
| | | </template> |
| | | <!-- |
| | | <template #menu="scope"> |
| | | <el-button type="primary" v-if="scope.row.dirType==='TEMP'" text size="default" icon="el-icon-document-delete" @click.stop="rejectBtn(scope.row, scope.index)">拒绝</el-button> |
| | | <el-button type="primary" v-if="scope.row.dirType==='TEMP'" text size="default" icon="el-icon-document-add" @click.stop="acceptBtn(scope.row, scope.index)">接收</el-button> |
| | | </template> |
| | | --> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </div> |
| | |
| | | total: 0, |
| | | }, |
| | | option: { |
| | | size:'small', |
| | | index: true, |
| | | selection: true, |
| | | selectionWidth:30, |
| | | addBtn: false, |
| | | editBtn: false, |
| | | delBtn: false, |
| | |
| | | emptyBtn: false, |
| | | searchLabelWidth: "120", |
| | | searchSpan: 8, |
| | | menuWidth: 150, |
| | | menu:false, |
| | | width:'100%', |
| | | column: [ |
| | | { |
| | | label: '文件名称', |
| | | prop: 'name', |
| | | showOverflowTooltip:true, |
| | | }, |
| | | { |
| | | label: '机床号', |
| | | prop: 'machineCode', |
| | | showOverflowTooltip:true, |
| | | }, |
| | | { |
| | | label: '程序状态', |
| | | prop: 'programStatus', |
| | | showOverflowTooltip:true, |
| | | render: ({ row,value }) => { |
| | | var txt = '未知'; |
| | | switch(row.programStatus){ |
| | |
| | | txt = '固化'; |
| | | break; |
| | | case 3: |
| | | txt = '偏离'; |
| | | txt = '临时更改单'; |
| | | break; |
| | | default: |
| | | txt = '未知'; |
| | |
| | | }, |
| | | { |
| | | label: '文件到达时间', |
| | | showOverflowTooltip:true, |
| | | prop: 'fileCreateTime', |
| | | },/* |
| | | { |
| | |
| | | prop: '', |
| | | },*/ |
| | | { |
| | | label: '关键信息', |
| | | label: '关键字', |
| | | prop: 'keyword', |
| | | search: true, |
| | | hide: true, |
| | |
| | | }, |
| | | currentChange(current) { |
| | | this.mypage.current = current; |
| | | this.onLoad(); |
| | | }, |
| | | sizeChange(size) { |
| | | this.mypage.size = size; |
| | | this.onLoad(); |
| | | }, |
| | | refreshChange() { |
| | | |
| | |
| | | dirType:this.currentNode.dirType, |
| | | machineCode: this.currentNode.machineCode, |
| | | } |
| | | console.log('myupage',this.mypage) |
| | | axios({ |
| | | url: '/blade-mdm/machinefile/collect/file-page-for-acceept', |
| | | method: 'get', |
| | | params: obj, |
| | | }).then( |
| | | res => { |
| | | var screenHeight = window.innerHeight; |
| | | this.option.maxHeight = (screenHeight - 390) + 'px'; |
| | | const data = res.data.data; |
| | | this.mypage.total = data.total; |
| | | this.data = data.records; |
| | |
| | | } |
| | | } |
| | | .gongkongMain > div:nth-child(1) { |
| | | width:25%; |
| | | width:17%; |
| | | border-right: 1px solid #ccc; |
| | | } |
| | | .gongkongMain div:nth-child(2) { |
| | |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | } |
| | | /* |
| | | .Avue-crud{ |
| | | :deep(.el-table) { |
| | | .el-table__body-wrapper, |
| | | .el-table__fixed-body-wrapper { |
| | | max-height:calc(100vh - 630px)!important; |
| | | overflow-y: auto; |
| | | } |
| | | } |
| | | } |
| | | */ |
| | | </style> |