|
|
|
|
@ -16,7 +16,20 @@
|
|
|
|
|
|
|
|
|
|
<!-- @cell-click="cellClicks" -->
|
|
|
|
|
<xy-table :list="mission_log" :table-item="missionLogTable" :showIndex='false' :isPage='false'
|
|
|
|
|
:span-method="spanMethod">
|
|
|
|
|
:span-method="spanMethod">
|
|
|
|
|
has_mission
|
|
|
|
|
<template v-slot:has_mission>
|
|
|
|
|
<el-table-column align='center' label="操作" fixed="right" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.mission_plans.length>0">
|
|
|
|
|
已创建计划
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="scope.row.missions.length>0">
|
|
|
|
|
已创建专项任务
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
<el-table-column align='center' label="操作" fixed="right" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
@ -125,6 +138,11 @@
|
|
|
|
|
prop: 'resource',
|
|
|
|
|
width: 240,
|
|
|
|
|
align: 'left'
|
|
|
|
|
},{
|
|
|
|
|
label: "是否已创建计划或专项任务",
|
|
|
|
|
prop: 'has_mission',
|
|
|
|
|
width: 240,
|
|
|
|
|
align: 'left'
|
|
|
|
|
}],
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
@ -150,7 +168,9 @@
|
|
|
|
|
async getList() {
|
|
|
|
|
const res = await index({
|
|
|
|
|
|
|
|
|
|
...this.select,
|
|
|
|
|
...this.select,
|
|
|
|
|
'with_relations[0]':"missionPlans",
|
|
|
|
|
'with_relations[1]':"missions",
|
|
|
|
|
filter: [{
|
|
|
|
|
key: 'year',
|
|
|
|
|
op: 'eq',
|
|
|
|
|
|