From 5da871a9345d1b80767623cdbe74a45e3ff5532b Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期四, 03 四月 2025 13:56:06 +0800
Subject: [PATCH] 1

---
 src/components/proposal/index.vue |   59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 54 insertions(+), 5 deletions(-)

diff --git a/src/components/proposal/index.vue b/src/components/proposal/index.vue
index bce9ba1..5dbfd55 100644
--- a/src/components/proposal/index.vue
+++ b/src/components/proposal/index.vue
@@ -38,6 +38,38 @@
       </el-form>
 
       <el-table
+        v-if="tjproposal == '0'"
+        :data="advicerulesList"
+        ref="elTable"
+        v-loading="loading"
+        @selection-change="handleSelectionChange"
+        border
+        height="500px"
+      >
+        <el-table-column type="selection" width="40" align="center" />
+        <el-table-column label="绉戝" width="70" align="center" prop="ks" />
+        <el-table-column
+          label="寤鸿鍚嶇О"
+          width="120"
+          align="center"
+          prop="jymc"
+        />
+        <el-table-column label="寤鸿鍐呭" align="left" prop="jynr" />
+      </el-table>
+      <div class="pag" v-if="tjproposal == '0'">
+        <div class="pag1">
+          <pagination
+            v-show="total > 0"
+            :total="total1"
+            :page.sync="queryParams.pageNum"
+            :limit.sync="queryParams.pageSize"
+            @pagination="radiotjproposalChange"
+          />
+        </div>
+      </div>
+
+      <el-table
+        v-if="tjproposal == '1'"
         :data="dataList"
         ref="elTable"
         v-loading="loading"
@@ -62,7 +94,7 @@
           prop="createTime"
         /> -->
       </el-table>
-      <div class="pag">
+      <div class="pag"  v-if="tjproposal == '1'">
         <div class="pag1">
           <pagination
             v-show="total > 0"
@@ -86,6 +118,7 @@
   getKjTjAdviceKjbqBySex,
   getCyTjAdviceKjbqBySex,
 } from "@/api/hosp/project";
+import { listAdvicerules } from "@/api/hosp/advicerules";
 import { getInfo } from "@/api/login";
 export default {
   name: "Packagese",
@@ -100,7 +133,9 @@
       // 寮瑰嚭灞傛爣棰�
       title: "",
       total: 0,
+      total1:0,
       dataList: [],
+      advicerulesList: [],
 
       // 閬僵灞�
       loading: false,
@@ -112,7 +147,11 @@
         page: 1,
         pageSize: 10,
         jynr: "",
-        jybt:""
+        jybt: "",
+      },
+      queryParams1: {
+        pageNum: 1,
+        pageSize: 10,
       },
       list: [],
       fList: {},
@@ -148,11 +187,21 @@
     },
     getList() {
       this.loading = true;
-      getKjTjAdviceKjbqBySex(this.queryParams).then((res) => {
+      /* getKjTjAdviceKjbqBySex(this.queryParams).then((res) => {
         this.dataList = res.data.records;
         this.total = res.data.total;
         this.loading = false;
-      });
+      }); */
+      listAdvicerules(this.queryParams1)
+        .then((response) => {
+          this.advicerulesList = response.rows;
+          this.total1 = response.total;
+          this.loading = false;
+        })
+        .catch((error) => {
+          console.error("绛涢�夊揩鎹峰缓璁け璐�:", error);
+          this.$message.error("绛涢�夊揩鎹峰缓璁け璐�");
+        });
     },
     handleQuery() {
       this.getAllList();
@@ -220,7 +269,7 @@
 .pag1 {
   width: 30%;
 }
-::v-deep .el-dialog__body{
+::v-deep .el-dialog__body {
   padding: 7px 20px;
 }
 </style>

--
Gitblit v1.8.0