From 183be231d072ccf93b3fa0d54c47413d610df81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Thu, 27 Apr 2023 17:34:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/trainingOrder/index.vue | 178 ++++++++++++++++++++++- 1 file changed, 172 insertions(+), 6 deletions(-) diff --git a/src/views/system/trainingOrder/index.vue b/src/views/system/trainingOrder/index.vue index 018fa83..eeeff6f 100644 --- a/src/views/system/trainingOrder/index.vue +++ b/src/views/system/trainingOrder/index.vue @@ -8,6 +8,11 @@ v-show="showSearch" label-width="100px" > + + + {{ queryParams.nurseStationName }} + + + ] + - +
{{ formlist.trainingItemDetails }}
- + " + prop="trainingItemContent" + v-if=" + formlist.trainingItemType == 'GRAPHIC_LEARNING' || + formlist.trainingItemType == 'LEARNING_ITEM_GROUP' + " + > + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + @@ -429,7 +547,7 @@ import { import baseurl from "@/api/baseurl.js"; import stationAcatar from "../stationAvatar/index.vue"; import editor from "@/components/Editor"; - +import { getListByUser } from "@/api/system/userlist.js"; export default { name: "TrainingOrder", components: { stationAcatar, editor }, @@ -458,6 +576,8 @@ export default { label: "已取消", }, ], + nurseStationshow: false, + // 遮罩层 loading: true, innerrefund: false, @@ -504,6 +624,10 @@ export default { label: "支付宝小程序", }, ], + getListByUserquery: { + pageNum: 1, + pageSize: 10, + }, // 非单个禁用 single: true, // 非多个禁用 @@ -512,6 +636,7 @@ export default { showSearch: true, // 总条数 total: 0, + stationtotal: 0, // 学习培训订单主表格数据 trainingOrderList: [], // 弹出层标题 @@ -523,7 +648,7 @@ export default { pageNum: 1, pageSize: 10, nurseStationId: null, - trainingOrderAmount:null, + trainingOrderAmount: null, nurseStationPersonId: null, nursePersonName: null, trainingOrderNo: null, @@ -535,6 +660,7 @@ export default { // 表单参数 form: {}, list: [], + nurseStationlist: [], trainingOrderDetailsList: [], // 表单校验 rules: {}, @@ -545,6 +671,35 @@ export default { this.baseurl = baseurl; }, methods: { + //页面所属护理站 + ParamsStation(item) { + this.info(); + this.nurseStationshow = true; + }, + //护理站list + info() { + getListByUser(this.getListByUserquery).then((res) => { + this.nurseStationlist = res.rows; + this.stationtotal = res.total; + }); + }, + clicknurseStationshow() { + this.nurseStationshow = false; + }, + //护理站重置 + stationcancel() { + this.getListByUserquery = { + pageNum: 1, + pageSize: 10, + }; + this.info(); + }, + //护理站页面选择护理站 + choicestationid(item) { + this.queryParams.nurseStationName = item.nurseStationName; + this.queryParams.nurseStationId = item.id; + this.nurseStationshow = false; + }, // 章节视频 itemDirectoryUrl(item) { let items = JSON.parse(item); @@ -654,6 +809,10 @@ export default { /** 重置按钮操作 */ resetQuery() { this.resetForm("queryForm"); + this.queryParams = { + pageNum: 1, + pageSize: 10, + }; this.handleQuery(); }, // 多选框选中数据 @@ -673,7 +832,7 @@ export default { this.reset(); const id = row.id || this.ids; getTrainingOrder(id).then((response) => { - console.log(response) + console.log(response); this.form = response.data; this.form.trainingOrderDetailsList = response.data.trainingOrderDetailsList; @@ -764,6 +923,13 @@ export default { padding: 0 15px; border: 1px solid #e6ebf5; } +.stationbtn { + width: 208px; + text-align: left; + height: 32px; + overflow: hidden; + font-size: 14px; +} .textdetails { width: 600px; // height: 300px;