Merge branch 'dev' of https://git.qcloud.com/joylink/jl-nclient into dev
This commit is contained in:
commit
1a4dbf49d2
@ -1,6 +1,6 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
|
|
||||||
/** 分页查询皮肤*/
|
/** 分页查询真实线路*/
|
||||||
export function getSkinCodePageList(params) {
|
export function getSkinCodePageList(params) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/realLine`,
|
url: `/api/realLine`,
|
||||||
@ -9,7 +9,7 @@ export function getSkinCodePageList(params) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 添加皮肤*/
|
/** 添加真实线路*/
|
||||||
export function addSkinCode(data) {
|
export function addSkinCode(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/realLine`,
|
url: `/api/realLine`,
|
||||||
@ -18,7 +18,7 @@ export function addSkinCode(data) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 删除皮肤*/
|
/** 删除真实线路*/
|
||||||
export function delSkinCode(id) {
|
export function delSkinCode(id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/realLine/${id}`,
|
url: `/api/realLine/${id}`,
|
||||||
@ -26,7 +26,7 @@ export function delSkinCode(id) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 查询地图皮肤 */
|
/** 根据id查询真实线路 */
|
||||||
export function querySkinCode(id) {
|
export function querySkinCode(id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/realLine/${id}`,
|
url: `/api/realLine/${id}`,
|
||||||
@ -34,7 +34,7 @@ export function querySkinCode(id) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 修改地图皮肤*/
|
/** 修改真实线路*/
|
||||||
export function updateSkinCode(data) {
|
export function updateSkinCode(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/realLine/${data.id}`,
|
url: `/api/realLine/${data.id}`,
|
||||||
@ -52,7 +52,7 @@ export function updateSkinCodeByCode(data) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 查询皮肤是否存在*/
|
/** 检查code是否存在*/
|
||||||
export function querySkinCodeExistByCode(code) {
|
export function querySkinCodeExistByCode(code) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/realLine/${code}/exist`,
|
url: `/api/realLine/${code}/exist`,
|
||||||
@ -60,7 +60,7 @@ export function querySkinCodeExistByCode(code) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 获取皮肤列表*/
|
/** 获取真实线路列表*/
|
||||||
export function getSkinCodeList() {
|
export function getSkinCodeList() {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/realLine/list`,
|
url: `/api/realLine/list`,
|
||||||
|
@ -149,10 +149,9 @@ export default {
|
|||||||
changeSelectDate() {
|
changeSelectDate() {
|
||||||
if (this.formModel.date) {
|
if (this.formModel.date) {
|
||||||
this.isLoading = true;
|
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) {
|
if (this.PermissionType == PermissionType.LESSON || this.PermissionType == PermissionType.EXAM) {
|
||||||
data.lessonId = this.formModel.lessonId;
|
data.lessonId = this.formModel.lessonId;
|
||||||
data.type = this.PermissionType;
|
|
||||||
}
|
}
|
||||||
getAvailableUserPermission(data).then(res=>{
|
getAvailableUserPermission(data).then(res=>{
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
|
@ -149,10 +149,9 @@ export default {
|
|||||||
changeSelectDate() {
|
changeSelectDate() {
|
||||||
if (this.formModel.date) {
|
if (this.formModel.date) {
|
||||||
this.isLoading = true;
|
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) {
|
if (this.PermissionType == PermissionType.LESSON || this.PermissionType == PermissionType.EXAM) {
|
||||||
data.lessonId = this.formModel.lessonId;
|
data.lessonId = this.formModel.lessonId;
|
||||||
data.type = this.PermissionType;
|
|
||||||
}
|
}
|
||||||
getAvailableUserPermission(data).then(res=>{
|
getAvailableUserPermission(data).then(res=>{
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user