|
@@ -20,31 +20,33 @@
|
|
<th colspan="2">{{ data.time }}</th>
|
|
<th colspan="2">{{ data.time }}</th>
|
|
</tr>
|
|
</tr>
|
|
<template v-if="data.projectCommonList.length">
|
|
<template v-if="data.projectCommonList.length">
|
|
- <tr height="53" v-for="(item,index) in newProjectCommonList">
|
|
|
|
|
|
+ <tr height="53" v-for="(item,index) in newProjectCommonList" :key="index + '1'">
|
|
<th colspan="2">{{ item.commonList[0] | argIfExistName }}</th>
|
|
<th colspan="2">{{ item.commonList[0] | argIfExistName }}</th>
|
|
<th colspan="2">{{ item.commonList[0] | argIfExistValue }}</th>
|
|
<th colspan="2">{{ item.commonList[0] | argIfExistValue }}</th>
|
|
- <th>{{ item.commonList[1] | argIfExistName }}</th>
|
|
|
|
|
|
+ <th>{{ item.commonList[1] | argIfExistName }}</th>
|
|
<th>{{ item.commonList[1] | argIfExistValue }}</th>
|
|
<th>{{ item.commonList[1] | argIfExistValue }}</th>
|
|
<th colspan="3">{{ item.commonList[2] | argIfExistName }}</th>
|
|
<th colspan="3">{{ item.commonList[2] | argIfExistName }}</th>
|
|
<th colspan="2">{{ item.commonList[2] | argIfExistValue }}</th>
|
|
<th colspan="2">{{ item.commonList[2] | argIfExistValue }}</th>
|
|
</tr>
|
|
</tr>
|
|
</template>
|
|
</template>
|
|
- <tr height="53" v-if="data.projectGroupList.length">
|
|
|
|
- <th>序号</th>
|
|
|
|
- <th>点检位置</th>
|
|
|
|
- <th>项目</th>
|
|
|
|
- <th>点检方法</th>
|
|
|
|
- <th style="width:16.125rem">点检内容和标准</th>
|
|
|
|
- <th style="width:16.125rem">数值</th>
|
|
|
|
- <th>可视化参考</th>
|
|
|
|
- <th>结果</th>
|
|
|
|
- <th>备注</th>
|
|
|
|
- <th>图片</th>
|
|
|
|
- <th>工程师确认</th>
|
|
|
|
- </tr>
|
|
|
|
|
|
+ <!-- <template v-if="data.projectGroupList.length"> -->
|
|
|
|
+ <tr height="53">
|
|
|
|
+ <th>序号</th>
|
|
|
|
+ <th>点检位置</th>
|
|
|
|
+ <th>项目</th>
|
|
|
|
+ <th>点检方法</th>
|
|
|
|
+ <th style="width:16.125rem">点检内容和标准</th>
|
|
|
|
+ <th style="width:16.125rem">数值</th>
|
|
|
|
+ <th>可视化参考</th>
|
|
|
|
+ <th>结果</th>
|
|
|
|
+ <th>备注</th>
|
|
|
|
+ <th>图片</th>
|
|
|
|
+ <th>工程师确认</th>
|
|
|
|
+ </tr>
|
|
|
|
+ <!-- </template> -->
|
|
<template v-if="data.projectGroupList.length">
|
|
<template v-if="data.projectGroupList.length">
|
|
<template v-for="(item,index) in data.projectGroupList">
|
|
<template v-for="(item,index) in data.projectGroupList">
|
|
- <tr height="53" v-for="(iten,indey) in item.projectList" :key="indey">
|
|
|
|
|
|
+ <tr height="53" v-for="(iten,indey) in item.projectList" :key="indey + '1'">
|
|
<th>{{ jisuan(indey) }}</th>
|
|
<th>{{ jisuan(indey) }}</th>
|
|
<th :rowspan="item.projectList.length" v-if="indey === 0">{{ item.name }}</th>
|
|
<th :rowspan="item.projectList.length" v-if="indey === 0">{{ item.name }}</th>
|
|
<th>{{ iten.name }}</th>
|
|
<th>{{ iten.name }}</th>
|
|
@@ -73,7 +75,7 @@
|
|
<th :style="{background: backgroundStyle(iten.status)}">{{ iten.statusValue }}</th>
|
|
<th :style="{background: backgroundStyle(iten.status)}">{{ iten.statusValue }}</th>
|
|
<th>{{ iten.remark }}</th>
|
|
<th>{{ iten.remark }}</th>
|
|
<th style="display: flex;justify-content: space-evenly;" v-if="iten.fileList.length">
|
|
<th style="display: flex;justify-content: space-evenly;" v-if="iten.fileList.length">
|
|
- <div v-for="(item,indea) in iten.fileList">
|
|
|
|
|
|
+ <div v-for="(item,indea) in iten.fileList" :key="indea + '1'">
|
|
<img style="width:4.5rem;height:6rem;" :src="item.url" alt="" @click="clickImg($event)">
|
|
<img style="width:4.5rem;height:6rem;" :src="item.url" alt="" @click="clickImg($event)">
|
|
<big-img v-if="showImg" :imgSrc="item.url" @cancelEnlarge="cancelEnlarge"></big-img>
|
|
<big-img v-if="showImg" :imgSrc="item.url" @cancelEnlarge="cancelEnlarge"></big-img>
|
|
</div>
|
|
</div>
|
|
@@ -83,6 +85,21 @@
|
|
</tr>
|
|
</tr>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <tr height="53">
|
|
|
|
+ <th></th>
|
|
|
|
+ <th></th>
|
|
|
|
+ <th></th>
|
|
|
|
+ <th></th>
|
|
|
|
+ <th></th>
|
|
|
|
+ <th></th>
|
|
|
|
+ <th></th>
|
|
|
|
+ <th></th>
|
|
|
|
+ <th></th>
|
|
|
|
+ <th></th>
|
|
|
|
+ <th></th>
|
|
|
|
+ </tr>
|
|
|
|
+ </template>
|
|
</table>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -112,16 +129,24 @@
|
|
let commonNum = Math.ceil(res.data.projectCommonList.length/3)
|
|
let commonNum = Math.ceil(res.data.projectCommonList.length/3)
|
|
let projectCommonList = res.data.projectCommonList
|
|
let projectCommonList = res.data.projectCommonList
|
|
let newProjectCommonList = []
|
|
let newProjectCommonList = []
|
|
- for (let i=0;i<commonNum;i++){
|
|
|
|
|
|
+ if(commonNum === 1){
|
|
let data = {}
|
|
let data = {}
|
|
- let dataItem = projectCommonList.slice(i*commonNum,(i+1)*commonNum)
|
|
|
|
|
|
+ let dataItem = projectCommonList.slice(0,res.data.projectCommonList.length)
|
|
data['commonList'] = dataItem
|
|
data['commonList'] = dataItem
|
|
newProjectCommonList.push(data)
|
|
newProjectCommonList.push(data)
|
|
|
|
+ } else {
|
|
|
|
+ for (let i=0;i<commonNum;i++){
|
|
|
|
+ let data = {}
|
|
|
|
+ let dataItem = projectCommonList.slice(i*commonNum,(i+1)*commonNum)
|
|
|
|
+ data['commonList'] = dataItem
|
|
|
|
+ newProjectCommonList.push(data)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.newProjectCommonList = newProjectCommonList
|
|
this.newProjectCommonList = newProjectCommonList
|
|
} else {
|
|
} else {
|
|
this.$message.error(res.message)
|
|
this.$message.error(res.message)
|
|
}
|
|
}
|
|
|
|
+ // [{'commonList':[]}]
|
|
})
|
|
})
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|