main
parent
04724f087f
commit
38a84af88f
|
|
@ -26,10 +26,17 @@
|
||||||
v-for="item in list"
|
v-for="item in list"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:title="item.name"
|
:title="item.name"
|
||||||
:status-text="statusFun(item.taskable.status, 'task_hygienes' ,'name')"
|
:status-text="
|
||||||
:status-color="statusFun(item.taskable.status, 'task_hygienes' ,'color')"
|
statusFun(item.taskable.status, item.taskable_type, 'name')
|
||||||
|
"
|
||||||
|
:status-color="
|
||||||
|
statusFun(item.taskable.status, item.taskable_type, 'color')
|
||||||
|
"
|
||||||
:body="[
|
:body="[
|
||||||
{label: '任务时间: ', value: item.start_format + '-' + item.end_format}
|
{
|
||||||
|
label: '任务时间: ',
|
||||||
|
value: item.start_format + '-' + item.end_format,
|
||||||
|
},
|
||||||
]"
|
]"
|
||||||
@click.stop="applyClick(item)"
|
@click.stop="applyClick(item)"
|
||||||
/>
|
/>
|
||||||
|
|
@ -50,10 +57,20 @@
|
||||||
v-for="item in list"
|
v-for="item in list"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:title="item?.check?.subject?.task?.name"
|
:title="item?.check?.subject?.task?.name"
|
||||||
:status-text="statusFun(item.check_status,'statusExpense2','name')"
|
:status-text="
|
||||||
:status-color="statusFun(item.check_status,'statusExpense2','color')"
|
statusFun(item.check_status, 'statusExpense2', 'name')
|
||||||
|
"
|
||||||
|
:status-color="
|
||||||
|
statusFun(item.check_status, 'statusExpense2', 'color')
|
||||||
|
"
|
||||||
:body="[
|
:body="[
|
||||||
{label: '任务时间: ', value: item?.check?.subject?.task?.start_format + '-' + item?.check?.subject?.task?.end_format}
|
{
|
||||||
|
label: '任务时间: ',
|
||||||
|
value:
|
||||||
|
item?.check?.subject?.task?.start_format +
|
||||||
|
'-' +
|
||||||
|
item?.check?.subject?.task?.end_format,
|
||||||
|
},
|
||||||
]"
|
]"
|
||||||
@click.stop="checkClick(item)"
|
@click.stop="checkClick(item)"
|
||||||
/>
|
/>
|
||||||
|
|
@ -91,7 +108,7 @@ const tabList = ref([
|
||||||
apiUrl: '/workflow',
|
apiUrl: '/workflow',
|
||||||
params: {
|
params: {
|
||||||
subject_type: 'task_hygienes',
|
subject_type: 'task_hygienes',
|
||||||
include: 'check.subject.task'
|
include: 'check.subject.task',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
|
|
@ -112,8 +129,9 @@ const applyClick = (item) => {
|
||||||
const type = item.taskable_type
|
const type = item.taskable_type
|
||||||
const status = item.taskable.status
|
const status = item.taskable.status
|
||||||
let url
|
let url
|
||||||
if (status === 2 || status == 4) {
|
if (status === 2 || status == 4 || type=='task_ledgers') {
|
||||||
url = `/pages/task/${type}_submit?id=${item.id}&date=${item.taskable.date}`
|
const date = status != 3 || status != 5 ? `&date=${item.taskable.date}` : ''
|
||||||
|
url = `/pages/task/${type}_submit?id=${item.id}${date}`
|
||||||
} else {
|
} else {
|
||||||
url = `/pages/task/detail?id=${item.id}`
|
url = `/pages/task/detail?id=${item.id}`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue