From 521a50ccb6f436fc4acf38a09f7ed8a7e69b00a5 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Wed, 6 Nov 2019 18:38:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/management/mapskin.js | 14 +++++++------- src/views/components/limits/distribute.vue | 3 +-- src/views/components/limits/transfer.vue | 3 +-- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/api/management/mapskin.js b/src/api/management/mapskin.js index 1eba6fd9a..c0c325cf4 100644 --- a/src/api/management/mapskin.js +++ b/src/api/management/mapskin.js @@ -1,6 +1,6 @@ import request from '@/utils/request'; -/** 分页查询皮肤*/ +/** 分页查询真实线路*/ export function getSkinCodePageList(params) { return request({ url: `/api/realLine`, @@ -9,7 +9,7 @@ export function getSkinCodePageList(params) { }); } -/** 添加皮肤*/ +/** 添加真实线路*/ export function addSkinCode(data) { return request({ url: `/api/realLine`, @@ -18,7 +18,7 @@ export function addSkinCode(data) { }); } -/** 删除皮肤*/ +/** 删除真实线路*/ export function delSkinCode(id) { return request({ url: `/api/realLine/${id}`, @@ -26,7 +26,7 @@ export function delSkinCode(id) { }); } -/** 查询地图皮肤 */ +/** 根据id查询真实线路 */ export function querySkinCode(id) { return request({ url: `/api/realLine/${id}`, @@ -34,7 +34,7 @@ export function querySkinCode(id) { }); } -/** 修改地图皮肤*/ +/** 修改真实线路*/ export function updateSkinCode(data) { return request({ url: `/api/realLine/${data.id}`, @@ -52,7 +52,7 @@ export function updateSkinCodeByCode(data) { }); } -/** 查询皮肤是否存在*/ +/** 检查code是否存在*/ export function querySkinCodeExistByCode(code) { return request({ url: `/api/realLine/${code}/exist`, @@ -60,7 +60,7 @@ export function querySkinCodeExistByCode(code) { }); } -/** 获取皮肤列表*/ +/** 获取真实线路列表*/ export function getSkinCodeList() { return request({ url: `/api/realLine/list`, diff --git a/src/views/components/limits/distribute.vue b/src/views/components/limits/distribute.vue index 634ddf317..880aea8f3 100644 --- a/src/views/components/limits/distribute.vue +++ b/src/views/components/limits/distribute.vue @@ -149,10 +149,9 @@ export default { changeSelectDate() { if (this.formModel.date) { this.isLoading = true; - const data = {mapId:this.mapId, proCode:this.prdCode, startTime:this.formModel.date[0], endTime:this.formModel.date[1]}; + const data = {mapId:this.mapId, proCode:this.prdCode, startTime:this.formModel.date[0], endTime:this.formModel.date[1], type:this.PermissionType}; if (this.PermissionType == PermissionType.LESSON || this.PermissionType == PermissionType.EXAM) { data.lessonId = this.formModel.lessonId; - data.type = this.PermissionType; } getAvailableUserPermission(data).then(res=>{ this.isLoading = false; diff --git a/src/views/components/limits/transfer.vue b/src/views/components/limits/transfer.vue index 32f574a7d..f57f2cb77 100644 --- a/src/views/components/limits/transfer.vue +++ b/src/views/components/limits/transfer.vue @@ -149,10 +149,9 @@ export default { changeSelectDate() { if (this.formModel.date) { this.isLoading = true; - const data = {mapId:this.mapId, proCode:this.prdCode, startTime:`${this.formModel.date[0]} 00:00:00`, endTime:`${this.formModel.date[1]} 23:59:59`}; + const data = {mapId:this.mapId, proCode:this.prdCode, startTime:`${this.formModel.date[0]} 00:00:00`, endTime:`${this.formModel.date[1]} 23:59:59`, type:this.PermissionType}; if (this.PermissionType == PermissionType.LESSON || this.PermissionType == PermissionType.EXAM) { data.lessonId = this.formModel.lessonId; - data.type = this.PermissionType; } getAvailableUserPermission(data).then(res=>{ this.isLoading = false;