部门年度目标日期问题
This commit is contained in:
parent
f498d60386
commit
bb23b439ec
|
@ -122,7 +122,7 @@
|
||||||
<span>质量风险管理库</span>
|
<span>质量风险管理库</span>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
<el-link href="/media/default/集团公司基础质量风险管理库.wlsx" target="_blank" type="primary">集团公司基础质量风险管理库.wlsx</el-link>
|
<el-link href="/media/default/集团公司基础质量风险管理库.xlsx" target="_blank" type="primary">集团公司基础质量风险管理库.xlsx</el-link>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<el-link href="/media/default/基础质量风险管理库引用文件.rar" target="_blank" type="primary">基础质量风险管理库引用文件.rar</el-link>
|
<el-link href="/media/default/基础质量风险管理库引用文件.rar" target="_blank" type="primary">基础质量风险管理库引用文件.rar</el-link>
|
||||||
|
|
|
@ -3,35 +3,19 @@
|
||||||
<el-card>
|
<el-card>
|
||||||
<div>
|
<div>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="listQuery.search"
|
v-model="listQuery.year"
|
||||||
type="year"
|
type="year"
|
||||||
placeholder="选择年"
|
placeholder="选择年"
|
||||||
value-format="yyyy"
|
|
||||||
style="width:300px"
|
style="width:300px"
|
||||||
|
@change="yearChange"
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
<!-- <el-select
|
|
||||||
v-model="listQuery.cycle"
|
|
||||||
placeholder="类型"
|
|
||||||
clearable
|
|
||||||
style="width: 300px"
|
|
||||||
@change="handleFilter"
|
|
||||||
>
|
|
||||||
<el-option label="目标定制" value="10"/>
|
|
||||||
<el-option label="日常监督" value="20"/>
|
|
||||||
</el-select> -->
|
|
||||||
<el-button
|
<el-button
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
@click="handleFilter"
|
@click="handleFilter"
|
||||||
>搜索</el-button>
|
>搜索</el-button>
|
||||||
<el-button
|
|
||||||
class="filter-item"
|
|
||||||
type="primary"
|
|
||||||
icon="el-icon-refresh-left"
|
|
||||||
@click="resetFilter"
|
|
||||||
>重置</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top: 10px">
|
<el-card style="margin-top: 10px">
|
||||||
|
@ -117,13 +101,15 @@
|
||||||
//获取任务列表===》获取任务id
|
//获取任务列表===》获取任务id
|
||||||
getList(){
|
getList(){
|
||||||
let that = this;
|
let that = this;
|
||||||
|
that.dataList.results = [];
|
||||||
|
that.dataList.count =0;
|
||||||
that.listLoading = true;
|
that.listLoading = true;
|
||||||
if(that.listQuery.year==''){
|
if(that.listQuery.year==''){
|
||||||
that.listQuery.year = new Date().getFullYear();
|
let date = new Date();
|
||||||
|
that.listQuery.year = date.getFullYear()+'';
|
||||||
}
|
}
|
||||||
that.listQuery.page=0;
|
that.listQuery.page=0;
|
||||||
getPgoalDeptList(that.listQuery).then((res) => {
|
getPgoalDeptList(that.listQuery).then((res) => {
|
||||||
debugger;
|
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
let data0 = res.data;
|
let data0 = res.data;
|
||||||
let data =data0.filter(item=>{
|
let data =data0.filter(item=>{
|
||||||
|
@ -136,7 +122,6 @@
|
||||||
{year:that.listQuery.year,dept_name:'集团',dept:'000',pgoal_1:'',pgoal_2:'',pgoal_3:'',pgoal_4:'',pgoal_5:''}
|
{year:that.listQuery.year,dept_name:'集团',dept:'000',pgoal_1:'',pgoal_2:'',pgoal_3:'',pgoal_4:'',pgoal_5:''}
|
||||||
];
|
];
|
||||||
for(let i=0;i<data.length;i++){
|
for(let i=0;i<data.length;i++){
|
||||||
debugger;
|
|
||||||
let index = alreadyId.indexOf(data[i].belong_dept)
|
let index = alreadyId.indexOf(data[i].belong_dept)
|
||||||
if(index>-1){
|
if(index>-1){
|
||||||
}else{
|
}else{
|
||||||
|
@ -163,16 +148,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
that.dataList.results = dataList;
|
that.dataList.results = dataList;
|
||||||
that.listLoading = false;
|
|
||||||
}
|
}
|
||||||
|
that.listLoading = false;
|
||||||
|
}else{
|
||||||
|
that.listLoading = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
resetFilter(){
|
yearChange(value){
|
||||||
this.listQuery.search = '';
|
let year = new Date(value).getFullYear()+'';
|
||||||
this.getList();
|
this.listQuery.year = year;
|
||||||
},
|
},
|
||||||
handleFilter(){
|
handleFilter(){
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<el-card>
|
<el-card>
|
||||||
<div>
|
<div>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="listQuery.search"
|
v-model="listQuery.year"
|
||||||
placeholder="请输入年份"
|
placeholder="请输入年份"
|
||||||
style="width: 300px"
|
style="width: 300px"
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
|
@ -176,7 +176,7 @@
|
||||||
},
|
},
|
||||||
listQuery:{
|
listQuery:{
|
||||||
page: 1,
|
page: 1,
|
||||||
search:'',
|
year:'',
|
||||||
page_size: 20,
|
page_size: 20,
|
||||||
},
|
},
|
||||||
typeOptions:{
|
typeOptions:{
|
||||||
|
|
Loading…
Reference in New Issue