|
|
@@ -2,11 +2,11 @@
|
|
|
<div class="problem-item">
|
|
|
<NavBar />
|
|
|
<div class="page-container">
|
|
|
- <van-search v-model="query.value" class="van-hairline--bottom" placeholder="请输入搜索关键词" />
|
|
|
+ <van-search v-model="query.searchKey" class="van-hairline--bottom" placeholder="请输入搜索关键词" />
|
|
|
<org-tree v-model="query.orgId" @change="getDataList"></org-tree>
|
|
|
<div class="search-flex">
|
|
|
- <select-cell class="van-hairline--right" title="确认状态" v-model="query.planId" :dataList="planList" :prop="prop" @change="getDataList"/>
|
|
|
- <date-cell title="发现日期" v-model="query.date" date-type="year-month" @change="getDataList"/>
|
|
|
+ <select-cell class="van-hairline--right" title="确认状态" v-model="query.confirmStatus" :data-list="getDictItem('question_confirm_status')" @change="getDataList"/>
|
|
|
+ <date-cell title="发现日期" v-model="query.submitTime" date-type="year-month" @change="getDataList"/>
|
|
|
</div>
|
|
|
<div class="card-list">
|
|
|
<van-empty description="暂无数据" v-if="!dataList || dataList.length === 0" />
|
|
|
@@ -50,16 +50,14 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
query:{
|
|
|
- value: '',
|
|
|
- date:null,
|
|
|
+ searchKey: null,
|
|
|
+ submitTime:null,
|
|
|
orgId:null,
|
|
|
- planId:null,
|
|
|
+ confirmStatus:'0',
|
|
|
+ pageSize:20,
|
|
|
+ pageNum:1,
|
|
|
},
|
|
|
planList:[],
|
|
|
- prop:{
|
|
|
- label:'name',
|
|
|
- value:'id',
|
|
|
- },
|
|
|
loading:false,
|
|
|
columns:[
|
|
|
{
|
|
|
@@ -77,37 +75,30 @@ export default {
|
|
|
{ field: "finish", key: "c", title: "已完成数",align: "center" },
|
|
|
{ field: "finishRate", key: "d", title: "完成率", align: "center" },
|
|
|
],
|
|
|
- dataList:[]
|
|
|
+ dataList:[],
|
|
|
+ dicts:['question_confirm_status','question_reform_status']
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
this.initData();
|
|
|
},
|
|
|
computed:{
|
|
|
- ...mapGetters(['orgId']),
|
|
|
+ ...mapGetters(['orgId','dictionary']),
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
//初始化数据
|
|
|
initData(){
|
|
|
this.query.orgId = this.orgId;
|
|
|
- this.getPlanList();
|
|
|
- },
|
|
|
- //获取教育计划列表
|
|
|
- getPlanList(){
|
|
|
- planList(this.query.orgId).then(res=>{
|
|
|
- this.planList = res.data;
|
|
|
- if(res.data.length === 0) return this.$toast('暂无教育计划');
|
|
|
- this.query.planId = res.data[0].id;
|
|
|
- this.query.date = formatDate(new Date(),'YYYY-MM');
|
|
|
- this.getDataList();
|
|
|
- })
|
|
|
+ this.query.submitTime = formatDate(new Date(),'YYYY-MM');
|
|
|
+ this.getDataList();
|
|
|
},
|
|
|
//获取数据列表
|
|
|
getDataList(){
|
|
|
let data = {
|
|
|
...this.query
|
|
|
}
|
|
|
- data.date = this.query.date && `${this.query.date}-01`;
|
|
|
+ data.submitTime = this.query.submitTime && `${this.query.submitTime}-01`;
|
|
|
if(!this.query.orgId) return this.$toast('请选择机构');
|
|
|
dataList(data).then(res=>{
|
|
|
this.dataList = res.data;
|