更改工作

lijinlong
李劲龙 2 months ago
parent 12f0f220aa
commit 0ee04d949a

@ -30,4 +30,20 @@ export function addassetTaskadd(data) {
method: "get",
params,
})
}
export function assetTasktaskSh(params) {
return request({
url: `/unit/assetTask/taskSh`,
method: "get",
params,
})
}
export function assetTasksh(data) {
return request({
url: `/unit/assetTask/sh`,
method: "post",
data,
})
}

File diff suppressed because it is too large Load Diff

@ -63,7 +63,7 @@
<el-table v-loading="loading" :data="tableData" :height="tabHeader" :max-height="tabHeader"
:row-class-name="tableRowClassName">
<el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column label="任务编号" key="taskId" width="200px" prop="taskId" align="center" />
<el-table-column label="任务编号" key="id" width="200px" prop="id" align="center" />
<el-table-column label="任务名称" key="taskName" prop="taskName" align="center" />
<el-table-column label="任务下发时间" key="taskTime" prop="taskTime" align="center">
<!-- <template slot-scope="scope">
@ -75,19 +75,19 @@
<el-table-column label="任务状态" key="taskStatus" width="200px" prop="taskStatus" class-name="table-status"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.status === 1" style="color: #F58A0C;">
<span v-if="scope.row.taskStatus == 1" style="color: #F58A0C;">
进行中
</span>
<span v-if="scope.row.status === 2" style="color: #F50C0C;">
<span v-if="scope.row.taskStatus == 2" style="color: #F50C0C;">
正常完成
</span>
<span v-if="scope.row.status === 3" style="color: #16B771;">
<span v-if="scope.row.taskStatus == 3" style="color: #16B771;">
超期完成
</span>
<span v-if="scope.row.status === 4" style="color: #1485EF;">
<span v-if="scope.row.taskStatus == 4" style="color: #1485EF;">
正常完成
</span>
<span v-if="scope.row.status === 5" style="color: #1485EF;">
<span v-if="scope.row.taskStatus == 5" style="color: #1485EF;">
审核驳回
</span>
</template>

@ -232,15 +232,24 @@ export default {
//
if (type == 1) {
this.$router.push({
name: 'AssetsAuth', query: {
name: 'taskAuditInfo', query: {
pageType: "look",
id: row.id
taskId: row.taskId,
assetId:row.id
}
})
}
//
if (type == 2) {
this.$router.push({
name: 'taskAuditInfo', query: {
pageType: "change",
taskId: row.taskId,
assetId:row.id
}
})
}
// getassetTaskid(row.id)

Loading…
Cancel
Save