From ba564c930b816bd5f926f0f41c7f9ed632d0b3d6 Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期二, 09 一月 2024 17:58:52 +0800 Subject: [PATCH] su --- src/views/picture/music/index.vue | 283 ++++++++++++++++++++++++++++++++++++++++---------------- 1 files changed, 201 insertions(+), 82 deletions(-) diff --git a/src/views/picture/music/index.vue b/src/views/picture/music/index.vue index ac58e26..5823fec 100644 --- a/src/views/picture/music/index.vue +++ b/src/views/picture/music/index.vue @@ -348,8 +348,9 @@ >{{ item }}</span > </div> + <!-- 鍙宠�� --> <el-form - :model="queryParams" + :model="youerList" ref="queryForm" size="small" :inline="true" @@ -358,64 +359,64 @@ > <el-form-item label="瀹炴祴姘斿鍊�:"> <el-input - v-model="yqdwb" + v-model="youerList.qdwb" style="width: 50px" @input="ysels" /> <el-input - v-model="yqdyq" + v-model="youerList.qdyq" style="width: 50px" @input="ysels1" /> <el-input - v-model="yqdlq" + v-model="youerList.qdlq" style="width: 50px" @input="ysels2" /> <el-input - v-model="yqdsq" + v-model="youerList.qdsq" style="width: 50px" @input="ysels3" /> <el-input - v-model="yqdsiq" + v-model="youerList.qdsiq" style="width: 50px" @input="ysels4" /> <el-input - v-model="yqdliuq" + v-model="youerList.qdliuq" style="width: 50px" @input="ysels5" /> </el-form-item> <el-form-item label="瀹炴祴楠ㄥ鍊�:"> <el-input - v-model="ygdwb" + v-model="youerList.gdwb" style="width: 50px" @input="ygsels" /> <el-input - v-model="ygdyq" + v-model="youerList.gdyq" style="width: 50px" @input="ygsels1" /> <el-input - v-model="ygdlq" + v-model="youerList.gdlq" style="width: 50px" @input="ygsels2" /> <el-input - v-model="ygdsq" + v-model="youerList.gdsq" style="width: 50px" @input="ygsels3" /> <el-input - v-model="ygdsiq" + v-model="youerList.gdsiq" style="width: 50px" @input="ygsels4" /> <el-input - v-model="ygdliuq" + v-model="youerList.gdliuq" style="width: 50px" @input="ygsels5" /> @@ -432,8 +433,9 @@ >{{ item }}</span > </div> + <!-- 宸﹁�� --> <el-form - :model="queryParams" + :model="zuoerList" ref="queryForm" size="small" :inline="true" @@ -442,64 +444,64 @@ > <el-form-item label="瀹炴祴姘斿鍊�:"> <el-input - v-model="zqdwb" + v-model="zuoerList.qdwb" style="width: 50px" @input="zsels" /> <el-input - v-model="zqdyq" + v-model="zuoerList.qdyq" style="width: 50px" @input="zsels1" /> <el-input - v-model="zqdlq" + v-model="zuoerList.qdlq" style="width: 50px" @input="zsels2" /> <el-input - v-model="zqdsq" + v-model="zuoerList.qdsq" style="width: 50px" @input="zsels3" /> <el-input - v-model="zqdsiq" + v-model="zuoerList.qdsiq" style="width: 50px" @input="zsels4" /> <el-input - v-model="zqdliuq" + v-model="zuoerList.qdliuq" style="width: 50px" @input="zsels5" /> </el-form-item> <el-form-item label="瀹炴祴楠ㄥ鍊�:"> <el-input - v-model="zgdwb" + v-model="zuoerList.gdwb" style="width: 50px" @input="zgsels" /> <el-input - v-model="zgdyq" + v-model="zuoerList.gdyq" style="width: 50px" @input="zgsels1" /> <el-input - v-model="zgdlq" + v-model="zuoerList.gdlq" style="width: 50px" @input="zgsels2" /> <el-input - v-model="zgdsq" + v-model="zuoerList.gdsq" style="width: 50px" @input="zgsels3" /> <el-input - v-model="zgdsiq" + v-model="zuoerList.gdsiq" style="width: 50px" @input="zgsels4" /> <el-input - v-model="zgdliuq" + v-model="zuoerList.gdliuq" style="width: 50px" @input="zgsels5" /> @@ -528,35 +530,71 @@ </div> <div class="ss"> <span class="ss_txt">璇骞冲潎</span> - <el-input v-model="input" style="width: 60px"></el-input> - <el-input v-model="input" style="width: 60px"></el-input> - <el-input v-model="input" style="width: 60px"></el-input> + <el-input v-model="youerList.yppj" style="width: 60px"></el-input> + <el-input v-model="zuoerList.yppj" style="width: 60px"></el-input> + <el-input + v-model="shuangerList.yppj" + style="width: 60px" + ></el-input> </div> <div class="ss"> <span class="ss_txt">500璇鐭</span> - <el-input v-model="input" style="width: 60px"></el-input> - <el-input v-model="input" style="width: 60px"></el-input> + <el-input + v-model="youerList.wbypjz" + style="width: 60px" + ></el-input> + <el-input + v-model="zuoerList.wbypjz" + style="width: 60px" + ></el-input> </div> <div class="ss"> <span class="ss_txt">1000璇鐭</span> - <el-input v-model="input" style="width: 60px"></el-input> - <el-input v-model="input" style="width: 60px"></el-input> + <el-input + v-model="youerList.yqypjz" + style="width: 60px" + ></el-input> + <el-input + v-model="zuoerList.yqypjz" + style="width: 60px" + ></el-input> </div> <div class="ss"> <span class="ss_txt">2000璇鐭</span> - <el-input v-model="input" style="width: 60px"></el-input> - <el-input v-model="input" style="width: 60px"></el-input> + <el-input + v-model="youerList.lqypjz" + style="width: 60px" + ></el-input> + <el-input + v-model="zuoerList.lqypjz" + style="width: 60px" + ></el-input> </div> <div class="ss"> <span class="ss_txt">楂橀姘斿骞冲潎</span> - <el-input v-model="input" style="width: 60px"></el-input> - <el-input v-model="input" style="width: 60px"></el-input> - <el-input v-model="input" style="width: 60px"></el-input> + <el-input + v-model="youerList.gpqdpj" + style="width: 60px" + ></el-input> + <el-input + v-model="zuoerList.gpqdpj" + style="width: 60px" + ></el-input> + <el-input + v-model="shuangerList.gpqdpj" + style="width: 60px" + ></el-input> </div> <div class="ss"> <span class="ss_txt">楂橀楠ㄥ骞冲潎</span> - <el-input v-model="input" style="width: 60px"></el-input> - <el-input v-model="input" style="width: 60px"></el-input> + <el-input + v-model="youerList.gpgdpj" + style="width: 60px" + ></el-input> + <el-input + v-model="zuoerList.gpgdpj" + style="width: 60px" + ></el-input> </div> </div> @@ -567,7 +605,7 @@ type="textarea" :rows="2" placeholder="璇疯緭鍏ュ唴瀹�" - v-model="textarea" + v-model="remark" > </el-input> </div> @@ -592,8 +630,8 @@ </el-date-picker> </div> <div style="margin-top: 20px"> - <el-button type="primary">鐢熸垚灏忕粨</el-button> - <el-button type="primary">淇濆瓨</el-button> + <!-- <el-button type="primary">鐢熸垚灏忕粨</el-button> --> + <el-button type="primary" @click="submit">鎻� 浜�</el-button> </div> </div> </div> @@ -606,19 +644,18 @@ <script> import { getList, - getPicture, - delPicture, - addPicture, updatePureToneTest, + saveTjPureToneTestDetil, + getTjPureToneTestDetilList, } from "@/api/picture/pureToneTest"; -import { - getCustomer, - getOrder, - getReportToday, - getTobeToday, - getPieChart, - getChart, -} from "@/api/home"; +// import { +// getCustomer, +// getOrder, +// getReportToday, +// getTobeToday, +// getPieChart, +// getChart, +// } from "@/api/home"; const echarts = require("echarts/lib/echarts"); require("echarts/lib/component/title"); require("echarts/lib/component/tooltip"); @@ -639,6 +676,52 @@ components: { Public }, data() { return { + remark:"", + pureTestId: "", + youerList: { + qdwb: null, + qdyq: null, + qdlq: null, + qdsq: null, + qdsiq: null, + qdliuq: null, + gdwb: null, + gdyq: null, + gdlq: null, + gdsq: null, + gdsiq: null, + gdliuq: null, + yppj: null, + wbypjz: null, + yqypjz: null, + lqypjz: null, + gpqdpj: null, + gpgdpj: null, + }, + zuoerList: { + qdwb: null, + qdyq: null, + qdlq: null, + qdsq: null, + qdsiq: null, + qdliuq: null, + gdwb: null, + gdyq: null, + gdlq: null, + gdsq: null, + gdsiq: null, + gdliuq: null, + yppj: null, + wbypjz: null, + yqypjz: null, + lqypjz: null, + gpqdpj: null, + gpgdpj: null, + }, + shuangerList: { + yppj: null, + gpqdpj: null, + }, res: [], teamYYNums: [], LineCharts: [], @@ -735,30 +818,6 @@ dataobj: {}, // 琛ㄥ崟鏍¢獙 rules: {}, - yqdwb: "", - yqdyq: "", - yqdlq: "", - yqdsq: "", - yqdsiq: "", - yqdliuq: "", - ygdwb: "", - ygdyq: "", - ygdlq: "", - ygdsq: "", - ygdsiq: "", - ygdliuq: "", - zqdwb: "", - zqdyq: "", - zqdlq: "", - zqdsq: "", - zqdsiq: "", - zqdliuq: "", - zgdwb: "", - zgdyq: "", - zgdlq: "", - zgdsq: "", - zgdsiq: "", - zgdliuq: "", }; }, created() { @@ -869,9 +928,53 @@ }, handleRowClick(selection) { this.row = selection.customer; + selection.list.forEach((item) => { + this.pureTestId = item.id; + }); this.row.tjType = Number(selection.customer.tjType); this.drawer = true; - // this.getech(); + let pureTestId = this.pureTestId; + getTjPureToneTestDetilList(pureTestId).then((res) => { + if (res.data != []) { + res.data.forEach((item) => { + if (item.rd == "鍙宠��") { + this.youerList = item; + this.youeryuanshi1[0] = this.youerList.qdwb; + this.youeryuanshi1[1] = this.youerList.qdyq; + this.youeryuanshi1[2] = this.youerList.qdlq; + this.youeryuanshi1[3] = this.youerList.qdsq; + this.youeryuanshi1[4] = this.youerList.qdsiq; + this.youeryuanshi1[5] = this.youerList.qdliuq; + this.youerjiaozheng1[0] = this.youerList.gdwb; + this.youerjiaozheng1[1] = this.youerList.gdyq; + this.youerjiaozheng1[2] = this.youerList.gdlq; + this.youerjiaozheng1[3] = this.youerList.gdsq; + this.youerjiaozheng1[4] = this.youerList.gdsiq; + this.youerjiaozheng1[5] = this.youerList.gdliuq; + } else if (item.rd == "宸﹁��") { + this.zuoerList = item; + this.zuoeryuanshi1[0] = this.zuoerList.qdwb; + this.zuoeryuanshi1[1] = this.zuoerList.qdyq; + this.zuoeryuanshi1[2] = this.zuoerList.qdlq; + this.zuoeryuanshi1[3] = this.zuoerList.qdsq; + this.zuoeryuanshi1[4] = this.zuoerList.qdsiq; + this.zuoeryuanshi1[5] = this.zuoerList.qdliuq; + this.zuoerjiaozheng1[0] = this.zuoerList.gdwb; + this.zuoerjiaozheng1[1] = this.zuoerList.gdyq; + this.zuoerjiaozheng1[2] = this.zuoerList.gdlq; + this.zuoerjiaozheng1[3] = this.zuoerList.gdsq; + this.zuoerjiaozheng1[4] = this.zuoerList.gdsiq; + this.zuoerjiaozheng1[5] = this.zuoerList.gdliuq; + } else { + this.shuangerList = item; + } + }); + this.getech(); + this.getech1(); + this.getech2(); + this.getech3(); + } + }); }, // 鍙宠�冲師濮嬪惉鍔� getech() { @@ -979,7 +1082,7 @@ ], }); let sizeFun = function () { - myChart.resize(); + myChart2.resize(); }; window.addEventListener("resize", sizeFun); @@ -1035,7 +1138,7 @@ ], }); let sizeFun = function () { - myChart.resize(); + myChart2.resize(); }; window.addEventListener("resize", sizeFun); @@ -1091,7 +1194,7 @@ ], }); let sizeFun = function () { - myChart.resize(); + myChart2.resize(); }; window.addEventListener("resize", sizeFun); @@ -1263,6 +1366,22 @@ this.$modal.msgSuccess("閫夋嫨淇敼椤圭洰"); } }, + submit() { + this.youerList.pureTestId = this.pureTestId; + this.youerList.rd = "鍙宠��"; + this.zuoerList.pureTestId = this.pureTestId; + this.zuoerList.rd = "宸﹁��"; + this.shuangerList.pureTestId = this.pureTestId; + this.shuangerList.rd = "鍙岃��"; + let data = [this.youerList, this.zuoerList, this.shuangerList]; + saveTjPureToneTestDetil(data).then((res) => { + console.log(res); + if (res.code == 200) { + this.$modal.msgSuccess("鎻愪氦鎴愬姛"); + this.drawer = false; + } + }); + }, //鍒犻櫎鎸夐挳 handleDelete() {}, -- Gitblit v1.8.0