From ad70f145e8bea957b41043b4a1e37ce37cc5ed1e Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 16 一月 2024 18:39:24 +0800
Subject: [PATCH] 指标完成
---
src/views/patient/propaganda/particty.vue | 197 ++++++++++++++++++++++++++++++++++++++----------
1 files changed, 155 insertions(+), 42 deletions(-)
diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index 9d84531..d313974 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -35,6 +35,13 @@
</div>
<div class="jic-value">
<el-form ref="form" :model="form" label-width="105px">
+ <el-form-item label="妯$増鍚嶇О锛�">
+ <el-input
+ style="width: 220px"
+ v-model="form.bt"
+ placeholder="璇峰湪涓嬫柟閫夋嫨"
+ />
+ </el-form-item>
<el-form-item label="鍙戦�佹椂闂达細" v-if="currenttype != 2">
<el-date-picker
v-model="form.name"
@@ -242,7 +249,7 @@
@handleUpdate="handleUpdate"
@handleSelectionChange="handleSelectionChange"
:currentList="userList"
- :tableLabel="tableLabelxj"
+ :tableLabel="tableLabel"
:controlsc="false"
:multiplechoice="false"
/>
@@ -269,6 +276,54 @@
<el-alert title="鍦ㄦ湰闃舵閫夋嫨瀹f暀鐥呬汉" type="success" effect="dark">
</el-alert>
<div class="leftvlue-jbxx">
+ <div class="examine-jic">
+ <div class="headline">
+ <div>鍙橀噺鍖归厤閲忓弬</div>
+ </div>
+ <div class="examine-jic">
+ <div class="jic-value">
+ <el-row :gutter="20">
+ <el-table :data="variableList" style="width: 100%">
+ <el-table-column
+ prop="variablename"
+ align="center"
+ label="鍙橀噺鍚嶇О"
+ >
+ </el-table-column>
+ <el-table-column
+ prop="character"
+ align="center"
+ label="鍖归厤绗�"
+ >
+ </el-table-column>
+ <el-table-column label="鏇挎崲鍊�" align="center">
+ <template slot-scope="scope">
+ <el-input
+ v-model="scope.row.Replacementvalue"
+ placeholder="璇疯緭鍏ュ唴瀹�"
+ ></el-input>
+ </template>
+ </el-table-column>
+ <el-table-column label="鎿嶄綔" align="center">
+ <template slot-scope="scope">
+ <el-button
+ size="mini"
+ @click="variableEdit(scope.$index, scope.row)"
+ >缂栬緫</el-button
+ >
+ <el-button
+ size="mini"
+ type="danger"
+ @click="variableDelete(scope.$index, scope.row)"
+ >鍒犻櫎</el-button
+ >
+ </template>
+ </el-table-column>
+ </el-table>
+ </el-row>
+ </div>
+ </div>
+ </div>
<div class="examine-jic">
<div class="headline">
<div>鎮h�呭垪琛�</div>
@@ -536,10 +591,17 @@
</template>
<script>
-import { listsvr_prjtask, Addpatienttask } from "@/api/smartorpor/svr_prjtask";
-import { listpat_archive } from "@/api/smartorpor/pat_archive";
-import { listsvr_prjtaskline } from "@/api/smartorpor/svr_prjtaskline";
import { messagelistpatient } from "@/api/patient/homepage";
+import {
+ getTaskpatient,
+ getlibrarylist,
+ getFollowuplist,
+ getQtemplatelist,
+ edithetask,
+ addhetask,
+ gethetaskinfo,
+ delhetaskinfo,
+} from "@/api/AiCentre/index";
import SFtable from "@/components/SFtable"; //琛ㄦ牸缁勪欢
export default {
@@ -548,6 +610,7 @@
return {
title: "瀹f暀鍐呭鍒楄〃",
currenttype: 1, //1瀹f暀2闂ㄨ瘖3鍑洪櫌4澶嶈瘖5浣撴6闂嵎
+ id: "",
Editprogress: 1, //缂栬緫杩涘害
loading: false, // 閬僵灞�
patientloading: false, // 閬僵灞�
@@ -560,45 +623,52 @@
{ label: "鎬у埆", width: "", prop: "sex" },
{ label: "骞撮緞", width: "", prop: "age" },
{ label: "灏辫瘖绉戝", width: "", prop: "impTemplate" },
- { label: "鍏ラ櫌鏃ユ湡", width: "", prop: "create_time" },
- { label: "鍒涘缓浜�", width: "", prop: "update_by" },
+ { label: "鍏ラ櫌鏃ユ湡", width: "", prop: "uploadTime" },
+ { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" },
],
tableLabelxj: [
- { label: "瀹f暀鍚嶇О", width: "", prop: "name" },
- { label: "瀹f暀绫诲瀷", width: "", prop: "nametype" },
- { label: "瀹f暀妯$増", width: "", prop: "impTemplate" },
- { label: "鍒涘缓鏃ユ湡", width: "", prop: "create_time" },
- { label: "鍒涘缓浜�", width: "", prop: "update_by" },
+ { label: "瀹f暀鍚嶇О", width: "", prop: "preachname" },
+ { label: "瀹f暀鎻忚堪", width: "", prop: "note" },
+ { label: "瀹f暀褰㈠紡", width: "", prop: "playType" },
+ { label: "閫傜敤鏂瑰紡", width: "", prop: "suitway" },
+ { label: "鍒涘缓鏃ユ湡", width: "", prop: "uploadTime" },
+ { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" },
],
tableLabelmz: [
- { label: "闅忚鍚嶇О", width: "118", prop: "name" },
+ { label: "闅忚鍚嶇О", width: "118", prop: "templateName" },
{ label: "闅忚妯$増", width: "130", prop: "impTemplate" },
- { label: "鍒涘缓鏃ユ湡", width: "136", prop: "create_time" },
- { label: "鍒涘缓浜�", width: "130", prop: "update_by" },
+ { label: "鍒涘缓鏃ユ湡", width: "136", prop: "uploadTime" },
+ { label: "鍒涘缓浜猴紙缂猴級", width: "130", prop: "update_by" },
],
tableLabelcy: [
- { label: "闅忚鍚嶇О", width: "118", prop: "name" },
+ { label: "闅忚鍚嶇О", width: "118", prop: "templateName" },
{ label: "闅忚璁″垝", width: "130", prop: "impTemplate" },
- { label: "鍒涘缓鏃ユ湡", width: "136", prop: "create_time" },
- { label: "鍒涘缓浜�", width: "130", prop: "update_by" },
+ { label: "鍒涘缓鏃ユ湡", width: "136", prop: "uploadTime" },
+ { label: "鍒涘缓浜猴紙缂猴級", width: "130", prop: "update_by" },
],
tableLabelfz: [
- { label: "閫氱煡鍚嶇О", width: "118", prop: "name" },
+ { label: "閫氱煡鍚嶇О", width: "118", prop: "templateName" },
{ label: "閫氱煡妯$増", width: "130", prop: "impTemplate" },
- { label: "鍒涘缓鏃ユ湡", width: "136", prop: "create_time" },
- { label: "鍒涘缓浜�", width: "130", prop: "update_by" },
+ { label: "鍒涘缓鏃ユ湡", width: "136", prop: "uploadTime" },
+ { label: "鍒涘缓浜猴紙缂猴級", width: "130", prop: "update_by" },
],
tableLabeltj: [
{ label: "閫氱煡鍚嶇О", width: "118", prop: "name" },
{ label: "閫氱煡妯$増", width: "130", prop: "impTemplate" },
- { label: "鍒涘缓鏃ユ湡", width: "136", prop: "create_time" },
- { label: "鍒涘缓浜�", width: "130", prop: "update_by" },
+ { label: "鍒涘缓鏃ユ湡", width: "136", prop: "uploadTime" },
+ { label: "鍒涘缓浜猴紙缂猴級", width: "130", prop: "update_by" },
],
tableLabelwj: [
{ label: "闂嵎鍚嶇О", width: "118", prop: "name" },
{ label: "闂嵎妯$増", width: "130", prop: "impTemplate" },
- { label: "鍒涘缓鏃ユ湡", width: "136", prop: "create_time" },
- { label: "鍒涘缓浜�", width: "130", prop: "update_by" },
+ { label: "鍒涘缓鏃ユ湡", width: "136", prop: "uploadTime" },
+ { label: "鍒涘缓浜猴紙缂猴級", width: "130", prop: "update_by" },
+ ],
+ // 鍙橀噺
+ tableLabelvariable: [
+ { label: "鍙橀噺鍚嶇О", width: "", prop: "variablename" },
+ { label: "鍖归厤绗�", width: "", prop: "character" },
+ { label: "鏇挎崲鍊�", width: "", prop: "Replacementvalue" },
],
topqueryParams: {
pageNum: 1, //
@@ -628,6 +698,23 @@
userList: [], //妯$増鍒楄〃
patientuserList: [], //閫夋嫨鎮h�呭垪琛�
sonuserList: [], //閫変腑鎮h�呭垪琛�
+ variableList: [
+ {
+ variablename: "濮撳悕",
+ character: "${name}",
+ Replacementvalue: "榫欏偛澶�",
+ },
+ {
+ variablename: "鍦板潃",
+ character: "${dzz}",
+ Replacementvalue: "榫欏",
+ },
+ {
+ variablename: "鐢佃瘽",
+ character: "${dhh}",
+ Replacementvalue: "鍏釜鍏�",
+ },
+ ], //鍙橀噺鍒楄〃
tasktopic: null, //鏂板绫诲瀷
form: {
name: "",
@@ -639,20 +726,6 @@
resource: "",
desc: "",
},
- options: [
- {
- value: "閫夐」1",
- label: "榛勯噾绯�",
- },
- {
- value: "閫夐」2",
- label: "鍙岀毊濂�",
- },
- {
- value: "閫夐」5",
- label: "鍖椾含鐑ら腑",
- },
- ],
taskoptions: [
{
value: "1",
@@ -673,14 +746,24 @@
components: { SFtable },
created() {
+ this.id = this.$route.query.id;
this.Addsubtask();
this.Getsubtask();
this.Acquisitiontype();
+
},
methods: {
// 鑾峰彇褰撳墠绫诲瀷
Acquisitiontype() {
+ let queryParams = {
+ pageNum: 1,
+ pageSize: 10,
+ isavailable: "",
+ };
+ getTaskpatient({ allhosp: 1 }).then((res) => {
+ console.log(res);
+ });
this.currenttype = this.$route.query.type;
console.log(this.currenttype);
if (this.currenttype == 1) {
@@ -698,22 +781,42 @@
"鏅鸿兘灏忕▼搴�",
"閽夐拤",
];
+ getlibrarylist(queryParams).then((response) => {
+ this.userList = response.rows;
+ this.total = response.total;
+ });
} else if (this.currenttype == 2) {
this.title = "闅忚鍐呭鍒楄〃";
this.tableLabel = this.tableLabelmz;
this.checkboxlist = ["褰撻潰", "绾歌川", "鐢佃瘽", "鐭俊", "寰俊鍏紬鍙�"];
+ 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) {
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 = ["绾歌川", "鐢佃瘽", "鐭俊", "寰俊鍏紬鍙�"];
+ getFollowuplist(queryParams).then((response) => {
+ this.userList = response.rows;
+ this.total = response.total;
+ });
} else if (this.currenttype == 6) {
this.title = "闂嵎鍐呭鍒楄〃";
this.tableLabel = this.tableLabelwj;
@@ -727,6 +830,10 @@
"寰俊灏忕▼搴�",
"閽夐拤",
];
+ getQtemplatelist(queryParams).then((response) => {
+ this.userList = response.rows;
+ this.total = response.total;
+ });
}
},
// 涓嬩竴姝�
@@ -797,9 +904,9 @@
let objictpint = {};
objictpint.patientes = this.ids;
objictpint.pguid = 2;
- Addpatienttask(objictpint).then((res) => {
- console.log(res);
- });
+ // Addpatienttask(objictpint).then((res) => {
+ // console.log(res);
+ // });
this.dialogVisiblepatient = false;
},
@@ -813,7 +920,13 @@
console.log(this.userList);
});
},
- /** 鏌ヨ鎮h�呭垪琛� */
+ // 鍙橀噺---------------
+ variableEdit(index, row) {
+ console.log(index, row);
+ },
+ variableDelete(index, row) {
+ console.log(index, row);
+ },
},
};
</script>
--
Gitblit v1.9.3