|
|
|
|
@ -7,6 +7,16 @@
|
|
|
|
|
<DatePicker style='width:200px;margin-right: 10px;' placeholder="年份" placement="bottom" format='yyyy'
|
|
|
|
|
type="year" @on-change="changeYear"></DatePicker>
|
|
|
|
|
<Input v-model="select.keyword" clearable style="width: 200px;margin-right: 10px;" placeholder="关键字搜索" />
|
|
|
|
|
<!-- has_mission_plans -->
|
|
|
|
|
<Select clearable style='width:200px;margin-right: 10px;' v-model="select.has_mission_plans"
|
|
|
|
|
placeholder="是否已发布计划">
|
|
|
|
|
<Option v-for="item in hasMissionList" :value="item.id">{{item.value}}</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
<Select clearable style='width:200px;margin-right: 10px;' v-model="select.has_missions"
|
|
|
|
|
placeholder="是否已发布任务">
|
|
|
|
|
<Option v-for="item in hasMissionList" :value="item.id">{{item.value}}</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
|
|
|
|
|
<Button type="primary" @click="getList">查询</Button>
|
|
|
|
|
<Button type="primary" style="margin-left: 10px;" @click="editorOutline('','add')">添加</Button>
|
|
|
|
|
</div>
|
|
|
|
|
@ -86,8 +96,17 @@
|
|
|
|
|
page_size: 99999,
|
|
|
|
|
year: new Date().getFullYear(),
|
|
|
|
|
sort_name: 'created_at',
|
|
|
|
|
sort_type: 'ASC'
|
|
|
|
|
},
|
|
|
|
|
sort_type: 'ASC',
|
|
|
|
|
has_mission_plans:'',
|
|
|
|
|
has_missions:''
|
|
|
|
|
},
|
|
|
|
|
hasMissionList:[{
|
|
|
|
|
id:0,
|
|
|
|
|
value:'否',
|
|
|
|
|
},{
|
|
|
|
|
id:1,
|
|
|
|
|
value:'是',
|
|
|
|
|
}],
|
|
|
|
|
menuList: [],
|
|
|
|
|
mission_log: [],
|
|
|
|
|
missionLogTable: [{
|
|
|
|
|
@ -169,6 +188,9 @@
|
|
|
|
|
const res = await index({
|
|
|
|
|
|
|
|
|
|
...this.select,
|
|
|
|
|
has_mission_plans:this.select.has_mission_plans?this.select.has_mission_plans:(this.select.has_mission_plans===0?0:''),
|
|
|
|
|
has_missions:this.select.has_missions?this.select.has_missions:(this.select.has_missions===0?0:''),
|
|
|
|
|
|
|
|
|
|
'with_relations[0]':"missionPlans",
|
|
|
|
|
'with_relations[1]':"missions",
|
|
|
|
|
filter: [{
|
|
|
|
|
@ -186,6 +208,8 @@
|
|
|
|
|
changeYear(e) {
|
|
|
|
|
if (e) {
|
|
|
|
|
this.select.year = e
|
|
|
|
|
}else{
|
|
|
|
|
this.select.year = new Date().getFullYear()
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
spanMethod({
|
|
|
|
|
|