From 0e4d44c2f5a7511d2eee72deecb76b5ba67358cd Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Tue, 04 Jan 2022 17:39:41 +0800
Subject: [PATCH] 智能分析查询明细样式调整
---
src/views/securityAnalysis/child/examination.vue | 109 ++++++++++++++++++++++++++++++++++++++++++------------
1 files changed, 85 insertions(+), 24 deletions(-)
diff --git a/src/views/securityAnalysis/child/examination.vue b/src/views/securityAnalysis/child/examination.vue
index 2c33342..bd5a11f 100644
--- a/src/views/securityAnalysis/child/examination.vue
+++ b/src/views/securityAnalysis/child/examination.vue
@@ -1,9 +1,15 @@
<template>
- <div class="certificateTJ">
+ <div
+ :class="[
+ 'certificateTJ',
+ $store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
+ ]"
+ >
<avue-crud
:option="option1"
:data="data1"
:page.sync="page1"
+ :search.sync="search"
:table-loading="loading1"
@on-load="getPractitionersPageInfo(page1)"
@search-change="searchChange"
@@ -29,7 +35,9 @@
pageSize: 10,
currentPage: 1,
total: 0,
+ ...this.$store.state.control.changePageSize,
},
+ search:{},
query1: {},
data1: [],
option1: {
@@ -39,7 +47,7 @@
// refreshBtn: false,
// card: true,
menu: false,
- height: 450,
+ height: "auto",
widtd: "auto",
// calcHeight: 54,
border: true, //liu
@@ -49,17 +57,27 @@
// dialogClickModal: false,
// headerAlign: "center",
align: "center",
+ ...this.$store.state.control.clearOtherBut,
column: [
{
label: "姓名",
prop: "securityName",
disabled: true,
search: true,
+ searchSpan:4
+ },
+ {
+ label: "学校名称",
+ prop: "trainingUnitName",
+ disabled: true,
+ search: true,
+ minWidth:160
},
{
label: "考试场次",
prop: "examName",
disabled: true,
+ minWidth:160
},
{
label: "考试时间",
@@ -67,9 +85,54 @@
disabled: true,
},
{
- label: "考试分数",
+ label: "考试时间",
+ prop: "month",
+ type: "month",
+ hide:true,
+ search:true,
+ searchSpan:4,
+ format: "yyyy-MM",
+ valueFormat: "yyyy-MM",
+ },
+ {
+ label: "理论成绩",
+ prop: "theoryGrade",
+ disabled: true,
+ },
+ {
+ label: "实操成绩",
+ prop: "learnGrade",
+ disabled: true,
+ },
+ {
+ label: "总分数",
prop: "allGrade",
disabled: true,
+ },
+ {
+ label: "是否合格",
+ prop: "qualified",
+ type: "select",
+ search: true,
+ searchSpan: 4,
+ dicData: [
+ {
+ label: "合格",
+ value: 0,
+ },
+ {
+ label: "不合格",
+ value: 1,
+ },
+ {
+ label: "暂未录实操成绩",
+ value: 2,
+ },
+ {
+ label: "缺考,成绩无效",
+ value: 3,
+ },
+ ],
},
],
},
@@ -77,17 +140,25 @@
},
methods: {
getPractitionersPageInfo(page, params = {}) {
- // this.data1 = this.czdata;
- // console.log(page);
- params = {
- ...params,
- ...this.card,
- };
+ params = this.search;
+ params['deptId'] = this.card.deptid;
+ params['jurisdiction'] = this.card.jurisdiction;
getinformationstatisticsXX(page.currentPage, page.pageSize, params).then(
(res) => {
- // console.log(res.data.data.records);
const data = res.data.data;
- this.data1 = data.records;
+ var d = data.records;
+ for (var k in d) {
+ if (d[k].theoryGrade == -1) {
+ d[k].theoryGrade = "暂未录入";
+ }
+ if (d[k].allGrade == -1) {
+ d[k].allGrade = "暂未录入";
+ }
+ if (d[k].learnGrade == -1) {
+ d[k].learnGrade = "暂未录入";
+ }
+ }
+ this.data1 = d;
this.page1.total = data.total;
this.loading1 = false;
}
@@ -97,19 +168,9 @@
this.getPractitionersPageInfo(this.page1);
},
searchChange(params, done) {
- if (params.czname == undefined) {
- this.data1 = this.czdata;
- done();
- return;
- }
- var text = new RegExp(params.czname, "g"),
- d = [];
- for (let k in this.czdata) {
- if (text.test(this.czdata[k].czname)) {
- d.push(this.czdata[k]);
- }
- }
- this.data1 = d;
+ this.query1 = params;
+ this.query1.currentPage = 1;
+ this.getPractitionersPageInfo(this.page1, params);
done();
},
searchReset(done) {
--
Gitblit v1.9.3