| | |
| | | // æ¥è¯¢é¨é¨è¯¦ç» |
| | | export function getDept(deptId) { |
| | | return request({ |
| | | url: '/system/dept/' + deptId, |
| | | url: '/system/dept/getInfo' + deptId, |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | // æ¥è¯¢ç¨æ·è¯¦ç» |
| | | export function getUser(userId) { |
| | | return request({ |
| | | url: '/system/user/' + parseStrEmpty(userId), |
| | | url: '/system/user/getInfo/' + parseStrEmpty(userId), |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | topqueryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | type: 3, |
| | | userName: undefined, |
| | | tagid: undefined, |
| | | topic: undefined, |
| | |
| | | /** æ¥è¯¢ä»»å¡å表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | let type = this.$route.query.type; |
| | | this.tasktopic = this.$route.query.tasktopic |
| | | ? this.$route.query.tasktopic |
| | | : this.tasktopic; |
| | | this.topqueryParams.serviceType = Number(this.tasktopic); |
| | | this.topqueryParams.type = Number(this.type); |
| | | if (this.tasktopic == 1 || this.tasktopic == 7 || this.tasktopic == 6) { |
| | | this.topqueryParams.type = 2; |
| | | this.TaskOperation.taskType = 2; |
| | | } else if (this.tasktopic == 4 || this.tasktopic == 8) { |
| | | this.topqueryParams.type = 1; |
| | | this.topqueryParams.type = 3; |
| | | this.TaskOperation.taskType = 3; |
| | | } else if ( |
| | | this.tasktopic == 2 || |
| | | this.tasktopic == 3 || |
| | | this.tasktopic == 5 |
| | | ) { |
| | | this.topqueryParams.type = 3; |
| | | this.topqueryParams.type = 1; |
| | | this.TaskOperation.taskType = 1; |
| | | } |
| | | // this.topqueryParams.typename = this.findLabelByValue( |
| | |
| | | }, |
| | | /** æ°å¢æé®æä½ */ |
| | | handleAdd() { |
| | | if (this.topqueryParams.type == 3) { |
| | | if (this.topqueryParams.type == 1) { |
| | | this.$router.push({ |
| | | path: "/followvisit/particty", |
| | | query: { |
| | |
| | | serviceType: this.tasktopic, |
| | | }, |
| | | }); |
| | | } else if (this.topqueryParams.type == 1) { |
| | | } else if (this.topqueryParams.type == 3) { |
| | | this.$router.push({ |
| | | path: "/followvisit/Missioncreation", |
| | | query: { |
| | |
| | | }, |
| | | /** ä¿®æ¹æé®æä½ */ |
| | | handleUpdate(row) { |
| | | // this.$router.push({ |
| | | // path: "/followvisit/particty", |
| | | // query: { type: this.tasktopic, id: row.taskid }, |
| | | // }); |
| | | if ( |
| | | this.tasktopic == 2 || |
| | | this.tasktopic == 3 || |
| | | this.tasktopic == 4 || |
| | | this.tasktopic == 5 |
| | | ) { |
| | | if (this.topqueryParams.type == 1) { |
| | | this.$router.push({ |
| | | path: "/followvisit/particty", |
| | | query: { type: 1, id: row.taskid }, |
| | | query: { |
| | | id: row.taskid, |
| | | type: this.topqueryParams.type, |
| | | serviceType: this.tasktopic, |
| | | }, |
| | | }); |
| | | } else if (this.tasktopic == 6) { |
| | | } else if (this.topqueryParams.type == 2) { |
| | | this.$router.push({ |
| | | path: "/followvisit/QuestionnaireTask", |
| | | query: { type: 2, id: row.taskid }, |
| | | query: { |
| | | id: row.taskid, |
| | | type: this.topqueryParams.type, |
| | | serviceType: this.tasktopic, |
| | | }, |
| | | }); |
| | | } else if (this.tasktopic == 1) { |
| | | } else if (this.topqueryParams.type == 3) { |
| | | this.$router.push({ |
| | | path: "/followvisit/Missioncreation", |
| | | query: { type: 3, id: row.taskid }, |
| | | query: { |
| | | id: row.taskid, |
| | | type: this.topqueryParams.type, |
| | | serviceType: this.tasktopic, |
| | | }, |
| | | }); |
| | | } |
| | | }, |
| | |
| | | sponsor(row) { |
| | | console.log(row, "ä»»å¡ä¿¡æ¯"); |
| | | this.taskform = row; |
| | | console.log(12); |
| | | if (this.taskform.showDate && this.taskform.sendType != 2) { |
| | | this.taskform.showDate = this.taskform.showDate.split(","); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <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"> |
| | | æ£è
ç»è®¡<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"> |
| | | å¥åº·å®£æ |
| | | <span>{{ endatd }} ~ {{ statd }}</span> |
| | | </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"> |
| | | æ£è
便å©ä¿éæå¡ |
| | | </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">æ£è
åé¦</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">æ£è
管ç</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">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: ["é¢å
æ¨é", "宣æå®æ"], |
| | | }, |
| | | 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: "宣æå®æ", |
| | | 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> |
| | |
| | | <!-- ä¸é´echars --> |
| | | <div class="boxEchars"> |
| | | <div class="echars1" id="echars"></div> |
| | | <div class="echars2" id="echars2"></div> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | |
| | | </el-row> |
| | | <!-- åºé¨ä¸ä¸ª --> |
| | | <el-row :gutter="20" style="margin-bottom: 20px"> |
| | | <el-col :span="13"> |
| | | <el-col :span="15"> |
| | | <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"> |
| | | <el-col :span="9"> |
| | | <div class="grid-content bg-purple" style="min-height: 300px"> |
| | | <div class="title"> |
| | | å项æå¡ç»è®¡ |
| | |
| | | ><div class="grid-contents bg-purple">è¯çé¢çº¦</div></el-col |
| | | > |
| | | <el-col :span="4" |
| | | ><div class="grid-contents bg-purple-light">123次</div></el-col |
| | | ><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 |
| | | ><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 |
| | | ><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">150人</div></el-col |
| | | ><div class="grid-contents bg-purple-light"> |
| | | 150人 |
| | | </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 |
| | | ><div class="grid-contents bg-purple-light"> |
| | | 231人 |
| | | </div></el-col |
| | | > |
| | | <el-col :span="4" |
| | | ><div class="grid-contents bg-purple">å¥åº·å®£æ</div></el-col |
| | |
| | | // getUserWork, |
| | | // getregionCollect, |
| | | // getregionOrderCount, |
| | | // getregionAmountCollect, |
| | | // getNodeCount, |
| | | // getPrtnerCount, |
| | | // getnodeCollect, |
| | | // getSkuTop, |
| | | // getOrderAmount, |
| | | |
| | | // } from "@/api/home"; |
| | | import dayjs from "dayjs"; |
| | | |
| | |
| | | NodeCount: "", |
| | | PrtnerCount: "", |
| | | NodeCount: "", |
| | | myChart2: null, |
| | | mypPieCharts: null, |
| | | lastWidth: window.innerWidth, |
| | | lastHeight: window.innerHeight, |
| | | radio1: "å¨", |
| | | ticketStatistics: {}, |
| | | order: "", |
| | |
| | | cylinderSeries: [], |
| | | cylinderXAxis: [], |
| | | dyat: 30, |
| | | intervalId: null, |
| | | }; |
| | | }, |
| | | |
| | |
| | | this.getPrtnerCount(); |
| | | this.getnodeCollect(); |
| | | this.getSkuTop(); |
| | | this.getOrderAmount(); |
| | | }); |
| | | }, |
| | | mounted() {}, |
| | | mounted() { |
| | | this.setInterval(); |
| | | // window.addEventListener("resize", this.handleResize()); |
| | | }, |
| | | beforeDestroy() { |
| | | if (this.intervalId) { |
| | | clearInterval(this.intervalId); // æ¸
é¤å®æ¶å¨ |
| | | } |
| | | }, |
| | | methods: { |
| | | // æ¹åæ¶é´äºä»¶ |
| | | changes() { |
| | |
| | | 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(); |
| | |
| | | { amount: 0, count: 88, skuId: "0", skuName: "卿¢°ç§" }, |
| | | { amount: 0, count: 87, skuId: "0", skuName: "骨ç§" }, |
| | | { amount: 0, count: 67, skuId: "0", skuName: "æ¾å°ç§" }, |
| | | |
| | | ]; |
| | | }, |
| | | // è·å工忰é |
| | |
| | | // 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: ["é¢å
æ¨é", "宣æå®æ"], |
| | | }, |
| | | 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: "宣æå®æ", |
| | | 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); |
| | |
| | | myEcharts2() { |
| | | var echarts = require("echarts"); |
| | | var myChart2 = echarts.init(document.getElementById("echars")); |
| | | this.myChart2 = myChart2; |
| | | var option2 = { |
| | | title: { |
| | | text: "è¯åæ°æ®", |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | axisPointer: { |
| | | type: "cross", |
| | | crossStyle: { |
| | | color: "#999", |
| | | }, |
| | | 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], |
| | | }, |
| | | }, |
| | | toolbox: { |
| | | feature: { |
| | | dataView: { show: true, readOnly: false }, |
| | | magicType: { show: true, type: ["line", "bar"] }, |
| | | restore: { show: true }, |
| | | saveAsImage: { show: true }, |
| | | }, |
| | | }, |
| | | legend: { |
| | | data: [ |
| | | "åºé¢é访é", |
| | | "é¨è¯é访é", |
| | | "å¨é¢é访é", |
| | | "é¨è¯å¤è¯éç¥", |
| | | "åºé¢å¤è¯éç¥", |
| | | "å¨é¢è¯ä¼°é", |
| | | ], |
| | | }, |
| | | xAxis: { type: "category" }, |
| | | yAxis: { gridIndex: 0 }, |
| | | grid: { top: "55%" }, |
| | | xAxis: [ |
| | | { |
| | | type: "category", |
| | | data: [ |
| | | "䏿", |
| | | "äºæ", |
| | | "䏿", |
| | | "åæ", |
| | | "äºæ", |
| | | "å
æ", |
| | | "䏿", |
| | | "å
«æ", |
| | | "乿", |
| | | "åæ", |
| | | ], |
| | | axisPointer: { |
| | | type: "shadow", |
| | | }, |
| | | }, |
| | | ], |
| | | yAxis: [ |
| | | { |
| | | type: "value", |
| | | name: "Precipitation", |
| | | min: 0, |
| | | max: 250, |
| | | interval: 50, |
| | | axisLabel: { |
| | | formatter: "{value} ml", |
| | | }, |
| | | }, |
| | | { |
| | | type: "value", |
| | | name: "Temperature", |
| | | min: 0, |
| | | max: 250, |
| | | interval: 50, |
| | | axisLabel: { |
| | | formatter: "{value} 次", |
| | | }, |
| | | }, |
| | | ], |
| | | grid: { top: "35%" }, |
| | | series: [ |
| | | { |
| | | type: "line", |
| | | smooth: true, |
| | | seriesLayoutBy: "row", |
| | | emphasis: { focus: "series" }, |
| | | name: "åºé¢é访é", |
| | | type: "bar", |
| | | tooltip: { |
| | | valueFormatter: function (value) { |
| | | return value + " ml"; |
| | | }, |
| | | }, |
| | | data: [120, 150, 165, 90, 140, 200, 130, 85, 175, 95, 110, 160], |
| | | }, |
| | | { |
| | | type: "line", |
| | | smooth: true, |
| | | seriesLayoutBy: "row", |
| | | emphasis: { focus: "series" }, |
| | | name: "é¨è¯é访é", |
| | | type: "bar", |
| | | tooltip: { |
| | | valueFormatter: function (value) { |
| | | return value + " ml"; |
| | | }, |
| | | }, |
| | | data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180], |
| | | }, |
| | | { |
| | | name: "å¨é¢é访é", |
| | | type: "bar", |
| | | tooltip: { |
| | | valueFormatter: function (value) { |
| | | return value + " ml"; |
| | | }, |
| | | }, |
| | | data: [145, 92, 178, 134, 167, 85, 199, 112, 156, 88, 120, 145], |
| | | }, |
| | | |
| | | { |
| | | name: "åºé¢å¤è¯éç¥", |
| | | type: "line", |
| | | smooth: true, |
| | | seriesLayoutBy: "row", |
| | | emphasis: { focus: "series" }, |
| | | smooth: 0.3, |
| | | yAxisIndex: 1, |
| | | tooltip: { |
| | | valueFormatter: function (value) { |
| | | return value + " 次"; |
| | | }, |
| | | }, |
| | | data: [45, 123, 78, 156, 89, 34, 199, 112, 67, 145, 88, 175], |
| | | }, |
| | | { |
| | | name: "é¨è¯å¤è¯éç¥", |
| | | type: "line", |
| | | smooth: true, |
| | | seriesLayoutBy: "row", |
| | | emphasis: { focus: "series" }, |
| | | smooth: 0.3, |
| | | yAxisIndex: 1, |
| | | tooltip: { |
| | | valueFormatter: function (value) { |
| | | return value + " 次"; |
| | | }, |
| | | }, |
| | | data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180], |
| | | }, |
| | | { |
| | | type: "pie", |
| | | id: "pie", |
| | | radius: "30%", |
| | | center: ["50%", "25%"], |
| | | emphasis: { |
| | | focus: "self", |
| | | name: "å¨é¢è¯ä¼°é", |
| | | type: "line", |
| | | smooth: 0.3, |
| | | yAxisIndex: 1, |
| | | tooltip: { |
| | | valueFormatter: function (value) { |
| | | return value + " 次"; |
| | | }, |
| | | label: { |
| | | formatter: "{b}: {@2018} ({d}%)", |
| | | }, |
| | | encode: { |
| | | itemName: "product", |
| | | value: "2018", |
| | | tooltip: "2018", |
| | | }, |
| | | data: [120, 150, 165, 90, 140, 200, 130, 85, 175, 95, 110, 160], |
| | | }, |
| | | ], |
| | | }; |
| | |
| | | series: { |
| | | id: "pie", |
| | | label: { |
| | | formatter: "{b}: {@[" + dimension + "]} ({d}%)", |
| | | formatter: "{b}: {@[" + dimension + "]} ", |
| | | }, |
| | | encode: { |
| | | value: dimension, |
| | |
| | | // åºäºåå¤å¥½çdomï¼åå§åechartså®ä¾ |
| | | var echarts = require("echarts"); |
| | | var mypPieCharts = echarts.init(document.getElementById("pieCharts")); |
| | | |
| | | this.mypPieCharts = mypPieCharts; |
| | | // æå®å¾è¡¨çé
ç½®é¡¹åæ°æ® |
| | | var optionPie = { |
| | | // title: { |
| | | // left: "left", |
| | | // }, |
| | | |
| | | legend: {}, |
| | | tooltip: { |
| | | trigger: "item", |
| | | formatter: "{b}<br/>æ»å æ¯ : {d}% ", |
| | | trigger: "axis", |
| | | showContent: true, |
| | | }, |
| | | toolbox: { |
| | | show: true, |
| | | feature: { |
| | | mark: { show: true }, |
| | | dataset: { |
| | | source: [ |
| | | ["product", "2012", "2013", "2014", "2015", "2016", "2017"], |
| | | ["åºé¢å®£æ", 56.5, 82.1, 88.7, 70.1, 53.4, 85.1], |
| | | ["å¨é¢å®£æ", 51.1, 51.4, 55.1, 53.3, 73.8, 68.7], |
| | | ["é¨è¯å®£æ", 40.1, 62.2, 69.5, 36.4, 45.2, 32.5], |
| | | ], |
| | | }, |
| | | }, |
| | | legend: { |
| | | top: "5%", |
| | | left: "center", |
| | | }, |
| | | xAxis: { type: "category" }, |
| | | yAxis: { gridIndex: 0 }, |
| | | grid: { top: "25%", left: "10%", right: "40%", bottom: "10%" }, |
| | | series: [ |
| | | { |
| | | name: "Access From", |
| | | name: "åºé¢å®£æ", |
| | | type: "line", |
| | | smooth: true, |
| | | seriesLayoutBy: "row", |
| | | emphasis: { focus: "series" }, |
| | | }, |
| | | { |
| | | name: "å¨é¢å®£æ", |
| | | type: "line", |
| | | smooth: true, |
| | | seriesLayoutBy: "row", |
| | | emphasis: { focus: "series" }, |
| | | }, |
| | | { |
| | | name: "é¨è¯å®£æ", |
| | | type: "line", |
| | | smooth: true, |
| | | seriesLayoutBy: "row", |
| | | emphasis: { focus: "series" }, |
| | | }, |
| | | { |
| | | type: "pie", |
| | | id: "pie", |
| | | radius: ["40%", "70%"], |
| | | avoidLabelOverlap: false, |
| | | center: ["80%", "50%"], |
| | | emphasis: { |
| | | focus: "self", |
| | | }, |
| | | itemStyle: { |
| | | borderRadius: 10, |
| | | borderColor: "#fff", |
| | | borderWidth: 2, |
| | | }, |
| | | |
| | | emphasis: { |
| | | label: { |
| | | show: true, |
| | | fontSize: 40, |
| | | fontWeight: "bold", |
| | | formatter: "{b}: {@2012}", |
| | | }, |
| | | encode: { |
| | | itemName: "product", |
| | | value: "2012", |
| | | tooltip: "2012", |
| | | }, |
| | | labelLine: { |
| | | show: false, |
| | | }, |
| | | data: [ |
| | | { value: 580, name: "é¨è¯é访" }, |
| | | { value: 484, name: "åºé¢é访" }, |
| | | ], |
| | | }, |
| | | ], |
| | | }; |
| | | mypPieCharts.on("updateAxisPointer", function (event) { |
| | | const xAxisInfo = event.axesInfo[0]; |
| | | if (xAxisInfo) { |
| | | const dimension = xAxisInfo.value + 1; |
| | | mypPieCharts.setOption({ |
| | | series: { |
| | | id: "pie", |
| | | label: { |
| | | formatter: "{b}: {@[" + dimension + "]} ", |
| | | }, |
| | | encode: { |
| | | value: dimension, |
| | | tooltip: dimension, |
| | | }, |
| | | }, |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | // 使ç¨åæå®çé
ç½®é¡¹åæ°æ®æ¾ç¤ºå¾è¡¨ã |
| | | mypPieCharts.setOption(optionPie); |
| | | }, |
| | | // 页é¢ååè°æ´å¤§å° |
| | | handleResize() { |
| | | console.log(111); |
| | | // è°æ´ ECharts å¾è¡¨å¤§å° |
| | | if (this.myChart2) { |
| | | this.myChart2.resize(); |
| | | } |
| | | if (this.mypPieCharts) { |
| | | this.mypPieCharts.resize(); |
| | | } |
| | | }, |
| | | setInterval() { |
| | | this.intervalId = setInterval(() => { |
| | | if (window.innerWidth != this.lastWidth) { |
| | | this.lastWidth = window.innerWidth; |
| | | console.log("çªå£å¤§å°å¯è½è¢«æå¨è°æ´äº"); |
| | | this.handleResize(); |
| | | } |
| | | }, 1000); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | |
| | | .boxEchars { |
| | | width: 100%; |
| | | height: 480px; |
| | | height: 40vh; |
| | | margin-top: 45px; |
| | | display: flex; |
| | | .echars1 { |
| | | flex: 1; |
| | | } |
| | | .echars2 { |
| | | flex: 1; |
| | | } |
| | | } |
| | |
| | | margin-top: 25px; |
| | | display: flex; |
| | | .pieChart { |
| | | flex: 3; |
| | | flex: 1; |
| | | } |
| | | .Points { |
| | | width: 154px; |
| | |
| | | ]; |
| | | |
| | | export default { |
| | | name: "Educationinfo", |
| | | components: { OptionalForm }, |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | }; |
| | | }, |
| | | activated() { |
| | | if (this.id != this.$route.query.id) { |
| | | this.gettabList(); |
| | | this.getList(); |
| | | this.illnessUpdate(); |
| | | } |
| | | }, |
| | | |
| | | created() { |
| | | this.gettabList(); |
| | |
| | | ><i class="el-icon-edit"></i>äºç»´ç </span |
| | | ></el-button |
| | | > --> |
| | | <!-- <el-button |
| | | <el-button |
| | | size="medium" |
| | | type="text" |
| | | @click="Vieweducation(scope.row)" |
| | | v-hasPermi="['system:user:edit']" |
| | | ><span class="button-textck" |
| | | ><i class="el-icon-edit"></i>æ¥ç</span |
| | | ><i class="el-icon-edit"></i>é¢è§</span |
| | | ></el-button |
| | | > --> |
| | | > |
| | | <el-button |
| | | size="medium" |
| | | type="text" |
| | |
| | | <div class="qrcode-img"></div> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="模çé¢è§" :visible.sync="previewtf" width="60%"> |
| | | <div class="preview-left"> |
| | | <!-- åé --> |
| | | <div v-html="richText"></div> |
| | | </div> |
| | | <!-- <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="previewGo">å徿¨¡ç详æ
ä¿®æ¹</el-button> |
| | | <el-button type="primary" @click="previewFn">确认使ç¨</el-button> |
| | | </span> --> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import { listDept } from "@/api/system/dept"; |
| | | import { getToken } from "@/utils/auth"; |
| | | import store from "@/store"; |
| | | |
| | | import axios from "axios"; |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
| | | export default { |
| | |
| | | haoeducation: "", |
| | | indexid: null, |
| | | inputValue: "", |
| | | richText: "", |
| | | radio: "主åç±»", |
| | | inputVisible: false, |
| | | previewtf: false, |
| | | illnessVisible: false, //ææ ç¾ç
å¼¹æ¡ |
| | | deptOptions: [], |
| | | courtyardlist: [], |
| | |
| | | /** æ°å¢æé®æä½ */ |
| | | handleAdd() { |
| | | this.$router.push({ |
| | | path: "/knowledge/education/compilequer/", |
| | | path: "/knowledge/educationinfo/", |
| | | }); |
| | | }, |
| | | /** ä¿®æ¹æé®æä½ */ |
| | | handleUpdate(row) { |
| | | this.$router.push({ |
| | | path: "/knowledge/education/compilequer/", |
| | | path: "/knowledge/educationinfo/", |
| | | query: { id: row.id }, |
| | | }); |
| | | }, |
| | | // æ¥ç宣æ |
| | | Vieweducation() { |
| | | this.$router.push({ |
| | | path: "/knowledge/education/examine/", |
| | | query: { id: row.id }, |
| | | Vieweducation(row) { |
| | | this.richText = null; |
| | | this.previewtf = true; |
| | | axios |
| | | .get(row.richText) |
| | | .then((response) => { |
| | | console.log(response.data, "æ°æ®"); // è¾åºè·åå°çæä»¶å
容 |
| | | this.richText = response.data; |
| | | this.richText = this.addStyleToImages(this.richText); |
| | | }) |
| | | .catch((error) => { |
| | | this.$modal.msgError("è·å坿æ¬å¤±è´¥"); |
| | | console.error("Failed to fetch file:", error); |
| | | }); |
| | | }, |
| | | addStyleToImages(html) { |
| | | return html.replace( |
| | | /<img([^>]*)style=(['"])(?:(?!\2).)*\2([^>]*)>/g, |
| | | '<img$1style="width:100%;height:auto;"$3>' |
| | | ); |
| | | }, |
| | | |
| | | /** å é¤æé®æä½ */ |
| | | handleDelete(row) { |
| | |
| | | import { getToken } from "@/utils/auth"; |
| | | |
| | | export default { |
| | | name: "Qcompilequer", |
| | | name: "Questionnaireinfo", |
| | | |
| | | components: { OptionalForm }, |
| | | |
| | |
| | | ], |
| | | }; |
| | | }, |
| | | |
| | | activated() { |
| | | if (this.id != this.$route.query.id) { |
| | | this.gettabList(); |
| | | this.getissueinfo(); |
| | | } |
| | | }, |
| | | created() { |
| | | this.gettabList(); |
| | | this.getissueinfo(); |
| | |
| | | /** æ°å¢æé®æä½ */ |
| | | handleAdd() { |
| | | this.$router.push({ |
| | | path: "/knowledge/questionnaire/compilequer/", |
| | | path: "/knowledge/questionnaireinfo/", |
| | | query: { categoryid: this.queryParams.categoryid }, |
| | | }); |
| | | }, |
| | | /** ä¿®æ¹æé®æä½ */ |
| | | handleUpdate(row) { |
| | | this.$router.push({ |
| | | path: "/knowledge/questionnaire/compilequer/", |
| | | path: "/knowledge/questionnaireinfo/", |
| | | query: { id: row.svyid }, |
| | | }); |
| | | }, |
| | |
| | | > |
| | | <el-form-item |
| | | label="宣æåç§°" |
| | | v-if="currenttype == 1 || currenttype == 8" |
| | | |
| | | > |
| | | <el-input v-model="topqueryParams.preachname"></el-input> |
| | | </el-form-item> |
| | |
| | | submitForm(formName) { |
| | | this.form.preachform = this.checkList.join(","); |
| | | // this.formatFn(1); |
| | | this.form.hospType = this.currenttype; |
| | | if (!this.form.patTaskRelevances[0]) { |
| | | this.$modal.msgError("è¯·éæ©ç
人"); |
| | | return; |
| | |
| | | title="ä»»å¡ä¸»ä½" |
| | | description="卿¬é¨éæ©æå¡æ£è
" |
| | | ></el-step> |
| | | <el-step icon="el-icon-user" title="模ç确认"></el-step> |
| | | </el-steps> |
| | | </div> |
| | | </div> |
| | |
| | | placeholder="请è¾å
¥ä»»å¡æè¿°" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="åé设置ï¼" v-if="currenttype != 2"> |
| | | <el-form-item label="åé设置ï¼"> |
| | | <el-radio-group v-model="form.sendType"> |
| | | <el-radio :label="1">æ¶é´æ®µåé</el-radio> |
| | | <el-radio :label="3">æ¶é´ç¹åé</el-radio> |
| | |
| | | v-show="showSearch" |
| | | label-width="98px" |
| | | > |
| | | <el-form-item |
| | | label="宣æä¸»é¢" |
| | | v-if="currenttype == 1 || currenttype == 8" |
| | | > |
| | | <el-input v-model="topqueryParams.name"></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | label="é®å·åç§°" |
| | | v-if="currenttype == 2 || currenttype == 3 || currenttype == 7" |
| | | > |
| | | <el-form-item label="é®å·åç§°"> |
| | | <el-input |
| | | v-model="topqueryParams.name" |
| | | ></el-input> </el-form-item |
| | | ><el-form-item |
| | | label="éç¥åç§°" |
| | | v-if="currenttype == 4 || currenttype == 5" |
| | | > |
| | | <el-input |
| | | v-model="topqueryParams.name" |
| | | ></el-input> </el-form-item |
| | | ><el-form-item label="使£å¥é¤" v-if="currenttype == 5"> |
| | | ><el-form-item label="éç¥åç§°"> |
| | | <el-input v-model="topqueryParams.name"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="é®å·ä¸»é¢" v-if="currenttype == 6"> |
| | | <el-input v-model="topqueryParams.name"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="éç¨ç¾ç
" v-if="currenttype != 5"> |
| | | <el-form-item label="é®å·ä¸»é¢"> |
| | | <el-input v-model="topqueryParams.name"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item |
| | | label="宣æç±»å" |
| | | prop="status" |
| | | v-if="currenttype == 1 || currenttype == 8" |
| | | > |
| | | <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" |
| | | v-if="currenttype == 4 || currenttype == 5" |
| | | > |
| | | <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" |
| | | v-if="currenttype == 2 || currenttype == 3 || currenttype == 7" |
| | | > |
| | | <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" |
| | | v-if="currenttype == 6" |
| | | > |
| | | <el-form-item label="é®å·ç±»å" prop="status"> |
| | | <el-select v-model="topqueryParams.topic" placeholder="è¯·éæ©"> |
| | | <el-option |
| | | v-for="item in taskoptions" |
| | |
| | | this.$modal.msgError("è¯·éæ©ç
人"); |
| | | return; |
| | | } |
| | | this.form.hospType = this.currenttype; |
| | | const filteredArray = this.variableList.filter( |
| | | (item) => |
| | | item.name !== "å§å" && item.name !== "çµè¯" && item.name !== "å°å" |
| | |
| | | console.log(this.Tasktemplate); |
| | | |
| | | this.Tasktemplate.svyTemplateLibScripts.forEach((item) => { |
| | | item.svyTaskTemplateTargetoptions = |
| | | item.svyLibTemplateTargetoptions; |
| | | item.svyTaskTemplateTargetoptions = item.svyLibTemplateTargetoptions; |
| | | }); |
| | | this.Tasktemplate.svyTaskTemplateScriptVOS = |
| | | this.Tasktemplate.svyTemplateLibScripts; |
| | |
| | | title="ä»»å¡ä¸»ä½" |
| | | description="卿¬é¨éæ©æå¡æ£è
" |
| | | ></el-step> |
| | | <el-step icon="el-icon-user" title="模ç确认"></el-step> |
| | | </el-steps> |
| | | </div> |
| | | </div> |
| | |
| | | placeholder="请è¾å
¥ä»»å¡æè¿°" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="åé设置ï¼" v-if="currenttype != 2"> |
| | | <el-form-item label="åé设置ï¼"> |
| | | <el-radio-group v-model="form.sendType"> |
| | | <el-radio :label="1">æ¶é´æ®µåé</el-radio> |
| | | <el-radio :label="3">æ¶é´ç¹åé</el-radio> |
| | |
| | | @keyup.enter.native="handleQuery" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å建æ¶é´"> |
| | | <el-date-picker |
| | | v-model="dateRange" |
| | | style="width: 240px" |
| | | value-format="yyyy-MM-dd" |
| | | type="daterange" |
| | | range-separator="-" |
| | | start-placeholder="å¼å§æ¥æ" |
| | | end-placeholder="ç»ææ¥æ" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | |
| | | <el-form-item> |
| | | <el-button |
| | |
| | | icon="el-icon-refresh" |
| | | size="medium" |
| | | @click="resetQuery" |
| | | >åæ¶å建</el-button |
| | | >éç½®</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | v-show="showSearch" |
| | | label-width="98px" |
| | | > |
| | | <el-form-item |
| | | label="é访主é¢" |
| | | v-if="currenttype == 1 || currenttype == 8" |
| | | > |
| | | <el-form-item label="é访主é¢"> |
| | | <el-input v-model="topqueryParams.name"></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | label="é访åç§°" |
| | | v-if="currenttype == 2 || currenttype == 3 || currenttype == 7" |
| | | > |
| | | <el-form-item label="é访åç§°"> |
| | | <el-input v-model="topqueryParams.name"></el-input> |
| | | </el-form-item> |
| | | |
| | |
| | | export default { |
| | | name: "ServiceDetails", |
| | | data() { |
| | | const endDate = new Date(); |
| | | const startDate = new Date(); |
| | | startDate.setDate(endDate.getDate() - 7); // 设置å¼å§æ¥æä¸ºå½åæ¥æå7天 |
| | | return { |
| | | title: "é访å
容å表", |
| | | currenttype: 1, //1é访2é¨è¯3åºé¢4å¤è¯5使£6é®å· |
| | | currenttype: 1, //1é访2é®å·3éç¥å®£æ |
| | | id: "", // |
| | | previewid: "", //任塿¨¡çä¼ éid |
| | | libName: "", |
| | | overallCase: [], //éæ©æ£è
æ» |
| | | // æ¥æèå´ |
| | | dateRange: [startDate, endDate], |
| | | allpids: [], |
| | | libId: null, //模æ¿åºæ¨¡çid |
| | | nhh: null, //æ¯å¦ä¾ç
§æ°å¢ |
| | |
| | | questionList: [], |
| | | // æ£è
表å |
| | | tableLabelhz: [ |
| | | { label: "åºå·", width: "", prop: "patid" }, |
| | | { label: "æ£è
åç§°", width: "", prop: "name" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "å°±è¯ç§å®¤", width: "", prop: "deptName" }, |
| | | { label: "å
¥é¢æ¥æ", width: "", prop: "inhosptime" }, |
| | | { label: "å
¥é¢æ¥æ", width: "", prop: "birthdate" }, |
| | | { label: "å建人ï¼ç¼ºï¼", width: "", prop: "update_by" }, |
| | | ], |
| | | |
| | |
| | | isavailable: "", |
| | | }; |
| | | this.currenttype = this.$route.query.type; |
| | | console.log(this.currenttype, "1"); |
| | | // åºé¢ãé¨è¯ãä¸ç
é访 |
| | | this.title = "é访å
容å表"; |
| | | this.tableLabel = this.tableLabelmz; |
| | |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "主任å»å¸", width: "", prop: "drname" }, |
| | | { label: "å°±è¯ç§å®¤", width: "", prop: "deptName" }, |
| | | { label: "å
¥é¢æ¥æ", width: "", prop: "inhosptime" }, |
| | | { label: "å
¥é¢æ¥æ", width: "", prop: "birthdate" }, |
| | | { label: "å建人", width: "", prop: "createBy" }, |
| | | ]; |
| | | } else if (this.patientqueryParams.allhosp == 2) { |
| | |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "è¯æ", width: "", prop: "diagname" }, |
| | | { label: "å°±è¯ç§å®¤", width: "", prop: "deptName" }, |
| | | { label: "å
¥é¢æ¥æ", width: "", prop: "inhosptime" }, |
| | | { label: "å
¥é¢æ¥æ", width: "", prop: "birthdate" }, |
| | | { label: "å建人", width: "", prop: "createBy" }, |
| | | ]; |
| | | } |
| | |
| | | this.patientqueryParams.pids = null; |
| | | } |
| | | |
| | | getTaskpatient(this.patientqueryParams).then((response) => { |
| | | console.log(response); |
| | | getTaskpatient( |
| | | this.addDateRange(this.patientqueryParams, this.dateRange) |
| | | ).then((response) => { |
| | | this.patientuserList = response.rows; |
| | | this.patienttotal = response.total; |
| | | this.loading = false; |
| | |
| | | handleQuery() { |
| | | this.handleAddpatient(); |
| | | }, |
| | | resetQuery() {}, |
| | | resetQuery() { |
| | | this.dateRange = []; |
| | | // æ¥è¯¢åæ° |
| | | this.queryParams = { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | userName: undefined, |
| | | phonenumber: undefined, |
| | | status: undefined, |
| | | deptId: undefined, |
| | | }; |
| | | }, |
| | | handleClosehz() { |
| | | this.dialogVisiblepatient = false; |
| | | }, |
| | |
| | | } |
| | | this.form.sendTimeslot = combinedData; |
| | | // å±ç¤ºæ°æ®ä¸´æ¶å卿¥æãæ©ãä¸ãæ |
| | | console.log(this.daytime); |
| | | |
| | | this.form.showDate = this.daytime.join(","); |
| | | if (this.time1) this.form.showTimeMorn = this.time1.join(","); |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="模çç®ä»" prop="note"> |
| | | <div style="width: 50%"> |
| | | <div> |
| | | <el-input |
| | | type="textarea" |
| | | placeholder="请è¾å
¥ç®ä»" |
| | |
| | | ></el-input> |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="çæ¬å·" prop="version"> |
| | |
| | | <!-- åé --> |
| | | <div |
| | | class="scriptTopic-dev" |
| | | |
| | | :key="item.sort" |
| | | v-if="item.valueType == 1" |
| | | > |
| | |
| | | <!-- å¤é --> |
| | | <div |
| | | class="scriptTopic-dev" |
| | | |
| | | :key="item.sort" |
| | | v-if="item.valueType == 2" |
| | | > |
| | |
| | | <!-- 填空 --> |
| | | <div |
| | | class="scriptTopic-dev" |
| | | |
| | | :key="item.sort" |
| | | v-if="item.valueType == 3" |
| | | > |
| | |
| | | <el-col :span="12"> |
| | | <el-form-item label="å½å±é¨é¨" prop="deptId"> |
| | | <treeselect |
| | | v-model="form.deptId" |
| | | v-model="deptIds" |
| | | :options="deptOptions" |
| | | :multiple="true" |
| | | :show-count="true" |
| | | placeholder="è¯·éæ©å½å±é¨é¨" |
| | | /> |
| | |
| | | initPassword: undefined, |
| | | // æ¥æèå´ |
| | | dateRange: [], |
| | | deptIds: [], |
| | | // å²ä½é项 |
| | | postOptions: [], |
| | | // è§è²é项 |
| | |
| | | /** ä¿®æ¹æé®æä½ */ |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | this.deptIds = []; |
| | | const userId = row.userId || this.ids; |
| | | getUser(userId).then((response) => { |
| | | this.form = response.data; |
| | | |
| | | this.postOptions = response.posts; |
| | | this.roleOptions = response.roles; |
| | | this.$set(this.form, "postIds", response.postIds); |