Commit 9c50416c by 无尘

fix: 修改组织架构

parent 69df0ad1
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css><link href=./static/css/app.2a0c3db1da34c032ba1e49263997b274.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.08583994612428fdcd0f.js></script><script type=text/javascript src=./static/js/vendor.014a23eec35e9d02ede3.js></script><script type=text/javascript src=./static/js/app.cab60607f14f05d6275e.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css><link href=./static/css/app.4c22ee047bb8ef41cff2c088febd136e.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.f9de6316acfb9cc1c234.js></script><script type=text/javascript src=./static/js/vendor.014a23eec35e9d02ede3.js></script><script type=text/javascript src=./static/js/app.cab60607f14f05d6275e.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,n,r){for(var t,d,o,i=0,u=[];i<a.length;i++)d=a[i],f[d]&&u.push(f[d][0]),f[d]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(c&&c(a,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)o=b(b.s=r[i]);return o};var a={},f={63:0};function b(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,b){c=f[e]=[a,b]});c[2]=a;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,b.nc&&r.setAttribute("nonce",b.nc),r.src=b.p+"static/js/"+e+"."+{0:"937e457e590c16cf534f",1:"06c4e42e62c1f75191f0",2:"2c1f5f8d61c812476bea",3:"8e4686ec8b712d703eb2",4:"6397838f67f240e44931",5:"bf21cfa1832c94ed8d4c",6:"aadb949ab3bea612d805",7:"c9ccf52380a5efb8720c",8:"872afc6f0c6c0be091e8",9:"aa16369ac132fab2a89c",10:"935a69797af3baaa97b8",11:"73a9b934417c9bc16fc6",12:"59db86ef512a3a65e1ce",13:"ebba5b82c2826c9ba6e1",14:"a49fd9e52a864dbd5831",15:"3719b48003ce60ac35cf",16:"880047853fa23da0e4eb",17:"fca3406ba0423dbc034e",18:"31d8270b74259075ac18",19:"7a53269ddf9f15768789",20:"1ff87ac578a8c1455a10",21:"9e35f4bb567c79f900c4",22:"4657c811baa7a2a81fa8",23:"b696c3789461b84413c4",24:"58c7c6c2d8897eb7c474",25:"9e5733792c18c643ff3a",26:"dba4d3332f3dbc9d7649",27:"8c00b479947588ae7b2c",28:"110ab7e5f64abacf9778",29:"cebf604cf1225f47e634",30:"7c1e52b5c0d36e8632c1",31:"3c38b82373fa7e0a809a",32:"d68d3e9c2138e9b0b094",33:"17b587ea836e40e85f6c",34:"fe5fa10071f728bce540",35:"58646980a26370faba20",36:"11a1a313d8ff29508d13",37:"4eb8995550564944b43d",38:"2b9cdeede733af9be322",39:"9aa77e3defecaceb244e",40:"5c88eb3d24b8c0c5c765",41:"754895d6e8968f855a79",42:"43bbedbec5d68a86dac1",43:"87c1782754b0b05f7608",44:"aa371b07acf3ccb8cf7b",45:"67d74a26606b9aaaaf36",46:"533788c46e1defe672d3",47:"12481e6bfc90de853c84",48:"31977b1cfef3f8807123",49:"15bc78cea887de215d32",50:"c2932bcd17cb7bb00ef7",51:"6ecd1c76f129643c28a8",52:"763413fcd4e918278c7c",53:"63a56532e0b00a60682a",54:"5953756da77aa423a0f0",55:"507e3a26f9dc9383df97",56:"0c71414a670bc8546178",57:"1a7102c508e3c1a0a222",58:"a7fa96edb1538ed5b7ff",59:"c71bd5036dd611ea623a",60:"775007688f0115e168fb"}[e]+".js";var t=setTimeout(d,12e4);function d(){r.onerror=r.onload=null,clearTimeout(t);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return r.onerror=r.onload=d,n.appendChild(r),a},b.m=e,b.c=a,b.d=function(e,c,a){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,n,r){for(var d,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(d in n)Object.prototype.hasOwnProperty.call(n,d)&&(e[d]=n[d]);for(c&&c(a,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)o=b(b.s=r[i]);return o};var a={},f={63:0};function b(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,b){c=f[e]=[a,b]});c[2]=a;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,b.nc&&r.setAttribute("nonce",b.nc),r.src=b.p+"static/js/"+e+"."+{0:"937e457e590c16cf534f",1:"06c4e42e62c1f75191f0",2:"d4743236110d9eea460a",3:"a97b31cca482f40d5c87",4:"6397838f67f240e44931",5:"bf21cfa1832c94ed8d4c",6:"aadb949ab3bea612d805",7:"c9ccf52380a5efb8720c",8:"872afc6f0c6c0be091e8",9:"aa16369ac132fab2a89c",10:"935a69797af3baaa97b8",11:"73a9b934417c9bc16fc6",12:"59db86ef512a3a65e1ce",13:"ebba5b82c2826c9ba6e1",14:"a49fd9e52a864dbd5831",15:"3719b48003ce60ac35cf",16:"880047853fa23da0e4eb",17:"fca3406ba0423dbc034e",18:"31d8270b74259075ac18",19:"7a53269ddf9f15768789",20:"1ff87ac578a8c1455a10",21:"9e35f4bb567c79f900c4",22:"4657c811baa7a2a81fa8",23:"b696c3789461b84413c4",24:"58c7c6c2d8897eb7c474",25:"9e5733792c18c643ff3a",26:"dba4d3332f3dbc9d7649",27:"8c00b479947588ae7b2c",28:"110ab7e5f64abacf9778",29:"cebf604cf1225f47e634",30:"7c1e52b5c0d36e8632c1",31:"3c38b82373fa7e0a809a",32:"d68d3e9c2138e9b0b094",33:"17b587ea836e40e85f6c",34:"fe5fa10071f728bce540",35:"58646980a26370faba20",36:"11a1a313d8ff29508d13",37:"4eb8995550564944b43d",38:"2b9cdeede733af9be322",39:"9aa77e3defecaceb244e",40:"5c88eb3d24b8c0c5c765",41:"754895d6e8968f855a79",42:"43bbedbec5d68a86dac1",43:"87c1782754b0b05f7608",44:"aa371b07acf3ccb8cf7b",45:"67d74a26606b9aaaaf36",46:"533788c46e1defe672d3",47:"12481e6bfc90de853c84",48:"31977b1cfef3f8807123",49:"15bc78cea887de215d32",50:"c2932bcd17cb7bb00ef7",51:"6ecd1c76f129643c28a8",52:"763413fcd4e918278c7c",53:"63a56532e0b00a60682a",54:"5953756da77aa423a0f0",55:"507e3a26f9dc9383df97",56:"0c71414a670bc8546178",57:"1a7102c508e3c1a0a222",58:"a7fa96edb1538ed5b7ff",59:"c71bd5036dd611ea623a",60:"775007688f0115e168fb"}[e]+".js";var d=setTimeout(t,12e4);function t(){r.onerror=r.onload=null,clearTimeout(d);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return r.onerror=r.onload=t,n.appendChild(r),a},b.m=e,b.c=a,b.d=function(e,c,a){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -3,7 +3,7 @@
* @Author : 无尘
* @Date : 2020-02-13 14:02:22
* @LastEditors: 无尘
* @LastEditTime: 2020-04-14 16:51:10
* @LastEditTime: 2020-04-15 17:44:00
* @FilePath : \Hapi-demoj:\公司\haoban-3\src\components\company\depart-list.vue
-->
<!--
......@@ -137,6 +137,32 @@ export default {
};
},
methods: {
/**
* 获取同步状态
*/
getStatus() {
const that = this;
return new Promise((resolve, reject) => {
let para = {};
getRequest('/haoban-manage3-web/department-sync-check', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
resolve(resData.result);
return false;
}
resolve(false);
errMsg.errorMsg(resData);
})
.catch(function(error) {
resolve(false);
that.$message.error({
duration: 1000,
message: error.message
});
});
});
},
toLog() {
window.open('/haoban-3/#/syncLog');
},
......@@ -158,6 +184,11 @@ export default {
},
async toMod() {
const that = this;
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
if (!that.departmentName) {
showMsg.showmsg('请输入部门名称!', 'warning');
return false;
......@@ -240,8 +271,13 @@ export default {
/**
* 新建子部门
*/
addChildPart(item) {
async addChildPart(item) {
const that = this;
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
that.partVisible = true;
},
/**
......
......@@ -3,7 +3,7 @@
* @Author : 无尘
* @Date : 2020-02-13 14:02:40
* @LastEditors: 无尘
* @LastEditTime: 2020-03-23 17:16:09
* @LastEditTime: 2020-04-15 17:47:31
* @FilePath : \Hapi-demoj:\公司\haoban-3\src\components\company\depart-member.vue
-->
<!--
......@@ -124,6 +124,32 @@ export default {
},
methods: {
/**
* 获取同步状态
*/
getStatus() {
const that = this;
return new Promise((resolve, reject) => {
let para = {};
getRequest('/haoban-manage3-web/department-sync-check', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
resolve(resData.result);
return false;
}
resolve(false);
errMsg.errorMsg(resData);
})
.catch(function(error) {
resolve(false);
that.$message.error({
duration: 1000,
message: error.message
});
});
});
},
/**
* 可选设置
**/
selectInit(row, index) {
......@@ -157,8 +183,13 @@ export default {
/**
* 调整部门
*/
modifyDepart() {
async modifyDepart() {
const that = this;
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
if (!that.multipleSelection.length) {
showMsg.showmsg('请先选择成员!', 'warning');
return false;
......@@ -178,9 +209,13 @@ export default {
/**
* 邀请
*/
toInvite(item) {
async toInvite(item) {
const that = this;
console.log(item);
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
if (item) {
that.postInvite(item);
return false;
......@@ -219,8 +254,13 @@ export default {
/**
* 删除
*/
toDel() {
async toDel() {
const that = this;
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
if (!that.multipleSelection.length) {
showMsg.showmsg('请先选择成员!', 'warning');
return false;
......@@ -254,8 +294,13 @@ export default {
/**
* 显示详情弹窗
*/
showDetail(item) {
async showDetail(item) {
const that = this;
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
that.memberObj = item;
that.memberVisible = true;
},
......@@ -263,8 +308,13 @@ export default {
/**
* 新建成员
*/
addMember() {
async addMember() {
const that = this;
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
// 默认当前部门
that.defaultDepart = [that.departObj];
that.memberVisible = true;
......
......@@ -2,8 +2,8 @@
* @Descripttion : 当前组件信息
* @Author : 无尘
* @Date : 2020-02-13 14:02:40
* @LastEditors : 无尘
* @LastEditTime : 2020-03-31 09:51:19
* @LastEditors: 无尘
* @LastEditTime: 2020-04-15 17:49:22
* @FilePath : \Hapi-demoj:\公司\haoban-3\src\components\company\store-member.vue
-->
<!--
......@@ -135,6 +135,32 @@ export default {
},
methods: {
/**
* 获取同步状态
*/
getStatus() {
const that = this;
return new Promise((resolve, reject) => {
let para = {};
getRequest('/haoban-manage3-web/department-sync-check', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
resolve(resData.result);
return false;
}
resolve(false);
errMsg.errorMsg(resData);
})
.catch(function(error) {
resolve(false);
that.$message.error({
duration: 1000,
message: error.message
});
});
});
},
/**
* 可选设置
**/
selectInit(row, index) {
......@@ -235,8 +261,13 @@ export default {
/**
* 调整部门
*/
modifyDepart() {
async modifyDepart() {
const that = this;
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
if (!that.multipleSelection.length) {
showMsg.showmsg('请先选择成员!', 'warning');
return false;
......@@ -256,9 +287,13 @@ export default {
/**
* 邀请
*/
toInvite(item) {
async toInvite(item) {
const that = this;
console.log(item);
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
if (item) {
that.postInvite(item);
return false;
......@@ -298,8 +333,13 @@ export default {
/**
* 删除
*/
toDel() {
async toDel() {
const that = this;
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
if (!that.multipleSelection.length) {
showMsg.showmsg('请先选择成员!', 'warning');
return false;
......@@ -334,8 +374,13 @@ export default {
/**
* 显示详情弹窗
*/
showDetail(item) {
async showDetail(item) {
const that = this;
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
that.memberObj = item;
that.memberVisible = true;
},
......@@ -343,8 +388,13 @@ export default {
/**
* 新建成员
*/
addMember() {
async addMember() {
const that = this;
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
// 默认当前部门
that.defaultDepart = [that.departObj];
that.memberVisible = true;
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-08-14 16:51:07
* @LastEditors: 无尘
* @LastEditTime: 2020-04-15 11:07:49
* @LastEditTime: 2020-04-15 17:38:36
-->
<!--
<wx-tree v-model="itemData" ></wx-tree>
......@@ -531,8 +531,13 @@ export default {
/**
* 添加子部门
*/
addChild(item) {
async addChild(item) {
const that = this;
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
that.addShow = true;
that.additem = item;
that.modItem = {};
......@@ -540,13 +545,45 @@ export default {
/**
* 修改名称
*/
modChild(item) {
async modChild(item) {
const that = this;
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
that.modItem = item;
that.addShow = true;
that.$forceUpdate();
},
/**
* 获取同步状态
*/
getStatus() {
const that = this;
return new Promise((resolve, reject) => {
let para = {};
getRequest('/haoban-manage3-web/department-sync-check', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
resolve(resData.result);
return false;
}
resolve(false);
errMsg.errorMsg(resData);
})
.catch(function(error) {
resolve(false);
that.$message.error({
duration: 1000,
message: error.message
});
});
});
},
async refreshData(name, mod) {
const that = this;
that.addShow = false;
......@@ -734,6 +771,11 @@ export default {
*/
async delChild(item) {
const that = this;
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
let key = '';
that.itemData.forEach((ele, index) => {
if (ele.departmentId == item.departmentId) {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-04-15 17:09:17
* @LastEditTime: 2020-04-15 17:32:09
-->
<template>
<div class="my-customer-wrap common-set-wrap">
......@@ -411,8 +411,13 @@ export default {
/**
* 添加子部门(实时操作)
*/
addChild(item) {
async addChild(item) {
const that = this;
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
// console.log('添加:', item);
that.addDepartShow = true;
that.additem = item;
......@@ -420,8 +425,13 @@ export default {
/**
* 修改名称(实时操作)
*/
modChild(item) {
async modChild(item) {
const that = this;
const tag = await that.getStatus();
if (!!tag && tag.syncStatus == 1 && tag.syncStatus == 2 && tag.syncStatus == 3) {
showMsg.showmsg('通讯录同步中,暂无法操作', 'warning');
return false;
}
// console.log('修改:', item);
that.modItem = item;
that.addDepartShow = true;
......@@ -726,6 +736,33 @@ export default {
/**
* 获取同步状态
*/
getStatus() {
const that = this;
return new Promise((resolve, reject) => {
let para = {};
getRequest('/haoban-manage3-web/department-sync-check', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
that.syncStatusData = resData.result || {};
resolve(resData.result);
return false;
}
resolve(false);
errMsg.errorMsg(resData);
})
.catch(function(error) {
resolve(false);
that.$message.error({
duration: 1000,
message: error.message
});
});
});
},
/**
* 获取同步状态
*/
getSyncStatus() {
const that = this;
let para = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment