diff --git a/config/dev.env.js b/config/dev.env.js index 3a34d56a..948bf812 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -2,6 +2,6 @@ module.exports = { NODE_ENV: '"development"', ENV_CONFIG: '"dev"',//环境版本号 如npm run build:${ENV_CONFIG},建议与spring.profiles.active=${ENV_CONFIG}一一对应 VERSION: '"m1"',//产品版本号,nginx中通过此版本号导航到不同的静态资源目录,请求路径中用法如下:静态页面url=${DOMAIN}/${CONTEXT}/${VERSION}/#/{router.path}?${queryString} - CONTEXT:'"xm"',//对应spring中的server.context-path + CONTEXT:'"sys"',//对应spring中的server.context-path BASE_API: '"api"'//api访问的统一入口,最后形成的apiUrl=${BASE_API}/${VERSION}/${spring.application.name}/${CONTEXT}/${ctrlUrl} } diff --git a/config/index.js b/config/index.js index 0a923fb3..3a6e2565 100644 --- a/config/index.js +++ b/config/index.js @@ -18,7 +18,7 @@ module.exports = { '^/api/m1/xm': '/xm' } }, - + **/ '/api/m1/sys': { target: 'http://localhost:7015', changeOrigin: true, @@ -26,7 +26,7 @@ module.exports = { '^/api/m1/sys': '/sys' } }, - **/ + // '/api/m1/pay': { // target: 'http://localhost:7125', // changeOrigin: true, @@ -34,7 +34,7 @@ module.exports = { // '^/api/m1/pay': '/pay' // } // }, - + /** '/api/m1/workflow': { target: 'http://localhost:7080', @@ -55,7 +55,7 @@ module.exports = { // Various Dev Server settings host: 'localhost', // can be overwritten by process.env.HOST - port: 8067, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined + port: 8015, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, notifyOnErrors: false, diff --git a/config/prod.env.js b/config/prod.env.js index a39b9a46..011f762e 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,7 @@ module.exports = { NODE_ENV: '"production"', - ENV_CONFIG: '"prod"', - BASE_API: '"https://www.qingqinkj.com/api"' + ENV_CONFIG: '"prod"',//环境版本号 如npm run build:${ENV_CONFIG},建议与spring.profiles.active=${ENV_CONFIG}一一对应 + VERSION: '"m1"',//产品版本号,nginx中通过此版本号导航到不同的静态资源目录,请求路径中用法如下:静态页面url=${DOMAIN}/${CONTEXT}/${VERSION}/#/{router.path}?${queryString} + CONTEXT:'"xm"',//对应spring中的server.context-path + BASE_API: '"api"'//api访问的统一入口,最后形成的apiUrl=${BASE_API}/${VERSION}/${spring.application.name}/${CONTEXT}/${ctrlUrl} } diff --git a/config/sit.env.js b/config/sit.env.js index 93178e80..b1782914 100644 --- a/config/sit.env.js +++ b/config/sit.env.js @@ -1,5 +1,7 @@ module.exports = { NODE_ENV: '"production"', - ENV_CONFIG: '"sit"', - BASE_API: '"https://api-sit"' + ENV_CONFIG: '"sit"',//环境版本号 如npm run build:${ENV_CONFIG},建议与spring.profiles.active=${ENV_CONFIG}一一对应 + VERSION: '"m1"',//产品版本号,nginx中通过此版本号导航到不同的静态资源目录,请求路径中用法如下:静态页面url=${DOMAIN}/${CONTEXT}/${VERSION}/#/{router.path}?${queryString} + CONTEXT:'"xm"',//对应spring中的server.context-path + BASE_API: '"api"'//api访问的统一入口,最后形成的apiUrl=${BASE_API}/${VERSION}/${spring.application.name}/${CONTEXT}/${ctrlUrl} } diff --git a/src/api/branch.js b/src/api/branch.js index 30148ad1..6d38a2b5 100644 --- a/src/api/branch.js +++ b/src/api/branch.js @@ -29,10 +29,11 @@ export const editBranch = params => { return axios.post(`${base}/mdp/sys/branch/ export const addBranchNoAuth = params => { return axios.post(`${base}/mdp/sys/branch/addBranchNoAuth`, params); }; -//新增一条管理端机构表(机构下面若干部门) -export const calcBranchUsers = params => { return axios.get(`${base}/mdp/sys/branch/calcBranchUsers`, params); }; - - +//统计机构用户数据 +export const getBranchInterestsDetail = params => { return axios.get(`${base}/mdp/sys/branchInterests/detail`, params); }; + //新增一条企业入驻审核流程 export const addUserJoinBranchRequire = params => { return axios.post(`${base}/mdp/sys/userJoinBranchRequire/add`, params); }; + + diff --git a/src/api/login.js b/src/api/login.js index ac243514..f94d243f 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -87,7 +87,8 @@ export function doRegister( userInfo ) { password:userInfo.password, phoneno:userInfo.phoneno, smsCode:userInfo.smsCode, - deptid:userInfo.deptid + deptid:userInfo.deptid, + branchId:userInfo.branchId } return axios({ url: base+'/user/register', diff --git a/src/api/mdp/arc/imageCategory.js b/src/api/mdp/arc/imageCategory.js index cf6c26ea..4619d319 100644 --- a/src/api/mdp/arc/imageCategory.js +++ b/src/api/mdp/arc/imageCategory.js @@ -9,11 +9,11 @@ let base=config.getArcBasePath(); *1 默认只开放普通查询,所有查询,只要上传 分页参数 {currentPage:当前页码从1开始,pageSize:每页记录数,total:总记录【数如果是0后台会自动计算总记录数非0不会自动计算】},后台都会自动按分页查询 其它 api用到再打开,没用到的api请注释掉, *2 查询、新增、修改的参数格式 params={id:'主键 主键',categoryName:'分类名称',branchId:'机构编号'} **/ - -//普通查询 条件之间and关系 + +//普通查询 条件之间and关系 export const listImageCategory = params => { return axios.get(`${base}/mdp/arc/imageCategory/list`, { params: params }); }; -//模糊查询图片分类 条件之间or关系 +//模糊查询图片分类 条件之间or关系 //export const listImageCategoryKey = params => { return axios.get(`${base}/mdp/arc/imageCategory/listKey`, { params: params }); }; //删除一条图片分类 params={id:'主键 主键'} @@ -26,4 +26,7 @@ export const batchDelImageCategory = params => { return axios.post(`${base}/mdp/ export const editImageCategory = params => { return axios.post(`${base}/mdp/arc/imageCategory/edit`, params); }; //新增一条图片分类 -export const addImageCategory = params => { return axios.post(`${base}/mdp/arc/imageCategory/add`, params); }; \ No newline at end of file +export const addImageCategory = params => { return axios.post(`${base}/mdp/arc/imageCategory/add`, params); }; + +//查分类树 +export const getImageCategoryTrees = params => { return axios.get(`${base}/mdp/arc/imageCategory/list/trees`, { params: params }); }; diff --git a/src/api/mdp/sys/branch.js b/src/api/mdp/sys/branch.js index e00a7192..f52f56bc 100644 --- a/src/api/mdp/sys/branch.js +++ b/src/api/mdp/sys/branch.js @@ -42,4 +42,212 @@ export const initDicts = (that) => { Object.assign(that.dicts,res.data.data) }); } +}; + + +export const initUserCountPieChart=(that)=>{ + var chartDom = document.getElementById('userCountPieChart'); + var myChart = that.$echarts.init(chartDom); + var option; + var branchInterestsDetail = that.branchInterestsDetail; + if(!branchInterestsDetail){ + branchInterestsDetail={ + currUsers:1, + maxUsers:10 + } + } + var currUsers= parseInt(branchInterestsDetail.currUsers) + var maxUsers=parseInt(branchInterestsDetail.maxUsers); + var syUsers=maxUsers-currUsers; + if(syUsers<0){ + syUsers=0 + } + option = { + title: { + text: currUsers+"/"+ maxUsers, + left: "center", + top: "50%", + textStyle: { + textAlign: "center", + fill: "#333", + fontSize: 14, + fontWeight: 200, + } + }, + graphic: { + type: "text", + left: "center", + top: "40%", + style: { + text: "剩余"+syUsers, + textAlign: "center", + fill: "#333", + fontSize: 10, + } + }, + tooltip: { + trigger: 'item' + }, + legend: { + top: '5%', + left: 'center' + }, + series: [ + { + name: '账户数量', + type: 'pie', + radius: ['40%', '70%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center' + }, + emphasis: { + label: { + show: false, + fontSize: '40', + fontWeight: 'bold' + } + }, + labelLine: { + show: false + }, + data: [ + { value: currUsers , name: '已使用' }, + { value: syUsers , name: '未使用' }, + ] + } + ] + }; + + option && myChart.setOption(option); +}; + + +export const initProductCountPieChart=(that)=>{ + var chartDom = document.getElementById('productCountPieChart'); + var myChart = that.$echarts.init(chartDom); + var option; + var calcBranchModule=that.calcBranchModule + + var allModules=calcBranchModule.allModules + var freeModules=calcBranchModule.freeModules + var hadModules=calcBranchModule.hadModules + var yktModules=hadModules+freeModules + var syModules=allModules-freeModules-hadModules + option = { + title: { + text: yktModules + " / "+allModules, + left: "center", + top: "50%", + textStyle: { + textAlign: "center", + fill: "#333", + fontSize: 18, + fontWeight: 200, + } + }, + graphic: { + type: "text", + left: "center", + top: "40%", + style: { + text: "未开通"+syModules, + textAlign: "center", + fill: "#333", + fontSize: 10, + } + }, + tooltip: { + trigger: 'item' + }, + legend: { + top: '5%', + left: 'center' + }, + series: [ + { + name: '产品数量', + type: 'pie', + radius: ['40%', '70%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center' + }, + emphasis: { + label: { + show: false, + fontSize: '40', + fontWeight: 'bold' + } + }, + labelLine: { + show: false + }, + data: [ + { value: freeModules, name: '已免费开通' }, + { value: hadModules, name: '已付费开通' }, + { value: syModules, name: '未开通' }, + ] + } + ] + }; + + option && myChart.setOption(option); +}; + + +export const initEndTimePieChart=(that)=>{ + var chartDom = document.getElementById('endTimePieChart'); + var myChart = that.$echarts.init(chartDom); + var option; + var branchInterestsDetail=that.branchInterestsDetail; + option = { + title: { + text: branchInterestsDetail.maxRtime||"永久有效", + left: "center", + top: "45%", + textStyle: { + textAlign: "center", + fill: "#ee6666", + fontSize: 14, + fontWeight: 200, + } + }, + tooltip: { + trigger: 'item' + }, + legend: { + top: '5%', + left: 'center' + }, + series: [ + { + name: '有效期', + type: 'pie', + radius: ['40%', '70%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center' + }, + emphasis: { + label: { + show: false, + fontSize: '40', + fontWeight: 'bold' + } + }, + labelLine: { + show: false + }, + data: [ + { value: 0, name: '有效期' }, + ] + } + ] + }; + + option && myChart.setOption(option); }; \ No newline at end of file diff --git a/src/api/mdp/sys/order.js b/src/api/mdp/sys/order.js index dd9e1736..4bdc0276 100644 --- a/src/api/mdp/sys/order.js +++ b/src/api/mdp/sys/order.js @@ -4,6 +4,10 @@ let base = config.getSysBasePath(); export const createOrder = params => { return axios.post(`${base}/mdp/mo/moOrder/create`, params) }; export const calcOrder = params => { return axios.get(`${base}/mdp/mo/moOrder/calcOrder`, { params: params })}; +export const createAddUsersOrder = params => { return axios.post(`${base}/mdp/mo/moOrder/addUsers/create`, params) }; +export const calcAddUsersOrder = params => { return axios.get(`${base}/mdp/mo/moOrder/addUsers/calcOrder`, { params: params })}; +export const createRenewOrder = params => { return axios.post(`${base}/mdp/mo/moOrder/renew/create`, params) }; +export const calcRenewOrder = params => { return axios.get(`${base}/mdp/mo/moOrder/renew/calcOrder`, { params: params })}; export const createFlagShipOrder = params => { return axios.post(`${base}/mdp/mo/moOrderFligship/add`, params) }; diff --git a/src/api/mdp/sys/post/deptPost.js b/src/api/mdp/sys/post/deptPost.js index 047c194b..daf8afdc 100644 --- a/src/api/mdp/sys/post/deptPost.js +++ b/src/api/mdp/sys/post/deptPost.js @@ -10,11 +10,11 @@ let base = config.getSysBasePath(); *1 默认只开放普通查询,所有查询,只要上传 分页参数 {currentPage:当前页码从1开始,pageSize:每页记录数,total:总记录【数如果是0后台会自动计算总记录数非0不会自动计算】},后台都会自动按分页查询 其它 api用到再打开,没用到的api请注释掉, *2 查询、新增、修改的参数格式 params={id:'主键 主键',deptid:'部门编号',postId:'岗位编号',ldate:'最后更新时间'} **/ - -//普通查询 条件之间and关系 + +//普通查询 条件之间and关系 export const listDeptPost = params => { return axios.get(`${base}/mdp/sys/post/deptPost/list`, { params: params }); }; -//模糊查询部门岗位关系表 条件之间or关系 +//模糊查询部门岗位关系表 条件之间or关系 //export const listDeptPostKey = params => { return axios.get(`${base}/mdp/sys/post/deptPost/listKey`, { params: params }); }; //删除一条部门岗位关系表 params={id:'主键 主键'} @@ -30,4 +30,8 @@ export const batchAddDeptPost = params => { return axios.post(`${base}/mdp/sys/p export const editDeptPost = params => { return axios.post(`${base}/mdp/sys/post/deptPost/edit`, params); }; //新增一条部门岗位关系表 -export const addDeptPost = params => { return axios.post(`${base}/mdp/sys/post/deptPost/add`, params); }; \ No newline at end of file +export const addDeptPost = params => { return axios.post(`${base}/mdp/sys/post/deptPost/add`, params); }; + +export const batchSetPostsToDept = params => { return axios.post(`${base}/mdp/sys/post/deptPost/batchSetPostsToDept`, params); }; + +export const batchSetDeptsToPost = params => { return axios.post(`${base}/mdp/sys/post/deptPost/batchSetDeptsToPost`, params); }; diff --git a/src/api/mdp/sys/post/deptPostUser.js b/src/api/mdp/sys/post/deptPostUser.js index 35b865b1..000b2716 100644 --- a/src/api/mdp/sys/post/deptPostUser.js +++ b/src/api/mdp/sys/post/deptPostUser.js @@ -10,21 +10,21 @@ let base = config.getSysBasePath(); *1 默认只开放普通查询,所有查询,只要上传 分页参数 {currentPage:当前页码从1开始,pageSize:每页记录数,total:总记录【数如果是0后台会自动计算总记录数非0不会自动计算】},后台都会自动按分页查询 其它 api用到再打开,没用到的api请注释掉, *2 查询、新增、修改的参数格式 params={id:'主键 主键',postId:'岗位编号',deptid:'部门编号',userid:'用户编号',startDate:'开始任职时间',endDate:'结束任职时间',actEndDate:'实际结束任职时间',enabled:'状态0-无效1-有效',lastDate:'最后更新时间'} **/ - -//普通查询 条件之间and关系 + +//普通查询 条件之间and关系 export const listDeptPostUser = params => { return axios.get(`${base}/mdp/sys/post/deptPostUser/list`, { params: params }); }; -//普通查询 条件之间and关系 +//普通查询 条件之间and关系 export const listDeptPostUserWithDeptPosts = params => { return axios.get(`${base}/mdp/sys/post/deptPostUser/list/withDeptPosts`, { params: params }); }; -//人员岗位菜单快捷查询 +//人员岗位菜单快捷查询 export const listDeptPostUserMenus = params => { return axios.get(`${base}/mdp/sys/post/deptPostUser/list/menus`, { params: params }); }; -//人员岗位角色快捷查询 +//人员岗位角色快捷查询 export const listDeptPostUserRoles = params => { return axios.get(`${base}/mdp/sys/post/deptPostUser/list/roles`, { params: params }); }; -//模糊查询部门岗位用户关系表(根据部门岗位关系,岗位用户关系自动冗余) 条件之间or关系 +//模糊查询部门岗位用户关系表(根据部门岗位关系,岗位用户关系自动冗余) 条件之间or关系 //export const listDeptPostUserKey = params => { return axios.get(`${base}/mdp/sys/post/deptPostUser/listKey`, { params: params }); }; //删除一条部门岗位用户关系表(根据部门岗位关系,岗位用户关系自动冗余) params={id:'主键 主键'} @@ -37,4 +37,7 @@ export const batchDelDeptPostUser = params => { return axios.post(`${base}/mdp/s export const editDeptPostUser = params => { return axios.post(`${base}/mdp/sys/post/deptPostUser/edit`, params); }; //新增一条部门岗位用户关系表(根据部门岗位关系,岗位用户关系自动冗余) -export const addDeptPostUser = params => { return axios.post(`${base}/mdp/sys/post/deptPostUser/add`, params); }; \ No newline at end of file +export const addDeptPostUser = params => { return axios.post(`${base}/mdp/sys/post/deptPostUser/add`, params); }; + +export const setPostMaster = params => { return axios.post(`${base}/mdp/sys/post/deptPostUser/setPostMaster`, params); }; + diff --git a/src/api/mdp/sys/role.js b/src/api/mdp/sys/role.js index e92f3650..49ec5f2a 100644 --- a/src/api/mdp/sys/role.js +++ b/src/api/mdp/sys/role.js @@ -9,11 +9,14 @@ let base=config.getSysBasePath(); *1 默认只开放普通查询,所有查询,只要上传 分页参数 {currentPage:当前页码从1开始,pageSize:每页记录数,total:总记录【数如果是0后台会自动计算总记录数非0不会自动计算】},后台都会自动按分页查询 其它 api用到再打开,没用到的api请注释掉, *2 查询、新增、修改的参数格式 params={roleid:'角色编号 主键',rolename:'角色名',remark:'备注',roletype:'角色类型',rolebeg:'开始时间',roleend:'结束时间',crdate:'创建日期',enabled:'是否启用',deptid:'机构编号',sortOrder:'角色排序',branchId:'云用户机构编号'} **/ - -//普通查询 条件之间and关系 + +//普通查询 条件之间and关系 export const listRole = params => { return axios.get(`${base}/mdp/sys/role/list`, { params: params }); }; -//模糊查询角色管理 条件之间or关系 +//普通查询 条件之间and关系 +export const listRoleNotInPostId = params => { return axios.get(`${base}/mdp/sys/role/list/notInPostId`, { params: params }); }; + +//模糊查询角色管理 条件之间or关系 //export const listRoleKey = params => { return axios.get(`${base}/mdp/sys/role/listKey`, { params: params }); }; //删除一条角色管理 params={roleid:'角色编号 主键'} @@ -26,4 +29,4 @@ export const batchDelRole = params => { return axios.post(`${base}/mdp/sys/role/ export const editRole = params => { return axios.post(`${base}/mdp/sys/role/edit`, params); }; //新增一条角色管理 -export const addRole = params => { return axios.post(`${base}/mdp/sys/role/add`, params); }; \ No newline at end of file +export const addRole = params => { return axios.post(`${base}/mdp/sys/role/add`, params); }; diff --git a/src/api/mdp/sys/user.js b/src/api/mdp/sys/user.js index f131e6bd..6309e90a 100644 --- a/src/api/mdp/sys/user.js +++ b/src/api/mdp/sys/user.js @@ -9,13 +9,13 @@ let base=config.getSysBasePath(); *1 默认只开放普通查询,所有查询,只要上传 分页参数 {currentPage:当前页码从1开始,pageSize:每页记录数,total:总记录【数如果是0后台会自动计算总记录数非0不会自动计算】},后台都会自动按分页查询 其它 api用到再打开,没用到的api请注释掉, *2 查询、新增、修改的参数格式 params={userid:'内部用户编号 主键',unionid:'全局唯一编号',displayUserid:'登录展示使用用户编号',locked:'是否被锁定0否1是',startdate:'启用日期',nickname:'昵称',username:'用户名称',phoneno:'移动电话号码',password:'密码',salt:'盐值',fgOne:'指纹1',fgTwo:'指纹2',fgThr:'指纹3',idCardNo:'身份证号码',pwdtype:'密码类型1指纹2密码',headimgurl:'头像地址',country:'国家',city:'城市',province:'省份',address:'详细地址',sex:'性别',enddate:'到期日期',districtId:'区县编号',email:'邮箱',userId:'user_id',userAccount:'user_account',userPwd:'user_pwd',userName:'user_name',userDesc:'user_desc'} **/ - -//普通查询 条件之间and关系 + +//普通查询 条件之间and关系 export const listUser = params => { return axios.get(`${base}/mdp/sys/user/list`, { params: params }); }; export const listUserNames = params => { return axios.get(`${base}/mdp/sys/user/listUserNames`, { params: params }); }; -export const selectlistKey= params => { return axios.get(`${base}/mdp/sys/user/selectlistKey`, { params: params }); }; +export const selectlistKey= params => { return axios.get(`${base}/mdp/sys/user/selectlistKey`, { params: params }); }; -//模糊查询用户表 条件之间or关系 +//模糊查询用户表 条件之间or关系 //export const listUserKey = params => { return axios.get(`${base}/mdp/sys/user/listKey`, { params: params }); }; export const addUser = params => { return axios.post(`${base}/mdp/sys/user/add`,params); }; @@ -30,4 +30,27 @@ export const batchDelUser = params => { return axios.post(`${base}/mdp/sys/user/ export const editUser = params => { return axios.post(`${base}/mdp/sys/user/edit`, params); }; //重置管理人员帮别人重置密码 -export const resetPasswordByAdmin = params => { return axios.post(`${base}/safe/user/password/reset/byAdmin`, params); }; \ No newline at end of file +export const resetPasswordByAdmin = params => { return axios.post(`${base}/sys/user/resetPassword`, params); }; + +//修改自己的密码 +export const changePassword = params => { return axios.post(`${base}/sys/user/changePassword`, params); }; + +//邀请别人加入团队-邮箱方式邀请 +export const inviteUsersByEmails = params => { return axios.post(`${base}/sys/user/inviteUsersByEmails`, params); }; + +//邀请别人加入团队-手机号码方式邀请 +export const inviteUsersByPhonenos = params => { return axios.post(`${base}/sys/user/inviteUsersByPhonenos`, params); }; + + +//设置用户为机构管理员 +export const setUsersToBranchAdm = params => { return axios.post(`${base}/sys/user/setUsersToBranchAdm`, params); }; + + +//取消用户的机构管理员资格 +export const setUsersUnBranchAdm = params => { return axios.post(`${base}/sys/user/setUsersUnBranchAdm`, params); }; + + +//更新当前登录着的头像 +export const editHeadimgurl = params => { return axios.post(`${base}/sys/user/editHeadimgurl`, params); }; + + diff --git a/src/common/config.js b/src/common/config.js index 7f64ae7d..8ee27622 100644 --- a/src/common/config.js +++ b/src/common/config.js @@ -5,7 +5,7 @@ * api的调用一般是 /${BASE_API}/${applicationName}/${contextPath}/${具体的后端服务路径} */ -var sysName = 'oa协同办公系统'// 系统名称,用于展示 +var sysName="系统管理";//系统名称,用于展示 export default { getOauth2LoginBasePath:function(){ @@ -13,7 +13,8 @@ export default { }, getBaseDomainUrl:function(){ - return "https://www.qingqinkj.com" + var curlDomain=window.location.protocol+"//"+window.location.host; // 返回https://mp.csdn.net + return curlDomain }, getSysName: function() { @@ -42,10 +43,7 @@ export default { // 图片内容首页路径 getArcIndexPath: function() { return '/arc/arc/index.html' - }, - getBaseDomainUrl: function() { - return window.location.protocol + '//' + window.location.host + '/api/' + process.env.VERSION - }, + }, // 图片展示或下载路径 getArcFileUploadBasePath: function() { return window.location.protocol + '//' + window.location.host + '/api/' + process.env.VERSION + '/arc/arc' @@ -90,6 +88,9 @@ export default { }, getPayBasePath:function() { return '/tpa/pay' + }, + getMoBasePath(){ + return '/sys/sys/mo/' } diff --git a/src/common/js/util.js b/src/common/js/util.js index 76b7b868..dab154d8 100644 --- a/src/common/js/util.js +++ b/src/common/js/util.js @@ -38,7 +38,13 @@ export default { /** * 通过字典值获取其名称,返回根值相同的字典,并自动计算其对应显示样式 * 界面上可以类似使用 - * {{item.name}} + * 显示: + {{item.name}} + + * 下拉框: + + + * * @param {*} dicts * @param {*} itemCode diff --git a/src/components/Image/ShearSelectUpload.vue b/src/components/Image/ShearSelectUpload.vue index 08f4425e..741d8ce6 100644 --- a/src/components/Image/ShearSelectUpload.vue +++ b/src/components/Image/ShearSelectUpload.vue @@ -92,8 +92,7 @@ export default { } }, data: function () { - return { - //base64UploadAction:"http://www.qingqinkj.com/arc"+"/arc/archiveAttachment/upload/base64", + return { model: false, modelSrc: '', crap: false, diff --git a/src/components/ModulesMenu/allMenus.vue b/src/components/ModulesMenu/allMenus.vue index 4af0bb15..d193df27 100644 --- a/src/components/ModulesMenu/allMenus.vue +++ b/src/components/ModulesMenu/allMenus.vue @@ -46,11 +46,14 @@ diff --git a/src/views/login/components/login.vue b/src/views/login/components/login.vue index 0f249d95..fab8b5e5 100644 --- a/src/views/login/components/login.vue +++ b/src/views/login/components/login.vue @@ -199,7 +199,7 @@ export default { } sendSmsCode(params).then(res=>{ if(res.data.tips.isOk){ - this.$message.success("发送成功"); + this.$notify.success("发送成功"); if (this.setTimeNum > 0) { this.abledBut = true this.timeWrap = setInterval(() => { @@ -207,7 +207,7 @@ export default { }, 1000) } }else{ - this.$message.error(res.data.tips.msg); + this.$notify.error(res.data.tips.msg); } }) }, @@ -224,10 +224,10 @@ export default { resetPasswordByPhoneno(params).then(res=>{ this.loading = false if(res.data.tips.isOk){ - this.$message.success(res.data.tips.msg); + this.$notify.success(res.data.tips.msg); this.isRestPwd = false; }else{ - this.$message.error(res.data.tips.msg); + this.$notify.error(res.data.tips.msg); } }) } else { @@ -278,7 +278,7 @@ export default { this.userDeptid=res2.data.userInfo.deptid this.rolesChecked(); }else{ - this.$message.error(res2.data.tips.msg); + this.$notify.error(res2.data.tips.msg); } }).catch(err=>{ @@ -286,7 +286,7 @@ export default { this.loading = false }); }else{ - this.$message.error(res.data.tips.msg); + this.$notify.error(res.data.tips.msg); } }).catch((e) => { this.loading = false @@ -298,7 +298,7 @@ export default { }, deptChecked() { if( !this.userDeptid){ - this.$message.error("请选择登陆的部门") + this.$notify.error("请选择登陆的部门") return } if(this.$store.state.user.userInfo.deptid!=this.userDeptid){ @@ -314,13 +314,13 @@ export default { rolesChecked(){ if(this.userInfo.isSuperAdmin){ this.$router.push({ path: '/' }); - this.$message.info("欢迎登陆,超级管理员"); + this.$notify.info("欢迎登陆,超级管理员"); }else if(this.userInfo.isPlatformAdmin){ this.$router.push({ path: '/' }); - this.$message.info("欢迎登陆,平台管理员"); + this.$notify.info("欢迎登陆,平台管理员"); }else{ this.$router.push({ path: '/' }); - this.$message.info("欢迎登陆"); + this.$notify.info("欢迎登陆"); } }, diff --git a/src/views/login/components/register.vue b/src/views/login/components/register.vue index da0c3ce3..235bf1be 100644 --- a/src/views/login/components/register.vue +++ b/src/views/login/components/register.vue @@ -149,11 +149,11 @@ export default { }, sendPhonenoSmsCode(){ if(!this.loginForm.phoneno){ - this.$message.error("手机号码不能为空"); + this.$notify.error("手机号码不能为空"); return; } if(this.loginForm.phoneno.length !=11 ){ - this.$message.error("手机号码必须为11位"); + this.$notify.error("手机号码必须为11位"); return; } var params={ @@ -165,32 +165,54 @@ export default { this.phonenoUsers=res0.data.data; sendSmsCode(params).then(res=>{ if(res.data.tips.isOk){ - this.$message.success("发送成功"); + this.$notify.success("发送成功"); }else{ - this.$message.error(res.data.tips.msg); + this.$notify.error(res.data.tips.msg); } }) }else{ - this.$message.error(res0.data.tips.msg); + this.$notify.error(res0.data.tips.msg); } }) }, checkDisplayUserid(){ if(!this.loginForm.displayUserid){ - this.$message.error("账号不能为空"); + this.$notify.error("账号不能为空"); return; } checkDisplayUserid(this.loginForm.displayUserid).then(res0=>{ if(res0.data.tips.isOk){ - this.$message.success("该账户可以注册"); + this.$notify.success("该账户可以注册"); }else{ - this.$message.error("该账户已存在,不允许再注册!"); + this.$notify.error("该账户已存在,不允许再注册!"); } }) }, + getQueryVariable(variable,url){ + var query =url; + if(url==null || url==undefined || url==''){ + query=window.location.href; + + } + //alert(query); + var query2=query.split("?"); + if(query2.length>1){ + query=query2[1]; + }else{ + query="" + return null; + } + + var vars = query.split("&"); + for (var i=0;i { @@ -203,12 +225,16 @@ export default { smsCode:this.loginForm.smsCode, username:this.loginForm.username, } + var branchId=this.getQueryVariable("branchId") + if(branchId){ + params.branchId=branchId + } doRegister(params).then(res=>{ this.loading = false if(res.data.tips.isOk){ - this.$message.success(res.data.tips.msg); + this.$notify.success(res.data.tips.msg); }else{ - this.$message.error(res.data.tips.msg); + this.$notify.error(res.data.tips.msg); } }) } else { @@ -219,7 +245,7 @@ export default { }, deptChecked() { if( !this.userDeptid){ - this.$message.error("请选择登陆的部门") + this.$notify.error("请选择登陆的部门") return } @@ -236,13 +262,13 @@ export default { rolesChecked(){ if(this.userInfo.isSuperAdmin){ this.$router.push({ path: '/' }); - this.$message.info("欢迎登陆,超级管理员"); + this.$notify.info("欢迎登陆,超级管理员"); }else if(this.userInfo.isPlatformAdmin){ this.$router.push({ path: '/' }); - this.$message.info("欢迎登陆,平台管理员"); + this.$notify.info("欢迎登陆,平台管理员"); }else{ this.$router.push({ path: '/' }); - this.$message.info("欢迎登陆"); + this.$notify.info("欢迎登陆"); } }, diff --git a/src/views/login/resetPassword.vue b/src/views/login/resetPassword.vue index 74d2e9ee..a5014813 100644 --- a/src/views/login/resetPassword.vue +++ b/src/views/login/resetPassword.vue @@ -155,11 +155,11 @@ export default { }, sendPhonenoSmsCode(){ if(!this.loginForm.phoneno){ - this.$message.error("手机号码不能为空"); + this.$notify.error("手机号码不能为空"); return; } if(this.loginForm.phoneno.length !=11 ){ - this.$message.error("手机号码必须为11位"); + this.$notify.error("手机号码必须为11位"); return; } var params={ @@ -171,9 +171,9 @@ export default { this.phonenoUsers=res0.data.data; sendSmsCode(params).then(res=>{ if(res.data.tips.isOk){ - this.$message.success(res.data.tips.msg); + this.$notify.success(res.data.tips.msg); }else{ - this.$message.error(res.data.tips.msg); + this.$notify.error(res.data.tips.msg); } }) } @@ -208,9 +208,9 @@ export default { resetPasswordByPhoneno(params).then(res=>{ this.loading = false if(res.data.tips.isOk){ - this.$message.success(res.data.tips.msg); + this.$notify.success(res.data.tips.msg); }else{ - this.$message.error(res.data.tips.msg); + this.$notify.error(res.data.tips.msg); } }) } else { @@ -221,7 +221,7 @@ export default { }, deptChecked() { if( !this.userDeptid){ - this.$message.error("请选择登陆的部门") + this.$notify.error("请选择登陆的部门") return } @@ -238,13 +238,13 @@ export default { rolesChecked(){ if(this.userInfo.isSuperAdmin){ this.$router.push({ path: '/' }); - this.$message.info("欢迎登陆,超级管理员"); + this.$notify.info("欢迎登陆,超级管理员"); }else if(this.userInfo.isPlatformAdmin){ this.$router.push({ path: '/' }); - this.$message.info("欢迎登陆,平台管理员"); + this.$notify.info("欢迎登陆,平台管理员"); }else{ this.$router.push({ path: '/' }); - this.$message.info("欢迎登陆"); + this.$notify.info("欢迎登陆"); } }, diff --git a/src/views/mdp/arc/archiveAttachment/AttachmentUpload.vue b/src/views/mdp/arc/archiveAttachment/AttachmentUpload.vue index a0023903..87fd8932 100644 --- a/src/views/mdp/arc/archiveAttachment/AttachmentUpload.vue +++ b/src/views/mdp/arc/archiveAttachment/AttachmentUpload.vue @@ -163,7 +163,7 @@ export default { this.$emit('getCarInnerImageUrl',res.data.url) this.$emit('uploadSuccess',file) } else { - this.$message.warning(res.tips.msg); + this.$notify.warning(res.tips.msg); return false; } }, @@ -186,11 +186,11 @@ export default { } this.$emit("on-remove", file, this.fileList); } else { - this.$message.error(res.data.tips.msg); + this.$notify.error(res.data.tips.msg); } }) .catch(() => { - this.$message.warning("删除失败"); + this.$notify.warning("删除失败"); }); }, handlePreview(file) { @@ -211,7 +211,7 @@ export default { window.open(attachmentPreviewUrl, "_blank"); }, handleExceed(files, fileList) { - this.$message.warning( + this.$notify.warning( "当前限制选择" + this.limit + " 个文件,本次选择了" + @@ -233,7 +233,7 @@ export default { } }); if (canDel == false && file.id && file.id != null && file.id != "") { - this.$message.warning(file.name + "设置了不允许删除"); + this.$notify.warning(file.name + "设置了不允许删除"); return false; } else if ( canDel == true && diff --git a/src/views/mdp/arc/category/CategoryTree.vue b/src/views/mdp/arc/category/CategoryTree.vue index b6329d11..21b58f8c 100644 --- a/src/views/mdp/arc/category/CategoryTree.vue +++ b/src/views/mdp/arc/category/CategoryTree.vue @@ -192,10 +192,10 @@ //console.log("res--"+JSON.stringify(res)); if(res.data.tips.isOk){ this.addLoading=false; - this.$message.success(res.data.tips.msg); + this.$notify.success(res.data.tips.msg); this.getTreeData(true); }else{ - this.$message.error(res.data.tips.msg); + this.$notify.error(res.data.tips.msg); } }).catch(e=>this.addLoading = false ); @@ -215,10 +215,10 @@ this.editLoading = false; if(res.data.tips.isOk){ this.editVisible=false; - this.$message.success(res.data.tips.msg); + this.$notify.success(res.data.tips.msg); this.getTreeData(true); }else{ - this.$message.error(res.data.tips.msg); + this.$notify.error(res.data.tips.msg); } }).catch(e=>this.editLoading = false ); @@ -242,7 +242,7 @@ deleteNode(data, node, comp) { console.log("deleteNode__"+JSON.stringify(data)); if(data.children){ - this.$message.error("请先删除子元素"); + this.$notify.error("请先删除子元素"); return; } let params={ @@ -258,10 +258,10 @@ if(res.data.tips.isOk){ this.editVisible=false; - this.$message.success(res.data.tips.msg); + this.$notify.success(res.data.tips.msg); this.getTreeData(true); }else{ - this.$message.error(res.data.tips.msg); + this.$notify.error(res.data.tips.msg); } }); }) diff --git a/src/views/mdp/form/formData/FormDataMng.vue b/src/views/mdp/form/formData/FormDataMng.vue index ef52970b..940b5ac2 100644 --- a/src/views/mdp/form/formData/FormDataMng.vue +++ b/src/views/mdp/form/formData/FormDataMng.vue @@ -874,7 +874,7 @@ if(this.isBatchSetTags==true){ //TOD 批量更新后台数据标签 if(!tags || tags.length==0){ - this.$message.error("最少选中一个标签"); + this.$notify.error("最少选中一个标签"); this.isBatchSetTags=false; return; } @@ -898,9 +898,9 @@ row.tagIds=tagIds row.tagNames=tagNames }) - this.$message.success("打标签成功"); + this.$notify.success("打标签成功"); }else{ - this.$message.error(res.data.tips.msg); + this.$notify.error(res.data.tips.msg); } }).catch(e=>this.isBatchSetTags=false); }else{ @@ -926,7 +926,7 @@ showTagSelect:function(isBatchSetTags){ if(isBatchSetTags==true){ if(this.sels.length==0){ - this.$message.error("请选中流程任务"); + this.$notify.error("请选中流程任务"); return false; } this.tagSelectVisible=true; diff --git a/src/views/mdp/form/formDef/FormDefMng.vue b/src/views/mdp/form/formDef/FormDefMng.vue index 363639dc..3750488a 100644 --- a/src/views/mdp/form/formDef/FormDefMng.vue +++ b/src/views/mdp/form/formDef/FormDefMng.vue @@ -375,7 +375,7 @@ if(this.isBatchSetTags==true){ //TOD 批量更新后台数据标签 if(!tags || tags.length==0){ - this.$message.error("最少选中一个标签"); + this.$notify.error("最少选中一个标签"); this.isBatchSetTags=false; return; } @@ -399,9 +399,9 @@ row.tagIds=tagIds row.tagNames=tagNames }) - this.$message.success("打标签成功"); + this.$notify.success("打标签成功"); }else{ - this.$message.error(res.data.tips.msg); + this.$notify.error(res.data.tips.msg); } }).catch(e=>this.isBatchSetTags=false); }else{ @@ -426,7 +426,7 @@ showTagSelect:function(isBatchSetTags){ if(isBatchSetTags==true){ if(this.sels.length==0){ - this.$message.error("请选中流程任务"); + this.$notify.error("请选中流程任务"); return false; } this.tagSelectVisible=true; diff --git a/src/views/mdp/meta/item/ItemAdd.vue b/src/views/mdp/meta/item/ItemAdd.vue index 8aa2073f..d2c18c71 100644 --- a/src/views/mdp/meta/item/ItemAdd.vue +++ b/src/views/mdp/meta/item/ItemAdd.vue @@ -1,127 +1,394 @@ \ No newline at end of file diff --git a/src/views/mdp/meta/itemOption/ItemOptionAdd.vue b/src/views/mdp/meta/itemOption/ItemOptionAdd.vue index 6a7a4bab..329ce8bb 100644 --- a/src/views/mdp/meta/itemOption/ItemOptionAdd.vue +++ b/src/views/mdp/meta/itemOption/ItemOptionAdd.vue @@ -1,6 +1,7 @@