diff --git a/src/api/index.js b/src/api/index.js index f44a38b..0bc77d2 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -17,12 +17,12 @@ export default { querySchool: `liuwanr/customer/querySchool`, // 个人中心 - userinfo:`evaluation/tms/userInfo/userinfo`, - userinfoUpdate:`evaluation/tms/userInfo/updateUser`, - sendEmailCode:`evaluation/tms/user/sendEmailCode`,//发送邮箱验证码 - bingEmail:`evaluation/tms/user/bingEmail`,//邮箱验证并更新 - sendPhoneCode:`evaluation/tms/user/sendPhoneCode`,//发送手机验证码 - bindPhone:`evaluation/tms/user/bindPhone`,//校验手机验证码 + userInfo:`${host1}/data/userInfo/userInfo`, + updateUser:`${host1}/data/userInfo/updateUser`, + findPasswordByEmail:`/data/userInfo/findPasswordByEmail`, + findPasswordByPhone:`/data/userInfo/findPasswordByPhone`, + bingEmail:`evaluation/tms/user/bingEmail`, + bindPhone:`evaluation/tms/user/bindPhone`, // oss文件管理 fileDeletion: `${uploadURL}/oss/manage/fileDeletion`, @@ -37,16 +37,14 @@ export default { queryClient: `cjEnterprise/client/list`, // 用户管理 - saveUser: `/data/user/save`, - getUserList: `/data/user/getUserList`, - queryStaff: `evaluation/tms/system/queryStaff`, - querystaffDetail: `evaluation/tms/system/querystaffDetail`, - updateStaff: `evaluation/tms/system/updateStaff`, - downloadStaff: `evaluation/tms/system/download`, - export_failureStaff: `evaluation/tms/system/export_failure`, - uploadFileStaff: `evaluation/tms/system/uploadFile`, - queryAccountStaff:`evaluation/tms/system/queryAccount`, - resetPwd:`evaluation/tms/system/resetPwd`, + saveUser: `/users/data/user/save`, + getUserList: `/users/data/user/getUserList`, + getUserTotalBySchoolId: `${host1}/users/data/user/getUserTotalBySchoolId`, + checkAccount:`/users/data/user/checkAccount`, + getDetail:`/users/data/user/getDetail`, + modifyUser:`/users/data/user/modify`, + export_failure:`${Setting.apiBaseURL}/users/data/user/export_failure`, + uploadFile:`${Setting.apiBaseURL}/users/data/user/uploadFile`, // 角色管理 batchRemove:`/data/role/batchRemove`, @@ -56,7 +54,6 @@ export default { removeRole:`/data/role/remove`, saveOrUpdate:`/data/role/saveOrUpdate`, getRoles:`/data/role/getRole`, - checkAccount:`/data/user/checkAccount`, // 权限菜单管理 doAssign:`/data/permission/doAssign`, @@ -79,4 +76,8 @@ export default { queryDatabaseInfo:`${host1}/data/dataRecord/queryDatabaseInfo`, queryDatabaseInfoByMonth:`${host1}/data/dataRecord/queryDatabaseInfoByMonth`, saveRecord:`${host1}/data/dataRecord/saveRecord`, + databaseInfoExport:`${host1}/data/dataRecord/databaseInfoExport`, + databaseInfoByMonthExport:`${host1}/data/dataRecord/databaseInfoByMonthExport`, + onlineNumber:`${host1}/data/dataRecord/onlineNumber`, + getProductInfoBySchoolId:`${host1}/data/product/getProductInfoBySchoolId`, } \ No newline at end of file diff --git a/src/layouts/tags/index.vue b/src/layouts/tags/index.vue deleted file mode 100644 index 5579a7c..0000000 --- a/src/layouts/tags/index.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - diff --git a/src/libs/util.js b/src/libs/util.js index 6761651..ef3a01b 100644 --- a/src/libs/util.js +++ b/src/libs/util.js @@ -104,6 +104,21 @@ const util = { } x.send() }, + // 传入文件名和数据,下载文件 + downloadFileDirect(fileName,data) { + if ('download' in document.createElement('a')) { // 非IE下载 + const elink = document.createElement('a') + elink.download = fileName + elink.style.display = 'none' + elink.href = URL.createObjectURL(data) + document.body.appendChild(elink) + elink.click() + URL.revokeObjectURL(elink.href) // 释放URL 对象 + document.body.removeChild(elink) + } else { // IE10+下载 + navigator.msSaveBlob(data, fileName) + } + }, // 成功提示 successMsg(message,duration = 3000) { return Message.success({message,showClose: true,offset: (document.documentElement.clientHeight - 40) / 2,duration}) diff --git a/src/pages/data/list/index.vue b/src/pages/data/list/index.vue index f707f81..b133fbb 100644 --- a/src/pages/data/list/index.vue +++ b/src/pages/data/list/index.vue @@ -1,7 +1,7 @@