From 4065fe24adb89c5ce91b1f59a1b303498e34d300 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 27 五月 2024 10:40:18 +0800 Subject: [PATCH] 测试完成 --- src/views/followvisit/tasklist/index.vue | 73 ++++++++++++++++++++++++++++-------- src/views/patient/propaganda/particty.vue | 3 - src/views/repositoryai/templateku/index.vue | 2 3 files changed, 59 insertions(+), 19 deletions(-) diff --git a/src/views/followvisit/tasklist/index.vue b/src/views/followvisit/tasklist/index.vue index b6d3ecc..1a7d677 100644 --- a/src/views/followvisit/tasklist/index.vue +++ b/src/views/followvisit/tasklist/index.vue @@ -105,7 +105,6 @@ size="medium" :disabled="single" @click="handleUpdate" - >淇敼</el-button > </el-col> @@ -149,7 +148,13 @@ @selection-change="handleSelectionChange" > <el-table-column type="selection" width="50" align="center" /> - <el-table-column label="搴忓彿" fixed align="center" key="taskid" prop="taskid" /> + <el-table-column + label="搴忓彿" + fixed + align="center" + key="taskid" + prop="taskid" + /> <el-table-column label="浠诲姟鍚嶇О" @@ -172,9 +177,8 @@ key="nickName" prop="nickName" > - <template slot-scope="scope"> - <span>{{ scope.row.wfs}}/{{ scope.row.yfs }}</span> + <span>{{ scope.row.wfs }}/{{ scope.row.yfs }}</span> </template> </el-table-column> <el-table-column @@ -214,21 +218,22 @@ > <template slot-scope="scope"> <el-button + v-if="scope.row.status != 1" size="medium" type="text" - @click="handleUpdate(scope.row)" - + @click="sponsor(scope.row)" ><span class="button-zx" ><i class="el-icon-s-promotion"></i>浠诲姟鍙戣捣</span ></el-button > - <el-button - size="medium" - type="text" - @click="handleUpdate(scope.row)" - - ><span class="button-zx" - ><i class="el-icon-s-promotion"></i>渚濈収鏂板</span + <el-button size="medium" type="text" @click="newAdd(scope.row)" + ><span class="button-xj" + ><i class="el-icon-circle-plus-outline"></i>渚濈収鏂板</span + ></el-button + > + <el-button size="medium" type="text" @click="stop(scope.row)" + ><span class="button-zt" + ><i class="el-icon-circle-plus-outline"></i>鏆傚仠浠诲姟</span ></el-button > </template> @@ -333,7 +338,13 @@ resetUserPwd, changeUserStatus, } from "@/api/system/user"; -import { getTasklist, getTaskInfo,TaskTemplateSendExecution } from "@/api/AiCentre/index"; +import { + getTasklist, + getTaskInfo, + Editsingletask, + delTaskInfo, + TaskTemplateSendExecution, +} from "@/api/AiCentre/index"; import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; @@ -701,8 +712,23 @@ }); }, // 鍒犻櫎浠诲姟 - deletefn(){}, - + deletefn() {}, + // 浠诲姟鍙戣捣 + sponsor(row) { + if (row.sendState != 1) { + TaskTemplateSendExecution().then((res) => {}); + } + }, + // 渚濈収鏂板 + newAdd(row) { + TaskTemplateSendExecution().then((res) => {}); + }, + // 鏆傚仠 + stop(row) { + if (row.sendState == 2 || row.sendState == 3) { + TaskTemplateSendExecution().then((res) => {}); + } + }, /** 鎻愪氦鎸夐挳 */ submitForm: function () { @@ -859,6 +885,18 @@ border-radius: 1px; color: #ffffff; } +.button-xj { + background: #815c94; + padding: 5px; + border-radius: 1px; + color: #ffffff; +} +.button-zt { + background: #f9c116; + padding: 5px; + border-radius: 1px; + color: #ffffff; +} ::v-deep.el-radio-group { span { @@ -866,6 +904,9 @@ } } +::v-deep.el-button + .el-button { + margin-left: 0; +} ::v-deep.el-checkbox-group { span { font-size: 24px; diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue index 54a2be1..8f48add 100644 --- a/src/views/patient/propaganda/particty.vue +++ b/src/views/patient/propaganda/particty.vue @@ -1135,7 +1135,6 @@ } else { this.$modal.msgError(res.code); } - console.log(res); }); } }, @@ -1267,7 +1266,7 @@ this.form.templateid = response.data; this.form.libtemplateid = this.libId; this.form.templatename = this.libName; - this.$modal.msgSuccess("閫夋嫨鎴愬姛"); + this.$modal.msgSuccess("閫夋嫨妯$増鎴愬姛"); }); }, }, diff --git a/src/views/repositoryai/templateku/index.vue b/src/views/repositoryai/templateku/index.vue index cb7abc0..1ba5098 100644 --- a/src/views/repositoryai/templateku/index.vue +++ b/src/views/repositoryai/templateku/index.vue @@ -555,7 +555,7 @@ console.log(this.userList[0].campus.split(",")); }); - listDept(this.queryParams).then((response) => { + listDept({ pageNum: 1, pageSize: 10 }).then((response) => { this.deptList = this.handleTree(response.data, "deptId"); }); }, -- Gitblit v1.9.3