From cd3f1d61e8530ecc50c72a7d223ce640732a2b84 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 18 四月 2024 11:15:40 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/propaganda/particty.vue |  140 ++++++++++++++++++++++++----------------------
 1 files changed, 72 insertions(+), 68 deletions(-)

diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index d659f2a..db07b76 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -36,11 +36,31 @@
             </div>
             <div class="jic-value">
               <el-form ref="form" :model="form" label-width="105px">
-                <el-form-item label="妯$増鍚嶇О锛�">
+                <el-row :gutter="20">
+                  <el-col :span="12"
+                    ><el-form-item label="浠诲姟鍚嶇О">
+                      <el-input
+                        style="width: 220px"
+                        v-model="form.taskName"
+                        placeholder="璇疯緭鍏ヤ换鍔″悕绉�"
+                      /> </el-form-item
+                  ></el-col>
+                  <el-col :span="12"
+                    ><el-form-item label="妯$増鍚嶇О">
+                      <el-input
+                        style="width: 220px"
+                        :disabled="true"
+                        v-model="form.templatename"
+                        placeholder="璇峰湪涓嬪垪閫夋嫨"
+                      /> </el-form-item
+                  ></el-col>
+                </el-row>
+
+                <el-form-item label="浠诲姟鎻忚堪">
                   <el-input
-                    style="width: 220px"
-                    v-model="form.templatename"
-                    placeholder="璇峰湪涓嬪垪閫夋嫨"
+                    type="textarea"
+                    v-model="form.taskDesc"
+                    placeholder="璇疯緭鍏ヤ换鍔℃弿杩�"
                   />
                 </el-form-item>
                 <el-form-item label="鍙戦�佽缃細" v-if="currenttype != 2">
@@ -145,12 +165,17 @@
                     v-show="showSearch"
                     label-width="98px"
                   >
-                    <el-form-item label="瀹f暀涓婚" v-if="currenttype == 1">
+                    <el-form-item
+                      label="瀹f暀涓婚"
+                      v-if="currenttype == 1 || currenttype == 8"
+                    >
                       <el-input v-model="topqueryParams.name"></el-input>
                     </el-form-item>
                     <el-form-item
                       label="闅忚鍚嶇О"
-                      v-if="currenttype == 2 || currenttype == 3"
+                      v-if="
+                        currenttype == 2 || currenttype == 3 || currenttype == 7
+                      "
                     >
                       <el-input
                         v-model="topqueryParams.name"
@@ -175,7 +200,7 @@
                     <el-form-item
                       label="瀹f暀绫诲瀷"
                       prop="status"
-                      v-if="currenttype == 1"
+                      v-if="currenttype == 1 || currenttype == 8"
                     >
                       <el-select
                         v-model="topqueryParams.topic"
@@ -211,7 +236,9 @@
                     <el-form-item
                       label="闅忚绫诲瀷"
                       prop="status"
-                      v-if="currenttype == 2 || currenttype == 3"
+                      v-if="
+                        currenttype == 2 || currenttype == 3 || currenttype == 7
+                      "
                     >
                       <el-select
                         v-model="topqueryParams.topic"
@@ -683,37 +710,37 @@
         { label: "瀹f暀褰㈠紡", width: "", prop: "playType" },
         { label: "閫傜敤鏂瑰紡", width: "", prop: "suitway" },
         { label: "淇敼鏃ユ湡", width: "", prop: "uploadTime" },
