From 8cd52dff030c014cce88f3ab6c70bced189483f2 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期四, 28 三月 2024 14:14:03 +0800
Subject: [PATCH] Merge branch 'master' of http://42.193.1.25:9521/r/zgyw-ui
---
src/views/system/check-result/city/detail.vue | 791 +++++++++++++++
src/views/system/default-auditing/index.vue | 40
src/views/system/data-manage/index.vue | 5
src/views/system/check-result/province/index.vue | 471 +++++++++
src/views/system/check-template/index.vue | 12
src/router/index.js | 39
src/views/system/score/index.vue | 51
src/views/system/check-rule/index.vue | 1
src/views/system/check-result/province/detail.vue | 791 +++++++++++++++
src/views/system/work-order/index.vue | 50
src/views/system/check-result/city/index.vue | 58
src/views/system/contract/index.vue | 2
src/views/system/check-result/contract/index.vue | 71 -
src/views/system/check-result/contract/detail.vue | 685 +++++++++++++
14 files changed, 2,882 insertions(+), 185 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index 58389a7..80ba5f6 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -60,6 +60,45 @@
]
},
{
+ path: '/check-result/contract',
+ component: Layout,
+ hidden: true,
+ children: [
+ {
+ path: 'detail',
+ name: 'check-result-contract',
+ component: () => import('@/views/system/check-result/contract/detail'),
+ meta: { title: '鍚堝悓缁撴灉璇︽儏', activeMenu: '/system/check-result/contract' }
+ }
+ ]
+ },
+ {
+ path: '/check-result/city',
+ component: Layout,
+ hidden: true,
+ children: [
+ {
+ path: 'detail',
+ name: 'check-result-city',
+ component: () => import('@/views/system/check-result/city/detail'),
+ meta: { title: '甯傚眬鑰冩牳缁撴灉璇︽儏', activeMenu: '/system/check-result/city' }
+ }
+ ]
+ },
+ {
+ path: '/check-result/province',
+ component: Layout,
+ hidden: true,
+ children: [
+ {
+ path: 'detail',
+ name: 'check-result-province',
+ component: () => import('@/views/system/check-result/province/detail'),
+ meta: { title: '鐪佸巺鑰冩牳缁撴灉璇︽儏', activeMenu: '/system/check-result/province' }
+ }
+ ]
+ },
+ {
path: '/register',
component: () => import('@/views/register'),
hidden: true
diff --git a/src/views/system/check-result/city/detail.vue b/src/views/system/check-result/city/detail.vue
new file mode 100644
index 0000000..171a8ad
--- /dev/null
+++ b/src/views/system/check-result/city/detail.vue
@@ -0,0 +1,791 @@
+<template>
+ <div class="app-container">
+ <el-page-header @back="goBack" content="璇︽儏椤甸潰">
+ </el-page-header>
+ <el-container>
+ <el-main style="padding-top: 0px">
+ <h2>鑰冩牳鍒嗘暟鏄庣粏</h2>
+ <el-row :gutter="10" class="mb8">
+ <el-col :span="1.5">
+ <el-button
+ type="success"
+ plain
+ icon="el-icon-edit"
+ size="mini"
+ :disabled="single"
+ @click="handleScoreUpdate"
+ >淇敼</el-button>
+ </el-col>
+ <el-col :span="1.5">
+ <el-button
+ type="danger"
+ plain
+ icon="el-icon-delete"
+ size="mini"
+ :disabled="multiple"
+ @click="handleDelete"
+ >鍒犻櫎</el-button>
+ </el-col>
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getScoreList"></right-toolbar>
+ </el-row>
+
+ <el-table v-loading="loading" :data="scoreList" @selection-change="handleSelectionChange">
+ <el-table-column type="selection" width="55" align="center" />
+ <el-table-column label="鑰冩牳鍚�" align="center" prop="examineName" />
+ <el-table-column label="鑰冩牳绫诲瀷" align="center" prop="examineCategory">
+ <template slot-scope="scope">
+ <div v-if="scope.row.examineCategory == 1">鐪佸巺鑰冩牳</div>
+ <div v-else-if="scope.row.examineCategory == 2">甯傚眬鑰冩牳</div>
+ <div v-else-if="scope.row.examineCategory == 3">鍚堝悓鑰冩牳</div>
+ </template>
+ </el-table-column>
+ <el-table-column label="鑰冩牳瀵硅薄" align="center" prop="unitName">
+ <template slot-scope="scope">
+ <div v-if="scope.row.unitName ==='鎴愰兘x杩愮淮' ">鎴愰兘x杩愮淮</div>
+ <div v-else>鑷祦浜曞尯</div>
+ </template>
+ </el-table-column>
+ <el-table-column label="鍒嗗��" align="center" prop="score" />
+ <el-table-column label="鑰冩牳瑙勫垯" align="center" prop="ruleCategory">
+ <template slot-scope="scope">
+ <div v-if="scope.row.ruleCategory == 1">瑙嗛鍦ㄧ嚎鐜�</div>
+ <div v-else-if="scope.row.ruleCategory == 2">瀛樺偍鏁呴殰</div>
+ <div v-else-if="scope.row.ruleCategory == 3">瑙嗗浘搴撳鎺ョǔ瀹氭��</div>
+ <div v-else-if="scope.row.ruleCategory == 4">涓�鏈轰竴妗�24灏忔椂鏈慨澶�</div>
+ <div v-else-if="scope.row.ruleCategory == 5">鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�</div>
+ </template>
+ </el-table-column>
+ <el-table-column label="鍒涘缓浜�" align="center" prop="createBy" />
+ <el-table-column label="鍒涘缓鏃堕棿" align="center" prop="createTime" />
+ <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
+ <template slot-scope="scope">
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-edit"
+ @click="handleScoreUpdate(scope.row)"
+ >淇敼</el-button>
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-delete"
+ @click="handleScoreDelete(scope.row)"
+ >鍒犻櫎</el-button>
+ </template>
+ </el-table-column>
+ </el-table>
+
+ </el-main>
+ </el-container>
+ <el-container>
+ <el-main>
+ <h2>鑰冩牳瑙勫垯</h2>
+ <el-row :gutter="10" class="mb8">
+ <el-col :span="1.5">
+ <el-button
+ type="success"
+ plain
+ icon="el-icon-edit"
+ size="mini"
+ :disabled="single"
+ @click="handleRuleUpdate"
+ >淇敼</el-button>
+ </el-col>
+ <el-col :span="1.5">
+ <el-button
+ type="danger"
+ plain
+ icon="el-icon-delete"
+ size="mini"
+ :disabled="multiple"
+ @click="handleDelete"
+ >鍒犻櫎</el-button>
+ </el-col>
+ <!-- <el-col :span="1.5">-->
+ <!-- <el-button-->
+ <!-- type="warning"-->
+ <!-- plain-->
+ <!-- icon="el-icon-download"-->
+ <!-- size="mini"-->
+ <!-- @click="handleExport"-->
+ <!-- v-hasPermi="['system:checkRule:export']"-->
+ <!-- >瀵煎嚭</el-button>-->
+ <!-- </el-col>-->
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getRuleList"></right-toolbar>
+ </el-row>
+
+ <el-table v-loading="loading" :data="ruleList" @selection-change="handleSelectionChange">
+ <el-table-column type="selection" width="55" align="center" />
+ <el-table-column label="瑙勫垯鍚嶇О" align="center" prop="ruleName" />
+ <el-table-column label="杩愮淮绫诲埆" align="center" prop="category">
+ <template slot-scope="scope">
+ <div v-if="scope.row.category === 1">瑙嗛鐩戞帶</div>
+ <div v-else-if="scope.row.category === 2">杞﹁締璇嗗埆</div>
+ <div v-else-if="scope.row.category === 3">浜鸿劯璇嗗埆</div>
+ </template>
+ </el-table-column>
+ <el-table-column label="瑙勫垯鎻忚堪" align="center" prop="ruleDetail" />
+ <el-table-column label="鍒涘缓鏃堕棿" align="center" prop="createTime" />
+ <el-table-column label="瀹℃牳鐘舵��" align="center" prop="auditState">
+ <template slot-scope="scope">
+ <dict-tag :options="dict.type.platform_audit_state" :value="scope.row.auditState"/>
+ </template>
+ </el-table-column>
+ <el-table-column label="瀹℃牳浜�" align="center" prop="auditUser" />
+ <el-table-column label="瀹℃牳鏃堕棿" align="center" prop="auditTime" />
+ <el-table-column label="瀹℃牳鎰忚" align="center" prop="auditDescription" />
+ <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
+ <template slot-scope="scope">
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-edit"
+ @click="handleRuleUpdate(scope.row)"
+ >淇敼</el-button>
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-delete"
+ @click="handleDelete(scope.row)"
+ >鍒犻櫎</el-button>
+ </template>
+ </el-table-column>
+ </el-table>
+
+ <pagination
+ v-show="total>0"
+ :total="total"
+ :page.sync="queryParams.pageNum"
+ :limit.sync="queryParams.pageSize"
+ @pagination="getRuleList"
+ />
+ </el-main>
+ </el-container>
+
+ <el-container>
+ <el-main>
+ <h2>鑰冩牳鎴愮哗</h2>
+ <el-collapse v-model="activeNames" @change="handleChange" >
+ <el-collapse-item name="1">
+ <template slot="title">
+ <div style="width: 10%" >鑷祦浜曞尯</div><div style="margin-left: 75%">寰楀垎:0.97</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item name="2">
+ <template slot="title">
+ <div style="width: 10%">璐′簳鍖�</div><div style="margin-left: 75%">寰楀垎:0.94</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item title="澶у畨鍖�" name="3">
+ <template slot="title">
+ <div style="width: 10%">澶у畨鍖�</div><div style="margin-left: 75%">寰楀垎:0.95</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item title="娌挎哗鍖�" name="4">
+ <template slot="title">
+ <div style="width: 10%">娌挎哗鍖�</div><div style="margin-left: 75%">寰楀垎:0.94</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item title="鑽e幙" name="5">
+ <template slot="title">
+ <div style="width: 10%">鑽e幙</div><div style="margin-left: 75%">寰楀垎:0.93</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item title="瀵岄『鍖�" name="6">
+ <template slot="title">
+ <div style="width: 10%">瀵岄『鍖�</div><div style="margin-left: 75%">寰楀垎:0.95</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item title="楂樻柊鍖�" name="7">
+ <template slot="title">
+ <div style="width: 10%">楂樻柊鍖�</div><div style="margin-left: 75%;">寰楀垎:0.96</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ </el-collapse>
+ </el-main>
+ </el-container>
+
+ <!-- 娣诲姞鎴栦慨鏀硅�冩牳瑙勫垯瀵硅瘽妗� -->
+ <el-dialog :title="title" :visible.sync="ruleOpen" width="600px" append-to-body>
+ <el-form ref="form" :model="ruleForm" :rules="rules" label-width="80px">
+ <el-form-item label="瑙勫垯鍚嶇О" prop="ruleName">
+ <el-input v-model="ruleForm.ruleName" placeholder="璇疯緭鍏ヨ鍒欏悕绉�" />
+ </el-form-item>
+ <el-form-item label="瑙勫垯绫诲瀷" prop="category">
+ <el-select v-model="ruleForm.category" placeholder="瑙勫垯绫诲瀷">
+ <el-option
+ v-for="item in categoryList"
+ :key="item.id"
+ :label="item.value"
+ :value="item.id">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ <el-form-item label="瑙勫垯鎻忚堪" prop="ruleDetail">
+ <el-input v-model="ruleForm.ruleDetail" type="textarea" show-word-limit maxlength="150" placeholder="璇疯緭鍏ヨ鍒欐弿杩�"/>
+ </el-form-item>
+ <el-form-item label="鍙傛暟閰嶇疆" prop="ruleDetail">
+ <div class="row-warp">
+ <div class="row">
+ <div class="row-left">鍙傛暟鍚�</div>
+ <div class="row-right">鏉′欢</div>
+ </div>
+ <div class="row">
+ <div class="row-left">澶╃綉瑙嗛鐐逛綅鏁�</div>
+ <div class="row-right">
+ <div>涓嶅皯浜�</div>
+ <div>
+ <el-input class="input-w" type="number" v-model="ruleForm.videoPointNum"/>{{" %"}}
+ </div>
+ </div>
+ </div>
+ <div class="row">
+ <div class="row-left">杞﹁締鍗″彛鐐逛綅鏁�</div>
+ <div class="row-right">
+ <div>涓嶅皯浜�</div>
+ <div><el-input class="input-w" type="number" v-model="ruleForm.vehicleCheckpointNum"/></div>{{" %"}}
+ </div>
+ </div>
+ <div class="row">
+ <div class="row-left">浜鸿劯鍗″彛鐐逛綅鏁�</div>
+ <div class="row-right">
+ <div>涓嶅皯浜�</div>
+ <div>
+ <el-input class="input-w" type="number" v-model="ruleForm.faceChceckpointNum" /></div>{{" %"}}
+ </div>
+ </div>
+ </div>
+ </el-form-item>
+ </el-form>
+ <div slot="footer" class="dialog-footer">
+ <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
+ <el-button @click="cancel">鍙� 娑�</el-button>
+ </div>
+ </el-dialog>
+
+ <!-- 瑙勫垯璇︽儏 -->
+ <el-dialog title="瑙勫垯璇︽儏" :visible.sync="ruleDetailOpen" width="50%" append-to-body>
+ <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+ <el-form-item label="瑙勫垯鍚嶇О" prop="ruleName">
+ <el-input class="input" disabled v-model="form.ruleName" placeholder="璇疯緭鍏ヨ鍒欏悕绉�" />
+ </el-form-item>
+ <el-form-item label="杩愮淮鍏徃" prop="companyName">
+ <el-input class="input" disabled :value ="companyName" placeholder="璇疯緭鍏ヨ繍缁村叕鍙稿悕绉�"></el-input>
+ </el-form-item>
+ <el-form-item label="瑙勫垯鎻忚堪" prop="ruleDesc">
+ <el-input class="input" disabled v-model="form.ruleDesc" placeholder="璇疯緭鍏ヨ鍒欐弿杩�" />
+ </el-form-item>
+ <el-form-item label="瑙勫垯璁剧疆">
+ <div >
+ <div class="line">
+ <div class="line-left">鏃堕挓鍚屾锛堣秴杩嚶�3绉掍负涓嶅悎鏍硷級24灏忔椂鍐呮湭淇鐨勶細鎵i櫎鐩稿叧闀滃ご鏁伴噺*</div>
+ <div class="line-right"><el-input disabled v-model="jsonRule.overTime" type="text"/></div>鍒�
+ </div>
+ <div class="line">
+ <div class="line-left">OSD鏍囪瘑涓嶆弧瓒炽�奊AT 751-2008 瑙嗛鍥惧儚鏂囧瓧鏍囨敞瑙勮寖銆嬶紝24灏忔椂鍐呮湭淇鐨勶細鏍囨墸闄ょ浉鍏抽暅澶存暟閲�*</div>
+ <div class="line-right"><el-input disabled v-model="jsonRule.failNum" type="text"/></div>鍒�
+ </div>
+ <div class="line">
+ <div class="line-left">鐢ㄦ埛鎶芥锛屼竴鏈轰竴妗f暟鎹」涓嶅悎鏍硷紙鎻愪緵铏氬亣鏁版嵁鎴栭敊璇暟鎹负涓嶅悎鏍硷級锛�24灏忔椂鍐呮湭淇鐨勶細鎵i櫎鐩稿叧闀滃ご鏁伴噺*</div>
+ <div class="line-right"><el-input disabled v-model="jsonRule.failNum" type="text"/></div>鍒�
+ </div>
+ </div>
+ </el-form-item>
+ </el-form>
+ <div slot="footer" class="dialog-footer">
+ <el-button @click="cancel">鍏抽棴</el-button>
+ </div>
+ </el-dialog>
+
+ <!-- 娣诲姞鎴栦慨鏀硅�冩牳璁″垎瀵硅瘽妗� -->
+ <el-dialog :title="title" :visible.sync="scoreOpen" width="500px" append-to-body>
+ <el-form ref="form" :model="scoreForm" :rules="rules" label-width="80px">
+ <el-form-item label="鍒嗗��" prop="score">
+ <el-input v-model="scoreForm.score" placeholder="璇疯緭鍏ュ垎鍊�" />
+ </el-form-item>
+ <el-form-item label="鑰冩牳鍚�" prop="examineId">
+ <el-select v-model="scoreForm.examineId" placeholder="璇烽�夋嫨">
+ <el-option
+ v-for="item in examineList"
+ :key="item.id"
+ :label="item.value"
+ :value="item.id">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ <el-form-item label="鑰冩牳瀵硅薄" prop="unitId">
+ <el-select v-model="scoreForm.unitId" placeholder="璇烽�夋嫨">
+ <el-option
+ v-for="item in unitList"
+ :key="item.id"
+ :label="item.value"
+ :value="item.id">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ <el-form-item label="鑰冩牳瑙勫垯" prop="ruleCategory">
+ <el-select v-model="scoreForm.ruleCategory" placeholder="璇烽�夋嫨">
+ <el-option
+ v-for="item in ruleCategoryList"
+ :key="item.id"
+ :label="item.value"
+ :value="item.id">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ </el-form>
+ <div slot="footer" class="dialog-footer">
+ <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
+ <el-button @click="cancel">鍙� 娑�</el-button>
+ </div>
+ </el-dialog>
+ </div>
+</template>
+
+<script>
+import { listCheckResult, getCheckResult, delCheckResult, addCheckResult, updateCheckResult,manualScore, publishCheckResult } from "@/api/platform/check-result";
+import { listCheckRule, getCheckRule, delCheckRule, addCheckRule, updateCheckRule } from "@/api/platform/check-rule";
+import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/score";
+import {unitSelect} from "../../../../api/platform/unit";
+import {publishSelect} from "../../../../api/platform/publish";
+
+export default {
+ name: "CheckResult",
+ dicts: ['platform_audit_state'],
+ data() {
+ return {
+ activeNames: ['1'],
+ companyName: "鎴愰兘x杩愮淮鍏徃",
+ detailTitle: '',
+ detailOpen: false,
+ detail:{
+ },
+ examineList: [],
+ unitList: [
+ {id:2,value: '鎴愰兘x杩愮淮'},
+ {id:3,value: '鑷祦浜曞尯'},
+ ],
+ ruleCategoryList: [
+ { id: 1, value: '瑙嗛鍦ㄧ嚎鐜�' },
+ { id: 2, value: '瀛樺偍鏁呴殰' },
+ { id: 3, value: '瑙嗗浘搴撳鎺ョǔ瀹氭��' },
+ { id: 4, value: '涓�鏈轰竴妗�24灏忔椂鏈慨澶�' },
+ { id: 5, value: '鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�' },
+ ],
+ tableData: [{
+ name: '瑙嗛骞冲潎鍦ㄧ嚎鐜�',
+ content: '97%',
+ score: '-5'
+ }, {
+ name: '涓�鏈轰竴妗�24灏忔椂鏈慨澶�',
+ content: '5涓�',
+ score: '-0.5'
+ }, {
+ name: '瀛樺偍鏁呴殰',
+ content: '5灏忔椂',
+ score: '-0.3'
+ }, {
+ name: '鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�',
+ content: '3涓�',
+ score: '-0.5'
+ }],
+ // 杩愮淮绫诲瀷
+ categoryList: [
+ { id: 1, value: '瑙嗛鐩戞帶' },
+ { id: 2, value: '杞﹁締璇嗗埆' },
+ { id: 3, value: '浜鸿劯璇嗗埆' },
+ ],
+ manualScoreOpen: false,
+ manualScoreForm: {},
+ manualScoreTitle: '',
+ // 閬僵灞�
+ loading: true,
+ // 閫変腑鏁扮粍
+ ids: [],
+ // 闈炲崟涓鐢�
+ single: true,
+ // 闈炲涓鐢�
+ multiple: true,
+ // 鏄剧ず鎼滅储鏉′欢
+ showSearch: true,
+ // 鎬绘潯鏁�
+ total: 0,
+ // 鑰冩牳缁撴灉琛ㄦ牸鏁版嵁
+ checkResultList: [],
+ // 寮瑰嚭灞傛爣棰�
+ title: "",
+ // 鏄惁鏄剧ず寮瑰嚭灞�
+ scoreOpen: false,
+ ruleOpen: false,
+ ruleDetailOpen: false,
+ // 閫昏緫鍒犻櫎鏃堕棿鑼冨洿
+ daterangeCheckTime: [],
+ // 琛ㄥ崟鍙傛暟
+ form: {},
+ scoreForm: {},
+ ruleForm: {},
+ jsonRule: {},
+ // 鑰冩牳瑙勫垯鍒楄〃
+ ruleList: [],
+ // 鑰冩牳璁″垎琛ㄦ牸鏁版嵁
+ scoreList: [],
+ //杩濈害瑙勫垯璇锋眰鍙傛暟
+ queryParams: {
+ pageNum: 1,
+ pageSize: 10,
+ ruleName: null,
+ ruleStatus: null,
+ createTime: null,
+ },
+ //鑰冩牳鍒嗘暟璇锋眰鍙傛暟
+ scoreQueryParams: {
+ pageNum: 1,
+ pageSize: 10,
+ examineCategory: 2,
+ },
+ // 琛ㄥ崟鏍¢獙
+ rules: {
+ }
+ };
+ },
+ created() {
+ //鑰冩牳鎴愮哗璇︽儏璺宠浆鍙傛暟鎺ユ敹
+ if(this.$route.query.detail){
+ this.detail = this.$route.query.detail
+ console.log(this.$route.query.detail,"detail------------")
+ }
+ // 鑰冩牳瑙勫垯鍒楄〃
+ this.getRuleList();
+ // 鑰冩牳绉垎鍒楄〃
+ this.getScoreList();
+ // this.selectUnit();
+ this.selectExamine();
+ },
+ methods: {
+ handleChange(val) {
+ console.log(val);
+ },
+ // 杩愮淮鍏徃涓嬫媺鏁版嵁
+ // selectUnit() {
+ // unitSelect().then(res => {
+ // this.unitList = res.data;
+ // })
+ // },
+ // 鑰冩牳涓嬫媺鏁版嵁
+ selectExamine() {
+ publishSelect().then(res => {
+ this.examineList = res.data;
+ })
+ },
+ /** 鏌ヨ鑰冩牳璁″垎鍒楄〃 */
+ getScoreList() {
+ this.loading = true;
+ listScore(this.scoreQueryParams).then(response => {
+ this.scoreList = response.rows;
+ this.loading = false;
+ });
+ },
+ /** 鏌ヨ杩濈害瑙勫垯鍒楄〃 */
+ getRuleList() {
+ this.loading = true;
+ if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) {
+ this.queryParams["start"] = this.daterangeCreateTime[0];
+ this.queryParams["end"] = this.daterangeCreateTime[1];
+ }
+ listCheckRule(this.queryParams).then(response => {
+ this.ruleList = response.data;
+ this.total = response.total;
+ this.loading = false;
+ });
+ },
+ frequencyFormatter(row) {
+ if (row.frequency === "1") {
+ return "鏈堝害鑰冩牳"
+ }
+ if (row.frequency === "2") {
+ return "瀛e害鑰冩牳"
+ }
+ },
+ examineRangeFormatter(row) {
+ if (row.examineRange === "1") {
+ return "鍒嗗眬鑰冩牳"
+ }
+ if (row.examineRange === "2") {
+ return "甯傚眬鑰冩牳"
+ }
+ },
+ /** 鏌ヨ鑰冩牳缁撴灉鍒楄〃 */
+ getCheckResult() {
+ this.loading = true;
+ getCheckResult(id).then(response => {
+ this.detail = response.data;
+ this.loading = false;
+ });
+ },
+ // 鍙栨秷鎸夐挳
+ cancel() {
+ this.scoreOpen = false;
+ this.ruleOpen = false;
+ this.ruleDetailOpen = false;
+ this.ruleDetailOpen = false;
+ this.reset();
+ },
+ // 琛ㄥ崟閲嶇疆
+ reset() {
+ this.form = {
+ id: null,
+ checkUnitId: null,
+ checkPublishId: null,
+ checkScore: null,
+ systemScore: null,
+ manualScore: null,
+ checkTime: null,
+ createTime: null,
+ updateTime: null,
+ deleted: null
+ };
+ this.resetForm("form");
+ },
+ cancelManualScore() {
+ this.manualScoreForm = {};
+ this.manualScoreTitle = "";
+ this.manualScoreOpen = false;
+ },
+ submitManualScore() {
+ if (! this.manualScoreForm.manualScore) {
+ this.$modal.msgWarning("璇峰~鍐欏垎鏁�");
+ return
+ }
+ manualScore(this.manualScoreForm).then(res => {
+ this.$modal.msgSuccess("鎿嶄綔鎴愬姛");
+ this.cancelManualScore();
+ this.getList();
+ })
+ },
+ handleSetManualScore(row) {
+ this.manualScoreForm.id = row.id;
+ this.manualScoreForm.manualScore = parseInt(row.manualScore);
+ this.manualScoreTitle = row.checkUnitName + '浜哄伐鎵撳垎'
+ this.manualScoreOpen = true;
+ },
+
+ handlePublish(row) {
+ let text = row.publish == 1 ? '鍙栨秷鍙戝竷' : '鍙戝竷';
+ const ids = row.id || this.ids;
+ this.$modal.confirm('鏄惁纭' + text + '鑰冩牳缁撴灉缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
+ return publishCheckResult(ids);
+ }).then(() => {
+ this.getList();
+ this.$modal.msgSuccess(text + "鎴愬姛");
+ }).catch(() => {});
+
+ },
+ /** 鎼滅储鎸夐挳鎿嶄綔 */
+ handleQuery() {
+ this.queryParams.pageNum = 1;
+ this.getList();
+ },
+ /** 閲嶇疆鎸夐挳鎿嶄綔 */
+ resetQuery() {
+ this.daterangeCheckTime = [];
+ this.resetForm("queryForm");
+ this.handleQuery();
+ },
+ // 澶氶�夋閫変腑鏁版嵁
+ handleSelectionChange(selection) {
+ this.ids = selection.map(item => item.id)
+ this.single = selection.length!==1
+ this.multiple = !selection.length
+ },
+ /** 鏂板鎸夐挳鎿嶄綔 */
+ handleAdd() {
+ this.reset();
+ this.open = true;
+ this.title = "娣诲姞鑰冩牳缁撴灉";
+ },
+ /** 淇敼绉垎鎸夐挳鎿嶄綔 */
+ handleScoreUpdate(row) {
+ this.reset();
+ const id = row.id || this.ids
+ getScore(id).then(response => {
+ this.scoreForm = response.data;
+ this.scoreOpen = true;
+ this.title = "淇敼鑰冩牳璁″垎";
+ });
+ },
+ /** 淇敼鎸夐挳鎿嶄綔 */
+ handleRuleUpdate(row) {
+ this.reset();
+ const id = row.id || this.ids
+ getCheckRule(id).then(response => {
+ this.ruleForm = response.data;
+ this.ruleOpen = true;
+ this.title = "淇敼鑰冩牳瑙勫垯";
+
+ });
+ },
+ // 璇︽儏鎸夐挳
+ handleRuleDetail(row) {
+ this.ruleDetailOpen = true;
+ this.form = row;
+ this.jsonRule = JSON.parse(this.form.ruleDetail);
+ },
+ /** 鎻愪氦鎸夐挳 */
+ submitForm() {
+ this.$refs["form"].validate(valid => {
+ if (valid) {
+ if (this.form.id != null) {
+ updateCheckResult(this.form).then(response => {
+ this.$modal.msgSuccess("淇敼鎴愬姛");
+ this.open = false;
+ this.getList();
+ });
+ } else {
+ addCheckResult(this.form).then(response => {
+ this.$modal.msgSuccess("鏂板鎴愬姛");
+ this.open = false;
+ this.getList();
+ });
+ }
+ }
+ });
+ },
+ /** 鍒犻櫎鎸夐挳鎿嶄綔 */
+ handleDelete(row) {
+ const ids = row.id || this.ids;
+ this.$modal.confirm('鏄惁纭鍒犻櫎鑰冩牳缁撴灉缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
+ return delCheckResult(ids);
+ }).then(() => {
+ this.getList();
+ this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
+ }).catch(() => {});
+ },
+ /** 瀵煎嚭鎸夐挳鎿嶄綔 */
+ handleExport() {
+ this.download('system/checkResult/export', {
+ ...this.queryParams
+ }, `checkResult_${new Date().getTime()}.xlsx`)
+ }
+ }
+};
+</script>
+<style scoped>
+
+.line {
+ display: flex;
+ flex-direction: row;
+ justify-content: flex-start;
+ align-items: center;
+}
+
+.line-right {
+ width: 50px;
+}
+.input{
+ width: 200px;
+}
+
+.input-w {
+ margin-left: 5px;
+ width: 70px;
+}
+.row-warp {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ text-align: center;
+ border: solid 1px gray;
+ /*padding: 3px;*/
+}
+.row {
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
+ border-bottom: solid 1px gray;
+ padding: 3px;
+}
+.row:last-of-type {
+ border-bottom: none;
+}
+.row-left {
+ flex: 2;
+ border-right: solid 1px gray;
+}
+.row-right {
+ flex: 4;
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+}
+</style>
diff --git a/src/views/system/check-result/city/index.vue b/src/views/system/check-result/city/index.vue
index 781a138..3d41c4c 100644
--- a/src/views/system/check-result/city/index.vue
+++ b/src/views/system/check-result/city/index.vue
@@ -52,16 +52,6 @@
</el-form>
<el-row :gutter="10" class="mb8">
-<!-- <el-col :span="1.5">-->
-<!-- <el-button-->
-<!-- type="primary"-->
-<!-- plain-->
-<!-- icon="el-icon-plus"-->
-<!-- size="mini"-->
-<!-- @click="handleAdd"-->
-<!-- v-hasPermi="['system:checkResult:add']"-->
-<!-- >鏂板</el-button>-->
-<!-- </el-col>-->
<el-col :span="1.5">
<el-button
type="danger"
@@ -99,39 +89,7 @@
</div>
</el-card>
- <!-- <el-table v-loading="loading" :data="checkResultList" @selection-change="handleSelectionChange">
- <el-table-column type="selection" width="55" align="center" />
- <el-table-column label="鑰冩牳瀵硅薄" align="center" prop="checkUnitName" />
- <el-table-column label="鑰冩牳" align="center" prop="examineName" />
- <el-table-column label="鑰冩牳鑼冨洿":formatter="examineRangeFormatter" align="center" prop="examineRange" />
- <el-table-column label="鑰冩牳棰戠巼" :formatter="frequencyFormatter" align="center" prop="frequency" />
- <el-table-column label="鑰冩牳鍒嗘暟" falign="center" prop="checkScore" />
- <el-table-column label="鑰冩牳鏃堕棿" align="center" prop="checkTime" />
- <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-view"
- @click="handleDetail(scope.row)"
- >璇︽儏</el-button>
- <el-button
- type="text"
- size="mini"
- icon="el-icon-edit"
- @click="handleSetManualScore(scope.row)"
- >浜哄伐鎵撳垎</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleDelete(scope.row)"
- >鍒犻櫎</el-button>
- </template>
- </el-table-column>
- </el-table>
-
- <pagination
+ <!-- <pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
@@ -393,12 +351,16 @@
this.manualScoreTitle = row.checkUnitName + '浜哄伐鎵撳垎'
this.manualScoreOpen = true;
},
- handleDetail(row) {
- this.detail = row;
+ handleDetail(item) {
+ this.detail = item;
this.detail.carOnlineRate = '97%';
- this.detailTitle = row.checkUnitName + '鑰冩牳缁撴灉';
- this.detailOpen = true;
-
+ console.log(this.detail,"detail")
+ this.$router.push({
+ path: '/check-result/city/detail',
+ query: {
+ detail: this.detail
+ }
+ })
},
handlePublish(row) {
const ids = row.id || this.ids;
diff --git a/src/views/system/check-result/contract/detail.vue b/src/views/system/check-result/contract/detail.vue
new file mode 100644
index 0000000..e86acd4
--- /dev/null
+++ b/src/views/system/check-result/contract/detail.vue
@@ -0,0 +1,685 @@
+<template>
+ <div class="app-container">
+ <el-page-header @back="goBack" content="璇︽儏椤甸潰">
+ </el-page-header>
+ <el-container>
+ <el-main style="padding-top: 0px">
+ <h2>鑰冩牳鍒嗘暟鏄庣粏</h2>
+ <el-row :gutter="10" class="mb8">
+ <el-col :span="1.5">
+ <el-button
+ type="success"
+ plain
+ icon="el-icon-edit"
+ size="mini"
+ :disabled="single"
+ @click="handleScoreUpdate"
+ >淇敼</el-button>
+ </el-col>
+ <el-col :span="1.5">
+ <el-button
+ type="danger"
+ plain
+ icon="el-icon-delete"
+ size="mini"
+ :disabled="multiple"
+ @click="handleDelete"
+ >鍒犻櫎</el-button>
+ </el-col>
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getScoreList"></right-toolbar>
+ </el-row>
+
+ <el-table v-loading="loading" :data="scoreList" @selection-change="handleSelectionChange">
+ <el-table-column type="selection" width="55" align="center" />
+ <el-table-column label="鑰冩牳鍚�" align="center" prop="examineName" />
+ <el-table-column label="鑰冩牳绫诲瀷" align="center" prop="examineCategory">
+ <template slot-scope="scope">
+ <div v-if="scope.row.examineCategory == 1">鐪佸巺鑰冩牳</div>
+ <div v-else-if="scope.row.examineCategory == 2">甯傚眬鑰冩牳</div>
+ <div v-else-if="scope.row.examineCategory == 3">鍚堝悓鑰冩牳</div>
+ </template>
+ </el-table-column>
+ <el-table-column label="鑰冩牳瀵硅薄" align="center" prop="unitName">
+ <template slot-scope="scope">
+ <div v-if="scope.row.unitName ==='鎴愰兘x杩愮淮' ">鎴愰兘x杩愮淮</div>
+ <div v-else>鑷祦浜曞尯</div>
+ </template>
+ </el-table-column>
+ <el-table-column label="鍒嗗��" align="center" prop="score" />
+ <el-table-column label="鑰冩牳瑙勫垯" align="center" prop="ruleCategory">
+ <template slot-scope="scope">
+ <div v-if="scope.row.ruleCategory == 1">瑙嗛鍦ㄧ嚎鐜�</div>
+ <div v-else-if="scope.row.ruleCategory == 2">瀛樺偍鏁呴殰</div>
+ <div v-else-if="scope.row.ruleCategory == 3">瑙嗗浘搴撳鎺ョǔ瀹氭��</div>
+ <div v-else-if="scope.row.ruleCategory == 4">涓�鏈轰竴妗�24灏忔椂鏈慨澶�</div>
+ <div v-else-if="scope.row.ruleCategory == 5">鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�</div>
+ </template>
+ </el-table-column>
+ <el-table-column label="鍒涘缓浜�" align="center" prop="createBy" />
+ <el-table-column label="鍒涘缓鏃堕棿" align="center" prop="createTime" />
+ <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
+ <template slot-scope="scope">
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-edit"
+ @click="handleScoreUpdate(scope.row)"
+ >淇敼</el-button>
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-delete"
+ @click="handleScoreDelete(scope.row)"
+ >鍒犻櫎</el-button>
+ </template>
+ </el-table-column>
+ </el-table>
+
+ </el-main>
+ </el-container>
+ <el-container>
+ <el-main>
+ <h2>鑰冩牳瑙勫垯</h2>
+ <el-row :gutter="10" class="mb8">
+ <el-col :span="1.5">
+ <el-button
+ type="primary"
+ plain
+ icon="el-icon-plus"
+ size="mini"
+ @click="handleAdd"
+ >鏂板</el-button>
+ </el-col>
+ <el-col :span="1.5">
+ <el-button
+ type="success"
+ plain
+ icon="el-icon-edit"
+ size="mini"
+ :disabled="single"
+ @click="handleRuleUpdate"
+ >淇敼</el-button>
+ </el-col>
+ <el-col :span="1.5">
+ <el-button
+ type="danger"
+ plain
+ icon="el-icon-delete"
+ size="mini"
+ :disabled="multiple"
+ @click="handleDelete"
+ >鍒犻櫎</el-button>
+ </el-col>
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getRuleList"></right-toolbar>
+ </el-row>
+
+ <el-table v-loading="loading" :data="ruleList" @selection-change="handleSelectionChange">
+ <el-table-column type="selection" width="55" align="center" />
+ <el-table-column label="瑙勫垯鍚嶇О" align="center" prop="ruleName" />
+ <el-table-column label="杩愮淮鍏徃" align="center" prop="companyName" >
+ {{'鎴愰兘x杩愮淮鍏徃'}}
+ </el-table-column>
+ <el-table-column label="瑙勫垯鎻忚堪" align="center" prop="ruleDesc" />
+ <el-table-column label="瑙勫垯鐘舵��" align="center" prop="ruleStatus" />
+ <el-table-column label="鍒涘缓鏃堕棿" align="center" prop="createTime" width="180">
+ <template slot-scope="scope">
+ <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
+ <template slot-scope="scope">
+ <el-button
+ v-if="scope.row.ruleStatus === '鏈惎鐢�'"
+ size="mini"
+ type="text"
+ icon="el-icon-zoom-in"
+ @click="handleUse(scope.row.id, true)"
+ >鍚敤</el-button>
+ <el-button
+ v-else
+ size="mini"
+ type="text"
+ icon="el-icon-zoom-in"
+ @click="handleUse(scope.row.id, false)"
+ >鍋滅敤</el-button>
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-zoom-in"
+ @click="handleRuleDetail(scope.row)"
+ >璇︽儏</el-button>
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-edit"
+ @click="handleRuleUpdate(scope.row)"
+ >淇敼</el-button>
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-delete"
+ @click="handleDelete(scope.row)"
+ >鍒犻櫎</el-button>
+ </template>
+ </el-table-column>
+ </el-table>
+ </el-main>
+ </el-container>
+ <el-container>
+ <el-main>
+ <h2>鑰冩牳鎴愮哗</h2>
+ <el-descriptions class="margin-top" :column="3" border>
+ <el-descriptions-item>
+ <template slot="label">
+ <i class="el-icon-user"></i>
+ 鑰冩牳瀵硅薄
+ </template>
+ {{detail.checkUnitName}}
+ </el-descriptions-item>
+ <el-descriptions-item>
+ <template slot="label">
+ <i class="el-icon-s-management"></i>
+ 鑰冩牳鍚嶇О
+ </template>
+ {{detail.examineName}}
+ </el-descriptions-item>
+ <el-descriptions-item>
+ <template slot="label">
+ <i class="el-icon-full-screen"></i>
+ 鑰冩牳鑼冨洿
+ </template>
+ <el-tag size="small">{{detail.examineRange === 1 ? '鍒嗗眬鑰冩牳' : '甯傚眬鑰冩牳'}}</el-tag>
+ </el-descriptions-item>
+ <el-descriptions-item>
+ <template slot="label">
+ <i class="el-icon-timer"></i>
+ 鑰冩牳棰戠巼
+ </template>
+ <el-tag size="small">{{detail.frequency === 1 ? '鏈堝害鑰冩牳' : '瀛e害鑰冩牳'}}</el-tag>
+ </el-descriptions-item>
+ <el-descriptions-item>
+ <template slot="label">
+ <i class="el-icon-medal"></i>
+ 缁煎悎鍒嗘暟
+ </template>
+ <el-tag type="danger" size="small">{{detail.checkScore}}</el-tag>
+ </el-descriptions-item>
+ </el-descriptions>
+ <el-table
+ :data="tableData"
+ show-summary
+ >
+ <el-table-column
+ prop="name"
+ label="瑙勫垯鍚�"
+ min-width="500"
+ >
+ </el-table-column>
+ <el-table-column
+ prop="content"
+ label="鎸囨爣"
+ min-width="500">
+ </el-table-column>
+ <el-table-column
+ prop="score"
+ label="寰楀垎"
+ min-width="500">
+ </el-table-column>
+ </el-table>
+ </el-main>
+ </el-container>
+
+ <el-dialog :title="manualScoreTitle" :visible.sync="manualScoreOpen" width="500px" append-to-body>
+ <el-input v-model="manualScoreForm.manualScore" type="number" placeholder="璇蜂负璇ュ崟浣嶆墦鍒�"/>
+ <div slot="footer" class="dialog-footer">
+ <el-button type="primary" @click="submitManualScore">纭� 瀹�</el-button>
+ <el-button @click="cancelManualScore">鍙� 娑�</el-button>
+ </div>
+ </el-dialog>
+
+ <!-- 娣诲姞鎴栦慨鏀硅繚绾﹁鍒欏璇濇 -->
+ <el-dialog :title="title" :visible.sync="ruleOpen" width="50%" append-to-body>
+ <el-form ref="form" :model="ruleForm" :rules="rules" label-width="80px">
+ <el-form-item label="瑙勫垯鍚嶇О" prop="ruleName">
+ <el-input class="input" v-model="ruleForm.ruleName" placeholder="璇疯緭鍏ヨ鍒欏悕绉�" />
+ </el-form-item>
+ <el-form-item label="杩愮淮鍏徃" prop="companyName">
+ <el-input class="input" :value ="companyName" placeholder="璇疯緭鍏ヨ繍缁村叕鍙稿悕绉�"></el-input>
+ </el-form-item>
+ <el-form-item label="瑙勫垯鎻忚堪" prop="ruleDesc">
+ <el-input class="input" v-model="ruleForm.ruleDesc" placeholder="璇疯緭鍏ヨ鍒欐弿杩�" />
+ </el-form-item>
+ <el-form-item label="瑙勫垯璁剧疆">
+ <div >
+ <div class="line">
+ <div class="line-left">鏃堕挓鍚屾锛堣秴杩嚶�3绉掍负涓嶅悎鏍硷級24灏忔椂鍐呮湭淇鐨勶細鎵i櫎鐩稿叧闀滃ご鏁伴噺*</div>
+ <div class="line-right"><el-input v-model="jsonRule.overTime" type="text"/></div>鍒�
+ </div>
+ <div class="line">
+ <div class="line-left">OSD鏍囪瘑涓嶆弧瓒炽�奊AT 751-2008 瑙嗛鍥惧儚鏂囧瓧鏍囨敞瑙勮寖銆嬶紝24灏忔椂鍐呮湭淇鐨勶細鏍囨墸闄ょ浉鍏抽暅澶存暟閲�*</div>
+ <div class="line-right"><el-input v-model="jsonRule.failNum" type="text"/></div>鍒�
+ </div>
+ <div class="line">
+ <div class="line-left">鐢ㄦ埛鎶芥锛屼竴鏈轰竴妗f暟鎹」涓嶅悎鏍硷紙鎻愪緵铏氬亣鏁版嵁鎴栭敊璇暟鎹负涓嶅悎鏍硷級锛�24灏忔椂鍐呮湭淇鐨勶細鎵i櫎鐩稿叧闀滃ご鏁伴噺*</div>
+ <div class="line-right"><el-input v-model="jsonRule.failNum" type="text"/></div>鍒�
+ </div>
+ </div>
+ </el-form-item>
+ </el-form>
+ <div slot="footer" class="dialog-footer">
+ <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
+ <el-button @click="cancel">鍙� 娑�</el-button>
+ </div>
+ </el-dialog>
+
+ <!-- 瑙勫垯璇︽儏 -->
+ <el-dialog title="瑙勫垯璇︽儏" :visible.sync="ruleDetailOpen" width="50%" append-to-body>
+ <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+ <el-form-item label="瑙勫垯鍚嶇О" prop="ruleName">
+ <el-input class="input" disabled v-model="form.ruleName" placeholder="璇疯緭鍏ヨ鍒欏悕绉�" />
+ </el-form-item>
+ <el-form-item label="杩愮淮鍏徃" prop="companyName">
+ <el-input class="input" disabled :value ="companyName" placeholder="璇疯緭鍏ヨ繍缁村叕鍙稿悕绉�"></el-input>
+ </el-form-item>
+ <el-form-item label="瑙勫垯鎻忚堪" prop="ruleDesc">
+ <el-input class="input" disabled v-model="form.ruleDesc" placeholder="璇疯緭鍏ヨ鍒欐弿杩�" />
+ </el-form-item>
+ <el-form-item label="瑙勫垯璁剧疆">
+ <div >
+ <div class="line">
+ <div class="line-left">鏃堕挓鍚屾锛堣秴杩嚶�3绉掍负涓嶅悎鏍硷級24灏忔椂鍐呮湭淇鐨勶細鎵i櫎鐩稿叧闀滃ご鏁伴噺*</div>
+ <div class="line-right"><el-input disabled v-model="jsonRule.overTime" type="text"/></div>鍒�
+ </div>
+ <div class="line">
+ <div class="line-left">OSD鏍囪瘑涓嶆弧瓒炽�奊AT 751-2008 瑙嗛鍥惧儚鏂囧瓧鏍囨敞瑙勮寖銆嬶紝24灏忔椂鍐呮湭淇鐨勶細鏍囨墸闄ょ浉鍏抽暅澶存暟閲�*</div>
+ <div class="line-right"><el-input disabled v-model="jsonRule.failNum" type="text"/></div>鍒�
+ </div>
+ <div class="line">
+ <div class="line-left">鐢ㄦ埛鎶芥锛屼竴鏈轰竴妗f暟鎹」涓嶅悎鏍硷紙鎻愪緵铏氬亣鏁版嵁鎴栭敊璇暟鎹负涓嶅悎鏍硷級锛�24灏忔椂鍐呮湭淇鐨勶細鎵i櫎鐩稿叧闀滃ご鏁伴噺*</div>
+ <div class="line-right"><el-input disabled v-model="jsonRule.failNum" type="text"/></div>鍒�
+ </div>
+ </div>
+ </el-form-item>
+ </el-form>
+ <div slot="footer" class="dialog-footer">
+ <el-button @click="cancel">鍏抽棴</el-button>
+ </div>
+ </el-dialog>
+
+ <!-- 娣诲姞鎴栦慨鏀硅�冩牳璁″垎瀵硅瘽妗� -->
+ <el-dialog :title="title" :visible.sync="scoreOpen" width="500px" append-to-body>
+ <el-form ref="form" :model="scoreForm" :rules="rules" label-width="80px">
+ <el-form-item label="鍒嗗��" prop="score">
+ <el-input v-model="scoreForm.score" placeholder="璇疯緭鍏ュ垎鍊�" />
+ </el-form-item>
+ <el-form-item label="鑰冩牳鍚�" prop="examineId">
+ <el-select v-model="scoreForm.examineId" placeholder="璇烽�夋嫨">
+ <el-option
+ v-for="item in examineList"
+ :key="item.id"
+ :label="item.value"
+ :value="item.id">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ <el-form-item label="鑰冩牳瀵硅薄" prop="unitId">
+ <el-select v-model="scoreForm.unitId" placeholder="璇烽�夋嫨">
+ <el-option
+ v-for="item in unitList"
+ :key="item.id"
+ :label="item.value"
+ :value="item.id">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ <el-form-item label="鑰冩牳瑙勫垯" prop="ruleCategory">
+ <el-select v-model="scoreForm.ruleCategory" placeholder="璇烽�夋嫨">
+ <el-option
+ v-for="item in ruleCategoryList"
+ :key="item.id"
+ :label="item.value"
+ :value="item.id">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ </el-form>
+ <div slot="footer" class="dialog-footer">
+ <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
+ <el-button @click="cancel">鍙� 娑�</el-button>
+ </div>
+ </el-dialog>
+
+ </div>
+</template>
+
+<script>
+import { listCheckResult, getCheckResult, delCheckResult, addCheckResult, updateCheckResult,manualScore, publishCheckResult } from "@/api/platform/check-result";
+import { listRule, getRule, delRule, addRule, updateRule, setRule } from "@/api/platform/default-rule";
+import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/score";
+
+import {unitSelect} from "../../../../api/platform/unit";
+import {publishSelect} from "../../../../api/platform/publish";
+export default {
+ name: "CheckResult",
+ data() {
+ return {
+ companyName: "鎴愰兘x杩愮淮鍏徃",
+ detailTitle: '',
+ detailOpen: false,
+ detail:{
+ },
+ examineList: [],
+ unitList: [],
+ ruleCategoryList: [
+ { id: 1, value: '瑙嗛鍦ㄧ嚎鐜�' },
+ { id: 2, value: '瀛樺偍鏁呴殰' },
+ { id: 3, value: '瑙嗗浘搴撳鎺ョǔ瀹氭��' },
+ { id: 4, value: '涓�鏈轰竴妗�24灏忔椂鏈慨澶�' },
+ { id: 5, value: '鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�' },
+ ],
+ tableData: [{
+ name: '瑙嗛骞冲潎鍦ㄧ嚎鐜�',
+ content: '97%',
+ score: '-5'
+ }, {
+ name: '涓�鏈轰竴妗�24灏忔椂鏈慨澶�',
+ content: '5涓�',
+ score: '-0.5'
+ }, {
+ name: '瀛樺偍鏁呴殰',
+ content: '5灏忔椂',
+ score: '-0.3'
+ }, {
+ name: '鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�',
+ content: '3涓�',
+ score: '-0.5'
+ }],
+ manualScoreOpen: false,
+ manualScoreForm: {},
+ manualScoreTitle: '',
+ // 閬僵灞�
+ loading: true,
+ // 閫変腑鏁扮粍
+ ids: [],
+ // 闈炲崟涓鐢�
+ single: true,
+ // 闈炲涓鐢�
+ multiple: true,
+ // 鏄剧ず鎼滅储鏉′欢
+ showSearch: true,
+ // 鎬绘潯鏁�
+ total: 0,
+ // 鑰冩牳缁撴灉琛ㄦ牸鏁版嵁
+ checkResultList: [],
+ // 寮瑰嚭灞傛爣棰�
+ title: "",
+ // 鏄惁鏄剧ず寮瑰嚭灞�
+ scoreOpen: false,
+ ruleOpen: false,
+ ruleDetailOpen: false,
+ // 閫昏緫鍒犻櫎鏃堕棿鑼冨洿
+ daterangeCheckTime: [],
+ // 琛ㄥ崟鍙傛暟
+ form: {},
+ scoreForm: {},
+ ruleForm: {},
+ jsonRule: {},
+ // 鑰冩牳瑙勫垯鍒楄〃
+ ruleList: [],
+ // 鑰冩牳璁″垎琛ㄦ牸鏁版嵁
+ scoreList: [],
+ //杩濈害瑙勫垯璇锋眰鍙傛暟
+ queryParams: {
+ pageNum: 1,
+ pageSize: 10,
+ ruleName: null,
+ ruleStatus: null,
+ createTime: null,
+ },
+ //鑰冩牳鍒嗘暟璇锋眰鍙傛暟
+ scoreQueryParams: {
+ pageNum: 1,
+ pageSize: 10,
+ examineCategory: 3,
+ },
+ // 琛ㄥ崟鏍¢獙
+ rules: {
+ }
+ };
+ },
+ created() {
+ //鑰冩牳鎴愮哗璇︽儏璺宠浆鍙傛暟鎺ユ敹
+ if(this.$route.query.detail){
+ this.detail = this.$route.query.detail
+ console.log(this.$route.query.detail,"detail------------")
+ }
+ // 杩濈害瑙勫垯鍒楄〃
+ this.getRuleList();
+ // 鑰冩牳绉垎鍒楄〃
+ this.getScoreList();
+ this.selectUnit();
+ this.selectExamine();
+ },
+ methods: {
+ goBack() {
+ console.log('go back');
+ },
+ // 杩愮淮鍏徃涓嬫媺鏁版嵁
+ selectUnit() {
+ unitSelect().then(res => {
+ this.unitList = res.data;
+ })
+ },
+ // 鑰冩牳涓嬫媺鏁版嵁
+ selectExamine() {
+ publishSelect().then(res => {
+ this.examineList = res.data;
+ })
+ },
+ /** 鏌ヨ鑰冩牳璁″垎鍒楄〃 */
+ getScoreList() {
+ this.loading = true;
+ listScore(this.scoreQueryParams).then(response => {
+ this.scoreList = response.rows;
+ this.loading = false;
+ });
+ },
+ /** 鏌ヨ杩濈害瑙勫垯鍒楄〃 */
+ getRuleList() {
+ this.loading = true;
+ if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) {
+ this.queryParams["start"] = this.daterangeCreateTime[0];
+ this.queryParams["end"] = this.daterangeCreateTime[1];
+ }
+ listRule(this.queryParams).then(response => {
+ this.ruleList = response.data;
+ this.loading = false;
+ });
+ },
+ frequencyFormatter(row) {
+ if (row.frequency === "1") {
+ return "鏈堝害鑰冩牳"
+ }
+ if (row.frequency === "2") {
+ return "瀛e害鑰冩牳"
+ }
+ },
+ examineRangeFormatter(row) {
+ if (row.examineRange === "1") {
+ return "鍒嗗眬鑰冩牳"
+ }
+ if (row.examineRange === "2") {
+ return "甯傚眬鑰冩牳"
+ }
+ },
+ /** 鏌ヨ鑰冩牳缁撴灉鍒楄〃 */
+ getCheckResult() {
+ this.loading = true;
+ getCheckResult(id).then(response => {
+ this.detail = response.data;
+ this.loading = false;
+ });
+ },
+ // 鍙栨秷鎸夐挳
+ cancel() {
+ this.scoreOpen = false;
+ this.ruleOpen = false;
+ this.ruleDetailOpen = false;
+ this.ruleDetailOpen = false;
+ this.reset();
+ },
+ // 琛ㄥ崟閲嶇疆
+ reset() {
+ this.form = {
+ id: null,
+ checkUnitId: null,
+ checkPublishId: null,
+ checkScore: null,
+ systemScore: null,
+ manualScore: null,
+ checkTime: null,
+ createTime: null,
+ updateTime: null,
+ deleted: null
+ };
+ this.resetForm("form");
+ },
+ cancelManualScore() {
+ this.manualScoreForm = {};
+ this.manualScoreTitle = "";
+ this.manualScoreOpen = false;
+ },
+ submitManualScore() {
+ if (! this.manualScoreForm.manualScore) {
+ this.$modal.msgWarning("璇峰~鍐欏垎鏁�");
+ return
+ }
+ manualScore(this.manualScoreForm).then(res => {
+ this.$modal.msgSuccess("鎿嶄綔鎴愬姛");
+ this.cancelManualScore();
+ this.getList();
+ })
+ },
+ handleSetManualScore(row) {
+ this.manualScoreForm.id = row.id;
+ this.manualScoreForm.manualScore = parseInt(row.manualScore);
+ this.manualScoreTitle = row.checkUnitName + '浜哄伐鎵撳垎'
+ this.manualScoreOpen = true;
+ },
+
+ handlePublish(row) {
+ let text = row.publish == 1 ? '鍙栨秷鍙戝竷' : '鍙戝竷';
+ const ids = row.id || this.ids;
+ this.$modal.confirm('鏄惁纭' + text + '鑰冩牳缁撴灉缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
+ return publishCheckResult(ids);
+ }).then(() => {
+ this.getList();
+ this.$modal.msgSuccess(text + "鎴愬姛");
+ }).catch(() => {});
+
+ },
+ /** 鎼滅储鎸夐挳鎿嶄綔 */
+ handleQuery() {
+ this.queryParams.pageNum = 1;
+ this.getList();
+ },
+ /** 閲嶇疆鎸夐挳鎿嶄綔 */
+ resetQuery() {
+ this.daterangeCheckTime = [];
+ this.resetForm("queryForm");
+ this.handleQuery();
+ },
+ // 澶氶�夋閫変腑鏁版嵁
+ handleSelectionChange(selection) {
+ this.ids = selection.map(item => item.id)
+ this.single = selection.length!==1
+ this.multiple = !selection.length
+ },
+ /** 鏂板鎸夐挳鎿嶄綔 */
+ handleAdd() {
+ this.reset();
+ this.open = true;
+ this.title = "娣诲姞鑰冩牳缁撴灉";
+ },
+ /** 淇敼绉垎鎸夐挳鎿嶄綔 */
+ handleScoreUpdate(row) {
+ this.reset();
+ const id = row.id || this.ids
+ getScore(id).then(response => {
+ this.scoreForm = response.data;
+ this.scoreOpen = true;
+ this.title = "淇敼鑰冩牳璁″垎";
+ });
+ },
+ /** 淇敼瑙勫垯鎸夐挳鎿嶄綔 */
+ handleRuleUpdate(row) {
+ this.reset();
+ const id = row.id || this.ids
+ getRule(id).then(response => {
+ this.ruleForm = response.data;
+ this.jsonRule = JSON.parse(this.ruleForm.ruleDetail)
+ this.ruleOpen = true;
+ this.title = "淇敼杩濈害瑙勫垯";
+ });
+ },
+ // 璇︽儏鎸夐挳
+ handleRuleDetail(row) {
+ this.ruleDetailOpen = true;
+ this.form = row;
+ this.jsonRule = JSON.parse(this.form.ruleDetail);
+ },
+ /** 鎻愪氦鎸夐挳 */
+ submitForm() {
+ this.$refs["form"].validate(valid => {
+ if (valid) {
+ if (this.form.id != null) {
+ updateCheckResult(this.form).then(response => {
+ this.$modal.msgSuccess("淇敼鎴愬姛");
+ this.open = false;
+ this.getList();
+ });
+ } else {
+ addCheckResult(this.form).then(response => {
+ this.$modal.msgSuccess("鏂板鎴愬姛");
+ this.open = false;
+ this.getList();
+ });
+ }
+ }
+ });
+ },
+ /** 鍒犻櫎鎸夐挳鎿嶄綔 */
+ handleDelete(row) {
+ const ids = row.id || this.ids;
+ this.$modal.confirm('鏄惁纭鍒犻櫎鑰冩牳缁撴灉缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
+ return delCheckResult(ids);
+ }).then(() => {
+ this.getList();
+ this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
+ }).catch(() => {});
+ },
+ /** 瀵煎嚭鎸夐挳鎿嶄綔 */
+ handleExport() {
+ this.download('system/checkResult/export', {
+ ...this.queryParams
+ }, `checkResult_${new Date().getTime()}.xlsx`)
+ }
+ }
+};
+</script>
+<style scoped>
+
+.line {
+ display: flex;
+ flex-direction: row;
+ justify-content: flex-start;
+ align-items: center;
+}
+
+.line-right {
+ width: 50px;
+}
+.input{
+ width: 200px;
+}
+</style>
diff --git a/src/views/system/check-result/index.vue b/src/views/system/check-result/contract/index.vue
similarity index 84%
rename from src/views/system/check-result/index.vue
rename to src/views/system/check-result/contract/index.vue
index 9f63175..f6ff3a4 100644
--- a/src/views/system/check-result/index.vue
+++ b/src/views/system/check-result/contract/index.vue
@@ -1,6 +1,7 @@
<template>
<div class="app-container">
- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
+
+ <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="鑰冩牳瀵硅薄" prop="checkUnitId">
<el-input
v-model="queryParams.checkUnitName"
@@ -52,16 +53,6 @@
</el-form>
<el-row :gutter="10" class="mb8">
-<!-- <el-col :span="1.5">-->
-<!-- <el-button-->
-<!-- type="primary"-->
-<!-- plain-->
-<!-- icon="el-icon-plus"-->
-<!-- size="mini"-->
-<!-- @click="handleAdd"-->
-<!-- v-hasPermi="['system:checkResult:add']"-->
-<!-- >鏂板</el-button>-->
-<!-- </el-col>-->
<el-col :span="1.5">
<el-button
type="danger"
@@ -99,46 +90,6 @@
</div>
</el-card>
- <!-- <el-table v-loading="loading" :data="checkResultList" @selection-change="handleSelectionChange">
- <el-table-column type="selection" width="55" align="center" />
- <el-table-column label="鑰冩牳瀵硅薄" align="center" prop="checkUnitName" />
- <el-table-column label="鑰冩牳" align="center" prop="examineName" />
- <el-table-column label="鑰冩牳鑼冨洿":formatter="examineRangeFormatter" align="center" prop="examineRange" />
- <el-table-column label="鑰冩牳棰戠巼" :formatter="frequencyFormatter" align="center" prop="frequency" />
- <el-table-column label="鑰冩牳鍒嗘暟" falign="center" prop="checkScore" />
- <el-table-column label="鑰冩牳鏃堕棿" align="center" prop="checkTime" />
- <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-view"
- @click="handleDetail(scope.row)"
- >璇︽儏</el-button>
- <el-button
- type="text"
- size="mini"
- icon="el-icon-edit"
- @click="handleSetManualScore(scope.row)"
- >浜哄伐鎵撳垎</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleDelete(scope.row)"
- >鍒犻櫎</el-button>
- </template>
- </el-table-column>
- </el-table>
-
- <pagination
- v-show="total>0"
- :total="total"
- :page.sync="queryParams.pageNum"
- :limit.sync="queryParams.pageSize"
- @pagination="getList"
- /> -->
-
<el-dialog :title="manualScoreTitle" :visible.sync="manualScoreOpen" width="500px" append-to-body>
<el-input v-model="manualScoreForm.manualScore" type="number" placeholder="璇蜂负璇ュ崟浣嶆墦鍒�"/>
<div slot="footer" class="dialog-footer">
@@ -149,9 +100,6 @@
<el-dialog :title="detailTitle" :visible.sync="detailOpen" width="700px" append-to-body>
<el-descriptions class="margin-top" :column="3" border>
-<!-- <template slot="extra">-->
-<!-- <el-button type="primary" size="small">鎿嶄綔</el-button>-->
-<!-- </template>-->
<el-descriptions-item>
<template slot="label">
<i class="el-icon-user"></i>
@@ -231,7 +179,6 @@
detailTitle: '',
detailOpen: false,
detail:{
-
},
tableData: [{
name: '瑙嗛骞冲潎鍦ㄧ嚎鐜�',
@@ -363,12 +310,16 @@
this.manualScoreTitle = row.checkUnitName + '浜哄伐鎵撳垎'
this.manualScoreOpen = true;
},
- handleDetail(row) {
- this.detail = row;
+ handleDetail(item) {
+ this.detail = item;
this.detail.carOnlineRate = '97%';
- this.detailTitle = row.checkUnitName + '鑰冩牳缁撴灉';
- this.detailOpen = true;
-
+ console.log(this.detail,"detail")
+ this.$router.push({
+ path: '/check-result/contract/detail',
+ query: {
+ detail: this.detail
+ }
+ })
},
handlePublish(row) {
let text = row.publish == 1 ? '鍙栨秷鍙戝竷' : '鍙戝竷';
diff --git a/src/views/system/check-result/province/detail.vue b/src/views/system/check-result/province/detail.vue
new file mode 100644
index 0000000..73f1396
--- /dev/null
+++ b/src/views/system/check-result/province/detail.vue
@@ -0,0 +1,791 @@
+<template>
+ <div class="app-container">
+ <el-page-header @back="goBack" content="璇︽儏椤甸潰">
+ </el-page-header>
+ <el-container>
+ <el-main style="padding-top: 0px">
+ <h2>鑰冩牳鍒嗘暟鏄庣粏</h2>
+ <el-row :gutter="10" class="mb8">
+ <el-col :span="1.5">
+ <el-button
+ type="success"
+ plain
+ icon="el-icon-edit"
+ size="mini"
+ :disabled="single"
+ @click="handleScoreUpdate"
+ >淇敼</el-button>
+ </el-col>
+ <el-col :span="1.5">
+ <el-button
+ type="danger"
+ plain
+ icon="el-icon-delete"
+ size="mini"
+ :disabled="multiple"
+ @click="handleDelete"
+ >鍒犻櫎</el-button>
+ </el-col>
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getScoreList"></right-toolbar>
+ </el-row>
+
+ <el-table v-loading="loading" :data="scoreList" @selection-change="handleSelectionChange">
+ <el-table-column type="selection" width="55" align="center" />
+ <el-table-column label="鑰冩牳鍚�" align="center" prop="examineName" />
+ <el-table-column label="鑰冩牳绫诲瀷" align="center" prop="examineCategory">
+ <template slot-scope="scope">
+ <div v-if="scope.row.examineCategory == 1">鐪佸巺鑰冩牳</div>
+ <div v-else-if="scope.row.examineCategory == 2">甯傚眬鑰冩牳</div>
+ <div v-else-if="scope.row.examineCategory == 3">鍚堝悓鑰冩牳</div>
+ </template>
+ </el-table-column>
+ <el-table-column label="鑰冩牳瀵硅薄" align="center" prop="unitName">
+ <template slot-scope="scope">
+ <div v-if="scope.row.unitName ==='鎴愰兘x杩愮淮' ">鎴愰兘x杩愮淮</div>
+ <div v-else>鑷祦浜曞尯</div>
+ </template>
+ </el-table-column>
+ <el-table-column label="鍒嗗��" align="center" prop="score" />
+ <el-table-column label="鑰冩牳瑙勫垯" align="center" prop="ruleCategory">
+ <template slot-scope="scope">
+ <div v-if="scope.row.ruleCategory == 1">瑙嗛鍦ㄧ嚎鐜�</div>
+ <div v-else-if="scope.row.ruleCategory == 2">瀛樺偍鏁呴殰</div>
+ <div v-else-if="scope.row.ruleCategory == 3">瑙嗗浘搴撳鎺ョǔ瀹氭��</div>
+ <div v-else-if="scope.row.ruleCategory == 4">涓�鏈轰竴妗�24灏忔椂鏈慨澶�</div>
+ <div v-else-if="scope.row.ruleCategory == 5">鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�</div>
+ </template>
+ </el-table-column>
+ <el-table-column label="鍒涘缓浜�" align="center" prop="createBy" />
+ <el-table-column label="鍒涘缓鏃堕棿" align="center" prop="createTime" />
+ <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
+ <template slot-scope="scope">
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-edit"
+ @click="handleScoreUpdate(scope.row)"
+ >淇敼</el-button>
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-delete"
+ @click="handleScoreDelete(scope.row)"
+ >鍒犻櫎</el-button>
+ </template>
+ </el-table-column>
+ </el-table>
+
+ </el-main>
+ </el-container>
+ <el-container>
+ <el-main>
+ <h2>鑰冩牳瑙勫垯</h2>
+ <el-row :gutter="10" class="mb8">
+ <el-col :span="1.5">
+ <el-button
+ type="success"
+ plain
+ icon="el-icon-edit"
+ size="mini"
+ :disabled="single"
+ @click="handleRuleUpdate"
+ >淇敼</el-button>
+ </el-col>
+ <el-col :span="1.5">
+ <el-button
+ type="danger"
+ plain
+ icon="el-icon-delete"
+ size="mini"
+ :disabled="multiple"
+ @click="handleDelete"
+ >鍒犻櫎</el-button>
+ </el-col>
+ <!-- <el-col :span="1.5">-->
+ <!-- <el-button-->
+ <!-- type="warning"-->
+ <!-- plain-->
+ <!-- icon="el-icon-download"-->
+ <!-- size="mini"-->
+ <!-- @click="handleExport"-->
+ <!-- v-hasPermi="['system:checkRule:export']"-->
+ <!-- >瀵煎嚭</el-button>-->
+ <!-- </el-col>-->
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getRuleList"></right-toolbar>
+ </el-row>
+
+ <el-table v-loading="loading" :data="ruleList" @selection-change="handleSelectionChange">
+ <el-table-column type="selection" width="55" align="center" />
+ <el-table-column label="瑙勫垯鍚嶇О" align="center" prop="ruleName" />
+ <el-table-column label="杩愮淮绫诲埆" align="center" prop="category">
+ <template slot-scope="scope">
+ <div v-if="scope.row.category === 1">瑙嗛鐩戞帶</div>
+ <div v-else-if="scope.row.category === 2">杞﹁締璇嗗埆</div>
+ <div v-else-if="scope.row.category === 3">浜鸿劯璇嗗埆</div>
+ </template>
+ </el-table-column>
+ <el-table-column label="瑙勫垯鎻忚堪" align="center" prop="ruleDetail" />
+ <el-table-column label="鍒涘缓鏃堕棿" align="center" prop="createTime" />
+ <el-table-column label="瀹℃牳鐘舵��" align="center" prop="auditState">
+ <template slot-scope="scope">
+ <dict-tag :options="dict.type.platform_audit_state" :value="scope.row.auditState"/>
+ </template>
+ </el-table-column>
+ <el-table-column label="瀹℃牳浜�" align="center" prop="auditUser" />
+ <el-table-column label="瀹℃牳鏃堕棿" align="center" prop="auditTime" />
+ <el-table-column label="瀹℃牳鎰忚" align="center" prop="auditDescription" />
+ <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
+ <template slot-scope="scope">
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-edit"
+ @click="handleRuleUpdate(scope.row)"
+ >淇敼</el-button>
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-delete"
+ @click="handleDelete(scope.row)"
+ >鍒犻櫎</el-button>
+ </template>
+ </el-table-column>
+ </el-table>
+
+ <pagination
+ v-show="total>0"
+ :total="total"
+ :page.sync="queryParams.pageNum"
+ :limit.sync="queryParams.pageSize"
+ @pagination="getRuleList"
+ />
+ </el-main>
+ </el-container>
+
+ <el-container>
+ <el-main>
+ <h2>鑰冩牳鎴愮哗</h2>
+ <el-collapse v-model="activeNames" @change="handleChange" >
+ <el-collapse-item name="1">
+ <template slot="title">
+ <div style="width: 10%" >鑷祦浜曞尯</div><div style="margin-left: 75%">寰楀垎:0.97</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item name="2">
+ <template slot="title">
+ <div style="width: 10%">璐′簳鍖�</div><div style="margin-left: 75%">寰楀垎:0.94</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item title="澶у畨鍖�" name="3">
+ <template slot="title">
+ <div style="width: 10%">澶у畨鍖�</div><div style="margin-left: 75%">寰楀垎:0.95</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item title="娌挎哗鍖�" name="4">
+ <template slot="title">
+ <div style="width: 10%">娌挎哗鍖�</div><div style="margin-left: 75%">寰楀垎:0.94</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item title="鑽e幙" name="5">
+ <template slot="title">
+ <div style="width: 10%">鑽e幙</div><div style="margin-left: 75%">寰楀垎:0.93</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item title="瀵岄『鍖�" name="6">
+ <template slot="title">
+ <div style="width: 10%">瀵岄『鍖�</div><div style="margin-left: 75%">寰楀垎:0.95</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item title="楂樻柊鍖�" name="7">
+ <template slot="title">
+ <div style="width: 10%">楂樻柊鍖�</div><div style="margin-left: 75%;">寰楀垎:0.96</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ </el-collapse>
+ </el-main>
+ </el-container>
+
+ <!-- 娣诲姞鎴栦慨鏀硅�冩牳瑙勫垯瀵硅瘽妗� -->
+ <el-dialog :title="title" :visible.sync="ruleOpen" width="600px" append-to-body>
+ <el-form ref="form" :model="ruleForm" :rules="rules" label-width="80px">
+ <el-form-item label="瑙勫垯鍚嶇О" prop="ruleName">
+ <el-input v-model="ruleForm.ruleName" placeholder="璇疯緭鍏ヨ鍒欏悕绉�" />
+ </el-form-item>
+ <el-form-item label="瑙勫垯绫诲瀷" prop="category">
+ <el-select v-model="ruleForm.category" placeholder="瑙勫垯绫诲瀷">
+ <el-option
+ v-for="item in categoryList"
+ :key="item.id"
+ :label="item.value"
+ :value="item.id">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ <el-form-item label="瑙勫垯鎻忚堪" prop="ruleDetail">
+ <el-input v-model="ruleForm.ruleDetail" type="textarea" show-word-limit maxlength="150" placeholder="璇疯緭鍏ヨ鍒欐弿杩�"/>
+ </el-form-item>
+ <el-form-item label="鍙傛暟閰嶇疆" prop="ruleDetail">
+ <div class="row-warp">
+ <div class="row">
+ <div class="row-left">鍙傛暟鍚�</div>
+ <div class="row-right">鏉′欢</div>
+ </div>
+ <div class="row">
+ <div class="row-left">澶╃綉瑙嗛鐐逛綅鏁�</div>
+ <div class="row-right">
+ <div>涓嶅皯浜�</div>
+ <div>
+ <el-input class="input-w" type="number" v-model="ruleForm.videoPointNum"/>{{" %"}}
+ </div>
+ </div>
+ </div>
+ <div class="row">
+ <div class="row-left">杞﹁締鍗″彛鐐逛綅鏁�</div>
+ <div class="row-right">
+ <div>涓嶅皯浜�</div>
+ <div><el-input class="input-w" type="number" v-model="ruleForm.vehicleCheckpointNum"/></div>{{" %"}}
+ </div>
+ </div>
+ <div class="row">
+ <div class="row-left">浜鸿劯鍗″彛鐐逛綅鏁�</div>
+ <div class="row-right">
+ <div>涓嶅皯浜�</div>
+ <div>
+ <el-input class="input-w" type="number" v-model="ruleForm.faceChceckpointNum" /></div>{{" %"}}
+ </div>
+ </div>
+ </div>
+ </el-form-item>
+ </el-form>
+ <div slot="footer" class="dialog-footer">
+ <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
+ <el-button @click="cancel">鍙� 娑�</el-button>
+ </div>
+ </el-dialog>
+
+ <!-- 瑙勫垯璇︽儏 -->
+ <el-dialog title="瑙勫垯璇︽儏" :visible.sync="ruleDetailOpen" width="50%" append-to-body>
+ <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+ <el-form-item label="瑙勫垯鍚嶇О" prop="ruleName">
+ <el-input class="input" disabled v-model="form.ruleName" placeholder="璇疯緭鍏ヨ鍒欏悕绉�" />
+ </el-form-item>
+ <el-form-item label="杩愮淮鍏徃" prop="companyName">
+ <el-input class="input" disabled :value ="companyName" placeholder="璇疯緭鍏ヨ繍缁村叕鍙稿悕绉�"></el-input>
+ </el-form-item>
+ <el-form-item label="瑙勫垯鎻忚堪" prop="ruleDesc">
+ <el-input class="input" disabled v-model="form.ruleDesc" placeholder="璇疯緭鍏ヨ鍒欐弿杩�" />
+ </el-form-item>
+ <el-form-item label="瑙勫垯璁剧疆">
+ <div >
+ <div class="line">
+ <div class="line-left">鏃堕挓鍚屾锛堣秴杩嚶�3绉掍负涓嶅悎鏍硷級24灏忔椂鍐呮湭淇鐨勶細鎵i櫎鐩稿叧闀滃ご鏁伴噺*</div>
+ <div class="line-right"><el-input disabled v-model="jsonRule.overTime" type="text"/></div>鍒�
+ </div>
+ <div class="line">
+ <div class="line-left">OSD鏍囪瘑涓嶆弧瓒炽�奊AT 751-2008 瑙嗛鍥惧儚鏂囧瓧鏍囨敞瑙勮寖銆嬶紝24灏忔椂鍐呮湭淇鐨勶細鏍囨墸闄ょ浉鍏抽暅澶存暟閲�*</div>
+ <div class="line-right"><el-input disabled v-model="jsonRule.failNum" type="text"/></div>鍒�
+ </div>
+ <div class="line">
+ <div class="line-left">鐢ㄦ埛鎶芥锛屼竴鏈轰竴妗f暟鎹」涓嶅悎鏍硷紙鎻愪緵铏氬亣鏁版嵁鎴栭敊璇暟鎹负涓嶅悎鏍硷級锛�24灏忔椂鍐呮湭淇鐨勶細鎵i櫎鐩稿叧闀滃ご鏁伴噺*</div>
+ <div class="line-right"><el-input disabled v-model="jsonRule.failNum" type="text"/></div>鍒�
+ </div>
+ </div>
+ </el-form-item>
+ </el-form>
+ <div slot="footer" class="dialog-footer">
+ <el-button @click="cancel">鍏抽棴</el-button>
+ </div>
+ </el-dialog>
+
+ <!-- 娣诲姞鎴栦慨鏀硅�冩牳璁″垎瀵硅瘽妗� -->
+ <el-dialog :title="title" :visible.sync="scoreOpen" width="500px" append-to-body>
+ <el-form ref="form" :model="scoreForm" :rules="rules" label-width="80px">
+ <el-form-item label="鍒嗗��" prop="score">
+ <el-input v-model="scoreForm.score" placeholder="璇疯緭鍏ュ垎鍊�" />
+ </el-form-item>
+ <el-form-item label="鑰冩牳鍚�" prop="examineId">
+ <el-select v-model="scoreForm.examineId" placeholder="璇烽�夋嫨">
+ <el-option
+ v-for="item in examineList"
+ :key="item.id"
+ :label="item.value"
+ :value="item.id">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ <el-form-item label="鑰冩牳瀵硅薄" prop="unitId">
+ <el-select v-model="scoreForm.unitId" placeholder="璇烽�夋嫨">
+ <el-option
+ v-for="item in unitList"
+ :key="item.id"
+ :label="item.value"
+ :value="item.id">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ <el-form-item label="鑰冩牳瑙勫垯" prop="ruleCategory">
+ <el-select v-model="scoreForm.ruleCategory" placeholder="璇烽�夋嫨">
+ <el-option
+ v-for="item in ruleCategoryList"
+ :key="item.id"
+ :label="item.value"
+ :value="item.id">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ </el-form>
+ <div slot="footer" class="dialog-footer">
+ <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
+ <el-button @click="cancel">鍙� 娑�</el-button>
+ </div>
+ </el-dialog>
+ </div>
+</template>
+
+<script>
+import { listCheckResult, getCheckResult, delCheckResult, addCheckResult, updateCheckResult,manualScore, publishCheckResult } from "@/api/platform/check-result";
+import { listCheckRule, getCheckRule, delCheckRule, addCheckRule, updateCheckRule } from "@/api/platform/check-rule";
+import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/score";
+import {unitSelect} from "../../../../api/platform/unit";
+import {publishSelect} from "../../../../api/platform/publish";
+
+export default {
+ name: "CheckResult",
+ dicts: ['platform_audit_state'],
+ data() {
+ return {
+ activeNames: ['1'],
+ companyName: "鎴愰兘x杩愮淮鍏徃",
+ detailTitle: '',
+ detailOpen: false,
+ detail:{
+ },
+ examineList: [],
+ unitList: [
+ {id:2,value: '鎴愰兘x杩愮淮'},
+ {id:3,value: '鑷祦浜曞尯'},
+ ],
+ ruleCategoryList: [
+ { id: 1, value: '瑙嗛鍦ㄧ嚎鐜�' },
+ { id: 2, value: '瀛樺偍鏁呴殰' },
+ { id: 3, value: '瑙嗗浘搴撳鎺ョǔ瀹氭��' },
+ { id: 4, value: '涓�鏈轰竴妗�24灏忔椂鏈慨澶�' },
+ { id: 5, value: '鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�' },
+ ],
+ tableData: [{
+ name: '瑙嗛骞冲潎鍦ㄧ嚎鐜�',
+ content: '97%',
+ score: '-5'
+ }, {
+ name: '涓�鏈轰竴妗�24灏忔椂鏈慨澶�',
+ content: '5涓�',
+ score: '-0.5'
+ }, {
+ name: '瀛樺偍鏁呴殰',
+ content: '5灏忔椂',
+ score: '-0.3'
+ }, {
+ name: '鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�',
+ content: '3涓�',
+ score: '-0.5'
+ }],
+ // 杩愮淮绫诲瀷
+ categoryList: [
+ { id: 1, value: '瑙嗛鐩戞帶' },
+ { id: 2, value: '杞﹁締璇嗗埆' },
+ { id: 3, value: '浜鸿劯璇嗗埆' },
+ ],
+ manualScoreOpen: false,
+ manualScoreForm: {},
+ manualScoreTitle: '',
+ // 閬僵灞�
+ loading: true,
+ // 閫変腑鏁扮粍
+ ids: [],
+ // 闈炲崟涓鐢�
+ single: true,
+ // 闈炲涓鐢�
+ multiple: true,
+ // 鏄剧ず鎼滅储鏉′欢
+ showSearch: true,
+ // 鎬绘潯鏁�
+ total: 0,
+ // 鑰冩牳缁撴灉琛ㄦ牸鏁版嵁
+ checkResultList: [],
+ // 寮瑰嚭灞傛爣棰�
+ title: "",
+ // 鏄惁鏄剧ず寮瑰嚭灞�
+ scoreOpen: false,
+ ruleOpen: false,
+ ruleDetailOpen: false,
+ // 閫昏緫鍒犻櫎鏃堕棿鑼冨洿
+ daterangeCheckTime: [],
+ // 琛ㄥ崟鍙傛暟
+ form: {},
+ scoreForm: {},
+ ruleForm: {},
+ jsonRule: {},
+ // 鑰冩牳瑙勫垯鍒楄〃
+ ruleList: [],
+ // 鑰冩牳璁″垎琛ㄦ牸鏁版嵁
+ scoreList: [],
+ //杩濈害瑙勫垯璇锋眰鍙傛暟
+ queryParams: {
+ pageNum: 1,
+ pageSize: 10,
+ ruleName: null,
+ ruleStatus: null,
+ createTime: null,
+ },
+ //鑰冩牳鍒嗘暟璇锋眰鍙傛暟
+ scoreQueryParams: {
+ pageNum: 1,
+ pageSize: 10,
+ examineCategory: 1,
+ },
+ // 琛ㄥ崟鏍¢獙
+ rules: {
+ }
+ };
+ },
+ created() {
+ //鑰冩牳鎴愮哗璇︽儏璺宠浆鍙傛暟鎺ユ敹
+ if(this.$route.query.detail){
+ this.detail = this.$route.query.detail
+ console.log(this.$route.query.detail,"detail------------")
+ }
+ // 鑰冩牳瑙勫垯鍒楄〃
+ this.getRuleList();
+ // 鑰冩牳绉垎鍒楄〃
+ this.getScoreList();
+ // this.selectUnit();
+ this.selectExamine();
+ },
+ methods: {
+ handleChange(val) {
+ console.log(val);
+ },
+ // 杩愮淮鍏徃涓嬫媺鏁版嵁
+ // selectUnit() {
+ // unitSelect().then(res => {
+ // this.unitList = res.data;
+ // })
+ // },
+ // 鑰冩牳涓嬫媺鏁版嵁
+ selectExamine() {
+ publishSelect().then(res => {
+ this.examineList = res.data;
+ })
+ },
+ /** 鏌ヨ鑰冩牳璁″垎鍒楄〃 */
+ getScoreList() {
+ this.loading = true;
+ listScore(this.scoreQueryParams).then(response => {
+ this.scoreList = response.rows;
+ this.loading = false;
+ });
+ },
+ /** 鏌ヨ杩濈害瑙勫垯鍒楄〃 */
+ getRuleList() {
+ this.loading = true;
+ if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) {
+ this.queryParams["start"] = this.daterangeCreateTime[0];
+ this.queryParams["end"] = this.daterangeCreateTime[1];
+ }
+ listCheckRule(this.queryParams).then(response => {
+ this.ruleList = response.data;
+ this.total = response.total;
+ this.loading = false;
+ });
+ },
+ frequencyFormatter(row) {
+ if (row.frequency === "1") {
+ return "鏈堝害鑰冩牳"
+ }
+ if (row.frequency === "2") {
+ return "瀛e害鑰冩牳"
+ }
+ },
+ examineRangeFormatter(row) {
+ if (row.examineRange === "1") {
+ return "鍒嗗眬鑰冩牳"
+ }
+ if (row.examineRange === "2") {
+ return "甯傚眬鑰冩牳"
+ }
+ },
+ /** 鏌ヨ鑰冩牳缁撴灉鍒楄〃 */
+ getCheckResult() {
+ this.loading = true;
+ getCheckResult(id).then(response => {
+ this.detail = response.data;
+ this.loading = false;
+ });
+ },
+ // 鍙栨秷鎸夐挳
+ cancel() {
+ this.scoreOpen = false;
+ this.ruleOpen = false;
+ this.ruleDetailOpen = false;
+ this.ruleDetailOpen = false;
+ this.reset();
+ },
+ // 琛ㄥ崟閲嶇疆
+ reset() {
+ this.form = {
+ id: null,
+ checkUnitId: null,
+ checkPublishId: null,
+ checkScore: null,
+ systemScore: null,
+ manualScore: null,
+ checkTime: null,
+ createTime: null,
+ updateTime: null,
+ deleted: null
+ };
+ this.resetForm("form");
+ },
+ cancelManualScore() {
+ this.manualScoreForm = {};
+ this.manualScoreTitle = "";
+ this.manualScoreOpen = false;
+ },
+ submitManualScore() {
+ if (! this.manualScoreForm.manualScore) {
+ this.$modal.msgWarning("璇峰~鍐欏垎鏁�");
+ return
+ }
+ manualScore(this.manualScoreForm).then(res => {
+ this.$modal.msgSuccess("鎿嶄綔鎴愬姛");
+ this.cancelManualScore();
+ this.getList();
+ })
+ },
+ handleSetManualScore(row) {
+ this.manualScoreForm.id = row.id;
+ this.manualScoreForm.manualScore = parseInt(row.manualScore);
+ this.manualScoreTitle = row.checkUnitName + '浜哄伐鎵撳垎'
+ this.manualScoreOpen = true;
+ },
+
+ handlePublish(row) {
+ let text = row.publish == 1 ? '鍙栨秷鍙戝竷' : '鍙戝竷';
+ const ids = row.id || this.ids;
+ this.$modal.confirm('鏄惁纭' + text + '鑰冩牳缁撴灉缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
+ return publishCheckResult(ids);
+ }).then(() => {
+ this.getList();
+ this.$modal.msgSuccess(text + "鎴愬姛");
+ }).catch(() => {});
+
+ },
+ /** 鎼滅储鎸夐挳鎿嶄綔 */
+ handleQuery() {
+ this.queryParams.pageNum = 1;
+ this.getList();
+ },
+ /** 閲嶇疆鎸夐挳鎿嶄綔 */
+ resetQuery() {
+ this.daterangeCheckTime = [];
+ this.resetForm("queryForm");
+ this.handleQuery();
+ },
+ // 澶氶�夋閫変腑鏁版嵁
+ handleSelectionChange(selection) {
+ this.ids = selection.map(item => item.id)
+ this.single = selection.length!==1
+ this.multiple = !selection.length
+ },
+ /** 鏂板鎸夐挳鎿嶄綔 */
+ handleAdd() {
+ this.reset();
+ this.open = true;
+ this.title = "娣诲姞鑰冩牳缁撴灉";
+ },
+ /** 淇敼绉垎鎸夐挳鎿嶄綔 */
+ handleScoreUpdate(row) {
+ this.reset();
+ const id = row.id || this.ids
+ getScore(id).then(response => {
+ this.scoreForm = response.data;
+ this.scoreOpen = true;
+ this.title = "淇敼鑰冩牳璁″垎";
+ });
+ },
+ /** 淇敼鎸夐挳鎿嶄綔 */
+ handleRuleUpdate(row) {
+ this.reset();
+ const id = row.id || this.ids
+ getCheckRule(id).then(response => {
+ this.ruleForm = response.data;
+ this.ruleOpen = true;
+ this.title = "淇敼鑰冩牳瑙勫垯";
+
+ });
+ },
+ // 璇︽儏鎸夐挳
+ handleRuleDetail(row) {
+ this.ruleDetailOpen = true;
+ this.form = row;
+ this.jsonRule = JSON.parse(this.form.ruleDetail);
+ },
+ /** 鎻愪氦鎸夐挳 */
+ submitForm() {
+ this.$refs["form"].validate(valid => {
+ if (valid) {
+ if (this.form.id != null) {
+ updateCheckResult(this.form).then(response => {
+ this.$modal.msgSuccess("淇敼鎴愬姛");
+ this.open = false;
+ this.getList();
+ });
+ } else {
+ addCheckResult(this.form).then(response => {
+ this.$modal.msgSuccess("鏂板鎴愬姛");
+ this.open = false;
+ this.getList();
+ });
+ }
+ }
+ });
+ },
+ /** 鍒犻櫎鎸夐挳鎿嶄綔 */
+ handleDelete(row) {
+ const ids = row.id || this.ids;
+ this.$modal.confirm('鏄惁纭鍒犻櫎鑰冩牳缁撴灉缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
+ return delCheckResult(ids);
+ }).then(() => {
+ this.getList();
+ this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
+ }).catch(() => {});
+ },
+ /** 瀵煎嚭鎸夐挳鎿嶄綔 */
+ handleExport() {
+ this.download('system/checkResult/export', {
+ ...this.queryParams
+ }, `checkResult_${new Date().getTime()}.xlsx`)
+ }
+ }
+};
+</script>
+<style scoped>
+
+.line {
+ display: flex;
+ flex-direction: row;
+ justify-content: flex-start;
+ align-items: center;
+}
+
+.line-right {
+ width: 50px;
+}
+.input{
+ width: 200px;
+}
+
+.input-w {
+ margin-left: 5px;
+ width: 70px;
+}
+.row-warp {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ text-align: center;
+ border: solid 1px gray;
+ /*padding: 3px;*/
+}
+.row {
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
+ border-bottom: solid 1px gray;
+ padding: 3px;
+}
+.row:last-of-type {
+ border-bottom: none;
+}
+.row-left {
+ flex: 2;
+ border-right: solid 1px gray;
+}
+.row-right {
+ flex: 4;
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+}
+</style>
diff --git a/src/views/system/check-result/province/index.vue b/src/views/system/check-result/province/index.vue
new file mode 100644
index 0000000..26b7b80
--- /dev/null
+++ b/src/views/system/check-result/province/index.vue
@@ -0,0 +1,471 @@
+<template>
+ <div class="app-container">
+ <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
+ <el-form-item label="鑰冩牳瀵硅薄" prop="checkUnitId">
+ <el-input
+ v-model="queryParams.checkUnitName"
+ placeholder="璇疯緭鍏ヨ�冩牳瀵硅薄"
+ clearable
+ @clear="handleQuery"
+ @keyup.enter.native="handleQuery"
+ />
+ </el-form-item>
+ <el-form-item label="鑰冩牳棰戠巼" prop="frequency">
+ <el-select v-model="queryParams.frequency" clearable @clear="handleQuery" placeholder="鑰冩牳棰戠巼">
+ <el-option
+ label="鏈堝害鑰冩牳"
+ value="1">
+ </el-option>
+ <el-option
+ label="瀛e害鑰冩牳"
+ value="2">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ <el-form-item label="鑰冩牳鑼冨洿" prop="examineRange">
+ <el-select v-model="queryParams.examineRange" clearable @clear="handleQuery" placeholder="鑰冩牳鑼冨洿">
+ <el-option
+ label="甯傚眬鑰冩牳"
+ value="2">
+ </el-option>
+ <el-option
+ label="鍒嗗眬鑰冩牳"
+ value="1">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ <el-form-item label="鑰冩牳鏃堕棿">
+ <el-date-picker
+ v-model="daterangeCheckTime"
+ style="width: 240px"
+ value-format="yyyy-MM-dd HH:mm:ss"
+ type="daterange"
+ range-separator="-"
+ start-placeholder="寮�濮嬫棩鏈�"
+ end-placeholder="缁撴潫鏃ユ湡"
+ ></el-date-picker>
+ </el-form-item>
+ <el-form-item>
+ <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>
+ </el-form-item>
+ </el-form>
+
+ <el-row :gutter="10" class="mb8">
+ <el-col :span="1.5">
+ <el-button
+ type="danger"
+ plain
+ icon="el-icon-delete"
+ size="mini"
+ :disabled="multiple"
+ @click="handleDelete"
+ >鍒犻櫎</el-button>
+ </el-col>
+ <el-col :span="1.5">
+ <el-button
+ type="warning"
+ plain
+ icon="el-icon-download"
+ size="mini"
+ @click="handleExport"
+ >瀵煎嚭</el-button>
+ </el-col>
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+ </el-row>
+
+ <el-card class="box-card" v-for="(item) in checkResultList">
+ <div slot="header" class="clearfix">
+ <span>{{ "杞﹁締鑰冩牳" }}</span>
+ <el-button style="float: right; padding: 3px 0" type="text" @click="handleDetail(item)">璇︽儏</el-button>
+ </div>
+ <div class="text item">鑰冩牳鏍囩<span class="time">{{ "鍥涘尯澶╃綉浜屾湡" }}</span></div>
+ <div class="text item">鑰冩牳鑼冨洿<span class="time">{{ "甯傚尯鑰冩牳" }}</span></div>
+ <div class="text item">鑰冩牳棰戠巼<span class="time">{{ "瀛e害" }}</span></div>
+ <div class="text item">鑰冩牳鏃堕棿
+ <span class="time">{{ item.checkTime }}</span>
+ <el-button size="small" round style="float: right;" @click="handlePublish(item)" v-show="item.publish != 1" v-hasPermi="['result:city:publish']">纭鍙戝竷</el-button>
+ <el-button size="small" round style="float: right;" v-show="item.publish == 1" disabled="true" v-hasPermi="['result:city:publish']">宸插彂甯�</el-button>
+ </div>
+ </el-card>
+
+ <!-- <pagination
+ v-show="total>0"
+ :total="total"
+ :page.sync="queryParams.pageNum"
+ :limit.sync="queryParams.pageSize"
+ @pagination="getList"
+ /> -->
+
+ <el-dialog :title="detailName" :visible.sync="detail" width="800px" append-to-body>
+ <el-form label-position="left" inline class="table-expand">
+ <el-collapse v-model="activeNames" @change="handleChange">
+ <el-collapse-item name="1">
+ <template slot="title">
+ <div style="width: 10%">鑷祦浜曞尯</div><div style="margin-left: 75%">寰楀垎:0.97</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item name="2">
+ <template slot="title">
+ <div style="width: 10%">璐′簳鍖�</div><div style="margin-left: 75%">寰楀垎:0.94</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item title="澶у畨鍖�" name="3">
+ <template slot="title">
+ <div style="width: 10%">澶у畨鍖�</div><div style="margin-left: 75%">寰楀垎:0.95</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item title="娌挎哗鍖�" name="4">
+ <template slot="title">
+ <div style="width: 10%">娌挎哗鍖�</div><div style="margin-left: 75%">寰楀垎:0.94</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item title="鑽e幙" name="5">
+ <template slot="title">
+ <div style="width: 10%">鑽e幙</div><div style="margin-left: 75%">寰楀垎:0.93</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item title="瀵岄『鍖�" name="6">
+ <template slot="title">
+ <div style="width: 10%">瀵岄『鍖�</div><div style="margin-left: 75%">寰楀垎:0.95</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ <el-collapse-item title="楂樻柊鍖�" name="7">
+ <template slot="title">
+ <div style="width: 10%">楂樻柊鍖�</div><div style="margin-left: 75%;">寰楀垎:0.96</div>
+ </template>
+ <div>瑙嗗浘搴撳鎺ョǔ瀹氭��:95.32%</div>
+ <div>鐐逛綅鍦ㄧ嚎鐜�:96.46%</div>
+ <div>鑱旂綉鍗″彛璁惧鐩綍涓�鑷寸巼:97.26%</div>
+ <div>杞﹁締鍗″彛淇℃伅閲囬泦鍑嗙‘鐜�:92.33%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁瀹屾暣鎬�:94.26%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁鍑嗙‘鎬�:94.78%</div>
+ <div>杞﹁締鍗″彛璁惧鏃堕挓鍑嗙‘鎬�:93.98%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁涓婁紶鍙婃椂鎬�:95.86%</div>
+ <div>杞﹁締鍗″彛璁惧url鍙敤鎬�:94.56%</div>
+ <div>杞﹁締鍗″彛璁惧鎶撴媿鏁版嵁澶у浘鍙敤鎬�:91.77%</div>
+ </el-collapse-item>
+ </el-collapse>
+ </el-form>
+ </el-dialog>
+
+ <!-- 娣诲姞鎴栦慨鏀硅�冩牳缁撴灉瀵硅瘽妗� -->
+ <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+ <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+ </el-form>
+ <div slot="footer" class="dialog-footer">
+ <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
+ <el-button @click="cancel">鍙� 娑�</el-button>
+ </div>
+ </el-dialog>
+ </div>
+</template>
+
+<script>
+import { listCheckResult, getCheckResult, delCheckResult, addCheckResult, updateCheckResult,manualScore, publishCheckResult } from "@/api/platform/check-result";
+
+export default {
+ name: "CheckResult",
+ data() {
+ return {
+ detailTitle: '',
+ detailOpen: false,
+ // 鏄惁鏄剧ず璇︽儏
+ detail: false,
+ // 璇︽儏鏍囬
+ detailName: "鑰冩牳缁撴灉",
+ activeNames: ['1'],
+ manualScoreOpen: false,
+ manualScoreForm: {},
+ manualScoreTitle: '',
+ // 閬僵灞�
+ loading: true,
+ // 閫変腑鏁扮粍
+ ids: [],
+ // 闈炲崟涓鐢�
+ single: true,
+ // 闈炲涓鐢�
+ multiple: true,
+ // 鏄剧ず鎼滅储鏉′欢
+ showSearch: true,
+ // 鎬绘潯鏁�
+ total: 0,
+ // 鑰冩牳缁撴灉琛ㄦ牸鏁版嵁
+ checkResultList: [],
+ // 寮瑰嚭灞傛爣棰�
+ title: "",
+ // 鏄惁鏄剧ず寮瑰嚭灞�
+ open: false,
+ // 閫昏緫鍒犻櫎鏃堕棿鑼冨洿
+ daterangeCheckTime: [],
+ // 鏌ヨ鍙傛暟
+ queryParams: {
+ pageNum: 1,
+ pageSize: 10,
+ checkUnitId: null,
+ checkTime: null,
+ },
+ // 琛ㄥ崟鍙傛暟
+ form: {},
+ // 琛ㄥ崟鏍¢獙
+ rules: {
+ }
+ };
+ },
+ created() {
+ this.getList();
+ },
+ methods: {
+ handleChange(val) {
+ console.log(val);
+ },
+ frequencyFormatter(row) {
+ if (row.frequency === "1") {
+ return "鏈堝害鑰冩牳"
+ }
+ if (row.frequency === "2") {
+ return "瀛e害鑰冩牳"
+ }
+ },
+ examineRangeFormatter(row) {
+ if (row.examineRange === "1") {
+ return "鍒嗗眬鑰冩牳"
+ }
+ if (row.examineRange === "2") {
+ return "甯傚眬鑰冩牳"
+ }
+ },
+ /** 鏌ヨ鑰冩牳缁撴灉鍒楄〃 */
+ getList() {
+ this.loading = true;
+ if (null != this.daterangeCheckTime && '' != this.daterangeCheckTime) {
+ this.queryParams["start"] = this.daterangeCheckTime[0];
+ this.queryParams["end"] = this.daterangeCheckTime[1];
+ }
+ listCheckResult(this.queryParams).then(response => {
+ this.checkResultList = response.data;
+ this.total = response.total;
+ this.loading = false;
+ });
+ },
+ // 鍙栨秷鎸夐挳
+ cancel() {
+ this.open = false;
+ this.reset();
+ },
+ // 琛ㄥ崟閲嶇疆
+ reset() {
+ this.form = {
+ id: null,
+ checkUnitId: null,
+ checkPublishId: null,
+ checkScore: null,
+ systemScore: null,
+ manualScore: null,
+ checkTime: null,
+ createTime: null,
+ updateTime: null,
+ deleted: null
+ };
+ this.resetForm("form");
+ },
+ cancelManualScore() {
+ this.manualScoreForm = {};
+ this.manualScoreTitle = "";
+ this.manualScoreOpen = false;
+ },
+ submitManualScore() {
+ if (! this.manualScoreForm.manualScore) {
+ this.$modal.msgWarning("璇峰~鍐欏垎鏁�");
+ return
+ }
+ manualScore(this.manualScoreForm).then(res => {
+ this.$modal.msgSuccess("鎿嶄綔鎴愬姛");
+ this.cancelManualScore();
+ this.getList();
+ })
+ },
+ handleSetManualScore(row) {
+ this.manualScoreForm.id = row.id;
+ this.manualScoreForm.manualScore = parseInt(row.manualScore);
+ this.manualScoreTitle = row.checkUnitName + '浜哄伐鎵撳垎'
+ this.manualScoreOpen = true;
+ },
+ handleDetail(item) {
+ this.detail = item;
+ this.detail.carOnlineRate = '97%';
+ console.log(this.detail,"detail")
+ this.$router.push({
+ path: '/check-result/province/detail',
+ query: {
+ detail: this.detail
+ }
+ })
+ },
+ handlePublish(row) {
+ const ids = row.id || this.ids;
+ this.$modal.confirm('鏄惁纭鍙戝竷鑰冩牳缁撴灉缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
+ return publishCheckResult(ids);
+ }).then(() => {
+ this.getList();
+ this.$modal.msgSuccess("鍙戝竷鎴愬姛");
+ }).catch(() => {});
+
+ },
+ /** 鎼滅储鎸夐挳鎿嶄綔 */
+ handleQuery() {
+ this.queryParams.pageNum = 1;
+ this.getList();
+ },
+ /** 閲嶇疆鎸夐挳鎿嶄綔 */
+ resetQuery() {
+ this.daterangeCheckTime = [];
+ this.resetForm("queryForm");
+ this.handleQuery();
+ },
+ // 澶氶�夋閫変腑鏁版嵁
+ handleSelectionChange(selection) {
+ this.ids = selection.map(item => item.id)
+ this.single = selection.length!==1
+ this.multiple = !selection.length
+ },
+ /** 鏂板鎸夐挳鎿嶄綔 */
+ handleAdd() {
+ this.reset();
+ this.open = true;
+ this.title = "娣诲姞鑰冩牳缁撴灉";
+ },
+ /** 淇敼鎸夐挳鎿嶄綔 */
+ handleUpdate(row) {
+ this.reset();
+ const id = row.id || this.ids
+ getCheckResult(id).then(response => {
+ this.form = response.data;
+ this.open = true;
+ this.title = "淇敼鑰冩牳缁撴灉";
+ });
+ },
+ /** 鎻愪氦鎸夐挳 */
+ submitForm() {
+ this.$refs["form"].validate(valid => {
+ if (valid) {
+ if (this.form.id != null) {
+ updateCheckResult(this.form).then(response => {
+ this.$modal.msgSuccess("淇敼鎴愬姛");
+ this.open = false;
+ this.getList();
+ });
+ } else {
+ addCheckResult(this.form).then(response => {
+ this.$modal.msgSuccess("鏂板鎴愬姛");
+ this.open = false;
+ this.getList();
+ });
+ }
+ }
+ });
+ },
+ /** 鍒犻櫎鎸夐挳鎿嶄綔 */
+ handleDelete(row) {
+ const ids = row.id || this.ids;
+ this.$modal.confirm('鏄惁纭鍒犻櫎鑰冩牳缁撴灉缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
+ return delCheckResult(ids);
+ }).then(() => {
+ this.getList();
+ this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
+ }).catch(() => {});
+ },
+ /** 瀵煎嚭鎸夐挳鎿嶄綔 */
+ handleExport() {
+ this.download('system/checkResult/export', {
+ ...this.queryParams
+ }, `checkResult_${new Date().getTime()}.xlsx`)
+ }
+ }
+};
+</script>
+<style>
+ .text {
+ font-size: 14px;
+ }
+ .time {
+ font-size: 13px;
+ color: #999;
+ margin-left: 10px;
+ }
+ .item {
+ margin-bottom: 18px;
+ }
+ .clearfix:before,
+ .clearfix:after {
+ display: table;
+ content: "";
+ }
+ .clearfix:after {
+ clear: both
+ }
+ .box-card {
+ width: 480px;
+ }
+
+</style>
diff --git a/src/views/system/check-rule/index.vue b/src/views/system/check-rule/index.vue
index 96190cd..e507099 100644
--- a/src/views/system/check-rule/index.vue
+++ b/src/views/system/check-rule/index.vue
@@ -1,5 +1,6 @@
<template>
<div class="app-container">
+
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="瑙勫垯鍚嶇О" prop="ruleName">
<el-input
diff --git a/src/views/system/check-template/index.vue b/src/views/system/check-template/index.vue
index 52dc255..227f892 100644
--- a/src/views/system/check-template/index.vue
+++ b/src/views/system/check-template/index.vue
@@ -78,10 +78,16 @@
<el-table v-loading="loading" :data="checkTemplateList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
- <el-table-column label="妯℃澘鍚嶇О" align="center" prop="templateName" />
- <el-table-column label="鑰冩牳瀵硅薄" align="center" prop="unitName" />
+ <el-table-column label="妯℃澘鍚嶇О" align="center" prop="templateName" width="220px"/>
+ <el-table-column label="鑰冩牳绫诲瀷" align="center" prop="examineCategory" />
+ <el-table-column label="鑰冩牳瀵硅薄" align="center" prop="unitId" width="400px" >
+ <template slot-scope="scope">
+ <div v-if="scope.row.unitId === 2">鎴愰兘x杩愮淮</div>
+ <div v-else-if="scope.row.unitId === 3">瀵岄『鍘�,鑽e幙,楂樻柊鍖�,鑷祦浜曞尯,璐′簳鍖�,澶у畨鍖�,娌挎哗鍖�</div>
+ </template>
+ </el-table-column>
<el-table-column label="璋冩暣绯绘暟" align="center" prop="adjustCoefficient" />
- <el-table-column label="璋冩暣绯绘暟璁$畻鏂瑰紡" align="center" prop="adjustWay" />
+ <el-table-column label="璋冩暣绯绘暟璁$畻鏂瑰紡" align="center" prop="adjustWay"/>
<el-table-column label="鐘舵��" align="center" prop="status" />
<el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
diff --git a/src/views/system/contract/index.vue b/src/views/system/contract/index.vue
index 8f1a107..27ccd9f 100644
--- a/src/views/system/contract/index.vue
+++ b/src/views/system/contract/index.vue
@@ -4,7 +4,7 @@
<el-row>
<el-col :span="8" v-for="(item) in tableData" :key="o" style="margin: 10px;width: 30%;">
<el-card :body-style="{ padding: '0px' }">
- <img src="https://img2.baidu.com/it/u=68398439,1553004927&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=357" class="image">
+ <el-image style="width: 420px;height: 187px;" :preview-src-list="['https://img2.baidu.com/it/u=68398439,1553004927&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=357']" fit="cover" src="https://img2.baidu.com/it/u=68398439,1553004927&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=357" class="image"/>
<div style="padding: 14px;">
<span>{{ item.companyName }}</span>
<span class="time" style="margin-left: 10px;">{{ item.deptName }}</span>
diff --git a/src/views/system/data-manage/index.vue b/src/views/system/data-manage/index.vue
index 727e39f..103baba 100644
--- a/src/views/system/data-manage/index.vue
+++ b/src/views/system/data-manage/index.vue
@@ -162,8 +162,7 @@
<style scoped>
.container {
- margin-left: 100px;
- margin-right: 100px;
- margin-top: 10px;
+ width: 90%;
+ margin: 10px auto;
}
</style>
diff --git a/src/views/system/default-auditing/index.vue b/src/views/system/default-auditing/index.vue
index 1b035f0..af857d8 100644
--- a/src/views/system/default-auditing/index.vue
+++ b/src/views/system/default-auditing/index.vue
@@ -1,8 +1,8 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
- <el-form-item label="杩濈害杩愮淮鍗曚綅" prop="belongUnit">
- <el-select v-model="queryParams.unitId" @change="handleQuery" clearable placeholder="杩濈害鍗曚綅">
+ <el-form-item label="杩愮淮鑰冩牳鍗曚綅" prop="belongUnit">
+ <el-select v-model="queryParams.unitId" @change="handleQuery" clearable placeholder="杩愮淮鑰冩牳鍗曚綅">
<el-option
v-for="item in unitList"
:key="item.id"
@@ -85,14 +85,14 @@
<el-table v-loading="loading" :data="auditingList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
- <el-table-column label="杩濈害鍗曚綅" align="center" prop="unitName" width="180"/>
+ <el-table-column label="杩愮淮鑰冩牳鍗曚綅" align="center" prop="unitName" width="180"/>
<el-table-column label="鑰冩牳鍚�" align="center" prop="checkPublishId" width="180">
<template slot-scope="scope">
<div v-if="scope.row.checkPublishId === 5">瑙嗛鑰冩牳</div>
</template>
</el-table-column>
- <el-table-column label="杩濈害瑙勫垯" align="center" prop="defaultRuleName" width="180" />
- <el-table-column label="杩濈害鎵e垎" align="center" prop="score" width="120" />
+ <el-table-column label="杩愮淮鑰冩牳瑙勫垯" align="center" prop="defaultRuleName" width="180" />
+ <el-table-column label="杩愮淮鑰冩牳鎵e垎" align="center" prop="score" width="120" />
<el-table-column label="鍒涘缓浜�" align="center" prop="createBy" />
<el-table-column label="瀹℃牳浜�" align="center" prop="auditingUserName" />
<el-table-column label="瀹℃牳鐘舵��" align="center" prop="auditingStatus" />
@@ -134,16 +134,16 @@
/>
<!-- 瀹℃牳 -->
- <el-dialog title="杩濈害瀹℃牳" :visible.sync="auditingOpen" width="500px" append-to-body>
- <el-form ref="auditingForm" :model="auditingForm" :rules="auditingRules" label-width="80px">
- <el-form-item label="杩濈害鍗曚綅">
+ <el-dialog title="杩愮淮鑰冩牳瀹℃牳" :visible.sync="auditingOpen" width="500px" append-to-body>
+ <el-form ref="auditingForm" :model="auditingForm" :rules="auditingRules" label-width="120px">
+ <el-form-item label="杩愮淮鑰冩牳鍗曚綅">
<el-input v-model="auditingForm.unitName" disabled/>
</el-form-item>
- <el-form-item label="杩濈害瑙勫垯">
+ <el-form-item label="杩愮淮鑰冩牳瑙勫垯">
<el-input v-model="auditingForm.defaultRuleName" disabled/>
</el-form-item>
- <el-form-item label="杩濈害鎵e垎">
+ <el-form-item label="杩愮淮鑰冩牳鎵e垎">
<el-input v-model="auditingForm.score" disabled/>
</el-form-item>
<el-form-item label="瀹℃牳缁撴灉" prop="auditingStatus">
@@ -161,10 +161,10 @@
</el-dialog>
<!-- 鏂板鎴栦慨鏀� -->
- <el-dialog title="杩濈害瀹℃牳" :visible.sync="open" width="700px"append-to-body>
- <el-form ref="auditingForm" :model="auditingForm" :rules="auditingRules" label-width="80px">
- <el-form-item label="杩濈害鍗曚綅" prop="unitName">
- <el-select v-model="form.unitNameList" placeholder="杩濈害鍗曚綅">
+ <el-dialog title="杩愮淮绉垎瀹℃牳" :visible.sync="open" width="700px"append-to-body>
+ <el-form ref="auditingForm" :model="auditingForm" :rules="auditingRules" label-width="120px">
+ <el-form-item label="杩愮淮鑰冩牳鍗曚綅" prop="unitName">
+ <el-select v-model="form.unitNameList" placeholder="杩愮淮鑰冩牳鍗曚綅">
<el-option
v-for="item in unitNameList"
:key="item.id"
@@ -183,7 +183,7 @@
</el-option>
</el-select>
</el-form-item>
- <el-form-item label="杩濈害瑙勫垯" prop="tempRuleFormList">
+ <el-form-item label="杩愮淮鑰冩牳瑙勫垯" prop="tempRuleFormList">
<div class="row-warp">
<div class="row" v-for="(form) in tempRuleFormList">
<div class="row-left">
@@ -198,7 +198,7 @@
</div>
</div>
<div class="row-right">
- <div>鏁伴噺</div>
+ <div>鎸囨爣</div>
<div class="margin-5">
<el-input type="number" v-model="form.weight"/>
</div>
@@ -212,7 +212,7 @@
</div>
</div>
</el-form-item>
- <el-form-item label="杩濈害鎵e垎" style="width: 20%">
+ <el-form-item label="杩愮淮鑰冩牳鎵e垎" style="width: 20%">
<el-input v-model="auditingForm.score"></el-input>
</el-form-item>
</el-form>
@@ -409,7 +409,7 @@
handleAdd() {
this.reset();
this.open = true;
- this.title = "娣诲姞杩濊璁板綍";
+ this.title = "娣诲姞杩愮淮鑰冩牳绉垎";
},
/** 淇敼鎸夐挳鎿嶄綔 */
handleUpdate(row) {
@@ -418,7 +418,7 @@
getAuditing(id).then(response => {
this.form = response.data;
this.open = true;
- this.title = "淇敼杩濊瀹℃牳";
+ this.title = "淇敼杩愮淮鑰冩牳瀹℃牳";
});
},
/** 鎻愪氦鎸夐挳 */
@@ -444,7 +444,7 @@
/** 鍒犻櫎鎸夐挳鎿嶄綔 */
handleDelete(row) {
const ids = row.id || this.ids;
- this.$modal.confirm('鏄惁纭鍒犻櫎杩濊瀹℃牳缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
+ this.$modal.confirm('鏄惁纭鍒犻櫎杩愮淮鑰冩牳瀹℃牳缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
return delAuditing(ids);
}).then(() => {
this.getList();
diff --git a/src/views/system/score/index.vue b/src/views/system/score/index.vue
index bc0ad7a..bb56f27 100644
--- a/src/views/system/score/index.vue
+++ b/src/views/system/score/index.vue
@@ -62,6 +62,13 @@
<el-table v-loading="loading" :data="scoreList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="鑰冩牳鍚�" align="center" prop="examineName" />
+ <el-table-column label="鑰冩牳绫诲瀷" align="center" prop="examineCategory">
+ <template slot-scope="scope">
+ <div v-if="scope.row.examineCategory == 1">鐪佸巺鑰冩牳</div>
+ <div v-else-if="scope.row.examineCategory == 2">甯傚眬鑰冩牳</div>
+ <div v-else-if="scope.row.examineCategory == 3">鍚堝悓鑰冩牳</div>
+ </template>
+ </el-table-column>
<el-table-column label="鑰冩牳瀵硅薄" align="center" prop="unitName">
<template slot-scope="scope">
<div v-if="scope.row.unitName ==='鎴愰兘x杩愮淮' ">鎴愰兘x杩愮淮</div>
@@ -69,14 +76,14 @@
</template>
</el-table-column>
<el-table-column label="鍒嗗��" align="center" prop="score" />
- <el-table-column label="鑰冩牳瑙勫垯" align="center" prop="scoreCategory">
- <template slot-scope="scope">
- <div v-if="scope.row.scoreCategory === 1">瑙嗛鍦ㄧ嚎鐜�</div>
- <div v-else-if="scope.row.scoreCategory === 2">瀛樺偍鏁呴殰</div>
- <div v-else-if="scope.row.scoreCategory === 3">瑙嗗浘搴撳鎺ョǔ瀹氭��</div>
- <div v-else-if="scope.row.scoreCategory === 4">涓�鏈轰竴妗�24灏忔椂鏈慨澶�</div>
- <div v-else-if="scope.row.scoreCategory === 5">鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�</div>
- </template>
+ <el-table-column label="鑰冩牳瑙勫垯" align="center" prop="ruleCategory">
+ <template slot-scope="scope">
+ <div v-if="scope.row.ruleCategory == 1">瑙嗛鍦ㄧ嚎鐜�</div>
+ <div v-else-if="scope.row.ruleCategory == 2">瀛樺偍鏁呴殰</div>
+ <div v-else-if="scope.row.ruleCategory == 3">瑙嗗浘搴撳鎺ョǔ瀹氭��</div>
+ <div v-else-if="scope.row.ruleCategory == 4">涓�鏈轰竴妗�24灏忔椂鏈慨澶�</div>
+ <div v-else-if="scope.row.ruleCategory == 5">鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�</div>
+ </template>
</el-table-column>
<el-table-column label="鍒涘缓浜�" align="center" prop="createBy" />
<el-table-column label="鍒涘缓鏃堕棿" align="center" prop="createTime" />
@@ -132,10 +139,10 @@
</el-option>
</el-select>
</el-form-item>
- <el-form-item label="鑰冩牳瑙勫垯" prop="scoreCategory">
- <el-select v-model="form.scoreCategory" placeholder="璇烽�夋嫨">
+ <el-form-item label="鑰冩牳瑙勫垯" prop="ruleCategory">
+ <el-select v-model="form.ruleCategory" placeholder="璇烽�夋嫨">
<el-option
- v-for="item in scoreCategoryList"
+ v-for="item in ruleCategoryList"
:key="item.id"
:label="item.value"
:value="item.id">
@@ -199,14 +206,18 @@
}, ]
},
],
- scoreCategoryList: [
- { id: 2, value: '瀛樺偍鏁呴殰' },
+ ruleCategoryList: [
{ id: 1, value: '瑙嗛鍦ㄧ嚎鐜�' },
- { id: 3, value: '淇濋殰宸ヤ綔' },
+ { id: 2, value: '瀛樺偍鏁呴殰' },
+ { id: 3, value: '瑙嗗浘搴撳鎺ョǔ瀹氭��' },
{ id: 4, value: '涓�鏈轰竴妗�24灏忔椂鏈慨澶�' },
{ id: 5, value: '鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�' },
],
examineList: [],
+ unitList: [
+ {id:2,value: '鎴愰兘x杩愮淮'},
+ {id:3,value: '鑷祦浜曞尯'},
+ ],
// 閬僵灞�
loading: true,
// 閫変腑鏁扮粍
@@ -244,16 +255,16 @@
},
created() {
this.getList();
- this.selectUnit();
+ // this.selectUnit();
this.selectExamine();
},
methods: {
// 杩愮淮鍏徃涓嬫媺鏁版嵁
- selectUnit() {
- unitSelect().then(res => {
- this.unitList = res.data;
- })
- },
+ // selectUnit() {
+ // unitSelect().then(res => {
+ // this.unitList = res.data;
+ // })
+ // },
// 鑰冩牳涓嬫媺鏁版嵁
selectExamine() {
publishSelect().then(res => {
diff --git a/src/views/system/work-order/index.vue b/src/views/system/work-order/index.vue
index a0f0a1f..77c4441 100644
--- a/src/views/system/work-order/index.vue
+++ b/src/views/system/work-order/index.vue
@@ -30,17 +30,23 @@
</el-form>
<el-row>
- <el-col :span="8" v-for="item in workOrderList" :key="item" style="margin: 10px;width: 20%;">
+ <el-col :span="8" v-for="item in workOrderList" :key="item" style="width: 390px;margin-left: 40px;margin-top:20px;">
<el-card :body-style="{ padding: '0px' }">
- <img src="https://img2.baidu.com/it/u=68398439,1553004927&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=357" class="image">
- <div style="padding: 14px;">
- <span>{{ item.unitName }}</span>
- <span class="time">{{ item.ywPeopleName }}</span>
- <div class="bottom clearfix">
- <span style="font-size: 13px;">澶勭悊鏃堕棿</span>
- <time class="time">{{ item.ywHandleTime }}</time>
- </div>
- <div class="bottom clearfix">
+ <el-image :preview-src-list="['https://img2.baidu.com/it/u=68398439,1553004927&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=357']" fit="cover" src="https://img2.baidu.com/it/u=68398439,1553004927&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=357" class="image"/>
+ <div style="padding-right: 10px;padding-top: 10px;float: right;">
+ <el-row>
+ <el-col class="time" :span="24">杩愮淮浜哄憳锛歿{ item.ywPeopleName }}</el-col>
+ </el-row>
+ <el-row style="margin-top: 5px">
+ <el-col class="time" :span="24">杩愮淮鍗曚綅锛歿{ item.unitName }}</el-col>
+ </el-row>
+ <el-row style="margin-top: 5px">
+ <el-col :span="24" class="time">宸ュ崟缂栧彿锛歿{ item.workOrderNo }}</el-col>
+ </el-row>
+ <el-row style="margin-top: 5px">
+ <el-col :span="24" class="time">澶勭悊鏃堕棿锛歿{ item.ywHandleTime }}</el-col>
+ </el-row>
+ <el-row>
<el-button
size="mini"
type="text"
@@ -73,7 +79,7 @@
type="text"
@click="handleReport(item)"
>浜嬪悗鎶ュ</el-button>
- </div>
+ </el-row>
</div>
</el-card>
</el-col>
@@ -743,27 +749,11 @@
.time {
font-size: 13px;
color: #999;
- margin-left: 10px;
}
-
-.bottom {
- margin-top: 13px;
- line-height: 12px;
-}
-
.image {
- width: 100%;
- display: block;
-}
-
-.clearfix:before,
-.clearfix:after {
- display: table;
- content: "";
-}
-
-.clearfix:after {
- clear: both
+ width: 125px;
+ height: 125px;
+ padding: 10px;
}
</style>
--
Gitblit v1.8.0