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 @@ - - - - - 为空,则后台自动生成 + + + + + + + + + + + 小写,下横线分割,例子: user_address - - + + + + + {{addForm.itemName}} + + + + + + + + + + - - + + + + + + + - - + + + + + 请输入列表,一行代表一个,如要指定编号,请用|线分割,比如 + 1|男 + 2|女 + + + + + 请输入文件列表,一行代表一个,比如 + 文件链接地址1|文件描述或者名称1 + 文件链接地址2|文件描述或者名称2 + - - + + + + 请输入图文列表,一行代表一个,比如 + 图片地址1|图片描述1 + 图片地址2|图片描述2 + - - 文本 - 数字 - 日期 - 图片 - 视频 - 图文 - 二进制 + + + 请输入视频列表,一行代表一个,比如 + 视频地址1|视频描述1 + 视频地址2|视频描述2 + - - - 取消 - - - 提交 - + + + + 请输入选项列表,一行代表一个,比如 + 值1|描述1 + 值2|描述2 + + + + + 请输入选项列表,一行代表一个,比如 + 值1|描述1 + 值2|描述2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{op.name}} + + + + + + + + + + + + + {{addForm.remark}} + + + 排序: + 必输项 + 显示 + 长度: + 输入提示: + + + 取消 + 提交 + \ 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 @@ - + + @@ -8,8 +9,8 @@ - - + + @@ -89,7 +90,7 @@ }, //新增界面数据 数据项取值列表 addForm: { - itemId:'',id:'',optionValue:'',optionName:'',keys:'',isShow:'',seqOrder:'',fp:'',tp:'',sp:'',isDefault:'',cdate:'',branchId:'',deptid:'' + itemId:'',id:'',optionValue:'',optionName:'',Keyes:'',isShow:'',seqOrder:'',fp:'',tp:'',sp:'',isDefault:'',cdate:'',branchId:'',deptid:'' } /**begin 在下面加自定义属性,记得补上面的一个逗号**/ @@ -117,7 +118,7 @@ this.$refs['addForm'].resetFields(); this.$emit('submit');// @submit="afterAddSubmit" } - this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: tips.isOk?'success':'error' }); + this.$notify({ message: tips.msg, type: tips.isOk?'success':'error' }); }).catch(() => { this.load.add=false }); diff --git a/src/views/mdp/meta/itemOption/ItemOptionEdit.vue b/src/views/mdp/meta/itemOption/ItemOptionEdit.vue index a5b27cbf..c2e0fdee 100644 --- a/src/views/mdp/meta/itemOption/ItemOptionEdit.vue +++ b/src/views/mdp/meta/itemOption/ItemOptionEdit.vue @@ -9,8 +9,8 @@ - - + + @@ -94,7 +94,7 @@ }, //编辑界面数据 ItemOption 数据项取值列表 editForm: { - itemId:'',id:'',optionValue:'',optionName:'',keys:'',isShow:'',seqOrder:'',fp:'',tp:'',sp:'',isDefault:'',cdate:'',branchId:'',deptid:'' + itemId:'',id:'',optionValue:'',optionName:'',Keyes:'',isShow:'',seqOrder:'',fp:'',tp:'',sp:'',isDefault:'',cdate:'',branchId:'',deptid:'' } /**begin 在下面加自定义属性,记得补上面的一个逗号**/ @@ -121,7 +121,7 @@ this.$refs['editForm'].resetFields(); this.$emit('submit');// @submit="afterEditSubmit" } - this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: tips.isOk?'success':'error' }); + this.$notify({ message: tips.msg, type: tips.isOk?'success':'error' }); }).catch(() => { this.load.edit=false }); diff --git a/src/views/mdp/meta/itemOption/ItemOptionMng.vue b/src/views/mdp/meta/itemOption/ItemOptionMng.vue index 50f8a0b0..d8d683f2 100644 --- a/src/views/mdp/meta/itemOption/ItemOptionMng.vue +++ b/src/views/mdp/meta/itemOption/ItemOptionMng.vue @@ -2,34 +2,34 @@ - + - + - 查询 - +字段值 - 删除 - - + + 字段值 + 删除 + + - - - - - - + + + + + + √ × - - + + - 改 - 删 + + @@ -51,7 +51,7 @@ \ No newline at end of file diff --git a/src/views/mdp/sys/branch/BranchSelect.vue b/src/views/mdp/sys/branch/BranchSelect.vue index 4a52e1e3..60a8c6ae 100644 --- a/src/views/mdp/sys/branch/BranchSelect.vue +++ b/src/views/mdp/sys/branch/BranchSelect.vue @@ -1,9 +1,9 @@ - - + + 查询 - + diff --git a/src/views/mdp/sys/dept/DeptTree.vue b/src/views/mdp/sys/dept/DeptTree.vue index c43ec2ce..dccf780f 100644 --- a/src/views/mdp/sys/dept/DeptTree.vue +++ b/src/views/mdp/sys/dept/DeptTree.vue @@ -1,49 +1,62 @@ - - - - - 机构 - - - - - - - - - - - + + + + + 确认 + + + 切换机构 + 部门管理 + + + + + + + + + + + + + + + + - diff --git a/src/views/mdp/sys/userDept/UserDeptEdit.vue b/src/views/mdp/sys/userDept/UserDeptEdit.vue index 9623aa0d..621342eb 100644 --- a/src/views/mdp/sys/userDept/UserDeptEdit.vue +++ b/src/views/mdp/sys/userDept/UserDeptEdit.vue @@ -1,56 +1,75 @@ - - - - - - - - - - - {{user.username}} - 加入的部门及拥有的岗位如下: - - - - - - {{deptPost.postName}} - - - - - - - 取消 - - - 提交 - - - - - - + + + + + + + + + 【{{user.username}}】加入的部门及拥有的岗位如下: + + + + + + + + 部门: {{item.deptName}} + + + + + 请选择岗位 + + + {{deptPost.postName}} + + + + + {{deptPost.postName}} + + + + 该部门还没有设立岗位 + + + + + + + + 取消 + + + 提交 + + + + + + + - + \ No newline at end of file diff --git a/src/views/mdp/workflow/hi/procinst/ProcinstMng.vue b/src/views/mdp/workflow/hi/procinst/ProcinstMng.vue index e9357268..6bb27939 100644 --- a/src/views/mdp/workflow/hi/procinst/ProcinstMng.vue +++ b/src/views/mdp/workflow/hi/procinst/ProcinstMng.vue @@ -714,7 +714,7 @@ if (this.isBatchSetProcTags == true) { //TOD 批量更新后台数据标签 if (!tags || tags.length == 0) { - this.$message.error("最少选中一个标签"); + this.$notify.error("最少选中一个标签"); this.isBatchSetProcTags = false; return; } @@ -746,9 +746,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.isBatchSetProcTags = false)); @@ -773,7 +773,7 @@ showTagSelect: function(isBatchSetProcTags) { if (isBatchSetProcTags == true) { if (this.sels.length == 0) { - this.$message.error("请选中流程任务"); + this.$notify.error("请选中流程任务"); return false; } this.tagSelectVisible = true; diff --git a/src/views/mdp/workflow/re/procdef/ProcdefListForParames.vue b/src/views/mdp/workflow/re/procdef/ProcdefListForParames.vue index 8660ceb4..11aeb925 100644 --- a/src/views/mdp/workflow/re/procdef/ProcdefListForParames.vue +++ b/src/views/mdp/workflow/re/procdef/ProcdefListForParames.vue @@ -278,7 +278,7 @@ export default { if (this.isBatchSetProcTags == true) { //TOD 批量更新后台数据标签 if (!tags || tags.length == 0) { - this.$message.error("最少选中一个标签"); + this.$notify.error("最少选中一个标签"); this.isBatchSetProcTags = false; return; } @@ -306,9 +306,9 @@ export default { 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.isBatchSetProcTags = false)); @@ -333,7 +333,7 @@ export default { showTagSelect: function(isBatchSetProcTags) { if (isBatchSetProcTags == true) { if (this.sels.length == 0) { - this.$message.error("请选中流程任务"); + this.$notify.error("请选中流程任务"); return false; } this.tagSelectVisible = true; diff --git a/src/views/mdp/workflow/re/procdef/ProcdefListForSimpleStart.vue b/src/views/mdp/workflow/re/procdef/ProcdefListForSimpleStart.vue index febea119..58d50bb5 100644 --- a/src/views/mdp/workflow/re/procdef/ProcdefListForSimpleStart.vue +++ b/src/views/mdp/workflow/re/procdef/ProcdefListForSimpleStart.vue @@ -271,7 +271,7 @@ this.flowStartVisible = true; } else if (res.data.data.length > 1) { this.flowStartVisible = false; - this.$message.success("请选中一个流程") + this.$notify.success("请选中一个流程") } } else { diff --git a/src/views/mdp/workflow/re/procdef/ProcdefListForStart.vue b/src/views/mdp/workflow/re/procdef/ProcdefListForStart.vue index 632c0702..e518c53e 100644 --- a/src/views/mdp/workflow/re/procdef/ProcdefListForStart.vue +++ b/src/views/mdp/workflow/re/procdef/ProcdefListForStart.vue @@ -260,7 +260,7 @@ if (this.isBatchSetProcTags == true) { //TOD 批量更新后台数据标签 if (!tags || tags.length == 0) { - this.$message.error("最少选中一个标签"); + this.$notify.error("最少选中一个标签"); this.isBatchSetProcTags = false; return; } @@ -292,9 +292,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.isBatchSetProcTags = false)); @@ -319,7 +319,7 @@ showTagSelect: function(isBatchSetProcTags) { if (isBatchSetProcTags == true) { if (this.sels.length == 0) { - this.$message.error("请选中流程任务"); + this.$notify.error("请选中流程任务"); return false; } this.tagSelectVisible = true; diff --git a/src/views/mdp/workflow/re/procdef/ProcdefMng.vue b/src/views/mdp/workflow/re/procdef/ProcdefMng.vue index 8d7a2350..42537d81 100644 --- a/src/views/mdp/workflow/re/procdef/ProcdefMng.vue +++ b/src/views/mdp/workflow/re/procdef/ProcdefMng.vue @@ -178,7 +178,7 @@ if(this.isBatchSetProcTags==true){ //TOD 批量更新后台数据标签 if(!tags || tags.length==0){ - this.$message.error("最少选中一个标签"); + this.$notify.error("最少选中一个标签"); this.isBatchSetProcTags=false; return; } @@ -205,9 +205,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.isBatchSetProcTags=false); }else{ @@ -232,7 +232,7 @@ showTagSelect:function(isBatchSetProcTags){ if(isBatchSetProcTags==true){ if(this.sels.length==0){ - this.$message.error("请选中流程任务"); + this.$notify.error("请选中流程任务"); return false; } this.tagSelectVisible=true; diff --git a/src/views/mdp/workflow/re/procdef/ProcdefSuspend.vue b/src/views/mdp/workflow/re/procdef/ProcdefSuspend.vue index 62dc21df..525fba95 100644 --- a/src/views/mdp/workflow/re/procdef/ProcdefSuspend.vue +++ b/src/views/mdp/workflow/re/procdef/ProcdefSuspend.vue @@ -254,7 +254,7 @@ export default { if (this.isBatchSetProcTags == true) { //TOD 批量更新后台数据标签 if (!tags || tags.length == 0) { - this.$message.error("最少选中一个标签"); + this.$notify.error("最少选中一个标签"); this.isBatchSetProcTags = false; return; } @@ -283,9 +283,9 @@ export default { 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.isBatchSetProcTags = false)); @@ -310,7 +310,7 @@ export default { showTagSelect: function(isBatchSetProcTags) { if (isBatchSetProcTags == true) { if (this.sels.length == 0) { - this.$message.error("请选中流程任务"); + this.$notify.error("请选中流程任务"); return false; } this.tagSelectVisible = true; diff --git a/src/views/mdp/workflow/re/procdefParames/ProcdefParamesSet.vue b/src/views/mdp/workflow/re/procdefParames/ProcdefParamesSet.vue index 3180579f..997dfc9d 100644 --- a/src/views/mdp/workflow/re/procdefParames/ProcdefParamesSet.vue +++ b/src/views/mdp/workflow/re/procdefParames/ProcdefParamesSet.vue @@ -556,7 +556,7 @@ return tips.join(","); }, showDiagram(){ - this.diagramUrl=config.getBaseDomainUrl()+config.getWorkflowBasePath()+"/mdp/workflow/re/procdef/diagram/"+this.procdef.id; + this.diagramUrl=config.getBaseDomainUrl()+"/"+process.env.VERSION+config.getWorkflowBasePath()+"/mdp/workflow/re/procdef/diagram/"+this.procdef.id; this.displayDiagram=true; }, getFormDefs() { @@ -679,7 +679,7 @@ this.addForm.formId=template.formId this.templateVisible=false; }else{ - this.$message.error("请选一个模板进行导入"); + this.$notify.error("请选一个模板进行导入"); } }, onFormDefForFlowNodeSubmit:function(formDefAndFields){ @@ -696,7 +696,7 @@ }, setAssigneeAsStartUser(nodeInfo){ if(nodeInfo.allowOverUser=='0'){ - this.$message.error("该节点不允许改变执行人") + this.$notify.error("该节点不允许改变执行人") return ; } this.actSelected=nodeInfo diff --git a/src/views/mdp/workflow/ru/execution/ExecutionMng.vue b/src/views/mdp/workflow/ru/execution/ExecutionMng.vue index 5c011037..2b24c84f 100644 --- a/src/views/mdp/workflow/ru/execution/ExecutionMng.vue +++ b/src/views/mdp/workflow/ru/execution/ExecutionMng.vue @@ -768,7 +768,7 @@ if (this.isBatchSetProcTags == true) { //TOD 批量更新后台数据标签 if (!tags || tags.length == 0) { - this.$message.error("最少选中一个标签"); + this.$notify.error("最少选中一个标签"); this.isBatchSetProcTags = false; return; } @@ -800,9 +800,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.isBatchSetProcTags = false); } else { @@ -827,7 +827,7 @@ showTagSelect: function(isBatchSetProcTags) { if (isBatchSetProcTags == true) { if (this.sels.length == 0) { - this.$message.error("请选中流程任务"); + this.$notify.error("请选中流程任务"); return false; } this.tagSelectVisible = true; diff --git a/src/views/mdp/workflow/ru/execution/ExecutionMngForFormData.vue b/src/views/mdp/workflow/ru/execution/ExecutionMngForFormData.vue index 98d20c55..bfbbc4ed 100644 --- a/src/views/mdp/workflow/ru/execution/ExecutionMngForFormData.vue +++ b/src/views/mdp/workflow/ru/execution/ExecutionMngForFormData.vue @@ -393,7 +393,7 @@ if(this.isBatchSetProcTags==true){ //TOD 批量更新后台数据标签 if(!tags || tags.length==0){ - this.$message.error("最少选中一个标签"); + this.$notify.error("最少选中一个标签"); this.isBatchSetProcTags=false; return; } @@ -420,9 +420,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.isBatchSetProcTags=false); }else{ @@ -438,7 +438,7 @@ showTagSelect:function(isBatchSetProcTags){ if(isBatchSetProcTags==true){ if(this.sels.length==0){ - this.$message.error("请选中流程任务"); + this.$notify.error("请选中流程任务"); return false; } this.tagSelectVisible=true; diff --git a/src/views/mdp/workflow/ru/procinstParames/ProcinstNodeInfoSet.vue b/src/views/mdp/workflow/ru/procinstParames/ProcinstNodeInfoSet.vue index ceaa699b..f92f1569 100644 --- a/src/views/mdp/workflow/ru/procinstParames/ProcinstNodeInfoSet.vue +++ b/src/views/mdp/workflow/ru/procinstParames/ProcinstNodeInfoSet.vue @@ -148,7 +148,7 @@ showUserSelectDialog:function(nodeInfoSeleced,index){ if(nodeInfoSeleced.allowOverUser=='0'){ - this.$message.error("当前节点不允许变更执行人") + this.$notify.error("当前节点不允许变更执行人") return; } this.userSelectVisible=true; @@ -156,7 +156,7 @@ }, showCandidateSelectDialog:function(nodeInfoSeleced,index){ if(nodeInfoSeleced.allowOverUser=='0'){ - this.$message.error("当前节点不允许变更执行人") + this.$notify.error("当前节点不允许变更执行人") return; } this.candidateSelectVisible=true; @@ -239,7 +239,7 @@ }, setAssigneeAsStartUser(nodeInfoSeleced){ if(nodeInfoSeleced.allowOverUser=='0'){ - this.$message.error("当前节点不允许变更执行人") + this.$notify.error("当前节点不允许变更执行人") return; } this.nodeInfoSeleced=nodeInfoSeleced diff --git a/src/views/mdp/workflow/ru/procinstParames/ProcinstParamesExecutionSet.vue b/src/views/mdp/workflow/ru/procinstParames/ProcinstParamesExecutionSet.vue index ee0e8f58..523bb299 100644 --- a/src/views/mdp/workflow/ru/procinstParames/ProcinstParamesExecutionSet.vue +++ b/src/views/mdp/workflow/ru/procinstParames/ProcinstParamesExecutionSet.vue @@ -467,7 +467,7 @@ if(this.taskInfo.planFinishTime!=value){ if(!this.sponsors.some(i=>i.userid==this.userInfo.userid)){ //this.addForm.planFinishTime=this.taskInfo.planFinishTime - //this.$message.error("只有主办可以修改计划完成时间"); + //this.$notify.error("只有主办可以修改计划完成时间"); // return; } } @@ -826,7 +826,7 @@ }, showDiagram(){ - this.diagramUrl=config.getBaseDomainUrl()+config.getWorkflowBasePath()+'/mdp/workflow/ru/diagram/'+this.procDefId+'/'+this.procInstId + this.diagramUrl=config.getBaseDomainUrl()+"/"+process.env.VERSION+config.getWorkflowBasePath()+'/mdp/workflow/ru/diagram/'+this.procDefId+'/'+this.procInstId this.displayDiagram=true; }, initBaseUserList(sponsorsAndMonitorsVisible){ @@ -901,7 +901,7 @@ this.tagSelectVisible=false; //TOD 批量更新后台数据标签 if(!tags || tags.length==0){ - this.$message.error("最少选中一个标签"); + this.$notify.error("最少选中一个标签"); return; } this.tagSetLoading=true; @@ -922,9 +922,9 @@ var tagNames=tags.map(i=>i.tagName).join(","); this.addForm.tagIds=tags.map(t=>t.tagId).join(","); this.addForm.tagNames=tags.map(t=>t.tagName).join(","); - this.$message.success("打标签成功"); + this.$notify.success("打标签成功"); }else{ - this.$message.error(res.data.tips.msg); + this.$notify.error(res.data.tips.msg); } }).catch(e=>this.tagSetLoading=false); @@ -949,7 +949,7 @@ if(res.data.tips.isOk){ this.fileList.push(res.data.data); }else{ - this.$message.warning(res.data.tips.msg); + this.$notify.warning(res.data.tips.msg); return false; } }); @@ -979,9 +979,9 @@ } addWorkflowArchive(archive).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); } }); }); @@ -1023,7 +1023,7 @@ }, updateFlowPlanFinishTime:function(){ if(this.addForm.planFinishTime==null || this.addForm.planFinishTime==''){ - this.$message.error("计划完成时间不能为空"); + this.$notify.error("计划完成时间不能为空"); returnn; } this.addLoading=true; @@ -1041,9 +1041,9 @@ this.addLoading=false if(res.data.tips.isOk){ this.refreshCommentList=true; - this.$message.success("更新成功"); + this.$notify.success("更新成功"); }else{ - this.$message.error(res.data.tips.msg); + this.$notify.error(res.data.tips.msg); } }) }, diff --git a/src/views/mdp/workflow/ru/procinstParames/ProcinstParamesStartSet.vue b/src/views/mdp/workflow/ru/procinstParames/ProcinstParamesStartSet.vue index 5b912462..f7f084cd 100644 --- a/src/views/mdp/workflow/ru/procinstParames/ProcinstParamesStartSet.vue +++ b/src/views/mdp/workflow/ru/procinstParames/ProcinstParamesStartSet.vue @@ -502,19 +502,19 @@ }, showDiagram(){ - this.diagramUrl=config.getBaseDomainUrl()+config.getWorkflowBasePath()+"/mdp/workflow/re/procdef/diagram/"+this.procdef.id; + this.diagramUrl=config.getBaseDomainUrl()+"/"+process.env.VERSION+config.getWorkflowBasePath()+"/mdp/workflow/re/procdef/diagram/"+this.procdef.id; this.displayDiagram=true; }, startHandle(){ var date=new Date(); if(!this.monitors || this.monitors.length==0){ - this.$message.error("监控人不能为空"); + this.$notify.error("监控人不能为空"); return; } if(!this.sponsors || this.sponsors.length==0){ - this.$message.error("主办人不能为空"); + this.$notify.error("主办人不能为空"); return; } this.formDataSubmitEvent=date.getTime(); diff --git a/src/views/mdp/workflow/ru/task/TaskMng.vue b/src/views/mdp/workflow/ru/task/TaskMng.vue index c12422fa..6022b017 100644 --- a/src/views/mdp/workflow/ru/task/TaskMng.vue +++ b/src/views/mdp/workflow/ru/task/TaskMng.vue @@ -580,7 +580,7 @@ if (this.isBatchSetProcTags == true) { // TOD 批量更新后台数据标签 if (!tags || tags.length == 0) { - this.$message.error("最少选中一个标签"); + this.$notify.error("最少选中一个标签"); this.isBatchSetProcTags = false; return; } @@ -612,9 +612,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.isBatchSetProcTags = false)); @@ -639,7 +639,7 @@ showTagSelect: function(isBatchSetProcTags) { if (isBatchSetProcTags == true) { if (this.sels.length == 0) { - this.$message.error("请选中流程任务"); + this.$notify.error("请选中流程任务"); return false; } this.tagSelectVisible = true; diff --git a/src/views/mdp/workflow/ru/task/candidate/TaskCandidateSet.vue b/src/views/mdp/workflow/ru/task/candidate/TaskCandidateSet.vue index f8d10771..6552d2de 100644 --- a/src/views/mdp/workflow/ru/task/candidate/TaskCandidateSet.vue +++ b/src/views/mdp/workflow/ru/task/candidate/TaskCandidateSet.vue @@ -198,10 +198,10 @@ this.addUsersLoading=false; if(res.data.tips.isOk){ this.getCandidateUsersData(); - 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); } }).catch(e=>{ this.addUsersLoading=false; @@ -223,10 +223,10 @@ this.addPostsLoading=false; if(res.data.tips.isOk){ this.getCandidatePostsData(); - 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); } }).catch(e=>{ this.addPostsLoading=false; @@ -250,10 +250,10 @@ this.addDeptsLoading=false; if(res.data.tips.isOk){ this.getCandidateDeptsData(); - 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); } }).catch(e=>{ this.addDeptsLoading=false; @@ -272,9 +272,9 @@ delCandidate(params).then(res=>{ if(res.data.tips.isOk){ this.getCandidateUsersData(); - 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); } }); this.selectCandidateUsersVisible=false; @@ -291,9 +291,9 @@ delCandidate(params).then(res=>{ if(res.data.tips.isOk){ this.getCandidatePostsData(); - 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); } }); this.selectCandidatePostsVisible=false; @@ -310,9 +310,9 @@ delCandidate(params).then(res=>{ if(res.data.tips.isOk){ this.getCandidateDeptsData(); - 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); } }); diff --git a/src/views/myWork/message/index.scss b/src/views/myWork/message/index.scss index ca8d1719..fd751905 100644 --- a/src/views/myWork/message/index.scss +++ b/src/views/myWork/message/index.scss @@ -28,8 +28,7 @@ .message_content { margin-top: 20px; - background: #fff; - height: calc(100vh - 172px); + background: #fff; overflow: auto; cursor: pointer; padding: 20px; diff --git a/src/views/myWork/message/index.vue b/src/views/myWork/message/index.vue index 81604af7..25413686 100644 --- a/src/views/myWork/message/index.vue +++ b/src/views/myWork/message/index.vue @@ -2,24 +2,50 @@ - 全部消息 - 审批消息 + 聊天消息 + 客服消息 + 审批流消息 + 任务消息 + 内部公告 + 平台公告 - - - {{item.type}} - {{item.time}} - {{item.text}} - - + + + + + + + + + + + + + + + + + + + +
+ 切换机构 + 部门管理 +
{{item.type}}
{{item.time}}