|
|
@@ -1,61 +1,63 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
- <el-row >
|
|
|
+ <el-row>
|
|
|
<!--用户数据-->
|
|
|
<el-col>
|
|
|
<div class="main-search-box">
|
|
|
- <!-- 搜索条件 -->
|
|
|
- <el-form
|
|
|
- :model="queryParams"
|
|
|
- ref="queryForm"
|
|
|
- size="small"
|
|
|
- :inline="true"
|
|
|
- v-show="showSearch"
|
|
|
- label-width="100px"
|
|
|
- >
|
|
|
- <el-form-item label="组织机构" class="formTreeItem">
|
|
|
- <tree-select
|
|
|
- v-model="queryParams.orgId"
|
|
|
- :options="deptOptions"
|
|
|
- :show-count="true"
|
|
|
- :normalizer="tenantIdnormalizer"
|
|
|
- :props="{ checkStrictly: true, label: 'name' }"
|
|
|
- placeholder="请选择归属机构"
|
|
|
- clearValueText="清除"
|
|
|
- :noChildrenText="''"
|
|
|
- noOptionsText="没有数据"
|
|
|
- noResultsText="没有搜索结果"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="年月">
|
|
|
- <el-date-picker
|
|
|
- type="month"
|
|
|
- v-model="queryParams.date"
|
|
|
- placeholder="选择年月"
|
|
|
- value-format="yyyy-MM"
|
|
|
- >
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- <el-row :gutter="10" class="mb8">
|
|
|
+ <!-- 搜索条件 -->
|
|
|
+ <el-form
|
|
|
+ :model="queryParams"
|
|
|
+ ref="queryForm"
|
|
|
+ size="small"
|
|
|
+ :inline="true"
|
|
|
+ v-show="showSearch"
|
|
|
+ >
|
|
|
+ <el-form-item label="组织机构" class="formTreeItem">
|
|
|
+ <tree-select
|
|
|
+ v-model="queryParams.orgId"
|
|
|
+ :options="deptOptions"
|
|
|
+ :show-count="true"
|
|
|
+ :normalizer="tenantIdnormalizer"
|
|
|
+ :props="{ checkStrictly: true, label: 'name' }"
|
|
|
+ placeholder="请选择归属机构"
|
|
|
+ clearValueText="清除"
|
|
|
+ :noChildrenText="''"
|
|
|
+ :clearable="false"
|
|
|
+ noOptionsText="没有数据"
|
|
|
+ noResultsText="没有搜索结果"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="年月">
|
|
|
+ <el-date-picker
|
|
|
+ type="month"
|
|
|
+ v-model="queryParams.date"
|
|
|
+ placeholder="选择年月"
|
|
|
+ :clearable="false"
|
|
|
+ value-format="yyyy-MM"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-row :gutter="10" class="mb8">
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
|
- type="primary"
|
|
|
- icon="el-icon-search"
|
|
|
- size="mini"
|
|
|
- @click="handleQuery"
|
|
|
- >搜索</el-button
|
|
|
- >
|
|
|
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
|
|
- >重置</el-button
|
|
|
- >
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-search"
|
|
|
+ size="mini"
|
|
|
+ @click="handleQuery"
|
|
|
+ >搜索</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ size="mini"
|
|
|
+ @click="resetQuery"
|
|
|
+ >重置</el-button
|
|
|
+ >
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- </el-form>
|
|
|
-
|
|
|
+ </el-form>
|
|
|
</div>
|
|
|
-
|
|
|
|
|
|
-
|
|
|
<el-table
|
|
|
border
|
|
|
height="650"
|
|
|
@@ -71,17 +73,13 @@
|
|
|
type="index"
|
|
|
width="100"
|
|
|
></el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="年月"
|
|
|
-
|
|
|
- :formatter="formatterScore"
|
|
|
- />
|
|
|
+ <el-table-column label="年月" :formatter="formatterScore" />
|
|
|
<el-table-column label="机构名称" prop="orgName" />
|
|
|
<el-table-column label=">90 低" prop="level_gt90" />
|
|
|
<el-table-column label="80-90 中" prop="level_80_90" />
|
|
|
<el-table-column label="70-80 高" prop="level_70_80" />
|
|
|
-
|
|
|
- <el-table-column label="70及以下 极高" prop="level_lt70" >
|
|
|
+
|
|
|
+ <el-table-column label="70及以下 极高" prop="level_lt70">
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
@@ -104,7 +102,6 @@
|
|
|
class="el-icon-edit-outline"
|
|
|
>重新计算</el-button
|
|
|
>
|
|
|
-
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -129,10 +126,7 @@
|
|
|
<script>
|
|
|
import { mapGetters } from "vuex";
|
|
|
import { findAllRole } from "@/api/system/role";
|
|
|
-import {
|
|
|
- list,
|
|
|
- anewDetail,
|
|
|
-} from "@/api/scorestatistics/scorestatistics.js";
|
|
|
+import { list, anewDetail } from "@/api/scorestatistics/scorestatistics.js";
|
|
|
import OrgTree from "@/components/orgTree";
|
|
|
import { newDateMonth } from "@/utils/index.js";
|
|
|
import scorestatisticsDialog from "./scorestatisticsDialog.vue";
|
|
|
@@ -157,7 +151,7 @@ export default {
|
|
|
|
|
|
queryParams: {
|
|
|
orgId: null,
|
|
|
- date: newDateMonth('','1'),
|
|
|
+ date: newDateMonth("", "1"),
|
|
|
|
|
|
page: 1,
|
|
|
size: 10,
|
|
|
@@ -170,7 +164,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- this.queryParams.orgId = this.orgId
|
|
|
+ this.queryParams.orgId = this.orgId;
|
|
|
this.getList();
|
|
|
this.getDeptTree();
|
|
|
},
|
|
|
@@ -196,8 +190,8 @@ export default {
|
|
|
children: node.children,
|
|
|
};
|
|
|
},
|
|
|
- formatterScore({ dataYear,dataMonth }) {
|
|
|
- return dataYear+'-'+dataMonth
|
|
|
+ formatterScore({ dataYear, dataMonth }) {
|
|
|
+ return dataYear + "-" + dataMonth;
|
|
|
},
|
|
|
|
|
|
//获取列表
|
|
|
@@ -225,7 +219,11 @@ export default {
|
|
|
.confirm("重新计算将会等待一段时间,你确定要重新计算吗?")
|
|
|
.then(function () {})
|
|
|
.then(() => {
|
|
|
- anewDetail({month:row.dataMonth,year:row.dataYear,orgId:row.orgId}).then((res) => {
|
|
|
+ anewDetail({
|
|
|
+ month: row.dataMonth,
|
|
|
+ year: row.dataYear,
|
|
|
+ orgId: row.orgId,
|
|
|
+ }).then((res) => {
|
|
|
let { code, msg } = res;
|
|
|
if (code == 200) {
|
|
|
this.getList();
|
|
|
@@ -236,8 +234,6 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|