|
|
@@ -12,8 +12,8 @@
|
|
|
:model="queryParams"
|
|
|
size="small"
|
|
|
>
|
|
|
- <el-form-item class="formTreeItem" label="组织机构">
|
|
|
- <tree-select
|
|
|
+ <el-form-item label="组织机构">
|
|
|
+ <!-- <tree-select
|
|
|
v-model="queryParams.orgId"
|
|
|
:clearable="false"
|
|
|
:noChildrenText="''"
|
|
|
@@ -25,7 +25,16 @@
|
|
|
noOptionsText="没有数据"
|
|
|
noResultsText="没有搜索结果"
|
|
|
placeholder="请选择归属机构"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
+ <org-tree
|
|
|
+ v-model="queryParams.orgId"
|
|
|
+ @defaultKey="getDefaultKey"
|
|
|
+ @checkChange="checkChange"
|
|
|
+ @click="clickTreeNode"
|
|
|
+ :defaultCheckSub="true"
|
|
|
+ :showCheckSub="false"
|
|
|
+ ref="orgTree"
|
|
|
+ ></org-tree>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="查询年月">
|
|
|
<el-date-picker
|
|
|
@@ -168,7 +177,7 @@
|
|
|
<script>
|
|
|
import {mapGetters} from "vuex";
|
|
|
import {anewDetail, list} from "@/api/scorestatistics/scorestatistics.js";
|
|
|
-import OrgTree from "@/components/orgTree";
|
|
|
+import OrgTree from "@/components/orgTree/orgQuerySelector.vue";
|
|
|
import {newDateMonth} from "@/utils/index.js";
|
|
|
import scorestatisticsDialog from "./scorestatisticsDialog.vue";
|
|
|
import {deptTreeSelect} from "@/api/system/public";
|
|
|
@@ -194,7 +203,6 @@ export default {
|
|
|
queryParams: {
|
|
|
orgId: null,
|
|
|
date: newDateMonth("", "1"),
|
|
|
-
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
},
|
|
|
@@ -208,7 +216,7 @@ export default {
|
|
|
created() {
|
|
|
this.queryParams.orgId = this.orgId;
|
|
|
this.getList();
|
|
|
- this.getDeptTree();
|
|
|
+ // this.getDeptTree();
|
|
|
},
|
|
|
mounted() {
|
|
|
},
|
|
|
@@ -236,6 +244,16 @@ export default {
|
|
|
formatterScore({dataYear, dataMonth}) {
|
|
|
return dataYear + "-" + dataMonth;
|
|
|
},
|
|
|
+ getDefaultKey(key) {
|
|
|
+ this.queryParams.orgId = key;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+
|
|
|
+ // 节点单击事件
|
|
|
+ clickTreeNode(data) {
|
|
|
+ this.queryParams.orgId = data.id;
|
|
|
+ this.handleQuery();
|
|
|
+ },
|
|
|
|
|
|
//获取列表
|
|
|
getList() {
|