| | |
| | | <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" |
| | | <el-button type="primary" :disabled="this.selection.length==0" size="default" icon="el-icon-circle-plus" plain @click="handleWarehouse" |
| | | style="margin-left: 12px;">入库</el-button> |
| | | </div> |
| | | </template> |
| | |
| | | </template> --> |
| | | </avue-form> |
| | | </el-dialog> |
| | | <el-dialog title="文件名称" append-to-body v-model="fileViewModel"> |
| | | <el-table :data="tableData" border @row-click="showContent" max-height="200" highlight-current-row> |
| | | <el-dialog title="查看文件" append-to-body v-model="fileViewModel"> |
| | | <el-table :data="tableData" ref="filesTable" border @row-click="showContent" max-height="200" highlight-current-row> |
| | | <el-table-column type="index" label="#" width="40" align="center"/> |
| | | <el-table-column prop="name" label="程序名称"></el-table-column> |
| | | </el-table> |
| | |
| | | fileView(row) { |
| | | this.tableData = row.files; |
| | | this.fileViewModel = true; |
| | | if(this.tableData.length > 0){ |
| | | this.showContent(this.tableData[0]) |
| | | this.$refs.filesTable.setCurrentRow(this.tableData[0]); |
| | | } |
| | | |
| | | }, |
| | | selectionChange(selection) { |
| | | this.selection = selection; |