From aa05304d221b1883d746e686f390d6f3fba598a7 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期五, 24 五月 2024 09:36:09 +0800
Subject: [PATCH] feat:动态数据中心

---
 src/views/system/score/index.vue |  146 +++++++++++++++++++++++++++++-------------------
 1 files changed, 88 insertions(+), 58 deletions(-)

diff --git a/src/views/system/score/index.vue b/src/views/system/score/index.vue
index ba5dc99..45602dc 100644
--- a/src/views/system/score/index.vue
+++ b/src/views/system/score/index.vue
@@ -1,14 +1,7 @@
 <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="unitId">-->
-<!--        <el-input-->
-<!--          v-model="queryParams.unitId"-->
-<!--          placeholder="璇疯緭鍏ュ崟浣嶅悕"-->
-<!--          clearable-->
-<!--          @keyup.enter.native="handleQuery"-->
-<!--        />-->
-<!--      </el-form-item>-->
+
       <el-form-item label="鑰冩牳鍚�" prop="examineId">
         <el-input
           v-model="queryParams.examineId"
@@ -17,14 +10,16 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-<!--      <el-form-item label="绉垎绫诲瀷" prop="scoreCategory">-->
-<!--        <el-input-->
-<!--          v-model="queryParams.scoreCategory"-->
-<!--          placeholder="璇疯緭鍏ョН鍒嗙被鍨�"-->
-<!--          clearable-->
-<!--          @keyup.enter.native="handleQuery"-->
-<!--        />-->
-<!--      </el-form-item>-->
+
+      <el-form-item label="鑰冩牳瀵硅薄" prop="unitName">
+        <el-cascader
+          v-model="value"
+          :options="options"
+          :props = "props"
+          :show-all-levels="false"
+          @change="handleChange"></el-cascader>
+      </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>
@@ -32,15 +27,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"
-        >鏂板</el-button>
-      </el-col>
       <el-col :span="1.5">
         <el-button
           type="success"
@@ -76,29 +62,33 @@
     <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" >
-        {{"鎴愰兘x杩愮淮"}}
+      <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="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 === 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" />
       <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-s-check"
-            @click="handleAuditing(scope.row)"
-            v-hasPermi="['score:publish:audit']"
-          >瀹℃牳</el-button>
           <el-button
             size="mini"
             type="text"
@@ -149,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">
@@ -169,25 +159,65 @@
 </template>
 
 <script>
-import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/score";
-import {unitSelect} from "../../../api/platform/unit";
-import {publishSelect} from "../../../api/platform/publish";
+import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/check-score";
+import {unitSelect} from "@/api/platform/unit";
+import {publishSelect} from "@/api/platform/check-publish";
 
 export default {
   name: "Score",
   dicts: ['platform_operate_category'],
   data() {
     return {
-      scoreCategoryList: [
-        { id: 2, value: '瀛樺偍鏁呴殰' },
+      options: [{
+        value: 'city',
+        label: '鍖哄幙',
+        children: [{
+          value: 'fushun',
+          label: '瀵岄『鍘�',
+        }, {
+          value: 'rong',
+          label: '鑽e幙',
+        },{
+          value: 'gaoxin',
+          label: '楂樻柊鍖�',
+        },{
+          value: 'ziliujing',
+          label: '鑷祦浜曞尯',
+        },{
+          value: 'gongjing',
+          label: '璐′簳鍖�',
+        },{
+          value: 'daan',
+          label: '澶у畨鍖�',
+        },{
+          value: 'yantan',
+          label: '娌挎哗鍖�',
+        },
+        ]
+      }, {
+        value: 'company',
+        label: '鍏徃',
+        children: [{
+          value: 'yunwei',
+          label: '鎴愰兘x杩愮淮',
+        }, {
+          value: 'yunwei2',
+          label: '鑷础x杩愮淮',
+        }, ]
+      },
+      ],
+      ruleCategoryList: [
         { id: 1, value: '瑙嗛鍦ㄧ嚎鐜�' },
-        { id: 3, value: '淇濋殰宸ヤ綔' },
+        { id: 2, value: '瀛樺偍鏁呴殰' },
+        { id: 3, value: '瑙嗗浘搴撳鎺ョǔ瀹氭��' },
         { id: 4, value: '涓�鏈轰竴妗�24灏忔椂鏈慨澶�' },
         { id: 5, value: '鏃堕挓涓嶅悓姝�24灏忔椂鏈慨澶�' },
       ],
-
-      unitList: [],
       examineList: [],
+      unitList: [
+        {id:2,value: '鎴愰兘x杩愮淮'},
+        {id:3,value: '鑷祦浜曞尯'},
+      ],
       // 閬僵灞�
       loading: true,
       // 閫変腑鏁扮粍
@@ -225,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 => {

--
Gitblit v1.8.0