|
@@ -7,6 +7,9 @@
|
|
|
<el-form-item label="项目名称" prop="name">
|
|
|
<el-input v-model="queryParams.name" placeholder="请输入项目名称" clearable size="small" @keyup.enter.native="handleQuery" />
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="填报单位" prop="name">
|
|
|
+ <el-input v-model="queryParams.deptName" placeholder="请输入填报单位" clearable size="small" @keyup.enter.native="handleQuery" />
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="填报日期" prop="addtime">
|
|
|
<el-date-picker value-format="yyyy-MM-dd" @change="tiemsChange" v-model="times" type="daterange"
|
|
|
range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
|
|
@@ -248,6 +251,7 @@
|
|
|
setPass,
|
|
|
exportInfo
|
|
|
} from "@/api/projectInfo/info";
|
|
|
+ import { listDept } from '@/api/system/dept'
|
|
|
let vm = ''
|
|
|
|
|
|
export default {
|
|
@@ -329,7 +333,9 @@
|
|
|
address: null,
|
|
|
isFrameorder: null,
|
|
|
attachment: null,
|
|
|
- description: null
|
|
|
+ description: null,
|
|
|
+ deptName: undefined,
|
|
|
+ deptList: []
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
@@ -479,13 +485,22 @@
|
|
|
address: null,
|
|
|
isFrameorder: null,
|
|
|
attachment: null,
|
|
|
- description: null
|
|
|
+ description: null,
|
|
|
+ deptName: undefined,
|
|
|
+ deptList: []
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
|
this.queryParams.pageNum = 1;
|
|
|
+ listDept(this.queryParams).then(response => {
|
|
|
+ if (response.data.length !== 0){
|
|
|
+ for (var i = 0; i < response.data.length; i++) {
|
|
|
+ this.queryParams.deptList.push(response.data[i].deptId)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
this.getList();
|
|
|
},
|
|
|
/** 重置按钮操作 */
|
|
@@ -529,7 +544,6 @@
|
|
|
this.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
|
- console.log(345)
|
|
|
|
|
|
});
|
|
|
}
|