From e4717b437f7b4ef27c9801508f252f811fc65b3e Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期三, 09 四月 2025 13:43:22 +0800
Subject: [PATCH] 111

---
 src/components/proposal/index.vue |   41 +++++++++++++++++++++++++----------------
 1 files changed, 25 insertions(+), 16 deletions(-)

diff --git a/src/components/proposal/index.vue b/src/components/proposal/index.vue
index 5dbfd55..4042982 100644
--- a/src/components/proposal/index.vue
+++ b/src/components/proposal/index.vue
@@ -59,10 +59,10 @@
       <div class="pag" v-if="tjproposal == '0'">
         <div class="pag1">
           <pagination
-            v-show="total > 0"
+            v-show="total1 > 0"
             :total="total1"
-            :page.sync="queryParams.pageNum"
-            :limit.sync="queryParams.pageSize"
+            :page.sync="queryParams1.pageNum"
+            :limit.sync="queryParams1.pageSize"
             @pagination="radiotjproposalChange"
           />
         </div>
@@ -120,6 +120,7 @@
 } from "@/api/hosp/project";
 import { listAdvicerules } from "@/api/hosp/advicerules";
 import { getInfo } from "@/api/login";
+import { get } from "sortablejs";
 export default {
   name: "Packagese",
   props: {
@@ -144,14 +145,16 @@
         sex: "",
         isZj: "",
         userId: "",
-        page: 1,
+        pageNum: 1,
         pageSize: 10,
-        jynr: "",
-        jybt: "",
       },
       queryParams1: {
         pageNum: 1,
         pageSize: 10,
+        jymc: "",
+        sex: "",
+        isZj: "",
+        userId: "",
       },
       list: [],
       fList: {},
@@ -181,6 +184,8 @@
       this.loading = true;
       this.openone = true;
       getTjHyBgList(this.queryParams).then((res) => {
+      console.log(res,6666);
+      
         this.dataList = res.data.records;
         this.loading = false;
       });
@@ -215,31 +220,35 @@
       console.log(this.list);
     },
     search() {
-      this.queryParams.jybt = this.searchAdv;
-      this.queryParams.page = 1;
+      this.queryParams1.jymc = this.searchAdv;
+      this.queryParams1.pageNum = 1;
       this.loading = true;
-      getKjTjAdviceKjbqBySex(this.queryParams).then((res) => {
-        this.dataList = res.data.records;
-        this.total = res.data.total;
+      listAdvicerules(this.queryParams1).then((res) => {
+        this.advicerulesList = res.rows;
+        this.total1 = res.total;
         this.loading = false;
       });
     },
     radiotjproposalChange() {
       if (this.tjproposal == "0") {
         this.searchAdv = "";
-        this.queryParams.isZj = this.fList.isZj;
-        this.queryParams.userId = null;
+        this.queryParams1.isZj = this.fList.isZj;
+        this.queryParams1.userId = null;
         this.getList();
       } else {
         this.loading = true;
         getInfo().then((res) => {
-          this.queryParams.userId = res.user.userId;
-          this.queryParams.isZj = null;
-          getCyTjAdviceKjbqBySex(this.queryParams).then((res) => {
+          this.queryParams1.userId = res.user.userId;
+          this.queryParams1.isZj = null;
+          getCyTjAdviceKjbqBySex(this.queryParams1).then((res) => {
             if (res.data) {
+              this.advicerulesList = res.data.records;
+              this.total1 = res.data.total;
               this.dataList = res.data.records;
               this.total = res.data.total;
             } else {
+              this.advicerulesList = [];
+              this.total1 = 0;
               this.dataList = [];
               this.total = 0;
               this.$modal.msgError(res.msg);

--
Gitblit v1.8.0