| | |
| | | </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> |
| | |
| | | menu: true, |
| | | selection: true, |
| | | column: [ |
| | | { |
| | | /*{ |
| | | label: '程序编号', |
| | | prop: 'programNo' |
| | | }, |
| | | },*/ |
| | | { |
| | | label: '程序包名', |
| | | prop: 'programName', |
| | |
| | | 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; |