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 | 48 +++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 41 insertions(+), 7 deletions(-) diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue index 0f18cf6..fcc98e2 100644 --- a/src/views/patient/propaganda/particty.vue +++ b/src/views/patient/propaganda/particty.vue @@ -14,10 +14,7 @@ title="瀹f暀瀵硅薄" description="鍦ㄦ湰閮ㄩ�夋嫨瀹f暀鐥呬汉" ></el-step> - <el-step - icon="el-icon-user" - title="妯$増纭" - ></el-step> + <el-step icon="el-icon-user" title="妯$増纭"></el-step> </el-steps> </div> </div> @@ -284,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> @@ -624,6 +621,7 @@ addhetask, gethetaskinfo, delhetaskinfo, + Editsingletask, } from "@/api/AiCentre/index"; import SFtable from "@/components/SFtable"; //琛ㄦ牸缁勪欢 @@ -772,12 +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 = { @@ -857,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) { -- Gitblit v1.9.3