|
|
|
|
@ -43,7 +43,7 @@
|
|
|
|
|
<el-button type="success" @click="CreatedPlanClick()" style="margin-left: 20px;">生成选中的计划</el-button>
|
|
|
|
|
</el-row>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table :data="tableData" style="width: 100%;" row-key="id" v-loading="loading"
|
|
|
|
|
<el-table :data="tableData" :span-method="arraySpanMethod" border style="width: 100%;" row-key="id" v-loading="loading"
|
|
|
|
|
@selection-change="handleSelectionChange">
|
|
|
|
|
<el-table-column type="selection" width="55" />
|
|
|
|
|
<el-table-column prop="id" label="Id" width="70" />
|
|
|
|
|
@ -670,7 +670,47 @@
|
|
|
|
|
PlanInfo.value.xingqi=[]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//合并显示
|
|
|
|
|
let bb_countRowspan=1;
|
|
|
|
|
const arraySpanMethod=({
|
|
|
|
|
row,
|
|
|
|
|
column,
|
|
|
|
|
rowIndex,
|
|
|
|
|
columnIndex,
|
|
|
|
|
})=>{
|
|
|
|
|
|
|
|
|
|
const fields =['weekname']
|
|
|
|
|
const cellValue =row[column.property]
|
|
|
|
|
let countRowspan=1
|
|
|
|
|
|
|
|
|
|
if(cellValue && fields.includes(column.property)){
|
|
|
|
|
const prevRow = tableData.value[rowIndex-1]
|
|
|
|
|
let nextRow=tableData.value[rowIndex+1]
|
|
|
|
|
if(prevRow&& prevRow[column.property]=== cellValue && prevRow.declareRegion == row.declareRegion){
|
|
|
|
|
bb_countRowspan=countRowspan
|
|
|
|
|
return {rowspan:0,colspan:0}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
while(nextRow && nextRow[column.property]===cellValue && nextRow.declareRegion==row.declareRegion){
|
|
|
|
|
nextRow=tableData.value[++countRowspan+rowIndex]
|
|
|
|
|
}
|
|
|
|
|
if(countRowspan>1){
|
|
|
|
|
bb_countRowspan=countRowspan
|
|
|
|
|
return {rowspan:countRowspan,colspan:1}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (columnIndex === 3) {
|
|
|
|
|
if(bb_countRowspan>1){
|
|
|
|
|
return {rowspan:bb_countRowspan,colspan:1}
|
|
|
|
|
}else{
|
|
|
|
|
return {rowspan:0,colspan:0}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
GetList()
|
|
|
|
|
GetDepartmentEnableList()
|
|
|
|
|
|