-        { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" },
+        { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "updateBy" },
       ],
       tableLabelmz: [
         { label: "闅忚鍚嶇О", width: "", prop: "templateName" },
         { label: "涓昏鍐呭", width: "", prop: "note" },
         { label: "淇敼鏃ユ湡", width: "", prop: "updateTime" },
-        { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" },
+        { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "updateBy" },
       ],
       tableLabelcy: [
         { label: "闅忚鍚嶇О", width: "", prop: "templateName" },
         { label: "闅忚璁″垝", width: "", prop: "impTemplate" },
         { label: "淇敼鏃ユ湡", width: "", prop: "uploadTime" },
-        { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" },
+        { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "updateBy" },
       ],
       tableLabelfz: [
         { label: "閫氱煡鍚嶇О", width: "", prop: "templateName" },
         { label: "閫氱煡妯$増", width: "", prop: "impTemplate" },
         { label: "淇敼鏃ユ湡", width: "", prop: "uploadTime" },
-        { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" },
+        { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "updateBy" },
       ],
       tableLabeltj: [
         { label: "閫氱煡鍚嶇О", width: "", prop: "name" },
         { label: "閫氱煡妯$増", width: "", prop: "impTemplate" },
         { label: "淇敼鏃ユ湡", width: "", prop: "uploadTime" },
-        { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" },
+        { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "updateBy" },
       ],
       tableLabelwj: [
         { label: "闂嵎鍚嶇О", width: "", prop: "name" },
         { label: "闂嵎妯$増", width: "", prop: "impTemplate" },
         { label: "淇敼鏃ユ湡", width: "", prop: "uploadTime" },
-        { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" },
+        { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "updateBy" },
       ],
       // 鍙橀噺
       tableLabelvariable: [
@@ -869,53 +896,36 @@
       };
       this.currenttype = this.$route.query.type;
       console.log(this.currenttype, "1");
-      if (this.currenttype == 1) {
+      if (this.currenttype == 1 || this.currenttype == 8) {
+        // 鍖绘妧瀹f暀锛屾櫘閫氬鏁�
         this.title = "瀹f暀鍐呭鍒楄〃";
         this.tableLabel = this.tableLabelxj;
         this.checkboxlist = [
-          "绾夸笅",
-          "瑙嗛",
-          "绾歌川",
-          "璇煶",
-          "鐭俊",
-          "寰俊鍏紬鍙�",
-          "寰俊灏忕▼搴�",
-          "鏀粯瀹�",
-          "浜岀淮鐮�",
-          "閽夐拤",
+          "绾夸笅锛堝彛澶村鏁欍�佺數瑙嗗鏁欍�佺焊璐級",
+          "绾夸笂锛堢煭淇�/閽夐拤鐨勬枃鏈�佸浘鏂囬摼鎺ワ級",
         ];
         getlibrarylist(queryParams).then((response) => {
           this.userList = response.rows;
           this.total = response.total;
         });
-      } else if (this.currenttype == 2) {
+      } else if (
+        this.currenttype == 2 ||
+        this.currenttype == 3 ||
+        this.currenttype == 7
+      ) {
+        // 鍑洪櫌銆侀棬璇娿�佷笓鐥呴殢璁�
         this.title = "闅忚鍐呭鍒楄〃";
         this.tableLabel = this.tableLabelmz;
-        this.checkboxlist = ["绾夸笅", "绾歌川", "璇煶", "鐭俊", "寰俊鍏紬鍙�"];
+        this.checkboxlist = ["绾夸笅", "AI璇煶澶栧懠", "浜哄伐鐢佃瘽"];
         getFollowuplist(queryParams).then((response) => {
           this.userList = response.rows;
           this.total = response.total;
         });
-      } else if (this.currenttype == 3) {
-        this.title = "闅忚璁″垝鍒楄〃";
-        this.tableLabel = this.tableLabelcy;
-        this.checkboxlist = ["绾夸笅", "绾歌川", "璇煶", "鐭俊", "寰俊鍏紬鍙�"];
-        getFollowuplist(queryParams).then((response) => {
-          this.userList = response.rows;
-          this.total = response.total;
-        });
-      } else if (this.currenttype == 4) {
+      } else if (this.currenttype == 4 || this.currenttype == 5) {
+        // 澶嶈瘖銆佷綋妫�閫氱煡
         this.title = "閫氱煡鍐呭鍒楄〃";
         this.tableLabel = this.tableLabelfz;
-        this.checkboxlist = ["璇煶", "鐭俊", "寰俊鍏紬鍙�"];
-        getFollowuplist(queryParams).then((response) => {
-          this.userList = response.rows;
-          this.total = response.total;
-        });
-      } else if (this.currenttype == 5) {
-        this.title = "閫氱煡鍐呭鍒楄〃";
-        this.tableLabel = this.tableLabeltj;
-        this.checkboxlist = ["绾歌川", "璇煶", "鐭俊", "寰俊鍏紬鍙�"];
+        this.checkboxlist = ["绾夸笅", "AI璇煶澶栧懠", "浜哄伐鐢佃瘽", "鐭俊"];
         getFollowuplist(queryParams).then((response) => {
           this.userList = response.rows;
           this.total = response.total;
@@ -924,14 +934,8 @@
         this.title = "闂嵎鍐呭鍒楄〃";
         this.tableLabel = this.tableLabelwj;
         this.checkboxlist = [
-          "绾夸笅",
-          "瑙嗛",
-          "绾歌川",
-          "璇煶",
-          "鐭俊",
-          "寰俊鍏紬鍙�",
-          "寰俊灏忕▼搴�",
-          "閽夐拤",
+          "绾夸笅锛堢焊璐級",
+          "绾夸笂锛堢煭淇�/閽夐拤鐨勬枃鏈�侀棶鍗烽摼鎺ワ級",
         ];
         getQtemplatelist(queryParams).then((response) => {
           this.userList = response.rows;
@@ -947,6 +951,7 @@
     // 淇濆瓨
     submitForm(formName) {
       this.form.serviceform = this.checkList.join(",");
+      this.form.type = this.currenttype;
       const filteredArray = this.variableList.filter(
         (item) =>
           item.name !== "濮撳悕" && item.name !== "鐢佃瘽" && item.name !== "鍦板潃"
@@ -969,27 +974,18 @@
           this.$router.go(-1);
         }
       });
-      // 鎻愪氦
-      // this.$refs[formName].validate((valid, object) => {
-      //   if (valid) {
-      //     alert("submit!");
-      //   } else {
-      //     console.log("error submit!!", object);
-      //     return false;
-      //   }
-      // });
     },
     // ----------------------琛ㄦ牸瀛愮粍浠朵簨浠�
     // 閫夋嫨妯$増
     selectfn(row, type) {
-      console.log(row);
-      console.log(type);
       // 妯$増鎯呭喌涓嬭幏鍙栨ā鐗堜俊鎭�
       if (type == 1) {
         if (
           this.currenttype == 2 ||
           this.currenttype == 4 ||
-          this.currenttype == 3
+          this.currenttype == 3 ||
+          currenttype == 5 ||
+          currenttype == 7
         ) {
           this.form.templatename = row.templateName;
           this.form.templateid = row.id;
@@ -1170,10 +1166,12 @@
       }
       this.form.sendTimeslot = combinedData;
       // 灞曠ず鏁版嵁涓存椂瀛樺偍鏃ユ湡銆佹棭銆佷腑銆佹櫄
+      console.log(11);
+      console.log(this.time2, "this.time2");
       this.form.sendlimitabegin = this.daytime.join(",");
-      this.form.sendlimitaend = this.time1.join(",");
-      this.form.sendlimitnbegin = this.time2.join(",");
-      this.form.sendlimitnend = this.time3.join(",");
+      if (this.time1) this.form.sendlimitaend = this.time1.join(",");
+      if (this.time2) this.form.sendlimitnbegin = this.time2.join(",");
+      if (this.time3) this.form.sendlimitnend = this.time3.join(",");
       console.log(combinedData, "combinedData");
     },
   },
@@ -1332,6 +1330,12 @@
     font-size: 24px;
   }
 }
+::v-deep.el-input.is-disabled .el-input__inner {
+  background-color: #f5f7fa;
+  border-color: #dfe4ed;
+  color: rgb(253, 66, 66);
+  cursor: not-allowed;
+}
 ::v-deep.el-checkbox-group {
   span {
     font-size: 24px;

--
Gitblit v1.9.3