feat: v3版疗休养优化
This commit is contained in:
@@ -65,9 +65,9 @@ const nation = [
|
||||
const uploadFileType = ['jpg', 'png', 'doc', 'docx', 'xls', 'xlsx', 'pdf']
|
||||
const docType = ['doc', 'docx', 'xls', 'xlsx', 'pdf']
|
||||
|
||||
const FILE_UPLOAD_ADDRESS = '/platform/staffTherapyRecuperation/common/uploadFile'
|
||||
const FILE_DELETE_ADDRESS = '/platform/staffTherapyRecuperation/common/deleteFile'
|
||||
const FILE_STREAM_PREVIEW_ADDRESS = '/platform/staffTherapyRecuperation/common/preview'
|
||||
const FILE_UPLOAD_ADDRESS = '/platform/inclusiveTherapyV3/common/uploadFile'
|
||||
const FILE_DELETE_ADDRESS = '/platform/inclusiveTherapyV3/common/deleteFile'
|
||||
const FILE_STREAM_PREVIEW_ADDRESS = '/platform/inclusiveTherapyV3/common/preview'
|
||||
|
||||
Vue.component('m-page-loading', httpVueLoader('/components/staffbenefit/therapyRecuperation/mobile/MLoading.vue'))
|
||||
Vue.component('m-table-loading', httpVueLoader('/components/staffbenefit/therapyRecuperation/mobile/MTableLoading.vue'))
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
const uploadFileType = ['jpg', 'png', 'doc', 'docx', 'xls', 'xlsx', 'pdf']
|
||||
const docType = ['doc', 'docx', 'xls', 'xlsx', 'pdf']
|
||||
|
||||
const FILE_UPLOAD_ADDRESS = '/platform/staffTherapyRecuperation/common/uploadFile'
|
||||
const FILE_DELETE_ADDRESS = '/platform/staffTherapyRecuperation/common/deleteFile'
|
||||
const FILE_STREAM_PREVIEW_ADDRESS = '/platform/staffTherapyRecuperation/common/preview'
|
||||
const FILE_STREAM_DOWNLOAD_ADDRESS = '/platform/staffTherapyRecuperation/common/download'
|
||||
const FILE_UPLOAD_ADDRESS = '/platform/inclusiveTherapyV3/common/uploadFile'
|
||||
const FILE_DELETE_ADDRESS = '/platform/inclusiveTherapyV3/common/deleteFile'
|
||||
const FILE_STREAM_PREVIEW_ADDRESS = '/platform/inclusiveTherapyV3/common/preview'
|
||||
const FILE_STREAM_DOWNLOAD_ADDRESS = '/platform/inclusiveTherapyV3/common/download'
|
||||
|
||||
const preview = async (filename, id) => {
|
||||
const suffix = filename.substring(filename.lastIndexOf('.') + 1)
|
||||
|
||||
@@ -38,5 +38,5 @@ window.viewImage = Vue.prototype.$viewImage;
|
||||
window.therapyPreview = function(value) {
|
||||
if (!value) return '';
|
||||
return /^(https?:|data:|blob:|\/)/.test(value) ? value :
|
||||
'/platform/staffTherapyRecuperation/common/preview?id=' + encodeURIComponent(value);
|
||||
'/platform/inclusiveTherapyV3/common/preview?id=' + encodeURIComponent(value);
|
||||
};
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getEnumOptions = async (enumName) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/enumOptions", {enumName})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/enumOptions", {enumName})
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ const getEnumOptions = async (enumName) => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getDictOptions = async (code) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/dictOptions", {code})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/dictOptions", {code})
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ const getDictOptions = async (code) => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getDictState = async (code) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/dictState", {code})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/dictState", {code})
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ const getDictState = async (code) => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getCampus = async () => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getCampus")
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getCampus")
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -40,19 +40,19 @@ const getCampus = async () => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getDbt = async (jdhId) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getDbt", {jdhId})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getDbt", {jdhId})
|
||||
return data
|
||||
}
|
||||
|
||||
//查询当前用户管理的院级工会
|
||||
const getUnion = async () => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getUnion")
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getUnion")
|
||||
return data
|
||||
}
|
||||
|
||||
//查询当前用户管理的院级工会下的单位
|
||||
const getUnit = async (unionid) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getUnit", {unionid: unionid})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getUnit", {unionid: unionid})
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ const getUnit = async (unionid) => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getGroup = async (jdhId) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getGroup", {jdhId})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getGroup", {jdhId})
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ const getOpenJdh = async () => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getUnions = async (delegationId = null, isPermission = false) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/unions", {delegationId, isPermission})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/unions", {delegationId, isPermission})
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -94,12 +94,12 @@ const getActivityUnions = async () => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getUnits = async (unionId = null) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/units", {unionId})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/units", {unionId})
|
||||
return data
|
||||
}
|
||||
|
||||
const getClubUnits = async () => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getClubUnits", {})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getClubUnits", {})
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ const getActivityUnits = async (unionId) => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getUnionUnits = async () => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/unionUnits")
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/unionUnits")
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ const getUnionUnits = async () => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getWelfareUnits = async () => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/welfareUnits")
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/welfareUnits")
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ const getWelfareUnits = async () => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getUnitsByWelfareUnit = async (welfareUnitId) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/unitsByWelfareUnit", {welfareUnitId})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/unitsByWelfareUnit", {welfareUnitId})
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ const getUnitsByWelfareUnit = async (welfareUnitId) => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getClubs = async () => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/clubs", {})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/clubs", {})
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ const getClubs = async () => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getJc = async () => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getJcByDict")
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getJcByDict")
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ const getJc = async () => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getClubsByRole = async () => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getClubsByRole", {})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getClubsByRole", {})
|
||||
return data
|
||||
}
|
||||
/**
|
||||
@@ -171,7 +171,7 @@ const getClubsByRole = async () => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getClubsByUser = async () => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getClubsByUser", {})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getClubsByUser", {})
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ const getClubsByUser = async () => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getFileType = async () => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getFileTypeByDict")
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getFileTypeByDict")
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -189,7 +189,7 @@ const getFileType = async () => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getJcgbJs = async () => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getJcgbJsByDict")
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getJcgbJsByDict")
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ const getJcgbJs = async () => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getSpyJs = async () => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getSpyJsByDict")
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getSpyJsByDict")
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ const getSpyJs = async () => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getClubType = async () => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getClubTypeByDict")
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getClubTypeByDict")
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ const getClubType = async () => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getSystemName = async () => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getSystemNameByDict")
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getSystemNameByDict")
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -225,7 +225,7 @@ const getSystemName = async () => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getGdh = async (open = true) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getGdh", {open})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getGdh", {open})
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -243,7 +243,7 @@ const getGdhDbt = async (jdhId) => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const queryUserByIds = async (ids) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/queryUserByIds", {ids: JSON.stringify(ids)})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/queryUserByIds", {ids: JSON.stringify(ids)})
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -252,7 +252,7 @@ const queryUserByIds = async (ids) => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const queryUserById = async (id) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/queryUserById", {id: id})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/queryUserById", {id: id})
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -266,7 +266,7 @@ const queryUserById = async (id) => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const searchUser = async (query, unionId = null, unitId = null, sex = null, member = null) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/searchUser", {
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/searchUser", {
|
||||
query,
|
||||
unionId,
|
||||
unitId,
|
||||
@@ -326,11 +326,11 @@ const getNowLxyHd = async () => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getUnionList = async (unionId) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/unionList", {unionId})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/unionList", {unionId})
|
||||
return data
|
||||
}
|
||||
const threeUnitsByUnionGroupOrUnitId = async (unitId, groupId) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/threeUnitsByUnionGroupOrUnitId", {
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/threeUnitsByUnionGroupOrUnitId", {
|
||||
unitId,
|
||||
groupId
|
||||
})
|
||||
@@ -338,7 +338,7 @@ const threeUnitsByUnionGroupOrUnitId = async (unitId, groupId) => {
|
||||
}
|
||||
|
||||
const unionGroupsByUnionId = async (unionId) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/unionGroupsByUnionId", {unionId})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/unionGroupsByUnionId", {unionId})
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -388,7 +388,7 @@ const getLocationVariable = (variable) => {
|
||||
}
|
||||
|
||||
const getConfigKey = async (key) => {
|
||||
const {data} = await $.get('/platform/staffTherapyRecuperation/common/getValue', {key})
|
||||
const {data} = await $.get('/platform/inclusiveTherapyV3/common/getValue', {key})
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -397,7 +397,7 @@ const getConfigKey = async (key) => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getUnitByUnions = async (unionId = null) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getUnitsByUnions", {unionId})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getUnitsByUnions", {unionId})
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -408,7 +408,7 @@ const getUnitByUnions = async (unionId = null) => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getThreeUnitsByUnionGroupsOrUnitIds = async (unitId, groupId) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getThreeUnitsByUnionGroupsOrUnitIds", {
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getThreeUnitsByUnionGroupsOrUnitIds", {
|
||||
unitId,
|
||||
groupId
|
||||
})
|
||||
@@ -421,6 +421,6 @@ const getThreeUnitsByUnionGroupsOrUnitIds = async (unitId, groupId) => {
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
const getUnionGroupsByUnions = async (unionId) => {
|
||||
const {data} = await $.get("/platform/staffTherapyRecuperation/common/getUnionGroupsByUnions", {unionId})
|
||||
const {data} = await $.get("/platform/inclusiveTherapyV3/common/getUnionGroupsByUnions", {unionId})
|
||||
return data
|
||||
}
|
||||
|
||||
+1
-1
@@ -84,7 +84,7 @@ module.exports = {
|
||||
this.findOne(id)
|
||||
},
|
||||
async findOne(id) {
|
||||
const res = await $.get('/platform/staffTherapyRecuperation/baseManagement/selectBaseManageById/' + id)
|
||||
const res = await $.get('/platform/inclusiveTherapyV3/baseManagement/selectBaseManageById/' + id)
|
||||
if (res.code === 0) {
|
||||
this.viewData = res.data
|
||||
}
|
||||
|
||||
+2
-2
@@ -160,7 +160,7 @@ module.exports = {
|
||||
methods: {
|
||||
async findOne(id) {
|
||||
this.loading = true
|
||||
const resp = await $.get("/platform/staffTherapyRecuperation/TheRapyAudit/findOne", {id})
|
||||
const resp = await $.get("/platform/inclusiveTherapyV3/TheRapyAudit/findOne", {id})
|
||||
this.loading = false
|
||||
if (resp.code === 0) {
|
||||
this.viewData = resp.data.viewData
|
||||
@@ -179,7 +179,7 @@ module.exports = {
|
||||
this.activeName = activeName
|
||||
},
|
||||
async getConfigData() {
|
||||
const resp = await $.get('/platform/staffTherapyRecuperation/TheRapyConfig/findOne')
|
||||
const resp = await $.get('/platform/inclusiveTherapyV3/TheRapyConfig/findOne')
|
||||
this.configData = resp.data
|
||||
},
|
||||
},
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
<div v-if="view">
|
||||
<a v-for="file in files" :key="file.id || file.filepath" :href="file.filepath || preview(file.id)" target="_blank" style="display:block">{{ file.filename || file.name }}</a>
|
||||
</div>
|
||||
<el-upload v-else action="/platform/staffTherapyRecuperation/common/uploadFile" name="file"
|
||||
<el-upload v-else action="/platform/inclusiveTherapyV3/common/uploadFile" name="file"
|
||||
:limit="max" :multiple="max > 1" :file-list="fileList" :drag="card"
|
||||
:before-upload="beforeUpload" :on-success="success" :on-remove="remove" :on-preview="open">
|
||||
<el-button size="small" type="primary">选择文件</el-button>
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-upload action="/platform/staffTherapyRecuperation/common/uploadFile" name="file" list-type="picture-card"
|
||||
<el-upload action="/platform/inclusiveTherapyV3/common/uploadFile" name="file" list-type="picture-card"
|
||||
:file-list="fileList" :limit="limit" :before-upload="beforeUpload"
|
||||
:on-success="success" :on-remove="remove" :on-preview="open"
|
||||
:style="{'--therapy-width': width + 'px', '--therapy-height': height + 'px'}">
|
||||
|
||||
@@ -107,7 +107,7 @@ module.exports = {
|
||||
this.findOne(lineId, usUnionId, mode, year)
|
||||
},
|
||||
async findOne(id, unionId, mode, year) {
|
||||
const resp = await $.get('/platform/staffTherapyRecuperation/line/selectLineInfoById/' + id)
|
||||
const resp = await $.get('/platform/inclusiveTherapyV3/line/selectLineInfoById/' + id)
|
||||
if (resp.code === 0) {
|
||||
this.viewData = resp.data
|
||||
//校工会创建 分工会选择 所以每个分工会的活动时间会不一样
|
||||
@@ -120,7 +120,7 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
async findUnionSelectLineData(lineId, unionId, mode, year) {
|
||||
const resp = await $.post('/platform/staffTherapyRecuperation/lineFghSelect/selectLineInfo', {
|
||||
const resp = await $.post('/platform/inclusiveTherapyV3/lineFghSelect/selectLineInfo', {
|
||||
lineId: lineId,
|
||||
unionId: unionId,
|
||||
mode: mode,
|
||||
|
||||
+1
-1
@@ -134,7 +134,7 @@ module.exports = {
|
||||
methods: {
|
||||
async findOne(id) {
|
||||
this.loading = true
|
||||
const resp = await $.get("/platform/staffTherapyRecuperation/TheRapyAudit/findOne", {id})
|
||||
const resp = await $.get("/platform/inclusiveTherapyV3/TheRapyAudit/findOne", {id})
|
||||
this.loading = false
|
||||
if (resp.code === 0) {
|
||||
this.viewData = resp.data.viewData
|
||||
|
||||
+1
-1
@@ -650,7 +650,7 @@ module.exports = {
|
||||
this.fileList = val.map(v => {
|
||||
let url = ''
|
||||
if (this.resolvingShowByFileName(v.filename) == 1) {
|
||||
url = APP_DOMAIN + '/platform/staffTherapyRecuperation/common/preview?id=' + v.id
|
||||
url = APP_DOMAIN + '/platform/inclusiveTherapyV3/common/preview?id=' + v.id
|
||||
console.log(url)
|
||||
return {data: v, url, isImage: true, file: {name: v.filename}, status: 'success'}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user