BUG修改
This commit is contained in:
parent
330f8de5e4
commit
42b7ec1129
|
@ -1,8 +1,8 @@
|
|||
<!--
|
||||
* @Author: hisense.wuhongjian
|
||||
* @Date: 2022-04-11 16:30:04
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-07-16 15:07:44
|
||||
* @LastEditors: Light
|
||||
* @LastEditTime: 2022-10-26 11:05:07
|
||||
* @Description: 告诉大家这是什么
|
||||
-->
|
||||
<template>
|
||||
|
@ -31,7 +31,7 @@
|
|||
<!-- 审核意见 -->
|
||||
<el-table-column prop="comment" :label="$t('process.comment')" header-align="center" align="center"></el-table-column>
|
||||
<!-- 任务时长(秒) -->
|
||||
<el-table-column prop="durationInSeconds" :label="$t('task.durationInSeconds')" header-align="center" align="center" width="180"></el-table-column>
|
||||
<el-table-column prop="duration" :label="$t('task.durationInSeconds')" header-align="center" align="center" width="180"></el-table-column>
|
||||
</el-table>
|
||||
<el-pagination
|
||||
v-if="dataForm.pid === '0'"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<el-dialog
|
||||
width="70%"
|
||||
:destroy-on-close="true"
|
||||
:close-on-click-modal="false"
|
||||
@close="closeModal"
|
||||
|
@ -104,6 +105,11 @@
|
|||
label="任务名称"
|
||||
width="180">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="assigneeDeptName"
|
||||
label="处理人部门"
|
||||
width="200">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="assigneeName"
|
||||
label="处理人"
|
||||
|
@ -142,126 +148,125 @@ export default {
|
|||
props: {
|
||||
detailType: {
|
||||
type: String,
|
||||
default: "",
|
||||
default: ''
|
||||
},
|
||||
detailsVisible: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
default: false
|
||||
},
|
||||
detailParamss: {
|
||||
type: Object,
|
||||
default: {},
|
||||
},
|
||||
default: {}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
detailsVisible: {
|
||||
handler (newVal) {
|
||||
this.detailsVisibleCopy = newVal;
|
||||
this.detailsVisibleCopy = newVal
|
||||
},
|
||||
immediate: true,
|
||||
immediate: true
|
||||
},
|
||||
detailParamss: {
|
||||
handler (newVal) {
|
||||
this.detailParams = newVal;
|
||||
this.getDetail(newVal);
|
||||
},
|
||||
immediate: true,
|
||||
this.detailParams = newVal
|
||||
this.getDetail(newVal)
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
detailsVisibleCopy: false,
|
||||
columns: [
|
||||
{
|
||||
title: "任务名称",
|
||||
dataIndex: "activityName",
|
||||
key: "activityName",
|
||||
title: '任务名称',
|
||||
dataIndex: 'activityName',
|
||||
key: 'activityName'
|
||||
},
|
||||
{
|
||||
title: "处理人",
|
||||
dataIndex: "assigneeName",
|
||||
key: "assigneeName",
|
||||
title: '处理人',
|
||||
dataIndex: 'assigneeName',
|
||||
key: 'assigneeName'
|
||||
},
|
||||
{
|
||||
title: "任务开始时间",
|
||||
dataIndex: "startTime",
|
||||
key: "startTime",
|
||||
title: '任务开始时间',
|
||||
dataIndex: 'startTime',
|
||||
key: 'startTime'
|
||||
},
|
||||
{
|
||||
title: "任务结束时间",
|
||||
dataIndex: "endTime",
|
||||
key: "endTime",
|
||||
title: '任务结束时间',
|
||||
dataIndex: 'endTime',
|
||||
key: 'endTime'
|
||||
},
|
||||
{
|
||||
title: "审核意见",
|
||||
dataIndex: "comment",
|
||||
key: "comment",
|
||||
title: '审核意见',
|
||||
dataIndex: 'comment',
|
||||
key: 'comment'
|
||||
},
|
||||
{
|
||||
title: "任务时长/秒",
|
||||
dataIndex: "durationInSeconds",
|
||||
key: "durationInSeconds",
|
||||
},
|
||||
title: '任务时长/秒',
|
||||
dataIndex: 'durationInSeconds',
|
||||
key: 'durationInSeconds'
|
||||
}
|
||||
],
|
||||
dataSource: [{ data: [] }],
|
||||
showArr: [],
|
||||
};
|
||||
showArr: []
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
components: {},
|
||||
methods: {
|
||||
getDetail (newVal) {
|
||||
|
||||
if (newVal.resourceApplication) {
|
||||
this.dataSource.data = [];
|
||||
if (this.detailType == "能力上架") {
|
||||
let arr = [];
|
||||
this.dataSource.data = []
|
||||
if (this.detailType == '能力上架') {
|
||||
const arr = []
|
||||
newVal.resourceApplication.forEach((item) => {
|
||||
arr.push(item);
|
||||
});
|
||||
arr.push(item)
|
||||
})
|
||||
this.dataSource.data.push([
|
||||
newVal.resourceApplication.processInstanceId,
|
||||
arr,
|
||||
]);
|
||||
arr
|
||||
])
|
||||
} else {
|
||||
for (const key in newVal.resourceApplication) {
|
||||
if (newVal.resourceApplication[key].length > 0) {
|
||||
newVal.resourceApplication[key].map((item) => {
|
||||
this.dataSource.data.push([
|
||||
item.instanceId,
|
||||
item.taskHandleDetailInfo,
|
||||
]);
|
||||
});
|
||||
item.taskHandleDetailInfo
|
||||
])
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.showArr.value = [];
|
||||
this.showArr.value = []
|
||||
for (const key in newVal.resourceApplication) {
|
||||
if (newVal.resourceApplication[key].length > 0) {
|
||||
let obj = { name: "", instanceId: "", list: [], list2: [] };
|
||||
obj.name = key;
|
||||
const obj = { name: '', instanceId: '', list: [], list2: [] }
|
||||
obj.name = key
|
||||
newVal.resourceApplication[key].map((item) => {
|
||||
obj.instanceId = item.instanceId;
|
||||
obj.backToFirst = item.backToFirst;
|
||||
obj.ended = item.ended;
|
||||
obj.approveStatus = item.approveStatus;
|
||||
obj.instanceId = item.instanceId
|
||||
obj.backToFirst = item.backToFirst
|
||||
obj.ended = item.ended
|
||||
obj.approveStatus = item.approveStatus
|
||||
if (item.resources.length > 0) {
|
||||
item.resources.map((val) => {
|
||||
obj.list.push(val);
|
||||
});
|
||||
obj.list.push(val)
|
||||
})
|
||||
} else {
|
||||
item.camera.map((val) => {
|
||||
obj.list2.push(val);
|
||||
});
|
||||
obj.list2.push(val)
|
||||
})
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
this.showArr.push(obj);
|
||||
this.showArr.push(obj)
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log("this.dataSource.data[0]========",this.dataSource.data[0][1])
|
||||
console.log('this.dataSource.data[0]========', this.dataSource.data[0][1])
|
||||
},
|
||||
// init () {
|
||||
// this.visible = true
|
||||
|
@ -270,10 +275,10 @@ export default {
|
|||
// })
|
||||
// },
|
||||
closeModal () {
|
||||
this.$emit("closeModal");
|
||||
},
|
||||
},
|
||||
};
|
||||
this.$emit('closeModal')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
.title {
|
||||
|
@ -457,4 +462,3 @@ export default {
|
|||
}
|
||||
}
|
||||
</style>
|
||||
|
|
@ -4,19 +4,19 @@
|
|||
<div v-if="!noData" v-loading="loading">
|
||||
<div class="no-box">
|
||||
<div class="no no2">
|
||||
<el-tooltip effect="dark" :content="no2Obj.name" placement="top">
|
||||
<el-tooltip effect="dark" :content="no2Obj.name" placement="top" v-if="no2Obj.name">
|
||||
<div class="name ellipsis" :style="{ color: colorObj[2] }">{{ no2Obj.name || '--' }}</div>
|
||||
</el-tooltip>
|
||||
<div class="count">{{ formatCount(no2Obj.count) }}</div>
|
||||
</div>
|
||||
<div class="no no1">
|
||||
<el-tooltip effect="dark" :content="no1Obj.name" placement="top">
|
||||
<el-tooltip effect="dark" :content="no1Obj.name" placement="top" v-if="no1Obj.name">
|
||||
<div class="name ellipsis" :style="{ color: colorObj[1] }">{{ no1Obj.name || '--' }}</div>
|
||||
</el-tooltip>
|
||||
<div class="count">{{ formatCount(no1Obj.count) }}</div>
|
||||
</div>
|
||||
<div class="no no3">
|
||||
<el-tooltip effect="dark" :content="no3Obj.name" placement="top">
|
||||
<el-tooltip effect="dark" :content="no3Obj.name" placement="top" v-if="no3Obj.name">
|
||||
<div class="name ellipsis" :style="{ color: colorObj[3] }">{{ no3Obj.name || '--' }}</div>
|
||||
</el-tooltip>
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
|||
<div class="flex-row-between row-name" v-for="(data, i) in listInfo" :key="i">
|
||||
<div class="left">
|
||||
<div class="row-index">{{ i + 4 }}</div>
|
||||
<el-tooltip effect="dark" :content="data.name" placement="top">
|
||||
<el-tooltip effect="dark" :content="data.name" placement="top" v-if="data.name">
|
||||
<div class="name-text ellipsis">{{ data.name || '--' }}</div>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue