From cf9259c2ebee0e82c32864a1ee91d96c403b9099 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期日, 04 二月 2024 13:42:04 +0800
Subject: [PATCH] 指标完成
---
src/views/patient/propaganda/particty.vue | 104 +++++++++++++++++++++++++++++++++++++++------------
1 files changed, 79 insertions(+), 25 deletions(-)
diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index d313974..fcc98e2 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -14,6 +14,7 @@
title="瀹f暀瀵硅薄"
description="鍦ㄦ湰閮ㄩ�夋嫨瀹f暀鐥呬汉"
></el-step>
+ <el-step icon="el-icon-user" title="妯$増纭"></el-step>
</el-steps>
</div>
</div>
@@ -37,25 +38,39 @@
<el-form ref="form" :model="form" label-width="105px">
<el-form-item label="妯$増鍚嶇О锛�">
<el-input
+ :disabled="true"
style="width: 220px"
- v-model="form.bt"
+ v-model="form.preachname"
placeholder="璇峰湪涓嬫柟閫夋嫨"
/>
</el-form-item>
- <el-form-item label="鍙戦�佹椂闂达細" v-if="currenttype != 2">
+ <el-form-item label="鍙戦�佽缃細" v-if="currenttype != 2">
+ <el-radio-group v-model="radio">
+ <el-radio :label="1">鏃堕棿娈靛彂閫�</el-radio>
+ <el-radio :label="2">鏃堕棿鐐瑰彂閫�</el-radio>
+ <el-radio :label="3">鍗冲埢鍙戦��</el-radio>
+ </el-radio-group>
+ </el-form-item>
+ <el-form-item
+ label="鍙戦�佹椂闂寸偣锛�"
+ v-if="currenttype != 2 && radio == 2"
+ >
<el-date-picker
- v-model="form.name"
- type="date"
- placeholder="閫夋嫨鏃ユ湡"
+ v-model="form.sendTime"
+ type="datetime"
+ placeholder="閫夋嫨鏃ユ湡鏃堕棿"
+ default-time="13:00:00"
>
</el-date-picker>
</el-form-item>
- <el-form-item label="鍙戦�佹椂闂存锛�" v-if="currenttype != 2">
+ <el-form-item
+ label="鍙戦�佹椂闂存锛�"
+ v-if="currenttype != 2 && radio == 1"
+ >
<el-checkbox-group v-model="checkList">
<el-checkbox label="涓婂崍锛�8:30-11:30锛�"></el-checkbox>
<el-checkbox label="涓嬪崍锛�14:30-16:30锛�"></el-checkbox>
<el-checkbox label="澶滈棿锛�18:30-20:30锛�"></el-checkbox>
- <el-checkbox label="涓嶅畾鏃�"></el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item label="鏈嶅姟褰㈠紡">
@@ -67,18 +82,18 @@
></el-checkbox>
</el-checkbox-group>
</el-form-item>
- <el-form-item label="缁勭粐褰㈠紡">
+ <!-- <el-form-item label="缁勭粐褰㈠紡">
<el-radio-group v-model="form.radio">
<el-radio :label="3">鍗曚汉瀹f暀</el-radio>
<el-radio :label="6">澶氫汉闆嗕腑瀹f暀</el-radio>
</el-radio-group>
- </el-form-item>
- <el-form-item label="璇煶妯$増" prop="region">
+ </el-form-item> -->
+ <!-- <el-form-item label="璇煶妯$増" prop="region">
<el-select v-model="form.region" placeholder="璇烽�夋嫨妯$増">
<el-option label="涓�鍙锋ā鐗�" value="shanghai"></el-option>
<el-option label="浜屽彿妯$増" value="beijing"></el-option>
</el-select>
- </el-form-item>
+ </el-form-item> -->
</el-form>
</div>
</div>
@@ -252,6 +267,7 @@
:tableLabel="tableLabel"
:controlsc="false"
:multiplechoice="false"
+ :typeinfo="1"
/>
<pagination
v-show="total > 0"
@@ -265,7 +281,7 @@
</div>
</div>
</div>
- <el-button type="success" @click="submitForm('ruleForm')">{{
+ <el-button type="success" @click="nextstep('ruleForm')">{{
quote ? "绔嬪嵆鍒涘缓" : "浠诲姟璇︽儏璁剧疆"
}}</el-button>
<el-button @click="resetForm('ruleForm')">閲嶇疆</el-button>
@@ -416,7 +432,7 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-select
- v-model="tasktopic"
+ v-model="patientqueryParams.allhosp"
placeholder="璇烽�夋嫨鏂板绫诲瀷"
>
<el-option
@@ -434,7 +450,7 @@
plain
icon="el-icon-plus"
size="medium"
- :disabled="!tasktopic"
+ :disabled="!patientqueryParams.allhosp"
@click="handleAddpatient"
>鏂板</el-button
>
@@ -461,6 +477,7 @@
:currentList="sonuserList"
:tableLabel="tableLabelhz"
:controlxz="false"
+ :typeinfo="2"
/>
<pagination
v-show="total > 0"
@@ -568,7 +585,9 @@
@handleSelectionChange="handleSelectionChange"
:currentList="patientuserList"
:tableLabel="tableLabelhz"
+ :serialnumber="false"
:controlsc="false"
+ :typeinfo="3"
/>
</el-row>
<pagination
@@ -592,6 +611,7 @@
<script>
import { messagelistpatient } from "@/api/patient/homepage";
+import store from "@/store";
import {
getTaskpatient,
getlibrarylist,
@@ -601,6 +621,7 @@
addhetask,
gethetaskinfo,
delhetaskinfo,
+ Editsingletask,
} from "@/api/AiCentre/index";
import SFtable from "@/components/SFtable"; //琛ㄦ牸缁勪欢
@@ -615,10 +636,12 @@
loading: false, // 閬僵灞�
patientloading: false, // 閬僵灞�
dialogVisiblepatient: false, //娣诲姞鎮h�呭脊妗�
+ radio: 1,
checkboxlist: [],
tableLabel: [],
// 鎮h�呰〃鍗�
tableLabelhz: [
+ { label: "搴忓彿", width: "", prop: "patid" },
{ label: "鎮h�呭悕绉�", width: "", prop: "name" },
{ label: "鎬у埆", width: "", prop: "sex" },
{ label: "骞撮緞", width: "", prop: "age" },
@@ -747,13 +770,41 @@
created() {
this.id = this.$route.query.id;
+ this.form.type = this.$route.query.type;
this.Addsubtask();
this.Getsubtask();
this.Acquisitiontype();
-
},
methods: {
+ // {
+ // 濮撳悕: { "${name}": "榫欏偛澶�" },
+ // 鍦板潃: { "${dzz}": "榫欏" },
+ // 鐢佃瘽: { "${dhh}": "鍏釜鍏�" },
+ // }
+ // 瀵硅薄杞暟缁�
+ convertFormat1ToFormat2(data) {
+ let result = [];
+ for (let key in data) {
+ let innerKey = Object.keys(data[key])[0];
+ result.push({
+ name: key,
+ value: innerKey,
+ fill: data[key][innerKey],
+ });
+ }
+ return result;
+ },
+ // 鏁扮粍杞璞�
+ convertFormat2ToFormat1(data) {
+ let result = {};
+ data.forEach((item) => {
+ let innerObj = {};
+ innerObj[item.value] = item.fill;
+ result[item.name] = innerObj;
+ });
+ return result;
+ },
// 鑾峰彇褰撳墠绫诲瀷
Acquisitiontype() {
let queryParams = {
@@ -761,11 +812,8 @@
pageSize: 10,
isavailable: "",
};
- getTaskpatient({ allhosp: 1 }).then((res) => {
- console.log(res);
- });
this.currenttype = this.$route.query.type;
- console.log(this.currenttype);
+ console.log(this.currenttype, "1");
if (this.currenttype == 1) {
this.title = "瀹f暀鍐呭鍒楄〃";
this.tableLabel = this.tableLabelxj;
@@ -836,11 +884,18 @@
});
}
},
- // 涓嬩竴姝�
- submitForm(formName) {
+ nextstep() {
if (this.Editprogress <= 3) {
return this.Editprogress++;
}
+ },
+ // 涓嬩竴姝�
+ submitForm(formName) {
+ Editsingletask(this.form).then((response) => {
+ if (res.code == 200) {
+ this.$router.go(-1);
+ }
+ });
// 鎻愪氦
// this.$refs[formName].validate((valid, object) => {
// if (valid) {
@@ -853,8 +908,7 @@
},
// 瀛愪换鍔′簩绾у脊妗�
handleAddpatient(row) {
- console.log(row, "瀛愮粍浠舵暟鎹�");
- messagelistpatient(this.patientqueryParams).then((response) => {
+ getTaskpatient(this.patientqueryParams).then((response) => {
console.log(response);
this.patientuserList = response.rows;
this.patienttotal = response.total;
@@ -913,11 +967,11 @@
// 鏌ヨ瀛愪换鍔″垪琛�
Getsubtask() {
this.topqueryParams.pguid = 2;
- console.log(this.topqueryParams);
+ console.log(this.topqueryParams, "aa");
messagelistpatient(this.topqueryParams).then((res) => {
this.userList = res.rows;
this.total = res.total;
- console.log(this.userList);
+ console.log(this.userList, "ss");
});
},
// 鍙橀噺---------------
--
Gitblit v1.9.3