| | |
| | | label="平台名称"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="subPlatformName" |
| | | label="子级平台名称"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="area" |
| | | label="行政区域"> |
| | | </el-table-column> |
| | |
| | | <div v-for="(deploy, index) in addForm.deployList" :key="index" style="margin-bottom: 20px"> |
| | | <el-form size="small" ref="deployForm" :inline="true"> |
| | | <el-form-item label="平台名称" prop="platformName"> |
| | | <el-input v-model="deploy.platformName"></el-input> |
| | | <el-input v-model="deploy.subPlatformName"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="平台IP" prop="platformIP"> |
| | | <el-input v-model="deploy.platformIP"></el-input> |
| | |
| | | platformIp: '', |
| | | deployList: [ |
| | | { |
| | | platformName: '', |
| | | subPlatformName: '', |
| | | platformIp: '', |
| | | remark: '', |
| | | area: '' |
| | |
| | | platformName: '' |
| | | }, |
| | | tableData: [], |
| | | total: 0 |
| | | total: 0, |
| | | currentRowNum: 0 |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | }) |
| | | }, |
| | | resetQuery() { |
| | | this.daterangeYwHandleTime = [] |
| | | this.resetForm('queryForm') |
| | | this.handleQuery() |
| | | }, |
| | |
| | | }, |
| | | spanMethod({ row, column, rowIndex, columnIndex }) { |
| | | if (columnIndex === 0) { |
| | | if (rowIndex % 2 === 0) { |
| | | if (row.parentId === 0) { |
| | | return { |
| | | rowspan: 2, |
| | | colspan: 1 |
| | | rowspan: row.childNum + 1, |
| | | colspan: 1 // 只合并第一列 |
| | | }; |
| | | } else { |
| | | return { |
| | |
| | | }; |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |