|
|
@ -29,7 +29,7 @@ const CustomSettingModalRef = ref(null)
|
|
|
|
const taskTableData = ref<any[]>([])
|
|
|
|
const taskTableData = ref<any[]>([])
|
|
|
|
|
|
|
|
|
|
|
|
const sortBy: PictureSortParam = {
|
|
|
|
const sortBy: PictureSortParam = {
|
|
|
|
orderbyname: 'desc',
|
|
|
|
orderbyname: 'asc',
|
|
|
|
orderbyvalue: 'pictureResult',
|
|
|
|
orderbyvalue: 'pictureResult',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -268,6 +268,10 @@ watch(
|
|
|
|
taskDetailPictureList.value = data
|
|
|
|
taskDetailPictureList.value = data
|
|
|
|
totalCount.value = total
|
|
|
|
totalCount.value = total
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
taskDetailPictureList.value.length = 0
|
|
|
|
|
|
|
|
totalCount.value = 0
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
@ -314,8 +318,9 @@ function previewHandler(event: MouseEvent) {
|
|
|
|
|
|
|
|
|
|
|
|
function getPercent(pictureid: string) {
|
|
|
|
function getPercent(pictureid: string) {
|
|
|
|
const { ocpictureid, pictureresult } = taskDetailInfo.value
|
|
|
|
const { ocpictureid, pictureresult } = taskDetailInfo.value
|
|
|
|
const index = ocpictureid.split(',').indexOf(String(pictureid))
|
|
|
|
const splitId = ocpictureid || ''
|
|
|
|
const results = pictureresult.split(',')
|
|
|
|
const index = splitId.split(',').indexOf(String(pictureid))
|
|
|
|
|
|
|
|
const results = (pictureresult || '').split(',')
|
|
|
|
const percent = results[index] || '0'
|
|
|
|
const percent = results[index] || '0'
|
|
|
|
const val = Number.parseFloat(percent)
|
|
|
|
const val = Number.parseFloat(percent)
|
|
|
|
return `${val}%`
|
|
|
|
return `${val}%`
|
|
|
@ -412,8 +417,8 @@ function getPercent(pictureid: string) {
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="status">
|
|
|
|
<div class="status">
|
|
|
|
<SvgIcon v-show="taskDetailInfo?.states === 4" width="134" height="129" name="p1" />
|
|
|
|
<SvgIcon v-show="taskDetailInfo?.userapprove?.statshis === 3" width="134" height="129" name="p1" />
|
|
|
|
<SvgIcon v-show="taskDetailInfo?.states === 3" width="134" height="129" name="p2" />
|
|
|
|
<SvgIcon v-show="taskDetailInfo?.userapprove?.statshis === 2" width="134" height="129" name="p2" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mark">
|
|
|
|
<div class="mark">
|
|
|
|
<SvgIcon
|
|
|
|
<SvgIcon
|
|
|
|