From 88d423ce3a1f624bc3b84b4c71ec06d8024da15b Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期六, 07 九月 2024 16:09:25 +0800 Subject: [PATCH] 测试完成 --- src/api/AiCentre/index.js | 1 src/views/index.vue | 100 +--- /dev/null | 928 -------------------------------------------- src/api/system/user.js | 2 vue.config.js | 4 src/views/outsideChainwt.vue | 5 inside.zip | 0 src/views/knowledge/education/compilequer/index.vue | 2 src/api/AiCentre/Homeimage.js | 34 + src/views/patient/propaganda/QuestionnaireTask.vue | 141 +++--- 10 files changed, 134 insertions(+), 1,083 deletions(-) diff --git a/inside.zip b/inside.zip index 05da6da..bd08fea 100644 --- a/inside.zip +++ b/inside.zip Binary files differ diff --git a/src/api/AiCentre/Homeimage.js b/src/api/AiCentre/Homeimage.js index 20ab458..53286d8 100644 --- a/src/api/AiCentre/Homeimage.js +++ b/src/api/AiCentre/Homeimage.js @@ -1,25 +1,35 @@ import request from "@/utils/request"; -// 鍩虹鏁版嵁 -export function getTopstatistics(data) { +// 闂ㄨ瘖鍩虹鏁版嵁 +export function getoutpatientamount(data) { return request({ - url: "/smartor/extemplate/list", + url: "/smartor/patouthosp/selectPatMedOuthospCount", + method: "post", + data: data, + }); +} +// 鍦ㄩ櫌/鍑洪櫌鍩虹鏁版嵁 +export function getInhospital(data) { + return request({ + url: "/smartor/patinhosp/selectPatMedInhospListCount", + method: "post", + data: data, + }); +} +// 涓儴鏁版嵁鎹� +export function getBarchart(data) { + return request({ + url: "/smartor/serviceSubtask/getSfFzInfoEveryMonth", method: "post", data: data, }); } // 鎷垮彇涓儴鏁版嵁澶у浘 -export function getCentraldata(Id) { - return request({ - url: "/smartor/extemplate/remove/" + Id, - method: "get", - }); -} -// 鎷垮彇涓儴鏁版嵁澶у浘 export function getMissiondata(Id) { return request({ - url: "/smartor/extemplate/remove/" + Id, - method: "get", + url: "/smartor/serviceSubtask/getSfFzInfoEveryMonth", + ethod: "post", + data: data, }); } diff --git a/src/api/AiCentre/index.js b/src/api/AiCentre/index.js index 103432f..59fe59e 100644 --- a/src/api/AiCentre/index.js +++ b/src/api/AiCentre/index.js @@ -7,5 +7,6 @@ export * from './questionnaire' export * from './SingleTask' export * from './external' +export * from './Homeimage' diff --git a/src/api/system/user.js b/src/api/system/user.js index 2aeb7e1..6bb7965 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -94,7 +94,7 @@ newPassword } return request({ - url: '/system/user/profile/updatePwd/edit', + url: '/system/user/profile/updatePwd', method: 'post', params: data }) diff --git a/src/views/index copy.vue b/src/views/index copy.vue deleted file mode 100644 index 4809975..0000000 --- a/src/views/index copy.vue +++ /dev/null @@ -1,928 +0,0 @@ -<template> - <div id="home"> - <div class="home" style="margin-top: 40px; margin-left: 20px"> - <!-- 澶撮儴涓や釜 --> - <el-row :gutter="20"> - <el-col :span="11"> - <!-- 灏辫瘖缁熻鐩掑瓙 --> - <div class="grid-content bg-purple headerBox bgc1"> - <div class="title"> - 鎮h�呯粺璁�<span - style=" - font-size: 25px; - font-weight: 600; - text-shadow: 2px 4px 7px rgb(85 132 255 / 50%); - color: black; - " - >12322 (浜�)</span - > - <span>{{ endatd }} ~ {{ statd }}</span> - </div> - <el-row :gutter="20"> - <el-col :span="8"> - <div class="home-user-task-stats"> - <p>{{ 11231 }}</p> - <div class="text-color2"> - <p>闂ㄨ瘖鎬绘暟锛堜汉锛�</p> - </div> - </div> - </el-col> - <el-col :span="7"> - <div class="home-user-task-stats"> - <p>{{ 9207 }}</p> - <div class="text-color2"> - <p>浣忛櫌鎬绘暟锛堜汉锛�</p> - </div> - </div> - </el-col> - <el-col :span="7"> - <div class="home-user-task-stats"> - <p>{{ 1209 }}</p> - <div class="text-color2"> - <p>浣撴鎬绘暟锛堜汉锛�</p> - </div> - </div> - </el-col> - </el-row> - </div> - </el-col> - <el-col :span="9"> - <div class="grid-content bg-purple headerBox bgc2"> - <div class="title"> - 闂ㄨ瘖鏈嶅姟鎬绘暟 - <span - style=" - font-size: 25px; - text-shadow: 2px 4px 7px rgb(255 99 85 / 50%); - font-weight: 600; - color: red; - " - >12322 (浜�)</span - > - <span>{{ endatd }} ~ {{ statd }}</span> - </div> - <el-row :gutter="20"> - <el-col :span="12"> - <div class="home-user-task-stats"> - <p style="color: red">{{ 3453 }}</p> - </div> - <div class="text-color2"> - <p>浣忛櫌鏈嶅姟浜烘暟</p> - </div> - </el-col> - <el-col :span="12"> - <div class="home-user-task-stats"> - <p style="color: red">{{ 4213 }}</p> - <div class="text-color2"> - <p>浣撴鏈嶅姟浜烘暟</p> - </div> - </div> - </el-col> - </el-row> - </div> - </el-col> - </el-row> - <!-- 涓棿鍜屽彸杈� --> - <el-row :gutter="20"> - <el-col :span="20"> - <!-- echars鏁版嵁鍙鍖� --> - <div class="grid-content bg-purple" style="min-height: 365px"> - <div class="title"> - 灏辫瘖缁熻 - <span>{{ endatd }} ~ {{ statd }}</span> - <el-radio-group - v-model="radio1" - size="mini" - style="margin-left: 390px" - @change="changes" - > - <el-radio-button label="鍛�" @click="dyat = 7"></el-radio-button> - <el-radio-button - label="鏈�" - @click="dyat = 30" - ></el-radio-button> - <el-radio-button - label="骞�" - @click="dyat = 360" - ></el-radio-button> - </el-radio-group> - </div> - <!-- 涓棿echars --> - <div class="boxEchars"> - <div class="echars1" id="echars"></div> - <div class="echars2" id="echars2"></div> - </div> - </div> - </el-col> - <!-- 涓棿鍜屽彸杈� --> - <el-col :span="4" class="aside"> - <div class="grid-content bg-purple" style="margin-top: -180px"> - <div class="title"> - 娑堟伅鍒楄〃 - </div> - <div style="max-height: 690px; width: 100%; overflow: auto"> - <el-table style="width: 100%" :data="SkuTop"> - <template v-for="(item, index) in SkuTop"></template> - <el-table-column - prop="order" - width="30" - style="background: url(~@/assets/order/4.png)" - type="index" - ></el-table-column> - <el-table-column - prop="skuName" - width="88" - class-name="name" - ></el-table-column> - <el-table-column prop="count" class-name="count"> - <template slot-scope="scope"> - {{ scope.row.count }} - </template> - </el-table-column> - </el-table> - </div> - </div> - </el-col> - </el-row> - <!-- 搴曢儴涓�涓� --> - <el-row :gutter="20" style="margin-bottom: 20px"> - <el-col :span="13"> - <div class="grid-content bg-purple" style="min-height: 300px"> - <div class="title"> - 璇婂悗缁熻 - <span class="el-icon-s-unfold moreIcon"></span> - </div> - <div class="cooperate"> - <!-- 鍚堜綔鍖哄煙 --> - <div class="pieChart" id="pieCharts"></div> - <div class="Points"> - <p>{{ 122 }}</p> - <span>鍏朵腑闅忚骞查浜烘</span> - <p>{{ 122 }}</p> - <span>闂ㄨ瘖闅忚</span> - <p>{{ 122 }}</p> - <span>鍑洪櫌闅忚</span> - </div> - </div> - </div> - </el-col> - <el-col :span="10"> - <div class="grid-content bg-purple" style="min-height: 300px"> - <div class="title"> - 鍚勯」鏈嶅姟缁熻 - <span class="el-icon-s-unfold moreIcon2"></span> - </div> - <div class="empenty"> - <el-row> - <el-col :span="4" - ><div class="grid-contents bg-purple">璇婄枟棰勭害</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple-light">123娆�</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple">杞瘖鏈嶅姟</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple-light">231娆�</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple">淇℃伅鎺ㄩ��</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple-light">900娆�</div></el-col - > </el-row - ><el-row> - <el-col :span="4" - ><div class="grid-contents bg-purple">鏍囪瘑涓庡鑸�</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple-light">23娆�</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple"> - 鎮h�呬究鍒╀繚闅滄湇鍔� - </div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple-light">13娆�</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple">杩滅▼鍖荤枟</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple-light">31娆�</div></el-col - > </el-row - ><el-row> - <el-col :span="4" - ><div class="grid-contents bg-purple">鎮h�呭弽棣�</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple-light">150浜�</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple">鎮h�呯鐞�</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple-light">231浜�</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple">鍋ュ悍瀹f暀</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple-light">400</div></el-col - > - </el-row> - <el-row> - <el-col :span="4" - ><div class="grid-contents bg-purple">鍙嶉鍗犳瘮</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple-light">23%</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple">绠$悊鍗犳瘮</div></el-col - > - <el-col :span="4" - ><div class="grid-contents bg-purple-light">32%</div></el-col - > - </el-row> - </div> - </div> - </el-col> - </el-row> - </div> - </div> -</template> - -<script> -// import { -// getUserWork, -// getregionCollect, -// getregionOrderCount, - -// } from "@/api/home"; -import dayjs from "dayjs"; - -export default { - name: "home", - data() { - return { - NodeCount: "", - PrtnerCount: "", - NodeCount: "", - radio1: "鍛�", - ticketStatistics: {}, - order: "", - Count: "", - datatni: [], - series: [], - tableData: [], - nodeCollect: [], - SkuTop: [], - cylinderSeries: [], - cylinderXAxis: [], - dyat: 30, - }; - }, - - computed: { - // 鏃堕棿鍖哄煙 - td() { - return dayjs().format("YYYY-MM-DD HH:mm:ss"); - }, - atd() { - return dayjs().subtract(this.dyat, "day").format("YYYY-MM-DD HH:mm:ss"); - }, - statd() { - return dayjs().format("YYYY-MM-DD"); - }, - endatd() { - return dayjs().subtract(this.dyat, "day").format("YYYY-MM-DD"); - }, - }, - created() { - this.$nextTick(function () { - this.getregionAmountCollect(); - this.getUserWorks(); - this.getregionCollect(); - this.getregionOrderCount(); - this.getNodeCount(); - this.getPrtnerCount(); - this.getnodeCollect(); - this.getSkuTop(); - this.getOrderAmount(); - }); - }, - mounted() {}, - methods: { - // 鏀瑰彉鏃堕棿浜嬩欢 - changes() { - if (this.radio1 == "鍛�") { - this.dyat = 7; - } else if (this.radio1 == "鏈�") { - this.dyat = 30; - } else { - this.dyat = 360; - } - this.getregionAmountCollect(); - this.getUserWorks(); - this.getregionCollect(); - this.getregionOrderCount(); - this.getNodeCount(); - this.getPrtnerCount(); - this.getnodeCollect(); - this.getSkuTop(); - this.getOrderAmount(); - }, - // 鏌辩姸鍥� - async getOrderAmount() { - // const res = await getOrderAmount(this.endatd, this.statd); - // this.cylinderXAxis = res.data.xAxis; - // this.cylinderSeries = res.data.series; - this.cylinderXAxis = [ - "1鏈�", - "2鏈�", - "3鏈�", - "4鏈�", - "5鏈�", - "6鏈�", - "7鏈�", - "8鏈�", - ]; - this.cylinderSeries = [123, 123, 223, 212, 432, 123, 442, 234]; - this.myEcharts(); - }, - // 鑾峰彇鐐逛綅鎬绘暟 - async getNodeCount() { - // const res = await getNodeCount(); - // this.NodeCount = res.data; - }, - // 鑾峰彇鍚堜綔鍟嗘�绘暟 - async getPrtnerCount() { - // const res = await getPrtnerCount(); - // this.PrtnerCount = res.data; - }, - // 鍚堜綔鍟嗙偣浣嶆眹鎬荤粺璁¢ゼ鐘跺浘 - async getnodeCollect() { - // const res = await getnodeCollect(); - // this.nodeCollect = res.data; - this.nodeCollect = [ - { name: "闂ㄨ瘖闅忚", value: 1232 }, - { name: "鍑洪櫌闅忚", value: 342 }, - ]; - this.myPieChart(); - }, - // top鎺掕 - async getSkuTop() { - // const res = await getSkuTop(10, this.endatd, this.statd); - // this.SkuTop = res.data; - this.SkuTop = [ - { amount: 0, count: 123, skuId: "0", skuName: "蹇冭偤绉�" }, - { amount: 0, count: 122, skuId: "0", skuName: "鑲捐剰绉�" }, - { amount: 0, count: 112, skuId: "0", skuName: "娉屽翱绉�" }, - { amount: 0, count: 111, skuId: "0", skuName: "鐢风" }, - { amount: 0, count: 102, skuId: "0", skuName: "濡囦骇绉�" }, - { amount: 0, count: 98, skuId: "0", skuName: "澶栫" }, - { amount: 0, count: 89, skuId: "0", skuName: "鎬ヨ瘖" }, - { amount: 0, count: 88, skuId: "0", skuName: "鍣ㄦ绉�" }, - { amount: 0, count: 87, skuId: "0", skuName: "楠ㄧ" }, - { amount: 0, count: 67, skuId: "0", skuName: "鏀惧皠绉�" }, - { amount: 0, count: 89, skuId: "0", skuName: "鎬ヨ瘖" }, - { amount: 0, count: 88, skuId: "0", skuName: "鍣ㄦ绉�" }, - { amount: 0, count: 87, skuId: "0", skuName: "楠ㄧ" }, - { amount: 0, count: 67, skuId: "0", skuName: "鏀惧皠绉�" }, - - ]; - }, - // 鑾峰彇宸ュ崟鏁伴噺 - async getUserWorks() { - // const res = await getUserWork(this.atd, this.td); - // this.ticketStatistics = res.data[0]; - }, - // 鑾峰彇灏辫瘖鏁伴噺 - async getregionOrderCount() { - // const res = await getregionOrderCount({ - // start: this.atd, - // end: this.td, - // }); - // this.order = res.data; - }, - // 鑾峰彇鎬婚噺鏁伴噺 - async getregionCollect() { - // const res = await getregionCollect({ - // start: this.atd, - // end: this.td, - // }); - // this.Count = (res.data / 1000000).toFixed(2); - }, - - // 鏌辩姸鍥� - myEcharts() { - // 鍩轰簬鍑嗗濂界殑dom锛屽垵濮嬪寲echarts瀹炰緥 - var echarts = require("echarts"); - var myChart = echarts.init(document.getElementById("echars2")); - - // 鎸囧畾鍥捐〃鐨勯厤缃」鍜屾暟鎹� - var option = { - title: { - text: "璇婁腑缁熻", - }, - tooltip: { - trigger: "axis", - }, - legend: { - data: ["闄㈠唴鎺ㄩ��", "瀹f暀瀹屾垚"], - }, - toolbox: { - show: true, - feature: { - dataView: { show: true, readOnly: false }, - magicType: { show: true, type: ["line", "bar"] }, - restore: { show: true }, - saveAsImage: { show: true }, - }, - }, - calculable: true, - xAxis: [ - { - type: "category", - // prettier-ignore - data: ["涓�鏈�","浜屾湀","涓夋湀","鍥涙湀","浜旀湀","鍏湀","涓冩湀","鍏湀","涔濇湀","鍗佹湀"], - }, - ], - yAxis: [ - { - type: "value", - }, - ], - series: [ - { - name: "闄㈠唴鎺ㄩ��", - type: "bar", - data: [20, 49, 70, 32, 56, 76, 56, 122, 26, 20, 64, 33], - markPoint: { - data: [ - { type: "max", name: "Max" }, - { type: "min", name: "Min" }, - ], - }, - markLine: { - data: [{ type: "average", name: "Avg" }], - }, - }, - { - name: "瀹f暀瀹屾垚", - type: "bar", - data: [26, 59, 90, 64, 87, 70, 75, 182, 87, 82, 60, 23], - markPoint: { - data: [ - { name: "Max", value: 182, xAxis: 7, yAxis: 183 }, - { name: "Min", value: 2.3, xAxis: 11, yAxis: 3 }, - ], - }, - markLine: { - data: [{ type: "average", name: "Avg" }], - }, - }, - ], - }; - - // 浣跨敤鍒氭寚瀹氱殑閰嶇疆椤瑰拰鏁版嵁鏄剧ず鍥捐〃銆� - myChart.setOption(option); - }, - // 鑾峰彇绾跨姸鍥炬椂闂� - async getregionAmountCollect() { - // const res = await getregionAmountCollect(1, this.endatd, this.statd); - // this.xAxis = res.data.xAxis; - // this.series = res.data.series; - this.xAxis = ["1鏈�", "2鏈�", "3鏈�", "4鏈�", "5鏈�", "6鏈�", "7鏈�", "8鏈�"]; - this.series = [123, 123, 223, 212, 432, 123, 442, 234]; - this.myEcharts2(); - }, - // 绾挎�у浘 - myEcharts2() { - var echarts = require("echarts"); - var myChart2 = echarts.init(document.getElementById("echars")); - var option2 = { - title: { - text: "璇婂墠鏁版嵁", - }, - tooltip: { - trigger: "axis", - }, - dataset: { - source: [ - ["product", "2018", "2019", "2020", "2021", "2022", "2023"], - ["澶嶈瘖", 256, 182, 388, 270, 253, 385], - ["浣忛櫌", 351, 451, 355, 353, 373, 468], - ["鎵嬫湳", 440, 362, 569, 436, 445, 332], - ["杞瘖", 525, 237, 541, 518, 433, 249], - ], - }, - xAxis: { type: "category" }, - yAxis: { gridIndex: 0 }, - grid: { top: "55%" }, - series: [ - { - type: "line", - smooth: true, - seriesLayoutBy: "row", - emphasis: { focus: "series" }, - }, - { - type: "line", - smooth: true, - seriesLayoutBy: "row", - emphasis: { focus: "series" }, - }, - { - type: "line", - smooth: true, - seriesLayoutBy: "row", - emphasis: { focus: "series" }, - }, - { - type: "line", - smooth: true, - seriesLayoutBy: "row", - emphasis: { focus: "series" }, - }, - { - type: "pie", - id: "pie", - radius: "30%", - center: ["50%", "25%"], - emphasis: { - focus: "self", - }, - label: { - formatter: "{b}: {@2018} ({d}%)", - }, - encode: { - itemName: "product", - value: "2018", - tooltip: "2018", - }, - }, - ], - }; - myChart2.on("updateAxisPointer", function (event) { - const xAxisInfo = event.axesInfo[0]; - if (xAxisInfo) { - const dimension = xAxisInfo.value + 1; - myChart2.setOption({ - series: { - id: "pie", - label: { - formatter: "{b}: {@[" + dimension + "]} ({d}%)", - }, - encode: { - value: dimension, - tooltip: dimension, - }, - }, - }); - } - }); - myChart2.setOption(option2); - }, - // 楗肩姸鍥� - myPieChart() { - // 鍩轰簬鍑嗗濂界殑dom锛屽垵濮嬪寲echarts瀹炰緥 - var echarts = require("echarts"); - var mypPieCharts = echarts.init(document.getElementById("pieCharts")); - - // 鎸囧畾鍥捐〃鐨勯厤缃」鍜屾暟鎹� - var optionPie = { - // title: { - // left: "left", - // }, - - tooltip: { - trigger: "item", - formatter: "{b}<br/>鎬诲崰姣� : {d}% ", - }, - toolbox: { - show: true, - feature: { - mark: { show: true }, - }, - }, - legend: { - top: "5%", - left: "center", - }, - series: [ - { - name: "Access From", - type: "pie", - radius: ["40%", "70%"], - avoidLabelOverlap: false, - itemStyle: { - borderRadius: 10, - borderColor: "#fff", - borderWidth: 2, - }, - - emphasis: { - label: { - show: true, - fontSize: 40, - fontWeight: "bold", - }, - }, - labelLine: { - show: false, - }, - data: [ - { value: 580, name: "闂ㄨ瘖闅忚" }, - { value: 484, name: "鍑洪櫌闅忚" }, - ], - }, - ], - }; - - // 浣跨敤鍒氭寚瀹氱殑閰嶇疆椤瑰拰鏁版嵁鏄剧ず鍥捐〃銆� - mypPieCharts.setOption(optionPie); - }, - }, -}; -</script> - -<style lang="scss" scoped> -* { - padding: 0; - margin: 0; -} - -.boxEchars { - width: 100%; - height: 480px; - margin-top: 45px; - display: flex; - .echars1 { - flex: 1; - } - .echars2 { - flex: 1; - } -} -::v-deep .el-table { - td:first-child { - .cell { - display: inline-block; - text-align: center; - width: 22px; - height: 20px; - margin-left: 2px; - padding-left: 6px; - text-align: center; - white-space: nowrap; - font-size: 12px; - font-family: zihun143-zhengkuchaojihei, zihun143; - font-weight: 400; - line-height: 14px; - background: url(~@/assets/order/4.png) no-repeat; - color: #e9b499; - } - } - td:nth-child(2) { - .cell { - height: 20px; - font-size: 14px; - font-family: PingFangSC-Medium, PingFang SC; - font-weight: 500; - color: #333; - line-height: 20px; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } - } - td:last-child { - height: 20px; - font-size: 14px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #737589; - line-height: 20px; - text-align: right; - } -} -::v-deep .el-table { - tr:nth-child(1) { - td:nth-child(1) { - .cell { - background: url(~@/assets/order/1.png); - color: #8e5900; - } - } - } - tr:nth-child(2) { - td:nth-child(1) { - .cell { - background: url(~@/assets/order/2.png); - color: #494949; - } - } - } - tr:nth-child(3) { - td:nth-child(1) { - .cell { - background: url(~@/assets/order/3.png); - color: #cf6d3d; - } - } - } -} -.moreIcon { - font-size: 22px !important; - margin-left: 400px !important; - color: #5f84ff !important; - cursor: pointer; -} -.moreIcon2 { - font-size: 22px !important; - margin-left: 250px !important; - color: #5f84ff !important; - cursor: pointer; -} -.empenty { - width: 100%; - padding: 20px 0; - min-height: 280px; -} -.cooperate { - width: 100%; - height: 280px; - margin-top: 25px; - display: flex; - .pieChart { - flex: 3; - } - .Points { - width: 154px; - height: 230px; - text-align: center; - padding: 20px 0; - background: linear-gradient(135deg, transparent, #f8f8f9 0) 0 0, - linear-gradient(-135deg, transparent 12px, #f8f8f9 0) 100% 0, - linear-gradient(-45deg, transparent, #f8f8f9 0) 100% 100%, - linear-gradient(45deg, transparent 12px, #f8f8f9 0) 0 100%; - background-size: 50% 50%; - background-repeat: no-repeat; - p { - height: 33px; - margin-bottom: 10px; - font-size: 24px; - font-family: PingFangSC-Semibold, PingFang SC; - font-weight: 600; - color: #072074; - line-height: 33px; - } - span { - height: 17px; - margin-top: 6px; - font-size: 12px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #000412; - line-height: 17px; - } - } -} -.title { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-flex: 1; - -ms-flex: 1; - flex: 1; - font-size: 16px; - font-family: PingFangSC-Semibold, PingFang SC; - font-weight: 600; - color: #333; - padding-top: 17px; - padding-bottom: -4px; - - span { - margin-left: 10px; - font-size: 12px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #999; - } -} -.bgc2 { - background: #fbefe8 url(~@/assets/dashboard/bg33.png) no-repeat - calc(100% - 12px) 100% !important; - - .home-user-task-stats { - margin-top: 10px; - height: 50px; - font-size: 36px; - font-family: PingFangSC-Semibold, PingFang SC; - font-weight: 600; - line-height: 50px; - text-shadow: 2px 4px 7px rgb(255 99 85 / 50%); - } - .text-color2 { - height: 17px; - margin-top: 3px; - font-size: 12px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #ff5757; - line-height: 17px; - } -} -.bgc1 { - background: #e9f3ff !important; - background-image: url(~@/assets/dashboard/bg11.png), - url(~@/assets/dashboard/bg22.png) !important; - background-repeat: no-repeat, no-repeat !important; - background-position: 0 0, calc(100% - 12px) 100% !important; - .title { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-flex: 1; - -ms-flex: 1; - flex: 1; - font-size: 16px; - font-family: PingFangSC-Semibold, PingFang SC; - font-weight: 600; - color: #333; - span { - margin-left: 10px; - font-size: 12px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #999; - } - } - .home-user-task-stats { - margin-top: 10px; - height: 50px; - font-size: 36px; - font-family: PingFangSC-Semibold, PingFang SC; - font-weight: 600; - line-height: 50px; - text-shadow: 2px 4px 7px rgb(85 132 255 / 50%); - } - .text-color2 { - height: 17px; - margin-top: 3px; - font-size: 12px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #91a7dc; - line-height: 17px; - } -} -::v-deep.aside .el-table__header-wrapper { - overflow: hidden; - display: none; -} -.headerBox { - height: 150px; - padding: 25px; -} -.el-row { - margin-bottom: 20px; - &:last-child { - margin-bottom: 0; - } -} -.el-col { - border-radius: 4px; -} -.bg-purple-dark { - background: #99a9bf; -} -.bg-purple { - background: #fff; -} -.bg-purple-light { - background: #e5e9f2; - text-align: center; - align-items: center; - line-height: 36px; -} -.grid-content { - min-height: 36px; - border-radius: 20px; - padding: 0 10px; -} -.grid-contents { - min-height: 36px; - border-radius: 20px; - padding: 0 10px; - padding-right: 0; -} -.row-bg { - padding: 10px 0; - background-color: #f9fafc; -} -</style> diff --git a/src/views/index.vue b/src/views/index.vue index f03c396..439d775 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -167,7 +167,7 @@ <div class="empenty"> <el-row> <el-col :span="3" - ><div class="grid-contents bg-purples" >鍑洪櫌锛�</div></el-col + ><div class="grid-contents bg-purples">鍑洪櫌锛�</div></el-col > <el-col :span="7"> <div style="display: flex"> @@ -187,13 +187,13 @@ <div class="subtitle">澶嶈瘖閫氱煡</div> <div class="grid-contents bg-purple-light">0娆�</div> </div> - </el-col> </el-row - > + </el-col> + </el-row> <el-row> <el-col :span="3" - ><div class="grid-contents bg-purples" ></div></el-col - > - <el-col :span="7" > + ><div class="grid-contents bg-purples"></div + ></el-col> + <el-col :span="7"> <div style="display: flex"> <div class="subtitle">鍑洪櫌璇勪及</div> <div class="grid-contents bg-purple-light">0娆�</div> @@ -212,12 +212,11 @@ <div class="grid-contents bg-purple-light">0娆�</div> </div> </el-col> - </el-row - > + </el-row> <el-row> <el-col :span="3" - ><div class="grid-contents bg-purples" >闂ㄨ瘖锛�</div></el-col + ><div class="grid-contents bg-purples">闂ㄨ瘖锛�</div></el-col > <el-col :span="7"> <div style="display: flex"> @@ -237,12 +236,12 @@ <div class="subtitle">澶嶈瘖閫氱煡</div> <div class="grid-contents bg-purple-light">0娆�</div> </div> - </el-col> </el-row - > + </el-col> + </el-row> <el-row> <el-col :span="3" - ><div class="grid-contents bg-purples" ></div></el-col - > + ><div class="grid-contents bg-purples"></div + ></el-col> <el-col :span="7"> <div style="display: flex"> <div class="subtitle">婊℃剰搴﹁皟鏌�</div> @@ -255,12 +254,10 @@ <div class="grid-contents bg-purple-light">0娆�</div> </div> </el-col> - - </el-row - > + </el-row> <el-row> <el-col :span="3" - ><div class="grid-contents bg-purples" >鍦ㄩ櫌锛�</div></el-col + ><div class="grid-contents bg-purples">鍦ㄩ櫌锛�</div></el-col > <el-col :span="7"> <div style="display: flex"> @@ -280,8 +277,8 @@ <div class="subtitle">鍏朵粬閫氱煡</div> <div class="grid-contents bg-purple-light">0娆�</div> </div> - </el-col> </el-row - > + </el-col> + </el-row> </div> </div> </el-col> @@ -291,12 +288,12 @@ </template> <script> -// import { -// getUserWork, -// getregionCollect, -// getregionOrderCount, - -// } from "@/api/home"; +import { + getoutpatientamount, + getInhospital, + getBarchart, + getQtemplateobj, +} from "@/api/AiCentre/index"; import dayjs from "dayjs"; export default { @@ -342,13 +339,11 @@ }, }, created() { + // this.getoutpatientamount(); + // this.getInhospital(); + // this.getBarchart(); this.$nextTick(function () { this.getregionAmountCollect(); - this.getUserWorks(); - this.getregionCollect(); - this.getregionOrderCount(); - this.getNodeCount(); - this.getPrtnerCount(); this.getnodeCollect(); this.getSkuTop(); }); @@ -373,25 +368,13 @@ this.dyat = 360; } this.getregionAmountCollect(); - this.getUserWorks(); - this.getregionCollect(); - this.getregionOrderCount(); - this.getNodeCount(); - this.getPrtnerCount(); + // this.getoutpatientamount(); + // this.getInhospital(); + // this.getBarchart(); this.getnodeCollect(); this.getSkuTop(); }, - // 鑾峰彇鐐逛綅鎬绘暟 - async getNodeCount() { - // const res = await getNodeCount(); - // this.NodeCount = res.data; - }, - // 鑾峰彇鍚堜綔鍟嗘�绘暟 - async getPrtnerCount() { - // const res = await getPrtnerCount(); - // this.PrtnerCount = res.data; - }, // 鍚堜綔鍟嗙偣浣嶆眹鎬荤粺璁¢ゼ鐘跺浘 async getnodeCollect() { // const res = await getnodeCollect(); @@ -423,31 +406,22 @@ { amount: 0, count: 67, skuId: "0", skuName: "鏀惧皠绉�" }, ]; }, - // 鑾峰彇宸ュ崟鏁伴噺 - async getUserWorks() { - // const res = await getUserWork(this.atd, this.td); - // this.ticketStatistics = res.data[0]; + // 鑾峰彇闂ㄨ瘖鍩虹鏁版嵁 + getoutpatientamount() { + getoutpatientamount().then((res) => {}); }, // 鑾峰彇灏辫瘖鏁伴噺 - async getregionOrderCount() { - // const res = await getregionOrderCount({ - // start: this.atd, - // end: this.td, - // }); - // this.order = res.data; + getBarchart() { + getBarchart().then((res) => {}); }, // 鑾峰彇鎬婚噺鏁伴噺 - async getregionCollect() { - // const res = await getregionCollect({ - // start: this.atd, - // end: this.td, - // }); - // this.Count = (res.data / 1000000).toFixed(2); + getInhospital() { + getInhospital().then((res) => {}); }, // 鑾峰彇绾跨姸鍥炬椂闂� async getregionAmountCollect() { - // const res = await getregionAmountCollect(1, this.endatd, this.statd); + //getregionAmountCollect(1, this.endatd, this.statd); // this.xAxis = res.data.xAxis; // this.series = res.data.series; this.xAxis = ["1鏈�", "2鏈�", "3鏈�", "4鏈�", "5鏈�", "6鏈�", "7鏈�", "8鏈�"]; @@ -998,7 +972,7 @@ line-height: 36px; width: 6vw; } -.subtitle{ +.subtitle { text-align: center; align-items: center; } diff --git a/src/views/knowledge/education/compilequer/index.vue b/src/views/knowledge/education/compilequer/index.vue index ca6bc22..34798b9 100644 --- a/src/views/knowledge/education/compilequer/index.vue +++ b/src/views/knowledge/education/compilequer/index.vue @@ -415,7 +415,7 @@ headers: { Authorization: "Bearer " + getToken(), }, - uploadImgUrl: process.env.VUE_APP_BASE_API + "/common/upload", + uploadImgUrl: process.env.VUE_APP_BASE_API + "/common/uploadSort", uploadImgUrlword: process.env.VUE_APP_BASE_API + "/common/uploadShow", uploadUrlPath: "娌℃湁鏂囦欢涓婁紶", quillUpdateImg: false, diff --git a/src/views/outsideChainwt.vue b/src/views/outsideChainwt.vue index 483c35e..7256de2 100644 --- a/src/views/outsideChainwt.vue +++ b/src/views/outsideChainwt.vue @@ -79,6 +79,10 @@ </el-form-item> </el-form> </div> + <div class="CONTENT"> + <div class="preview-left"> + </div> + </div> <el-dialog :visible.sync="dialogVisible" width="50%" @@ -106,6 +110,7 @@ questionList: null, revisitAfter: null, dialogVisible:false, + Endornot: true, // 鍓嶇鍏挜 publicKey: "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKR0yHv0rbJWQE+Sc7/FwpW66qMd9qX2k6z+SDgkSdxWh/1GbBoAP7bDQQRF6vXmoKsD2ya42H6XRLSDXAoayuMCAwEAAQ== ", diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue index e7b0051..1c8b4ea 100644 --- a/src/views/patient/propaganda/QuestionnaireTask.vue +++ b/src/views/patient/propaganda/QuestionnaireTask.vue @@ -69,7 +69,7 @@ placeholder="璇疯緭鍏ヤ换鍔℃弿杩�" /> </el-form-item> - <el-form-item label="鏈嶅姟褰㈠紡" prop="taskDesc"> + <el-form-item label="鏈嶅姟褰㈠紡"> <el-checkbox-group v-model="checkList"> <el-checkbox v-for="(item, index) in checkboxlist" @@ -183,7 +183,7 @@ <div class="headline"> <div>浠诲姟浣跨敤妯℃澘</div> <div style="margin-left: 20px"> - <el-form :model="form"> + <el-form ref="forms"> <el-form-item label=""> <el-input style="width: 300px" @@ -199,7 +199,7 @@ ></el-button> <el-button - v-if="this.form.libtemplateid" + v-if="form.libtemplateid" type="success" icon="el-icon-search" @click="previewfnmb" @@ -502,18 +502,6 @@ <el-form-item label="闂嵎鍚嶇О"> <el-input v-model="topqueryParams.svyname"></el-input> </el-form-item> - - <!-- <el-form-item label="闂嵎绫诲瀷" prop="status"> - <el-select v-model="topqueryParams.topic" placeholder="璇烽�夋嫨"> - <el-option - v-for="item in taskoptions" - :key="item.value" - :label="item.label" - :value="item.value" - > - </el-option> - </el-select> - </el-form-item> --> <el-form-item label="閫傜敤褰㈠紡" prop="status"> <el-select v-model="topqueryParams.topica" placeholder="璇烽�夋嫨"> <el-option @@ -525,18 +513,6 @@ </el-option> </el-select> </el-form-item> - - <!-- <el-form-item label="閫傜敤绉戝" prop="status"> - <el-select v-model="topqueryParams.topicd" placeholder="璇烽�夋嫨"> - <el-option - v-for="item in topicoptions" - :key="item.value" - :label="item.label" - :value="item.value" - > - </el-option> - </el-select> - </el-form-item> --> <el-form-item> <el-button type="primary" @@ -796,19 +772,17 @@ { required: true, message: "浠诲姟鍚嶇О涓嶈兘涓虹┖", trigger: "blur" }, { min: 2, - max: 20, - message: "浠诲姟鍚嶇О闀垮害蹇呴』浠嬩簬 2 鍜� 20 涔嬮棿", + max: 30, + message: "浠诲姟鍚嶇О闀垮害蹇呴』浠嬩簬 2 鍜� 30 涔嬮棿", trigger: "blur", }, ], - taskDesc: [ { required: true, message: "浠诲姟鎻忚堪涓嶈兘涓虹┖", trigger: "blur" }, ], sendType: [ { required: true, message: "鍙戦�佽缃笉鑳戒负绌�", trigger: "blur" }, ], - daytime: [{ required: true, message: "姘戞棌涓嶈兘涓虹┖", trigger: "blur" }], }, quote: false, serviceType: null, @@ -975,55 +949,70 @@ }); }, nextstep() { - if (this.Editprogress <= 3) { - return this.Editprogress++; - } + this.$refs["form"].validate((valid) => { + if (valid) { + if (this.Editprogress <= 3) { + return this.Editprogress++; + } + } else { + this.$modal.msgError("琛ㄥ崟鍐呭鏈畬鍠勶紝璇锋鏌�"); + } + }); }, // 淇濆瓨 submitForm(formName) { - this.$refs["form"].validate((valid) => { - if (valid) { - if (this.checkList[0]) { - this.form.preachform = this.checkList.join(","); - } else { - this.$modal.msgError("璇烽�夋嫨鏈嶅姟绫诲瀷"); - return; - } - if (!this.form.patTaskRelevances[0]) { - this.$modal.msgError("璇烽�夋嫨鐥呬汉"); - return; - } - const filteredArray = this.variableList.filter( - (item) => - item.name !== "濮撳悕" && - item.name !== "鐢佃瘽" && - item.name !== "鍦板潃" - ); - this.form.textParam = this.convertFormat2ToFormat1(filteredArray); + if (this.time4 && this.form.sendType == 3) + this.form.showTimeMorn = this.time4; + this.form.sendTimeslot = [{ + begantime: this.time4, + endtime: "", + xh: 1, + }]; + if (this.checkList[0]) { + this.form.preachform = this.checkList.join(","); + } else { + this.$modal.msgError("璇烽�夋嫨鏈嶅姟绫诲瀷"); + return; + } + if (!this.form.patTaskRelevances[0]) { + this.$modal.msgError("璇烽�夋嫨鐥呬汉"); + return; + } + if (!this.form.templatename) { + this.$modal.msgError("鏈�夋嫨妯℃澘"); + return; + } + if ((this.form.sendType == 1 && this.time1) || this.form.sendType == 2) { + } else if (this.form.sendType == 3 && this.time4) { + } else { + return this.$modal.msgError("鏃堕棿淇℃伅缂哄け"); + } + + const filteredArray = this.variableList.filter( + (item) => + item.name !== "濮撳悕" && item.name !== "鐢佃瘽" && item.name !== "鍦板潃" + ); + this.form.textParam = this.convertFormat2ToFormat1(filteredArray); + if (this.form.taskid) { + this.form.isoperation = 2; + } else { + this.form.isoperation = 1; + } + if (!this.form.type) { + this.form.type = this.$route.query.type; + } + this.form.serviceType = this.serviceType; + Editsingletask(this.form).then((res) => { + if (res.code == 200) { if (this.form.taskid) { - this.form.isoperation = 2; + this.$modal.msgSuccess("鏂板鎴愬姛"); } else { - this.form.isoperation = 1; + this.$modal.msgSuccess("淇敼鎴愬姛"); } - if (!this.form.type) { - this.form.type = this.$route.query.type; - } - this.form.serviceType = this.serviceType; - Editsingletask(this.form).then((res) => { - if (res.code == 200) { - if (this.form.taskid) { - this.$modal.msgSuccess("鏂板鎴愬姛"); - } else { - this.$modal.msgSuccess("淇敼鎴愬姛"); - } - this.$router.push({ - path: "/followvisit/tasklist", - query: { tasktopic: this.form.serviceType }, - }); - } + this.$router.push({ + path: "/followvisit/tasklist", + query: { tasktopic: this.form.serviceType }, }); - }else{ - this.$modal.msgError("琛ㄥ崟鍐呭鏈畬鍠勶紝璇锋鏌�"); } }); }, @@ -1239,11 +1228,12 @@ : []; this.overallCase = this.form.patTaskRelevances.concat(); this.checkList = this.form.preachform.split(","); - console.log(this.form.showDate, "this.form"); - this.daytime = this.form.showDate.split(","); + console.log(this.form, "this.form"); + if (this.form.showDate)this.daytime = this.form.showDate.split(","); if (this.form.showTimeMorn) { if (this.form.sendType == 3) { this.time4 = this.form.showTimeMorn; + console.log(1122); } else { this.time1 = this.form.showTimeMorn.split(","); } @@ -1354,7 +1344,6 @@ if (this.time1) this.form.showTimeMorn = this.time1.join(","); if (this.time2) this.form.showTimeNoon = this.time2.join(","); if (this.time3) this.form.showTimeNight = this.time3.join(","); - console.log(combinedData, "combinedData"); }, // 鏌ョ湅妯℃澘 previewGo() { diff --git a/vue.config.js b/vue.config.js index 527692e..f4814b2 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,8 +35,8 @@ proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://192.168.1.10:8095`, - // target:`http://localhost:8095`, + // target: `http://192.168.1.10:8095`, + target:`http://localhost:8095`, // target: `http://192.168.101.135:8095`, changeOrigin: true, pathRewrite: { -- Gitblit v1.9.3