提交 fcf2a21d 编写于 作者: 刘英杰's avatar 刘英杰

增加 添加值班姓名带出相关信息

上级 c58b9a42
流水线 #22902 已失败 ,包含阶段
in 1 minute 和 27 second
.DS_Store
node_modules
/dist
#/dist
# Log files
npm-debug.log*
......@@ -16,4 +16,4 @@ yarn-error.log*
*.sln
*.sw*
*.zip
*.rar
\ No newline at end of file
*.rar
default:
before_script:
- chcp 65001
stages:
- publish
build:
stage: publish
script:
- remove-item -Force -Recurse D:\ASC_web\A00051\dutyManagement\pc*
- xcopy "dist" "D:\ASC_web\A00051\dutyManagement\pc" /s/e/y/
only:
- pc
.alert-mask {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 99999;
background: rgba(0, 0, 0, 0.2);
opacity: 1;
line-height: 1.6;
font-family: -apple-system-font, "Helvetica Neue", sans-serif;
margin: 0;
padding: 0;
}
.alert-box {
position: fixed;
z-index: 5000;
width: 80%;
max-width: 300px;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
background-color: #FFFFFF;
text-align: center;
border-radius: 3px;
overflow: hidden;
}
.alert-box__header {
margin: 0;
padding: 0;
}
.alert-box__title {
margin: 0;
padding: 0;
}
.alert-box__content {
margin: 0;
padding: 0;
}
.alert-box__content:first-child {
padding: 2.7em 20px 1.7em;
color: #353535;
}
.alert-box__message p {
min-height: 40px;
font-size: 15px;
line-height: 1.3;
word-wrap: break-word;
word-break: break-all;
}
.alert-box__btns {
position: relative;
line-height: 48px;
font-size: 18px;
display: flex;
}
.alert-box__button {
padding: 0;
margin: 0;
display: block;
-webkit-box-flex: 1;
-webkit-flex: 1;
flex: 1;
color: #0BB20C;
text-decoration: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
position: relative;
line-height: 48px;
font-size: 18px;
font-family: -apple-system-font, "Helvetica Neue", sans-serif;
border: 1px solid #f6f6f6;
background-color:rgba(0, 0, 0, 0);
}
.alert-mask {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 99999;
background: rgba(0, 0, 0, 0.2);
opacity: 1;
}
.alert-box {
display: inline-block;
width: 420px;
padding-bottom: 10px;
vertical-align: middle;
background-color: #fff;
border-radius: 4px;
border: 1px solid #ebeef5;
font-size: 18px;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
text-align: left;
overflow: hidden;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.alert-box__header {
position: relative;
padding: 15px 15px 10px;
}
.alert-box__title {
padding-left: 0;
margin-bottom: 0;
font-size: 18px;
line-height: 1;
color: #303133;
}
.alert-box__content {
padding: 10px 15px;
color: #606266;
font-size: 14px;
}
.alert-box__message p {
margin: 0;
line-height: 24px;
display: block;
margin-inline-start: 0px;
margin-inline-end: 0px;
}
.alert-box__btns {
padding: 5px 15px 0;
text-align: right;
}
.alert-box__button {
display: inline-block;
line-height: 1;
white-space: nowrap;
cursor: pointer;
background: #fff;
border: 1px solid #409eff;
-webkit-appearance: none;
text-align: center;
box-sizing: border-box;
outline: 0;
margin: 0;
transition: .1s;
font-weight: 500;
padding: 12px 20px;
color: #fff;
background-color: #409eff;
font-size: 12px;
border-radius: 3px;
letter-spacing: normal;
word-spacing: normal;
text-transform: none;
text-indent: 0px;
text-shadow: none;
-webkit-writing-mode: horizontal-tb !important;
text-rendering: auto;
align-items: flex-start;
}
\ No newline at end of file
/*统一登录*/
(function () {
var Identify = function () {
var serverpage = 'asc.hnasct.cn';//服务器地址
var wbpro = 'wss:';
var pro = 'https:';
//配置的时候请在此处修改参数
var options = {
filename: 'identify.js',//文件名
limitbrowser: '0',//限制必须使用google浏览器
os: 'wx|dd',//支持的系统
jwtserver: pro + '//' + serverpage + '/a/',//认证地址
appserver: pro + '//' + serverpage + '/w/',//app服务地址
websocketserver: wbpro + '//' + serverpage + '/ws/distributewebsocket/init',//服务器地址
mainpagepatten: '/^' + StringToReg(pro + '//' + serverpage) + '[\?\/]?[\?\#]?[\/]?[\?]?(&&&)?' + '$/i',//主页
mainpage: pro + '//' + serverpage + '/#/?',//pc认证主页
mainjump: 'http://localhost:3000/',//pc跳转主页
apppage: pro + '//' + serverpage + '/a/manager/identify/apppage.html',//app认证主页
appjump: pro + '//' + serverpage + '/a/manager/identify/jump.html',//app主页
opensocket: '1',//是否打开websocket,1打开,0不打开,开启socket后消息都从socket获取响应
tokenname: 'token',//token的名字
tokentime: '120',//token的有效时间(分钟)
savetype: '0',//0为cookie方式存储token,1为localStorage方式
autojump: '5',//自动跳转登录主页的时间(秒),0为立即跳转,-1为不跳转
jumplevel: '1',//1为顶层跳转,0为当前页面跳转
pwdlength: '8',//要求密码最短长度
usertype: 'c',//指定用户类型
refresh: '1',//支持强行刷新系统token(主要使用在js的u参数为a或者用户类型时)
debug: '1',//是否开启测试模式
};
//环境内容
var userAgent = window.navigator.userAgent;
//判断微信、钉钉或者PC页面
var os = 'pc';
if (userAgent.search(/micromessenger/i) != -1) {
os = 'wx';
} else if (userAgent.search(/dingtalk/i) != -1) {
os = 'dd';
}
//第三方认证或者内部系统对接
var extsys = null;
//获取当前页面的链接地址
var extjump = GetQueryString('extjump');//外部系统登录跳转地址,主要对接外部系统认证
var extkey, extlgt, extsign;
var pathname = GetUrl();
if (extjump) {//存在外部系统跳转
extjump = decodeURIComponent(extjump);
SaveParams('extjump', extjump, options.tokentime);
extkey = GetQueryString('extkey');
extlgt = GetQueryString('extlgt');
extsign = GetQueryString('extsign');
pathname = DelParamFromUrl(pathname, 'extjump');
pathname = DelParamFromUrl(pathname, 'extkey');
pathname = DelParamFromUrl(pathname, 'extlgt');
pathname = DelParamFromUrl(pathname, 'extsign');
if (extkey) {//第三方调用
extsys = { extjump: extjump, extkey: extkey, extlgt: extlgt, extsign: extsign };
} else {//内部对接
extsys = { extjump: extjump };
}
} else {
pathname = DelParamFromUrl(pathname, 'token');
}
pathname = pathname.replace(/\s+$/, '');//消除url里面的空格
//获取js自带信息
var jsinfo = GetIdentifyJSInfo();
options.debug == '1' && console.log(jsinfo, options);
//限制使用谷歌浏览器
if (os == 'pc' && options.limitbrowser == '1') {
if (userAgent.match(/Chrome\/([\d.]+)/)) {
var temp = userAgent.substring(userAgent.indexOf('Chrome') + 7, userAgent.indexOf('Safari')).split('.');
if (parseInt(temp[0]) < 48) {
alert('谷歌浏览器版本过低,请下载最新版本!');
top.location.href = 'https://www.google.cn/chrome/';
return;
}
} else {
alert('本系统推荐使用谷歌浏览器,请下载安装谷歌浏览器!');
top.location.href = 'https://www.google.cn/chrome/';
return;
}
}
if (!(this instanceof Identify)) {
return new Identify();
}
var _this = this;
//消除字符串中与正则表达式特殊符号
function StringToReg(s) {
s = s.replace(/([\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}])/g, '\\\$1');
return s;
}
//从引入的js链接获取options的参数
function SetOptions(pathname) {
var k = Object.keys(options);
for (var i = 0; i < k.length; i++) {
var q = GetQueryString(k[i], pathname);
if (q !== false) {
options[k[i]] = decodeURIComponent(q);
}
}
}
//对象赋值
function ObjectExtend(target, source) {
if (source) {
var key = Object.keys(source);
for (var i = 0; i < key.length; i++) {
target[key[i]] = source[key[i]];
}
}
}
//跳转(锚点跳转也会强行刷新页面)
function Jump(url) {
var jurl = url;
var a = jurl.indexOf('#');
if (a != -1) jurl = jurl.substring(0, a);
var curl = '';
if (options.jumplevel == '1') {
curl = top.location.href;
} else {
curl = self.location.href;
}
var b = curl.indexOf('#');
if (b != -1) curl = curl.substring(0, b);
if (options.jumplevel == '1') {
top.location.href = url;
if (jurl == curl) setTimeout(function () { top.location.reload(); }, 500);
} else {
self.location.href = url;
if (jurl == curl) setTimeout(function () { self.location.reload(); }, 500);
}
}
//获取当前页面url
function GetUrl() {
return self.location.href;
}
//判断是否是登录主页
function IsMainPage(pathname) {
pathname = pathname.replace(/[^:](\/)\1+/g, '/');//将多个'/'符号合并成1个,如果前面为':'符号则合并成2个
return eval(options.mainpagepatten).test(pathname);
}
//判断是否是app登录
function IsAppOS(os) {
return options.os.indexOf(os) != -1;
}
//判断是否是app主页
function IsAppPage(pathname) {
return pathname.search(/([\/]|^)apppage.html[\?\#\&]?/i) != -1;
}
//获取引入js文件所携带的信息(如果实际目录中出现空格将无法获取js文件的信息)
function GetIdentifyJSInfo() {
var obj = document.getElementsByTagName('script');
var res = {};
//加载所有相关js
for (var i = 0; i < obj.length; i++) {
if (obj[i].getAttribute('src')) {
filepath = obj[i].getAttribute('src').replace(/\s+$/, '');
var pl = filepath.toLowerCase().indexOf(options.filename.toLocaleLowerCase());
if (pl != -1) {
SetOptions(filepath);
var scriptparentnode = obj[i].parentNode;
filepath = filepath.substring(0, pl).toLowerCase();
res = { scriptparentnode: scriptparentnode, filepath: filepath };
break;
}
}
}
res['document'] = document;
res['self'] = true;
if (options.jumplevel == '1') {
//查找是否在iframe里面
try {//防止跨域失败
if (top.document != document) {
res['document'] = top.document;
res['self'] = false;
}
} catch (ex) {
top.location = location;
}
}
return res;
}
//动态加载css代码
function LoadStyle(obj, src, callback) {
var link = jsinfo['document'].createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = src;
link.addEventListener('load', function () {
if (callback) callback();
}, false);
obj.appendChild(link);
}
//动态加载指定css文件
function LoadStyleFile(cssfile, callback) {
var loadcount = 0;
var o = (jsinfo['self'] ? jsinfo.scriptparentnode : jsinfo['document'].body);
for (var k = 0; k < cssfile.length; k++) {
LoadStyle(o, jsinfo.filepath + cssfile[k], function () {
loadcount++;
if (loadcount == cssfile.length) {
if (callback) callback();
}
});
}
}
//动态加载js代码
function LoadScript(obj, src, callback) {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = src;
script.addEventListener('load', function () {
if (callback) callback();
}, false);
obj.appendChild(script);
}
//动态加载指定js文件
function LoadScriptFile(jsfile, callback) {
var loadcount = 0;
for (var k = 0; k < jsfile.length; k++) {
LoadScript(jsinfo.scriptparentnode, jsinfo.filepath + jsfile[k], function () {
loadcount++;
if (loadcount == jsfile.length) {
if (callback) callback();
}
});
}
}
//url添加参数
function AddParamToUrl(url, param, value) {
var q = url.indexOf('?' + param + '=');
var h = url.indexOf('#' + param + '=');
var a = url.indexOf('&' + param + '=');
var p = url.length;
if (q != -1 && p > q) p = q;
if (h != -1 && p > h) p = h;
if (a != -1 && p > a) p = a;
var u, p1;
if (p == url.length) {//没有相同参数
q = url.lastIndexOf('?');
h = url.lastIndexOf('#');
a = url.lastIndexOf('&');
b = url.lastIndexOf('/');
p1 = -1;
if (q != -1 && p1 < q) p1 = q;
if (h != -1 && p1 < h) p1 = h;
if (a != -1 && p1 < a) p1 = a;
if (p1 == -1 || p1 != q && p1 < b) {//url没有参数
return url + '?' + param + '=' + value;
} else if (p1 == url.length - 1 || b == url.length - 1) {
return url + param + '=' + value;
} else {
return url + '&' + param + '=' + value;
}
} else {
u = url.substring(p + param.length + 2);
q = u.indexOf('?');
h = u.indexOf('#');
a = u.indexOf('&');
var p1 = u.length;
if (q != -1 && p1 > q) p1 = q;
if (h != -1 && p1 > h) p1 = h;
if (a != -1 && p1 > a) p1 = a;
if (p1 == u.length) {//参数后面没有其他参数
return url.substring(0, p + param.length + 2) + value;
} else {
return url.substring(0, p + param.length + 2) + value + u.substring(p1);
}
}
}
//url删除参数
function DelParamFromUrl(url, param) {
while (true) {
var q = url.indexOf('?' + param + '=');
var h = url.indexOf('#' + param + '=');
var a = url.indexOf('&' + param + '=');
var p = url.length;
if (q != -1 && p > q) p = q;
if (h != -1 && p > h) p = h;
if (a != -1 && p > a) p = a;
if (p == url.length) break;
var u = url.substring(p + 1);
var pp = p;
p = u.length;
q = u.indexOf('?');
h = u.indexOf('#');
a = u.indexOf('&');
if (q != -1 && p > q) p = q;
if (h != -1 && p > h) p = h;
if (a != -1 && p > a) p = a;
url = url.substring(0, pp + 1) + u.substring(p);
}
return url;
}
//获取GET参数(获取query或hash的第一个token)
function GetQueryString(name, url) {
if (!url) url = GetUrl();
var q = url.indexOf('?' + name + '=');
var h = url.indexOf('#' + name + '=');
var a = url.indexOf('&' + name + '=');
var p = url.length;
if (q != -1 && p > q) p = q;
if (h != -1 && p > h) p = h;
if (a != -1 && p > a) p = a;
var u, p1;
if (p != url.length) {//有参数
u = url.substring(p + name.length + 2);
q = u.indexOf('?');
h = u.indexOf('#');
a = u.indexOf('&');
var p1 = u.length;
if (q != -1 && p1 > q) p1 = q;
if (h != -1 && p1 > h) p1 = h;
if (a != -1 && p1 > a) p1 = a;
return u.substring(0, p1);
}
return false;
}
//判断是否是登录主页
var ismg;
//判断是否是app
var isapp;
//判断是否是app登录主页
var isapppage;
//websocket
var ws = null;
var socketid = '';
//遮罩层id
var mask = 'systemmasklayer' + Date.now();
//模块id和对应的权限
var module_id = 0;
var permission = {};
//初始化
function Init() {
ismg = IsMainPage(pathname);//判断是否是登录主页
isapp = IsAppOS(os);//判断是否是app登录
isapppage = IsAppPage(pathname);
options.debug == '1' && console.log(ismg, extsys);
socketid = os + '.' + Date.now();
if (!extsys) {//非第三方验证,或者内部单点
var lasturl;//恢复跳转地址
if (!ismg) {
lasturl = GetUrl();
SaveParams('lasturl', lasturl, options.tokentime);
}
var token = GetQueryString('token');
var refresh = isapp;
if (token) {//其它页面单点,获取传过来的token
var st = IsTokenOvertime(token);
if (st == 1 || st == 2) {
SaveParams(options.tokenname, token, options.tokentime);
refresh = false;//新获取的token可以不用强制刷新
}
}
var utk = GetParams(options.tokenname);
try {
var info = JSON.parse(window.atob(utk.split('.')[1]));
if (options.usertype == 'c' || options.usertype == info['usertype']) {//js指定c类型,token和js指定类型用户一致不刷新
refresh = false;
}
} catch (ex) {
}
socketid += '.' + options.usertype;
var st = IsTokenOvertime();
if (!(st == 1 || st == 2) || options.refresh == '1' && refresh) {//token超时或者不存在
if (isapp) {//APP登录
if (!lasturl) {//上次跳转不存在,跳回主页
lasturl = GetUrl();
}
var url = options.jwtserver + 'jwtservermanager/applogin?state=' + socketid + '&lasturl=' + encodeURIComponent(lasturl);
Jump(url);
return;
} else {//页面登录
if (!ismg) {
PCAutoJump();
return;
}
}
} else {
if (ismg) {
var lasturl = GetParams('lasturl');
if (lasturl) {
var t = GetQueryString('token', lasturl);
if (t !== false) {
t = GetParams('token');
lasturl = AddParamToUrl(lasturl, 'token', t);
}
Jump(lasturl);
return;
}
} else {
ClearParams('lasturl');
}
}
} else {
socketid += '.' + options.usertype;
if (!ismg && !(isapp && isapppage)) {//防止错误,非主页跳转到主页
var url = options.mainpage;
url = AddParamToUrl(url, 'extjump', encodeURIComponent(extsys.extjump));
if (extsys.extkey) {
url = AddParamToUrl(url, 'extkey', extsys.extkey);
url = AddParamToUrl(url, 'extlgt', extsys.extlgt);
url = AddParamToUrl(url, 'extsign', extsys.extsign);
}
Jump(url);
return;
}
if (isapp) {//APP登录
var url = options.jwtserver + 'jwtservermanager/applogin?state=' + socketid;
url = AddParamToUrl(url, 'extjump', encodeURIComponent(extsys.extjump));
if (extsys.extkey) {
url = AddParamToUrl(url, 'extkey', extsys.extkey);
url = AddParamToUrl(url, 'extlgt', extsys.extlgt);
url = AddParamToUrl(url, 'extsign', extsys.extsign);
}
Jump(url);
return;
}
}
if (options.opensocket == '1') {//页面登录才允许开启websocket
ws = new WebSocket(options.websocketserver + '?socketId=' + socketid);//创建WebSocket连接
socketid = '';
//申请一个WebSocket对象,参数是服务端地址,同http协议使用http://开头一样,WebSocket协议的url使用ws://开头,另外安全的WebSocket协议使用wss://开头
ws.onopen = function (e) {
//当WebSocket创建成功时,触发onopen事件
options.debug == '1' && console.log(e);
}
ws.onmessage = function (e) {
//当客户端收到服务端发来的消息时,触发onmessage事件,参数e.data包含server传递过来的数据
options.debug == '1' && console.log(e.data);
var res = JSON.parse(e.data);
if (res.status != 'init') {
var t1 = GetParams(options.tokenname);
//刷新token
if (res.newtoken) SaveParams(options.tokenname, res.newtoken, options.tokentime);
else SaveParams(options.tokenname, res.token, options.tokentime);
var t2 = GetParams(options.tokenname);
if (t1 != t2 && _this.onChange) _this.onChange(t1, t2);
}
switch (res.code) {
case 1001://超时、注销、强制退出
case 2000://系统错误
LogoutOP(res);
break;
default:
switch (res.status) {
case 'init':
socketid = res.data;
var pl = GetTokenInfo();
if (!ismg && (st == 2 || st == 1 && pl['sid'] != socketid)) RefreshToken(false);//不建议使用同步刷新
if (_this.onReady) _this.onReady();
else _this.onReady = true;//已经执行
break;
case 'login':
case 'applogin':
case 'apploginselect':
LoginOP(res);
break;
case 'relogin':
if (_this.onRefreshToken) _this.onRefreshToken(res);
break;
case 'changeuser':
if (_this.onChangeUser) _this.onChangeUser(res);
break;
case 'changepassword':
if (_this.onChangePassword) _this.onChangePassword(res);
break;
}
}
}
ws.onclose = function (e) {
//当客户端收到服务端发送的关闭连接请求时,触发onclose事件
options.opensocket = '0';//连接失败取消使用websocket,无法扫码登录
options.debug == '1' && console.log(e);
socketid = '';
}
ws.onerror = function (e) {
//如果出现连接、处理、接收、发送数据失败的时候触发onerror事件
options.opensocket = '0';//连接失败取消使用websocket,无法扫码登录
options.debug == '1' && console.log(e);
socketid = '';
}
}
}
//非APP页面自动跳转
function PCAutoJump() {
var refreshtime = parseInt(options.autojump);
if (refreshtime >= 0) {
if (refreshtime) {
var body = jsinfo['document'].createElement('body');
var div = jsinfo['document'].createElement('div');
div.setAttribute('id', mask);
div.style.cssText = 'width:100%;height:1200px;position:fixed;top:0;left:0;z-index:99999;text-align:center;background:rgba(255,255,255,1);opacity:1;';
if (!jsinfo['document'].body) { jsinfo['document'].body = body; }
jsinfo['document'].body.appendChild(div);
jsinfo['document'].body.parentNode.style.overflow = 'hidden';
div.innerHTML = '<br/>登录超时,页面将在<font style="color:red;font-weight:bold;font-size:20px;">' + refreshtime + '</font>秒内跳转到登录界面';
var timer = setInterval(function () {
refreshtime--;
if (refreshtime <= 0) {
clearInterval(timer);
var u = GetParams('lasturl');
u = AddParamToUrl(options.mainpage, 'extjump', encodeURIComponent(u))
Jump(u);
}
div.innerHTML = '<br/>登录超时,页面将在<font style="color:red;font-weight:bold;font-size:20px;">' + refreshtime + '</font>秒内跳转到登录界面';
}, 1000);
} else {
var u = GetParams('lasturl');
u = AddParamToUrl(options.mainpage, 'extjump', encodeURIComponent(u))
Jump(u);
}
}
}
//alert
function Alert(message, ok, title) {
if (!title && isapp) title = '错误提示';
else title = '&nbsp;';
var cssfile;
if (!isapp) {//pc
cssfile = ['alert_pc.css'];
} else {//app
cssfile = ['alert_mb.css'];
}
LoadStyleFile(cssfile, function () {
var maskdiv = jsinfo['document'].getElementById(mask);
if (!maskdiv) {//没有遮罩层
var body = jsinfo['document'].createElement('body');
var maskdiv = jsinfo['document'].createElement('div');
maskdiv.setAttribute('id', mask);
maskdiv.classList.add('alert-mask');
if (!jsinfo['document'].body) { jsinfo['document'].body = body; }
jsinfo['document'].body.appendChild(maskdiv);
maskdiv.innerHTML = '<div class="alert-box">'
+ '<div class="alert-box__header"><div class="alert-box__title"><span>' + title + '</span></div></div>'
+ '<div class="alert-box__content"><div class="alert-box__container"><div class="alert-box__message"><p>' + message + '</p></div></div></div>'
+ '<div class="alert-box__btns"><button type="button" class="alert-box__button" id="btn_' + mask + '"><span>确定</span></button></div>'
+ '</div>';
jsinfo['document'].getElementById('btn_' + mask).onclick = function () {
maskdiv.style.display = 'none';
if (ok) ok();
}
} else {
maskdiv.style.display = 'flex';
}
});
}
//判断密码是否有强密码
function IsPasswordOK(pwd) {
var obj = { code: 1000, token: GetParams(options.tokenname), message: '', status: 'fail' };
if (!pwd || pwd.length < parseInt(options.pwdlength)) {
obj.message = '密码长度不足' + options.pwdlength + '位';
return obj;
}
var s = '!"#$%&\'() * +,-./: ;<=>?@[\\]^ _`{|}~';//特殊符号
var cnt = [0, 0, 0, 0];
for (var i = 0; i < pwd.length; i++) {
if (pwd[i] >= '0' && pwd[i] <= '9') cnt[0]++;
if (pwd[i] >= 'a' && pwd[i] <= 'z') cnt[1]++;
if (pwd[i] >= 'A' && pwd[i] <= 'Z') cnt[2]++;
if (s.indexOf(pwd[i]) != -1) cnt[3]++;
}
if (!(cnt[0] && cnt[1] && cnt[2] && cnt[3])) {
obj.message = '密码必须包含数字、小写字母、大写字母和特殊符号';
return obj;
}
obj.code = 0;
return obj;
}
//判断token是否超时
function IsTokenOvertime(token) {
try {
var tk;
if (token) {
tk = token;
} else {
tk = GetParams(options.tokenname);
}
if (!tk) {//token已经不存在
return -1;
}
var t = tk.split('.');
var p = JSON.parse(window.atob(t[1]));
var d = Date.now();
var lgt = parseInt(p['lgt']);
var now = p['slgt'] + d - lgt;
var nbf = p['nbf'];
var exp = nbf + p['exp'] * 1000 * 60;
var gt = nbf + (p['exp'] + p['gt']) * 1000 * 60;
var tt = p['tt'];
if (now < nbf || now > exp) {//超时
if (exp <= now && now <= gt && gt <= tt) {//在间隔时间内
return 2;
} else {
return 0;
}
} else {
return 1;
}
} catch (ex) {
return -1;
}
}
//判断token是否有某个编号的权限
function IsTokenHavePermission(module, per, pertype) {
try {
if (!permission[module]) {
GetPermission(module, false);//默认自动同步数据
}
if (permission[module][pertype].indexOf(parseInt(per)) != -1) {
return true;
} else {
return false;
}
} catch (ex) {
return false;
}
}
//获取token的信息
function GetTokenInfo(token) {
try {
var tk;
if (token) {
tk = token;
} else {
tk = GetParams(options.tokenname);
}
if (!tk) {//token已经不存在
return {};
}
var t = tk.split('.');
var info = JSON.parse(window.atob(t[1]));
info['name'] = decodeURIComponent(info['name']);
if (!permission[module_id]) {
GetPermission(module_id, false);
}
info['role'] = permission[module_id]['role'];
info['api'] = permission[module_id]['api'];
return info;
} catch (ex) {
return {};
}
}
//存储参数
function SaveParams(name, value, time) {
if (!time) time = 2 * 24 * 60;//默认保存两天
if (options.savetype == '1') {
localStorage.setItem(name, value);
} else {
var exp = new Date();
exp.setTime(exp.getTime() + time * 60 * 1000);
// 写入Cookie, toGMTString将时间转换成字符串
document.cookie = name + '=' + escape(value) + ';path=/;expires=' + exp.toGMTString + ';';
}
}
//获取参数
function GetParams(name) {
if (options.savetype == '1') {
return localStorage.getItem(name);
} else {
var allcookies = document.cookie;
var arr = allcookies.split(';');
for (var i = 0; i < arr.length; i++) {
var val = arr[i].split('=');
if (val[0].trim() == name) {
return unescape(val[1].trim());
}
}
return '';
}
}
//清除参数
function ClearParams(name) {
if (options.savetype == '1') {
localStorage.removeItem(name);
} else {
var exp = new Date();
exp.setTime(exp.getTime() - 1);
document.cookie = name + '=' + ';path=/;expires=' + exp.toGMTString + ';';
}
}
//获取模块的权限
function GetPermission(moduleid, async) {
module_id = moduleid;
var s;
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if ((xhr.status >= 200 && xhr.status < 300) || xhr.status == 304) {
s = JSON.parse(xhr.responseText);
permission[s.module_id] = { role: s.role, api: s.api };
if (_this.onChangeToken) _this.onChangeToken(s);
}
}
};
var url = options.jwtserver + 'jwtservermanager/getpermission?';
url += '&token=' + GetParams(options.tokenname);
url += '&mdl=' + module_id;
url += '&socketid=' + socketid;
xhr.open('GET', url, async);
xhr.withCredentials = true;//跨域
xhr.send();
if (s) {
return s.newtoken;
} else {
return null;
}
}
//续签token
function RefreshToken(async) {
var s;
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if ((xhr.status >= 200 && xhr.status < 300) || xhr.status == 304) {
s = JSON.parse(xhr.responseText);
if (options.opensocket == '0') {
SaveParams(options.tokenname, s.token, options.tokentime);
if (_this.onRefreshToken) _this.onRefreshToken(s);
}
}
}
};
var url = options.jwtserver + 'jwtservermanager/relogin?';
url += '&token=' + GetParams(options.tokenname);
url += '&socketid=' + socketid;
xhr.open('GET', url, async);
xhr.withCredentials = true;//跨域
xhr.send();
if (s) {
return s.newtoken;
} else {
return null;
}
}
//更换用户
function ChangeUser(userid, async) {
permission = {};
var s;
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if ((xhr.status >= 200 && xhr.status < 300) || xhr.status == 304) {
s = JSON.parse(xhr.responseText);
if (options.opensocket == '0') {
SaveParams(options.tokenname, s.newtoken, options.tokentime);
if (_this.onChangeUser) _this.onChangeUser(s);
}
}
}
};
var url = options.jwtserver + 'jwtservermanager/changeuser?';
url += '&token=' + GetParams(options.tokenname);
url += '&userid=' + userid;
url += '&socketid=' + socketid;
xhr.open('GET', url, async);
xhr.withCredentials = true;//跨域
xhr.send();
if (s) {
return s.newtoken;
} else {
return null;
}
}
//单点登录
function TokenJump(url, opt) {
url = AddParamToUrl(url, 'token', GetParams(options.tokenname));
if (opt == 'new') {
window.open(url, '_blank');
} else {
Jump(url);
}
}
//登录后的操作
function LoginOP(res) {
if (res.newtoken) {
if (extsys) {
Jump(AddParamToUrl(extsys.extjump, 'token', res.newtoken));
return;
}
SaveParams(options.tokenname, res.newtoken, options.tokentime);
var url = GetParams('lasturl');
if (url && res.code == 0) {//恢复跳转,排除第一次登录需要修改密码
var t = GetQueryString('token', url);
if (t !== false) {
url = AddParamToUrl(url, 'token', res.newtoken);
}
Jump(url);
} else {//跳转指定页面
var b = true;
if (_this.onLogin) b = _this.onLogin(res);
if (b) {
Jump(options.mainjump);
}
}
} else {
if (extsys) {
if (res.code == 1010 || res.code == 1011) {
Alert(res.message);
return;
}
}
var b = true;
if (_this.onLogin) b = _this.onLogin(res);
if (b) {
Alert(res.message);
}
}
}
//注销后操作
function LogoutOP(res) {
ClearParams(options.tokenname);
var b = true;
if (_this.onLogout) b = _this.onLogout(res);
if (b) {
Alert(res.message, function () {
if (isapp) {
Jump(jsinfo.filepath + 'jump.html');
} else {
Jump(options.mainpage);
}
});
}
}
//登录
this.onLogin = null;
//注销或者token超时
this.onLogout = null;
//刷新token
this.onRefreshToken = null;
//更换token
this.onChangeToken = null;
//修改密码
this.onChangePassword = null;
//修改用户
this.onChangeUser = null;
//连接websocket触发
this.onReady = null;
//token变化触发
this.onChange = null;
//获取设置的参数
this.GetOptions = function () {
return options;
};
//登录函数
//参数:
//userid:用户名
//password:密码(md5)
//valcode:验证码
this.Login = function (userid, password, valcode) {
var jsfile = [
'md5.pro.js'
];
LoadScriptFile(jsfile, function () {
var pwd = hex_md5(password);
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if ((xhr.status >= 200 && xhr.status < 300) || xhr.status == 304) {
var s = JSON.parse(xhr.responseText);
if (options.opensocket == '0') LoginOP(s);
}
}
};
var url = options.jwtserver + 'jwtservermanager/login?';
url += '&username=' + userid;
url += '&password=' + pwd;
url += '&validatecode=' + valcode;
url += '&logintime=' + Date.now();
url += '&socketid=' + socketid;
if (extsys && extsys.extkey) {
url += '&extkey=' + extsys.extkey;
url += '&extlgt=' + extsys.extlgt;
url += '&extsign=' + extsys.extsign;
}
xhr.open('GET', url);
xhr.withCredentials = true;//跨域
xhr.send();
});
};
//获取验证码图片
this.GetValidateCode = function (vimagewidth, vimageheight, image) {
if (!socketid) return;
var url = options.jwtserver + 'jwtservermanager/getvalidateimage?';
url += '&socketid=' + socketid;
url += '&width=' + vimagewidth;
url += '&height=' + vimageheight;
url += '&t=' + Date.now();
image.setAttribute('src', url);
};
//生成二维码
this.CreateQRCode = function (elemid, w, h) {
if (!socketid) return;
if (!w) w = 128;
if (!h) h = 128;
var jsfile = [
'qrcode.js'
];
LoadScriptFile(jsfile, function () {
var url = options.jwtserver + 'jwtservermanager/applogin?';
url += '&state=' + socketid;
if (extsys && extsys.extkey) {
url += '&extkey=' + extsys.extkey;
url += '&extlgt=' + extsys.extlgt;
url += '&extsign=' + extsys.extsign;
}
options.debug == '1' && console.log(url);
document.getElementById(elemid).innerHTML = '';
new QRCode(document.getElementById(elemid), {
text: url,
width: w,
height: h,
correctLevel: QRCode.CorrectLevel.L
});
});
};
//注销
this.Logout = function () {
console.log('identify.Logout 方法')
// var xhr = new XMLHttpRequest();
// xhr.onreadystatechange = function () {
// if (xhr.readyState == 4) {
// if ((xhr.status >= 200 && xhr.status < 300) || xhr.status == 304) {
// var s = JSON.parse(xhr.responseText);
// if (options.opensocket == '0') LogoutOP(s);
// }
// }
// };
// var url = options.jwtserver + 'jwtservermanager/logout?'
// url += '&token=' + GetParams(options.tokenname);
// url += '&socketid=' + socketid;
// xhr.open('GET', url);
// xhr.withCredentials = true;//跨域
// xhr.send();
};
//token续签
this.RefreshToken = function (async) {
return RefreshToken(!async);
};
//更换token
this.ChangeToken = function (moduleid, async) {
return GetPermission(moduleid, !async);
};
//更换用户
this.ChangeUser = function (userid, async) {
return ChangeUser(userid, !async);
};
//修改密码
this.ChangePassword = function (oldpwd, newpwd, checkpwd, userid) {
var token = GetParams(options.tokenname);
if (newpwd != checkpwd) {
if (_this.onChangePassword) _this.onChangePassword({ code: 1000, token: token, message: '输入的新密码不一致', status: 'fail' });
return;
}
var obj = IsPasswordOK(newpwd);
if (obj.code != 0) {
if (_this.onChangePassword) _this.onChangePassword(obj);
return;
}
var jsfile = [
'md5.pro.js'
];
LoadScriptFile(jsfile, function () {
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if ((xhr.status >= 200 && xhr.status < 300) || xhr.status == 304) {
var s = JSON.parse(xhr.responseText);
if (options.opensocket == '0') {
SaveParams(options.tokenname, s.token, options.tokentime);
if (_this.onChangePassword) _this.onChangePassword(s);
}
}
}
};
newpwd = hex_md5(newpwd);
checkpwd = hex_md5(checkpwd);
var url = options.jwtserver + 'jwtservermanager/changepassword?';
url += '&password=' + newpwd;
url += '&newPassword=' + checkpwd;
if (userid) {
url += '&id=' + userid;
} else {
url += '&token=' + token;
}
url += '&socketid=' + socketid;
if (oldpwd) {
oldpwd = hex_md5(oldpwd);
url += '&oldPassword=' + oldpwd;
} else {
url += '&openid=' + GetQueryString('openid');
}
xhr.open('GET', url);
xhr.withCredentials = true;//跨域
xhr.send();
});
};
//用户解绑
this.DisbindUser = function (async) {
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if ((xhr.status >= 200 && xhr.status < 300) || xhr.status == 304) {
var s = JSON.parse(xhr.responseText);
if (options.opensocket == '0') LogoutOP(s);
}
}
};
var url = options.appserver + 'platform/disbinduser?'
url += '&token=' + GetParams(options.tokenname);
xhr.open('GET', url, !async);
xhr.withCredentials = true;//跨域
xhr.send();
};
//单点登录
this.Jump = function (url, opt) {
TokenJump(url, opt);
};
//获取单点登录地址
this.GetTokenJump = function (url) {
return AddParamToUrl(url, 'token', GetParams(options.tokenname));
}
//获取token
this.GetToken = function () {
return GetParams(options.tokenname);
};
//获取token信息
this.GetTokenParams = function (token) {
return GetTokenInfo(token);
};
//判断token是否有权限
this.IsTokenHavePermission = function (module, per, pertype, token, automatchmodule) {
return IsTokenHavePermission(module, per, pertype, token, automatchmodule);
};
//判断token是否有效
this.IsTokenOvertime = function (token) {
return IsTokenOvertime(token);
};
Init();
return (this);
};
window.Identify = Identify;
})();
var idt = Identify();
\ No newline at end of file
var hexcase=0;var b64pad="";var chrsz=8;function hex_md5(s){return binl2hex(core_md5(str2binl(s),s.length*chrsz));}
function b64_md5(s){return binl2b64(core_md5(str2binl(s),s.length*chrsz));}
function str_md5(s){return binl2str(core_md5(str2binl(s),s.length*chrsz));}
function hex_hmac_md5(key,data){return binl2hex(core_hmac_md5(key,data));}
function b64_hmac_md5(key,data){return binl2b64(core_hmac_md5(key,data));}
function str_hmac_md5(key,data){return binl2str(core_hmac_md5(key,data));}
function md5_vm_test()
{return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72";}
function core_md5(x,len)
{x[len>>5]|=0x80<<((len)%32);x[(((len+64)>>>9)<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;for(var i=0;i<x.length;i+=16)
{var olda=a;var oldb=b;var oldc=c;var oldd=d;a=md5_ff(a,b,c,d,x[i+0],7,-680876936);d=md5_ff(d,a,b,c,x[i+1],12,-389564586);c=md5_ff(c,d,a,b,x[i+2],17,606105819);b=md5_ff(b,c,d,a,x[i+3],22,-1044525330);a=md5_ff(a,b,c,d,x[i+4],7,-176418897);d=md5_ff(d,a,b,c,x[i+5],12,1200080426);c=md5_ff(c,d,a,b,x[i+6],17,-1473231341);b=md5_ff(b,c,d,a,x[i+7],22,-45705983);a=md5_ff(a,b,c,d,x[i+8],7,1770035416);d=md5_ff(d,a,b,c,x[i+9],12,-1958414417);c=md5_ff(c,d,a,b,x[i+10],17,-42063);b=md5_ff(b,c,d,a,x[i+11],22,-1990404162);a=md5_ff(a,b,c,d,x[i+12],7,1804603682);d=md5_ff(d,a,b,c,x[i+13],12,-40341101);c=md5_ff(c,d,a,b,x[i+14],17,-1502002290);b=md5_ff(b,c,d,a,x[i+15],22,1236535329);a=md5_gg(a,b,c,d,x[i+1],5,-165796510);d=md5_gg(d,a,b,c,x[i+6],9,-1069501632);c=md5_gg(c,d,a,b,x[i+11],14,643717713);b=md5_gg(b,c,d,a,x[i+0],20,-373897302);a=md5_gg(a,b,c,d,x[i+5],5,-701558691);d=md5_gg(d,a,b,c,x[i+10],9,38016083);c=md5_gg(c,d,a,b,x[i+15],14,-660478335);b=md5_gg(b,c,d,a,x[i+4],20,-405537848);a=md5_gg(a,b,c,d,x[i+9],5,568446438);d=md5_gg(d,a,b,c,x[i+14],9,-1019803690);c=md5_gg(c,d,a,b,x[i+3],14,-187363961);b=md5_gg(b,c,d,a,x[i+8],20,1163531501);a=md5_gg(a,b,c,d,x[i+13],5,-1444681467);d=md5_gg(d,a,b,c,x[i+2],9,-51403784);c=md5_gg(c,d,a,b,x[i+7],14,1735328473);b=md5_gg(b,c,d,a,x[i+12],20,-1926607734);a=md5_hh(a,b,c,d,x[i+5],4,-378558);d=md5_hh(d,a,b,c,x[i+8],11,-2022574463);c=md5_hh(c,d,a,b,x[i+11],16,1839030562);b=md5_hh(b,c,d,a,x[i+14],23,-35309556);a=md5_hh(a,b,c,d,x[i+1],4,-1530992060);d=md5_hh(d,a,b,c,x[i+4],11,1272893353);c=md5_hh(c,d,a,b,x[i+7],16,-155497632);b=md5_hh(b,c,d,a,x[i+10],23,-1094730640);a=md5_hh(a,b,c,d,x[i+13],4,681279174);d=md5_hh(d,a,b,c,x[i+0],11,-358537222);c=md5_hh(c,d,a,b,x[i+3],16,-722521979);b=md5_hh(b,c,d,a,x[i+6],23,76029189);a=md5_hh(a,b,c,d,x[i+9],4,-640364487);d=md5_hh(d,a,b,c,x[i+12],11,-421815835);c=md5_hh(c,d,a,b,x[i+15],16,530742520);b=md5_hh(b,c,d,a,x[i+2],23,-995338651);a=md5_ii(a,b,c,d,x[i+0],6,-198630844);d=md5_ii(d,a,b,c,x[i+7],10,1126891415);c=md5_ii(c,d,a,b,x[i+14],15,-1416354905);b=md5_ii(b,c,d,a,x[i+5],21,-57434055);a=md5_ii(a,b,c,d,x[i+12],6,1700485571);d=md5_ii(d,a,b,c,x[i+3],10,-1894986606);c=md5_ii(c,d,a,b,x[i+10],15,-1051523);b=md5_ii(b,c,d,a,x[i+1],21,-2054922799);a=md5_ii(a,b,c,d,x[i+8],6,1873313359);d=md5_ii(d,a,b,c,x[i+15],10,-30611744);c=md5_ii(c,d,a,b,x[i+6],15,-1560198380);b=md5_ii(b,c,d,a,x[i+13],21,1309151649);a=md5_ii(a,b,c,d,x[i+4],6,-145523070);d=md5_ii(d,a,b,c,x[i+11],10,-1120210379);c=md5_ii(c,d,a,b,x[i+2],15,718787259);b=md5_ii(b,c,d,a,x[i+9],21,-343485551);a=safe_add(a,olda);b=safe_add(b,oldb);c=safe_add(c,oldc);d=safe_add(d,oldd);}
return Array(a,b,c,d);}
function md5_cmn(q,a,b,x,s,t)
{return safe_add(bit_rol(safe_add(safe_add(a,q),safe_add(x,t)),s),b);}
function md5_ff(a,b,c,d,x,s,t)
{return md5_cmn((b&c)|((~b)&d),a,b,x,s,t);}
function md5_gg(a,b,c,d,x,s,t)
{return md5_cmn((b&d)|(c&(~d)),a,b,x,s,t);}
function md5_hh(a,b,c,d,x,s,t)
{return md5_cmn(b^c^d,a,b,x,s,t);}
function md5_ii(a,b,c,d,x,s,t)
{return md5_cmn(c^(b|(~d)),a,b,x,s,t);}
function core_hmac_md5(key,data)
{var bkey=str2binl(key);if(bkey.length>16)bkey=core_md5(bkey,key.length*chrsz);var ipad=Array(16),opad=Array(16);for(var i=0;i<16;i++)
{ipad[i]=bkey[i]^0x36363636;opad[i]=bkey[i]^0x5C5C5C5C;}
var hash=core_md5(ipad.concat(str2binl(data)),512+data.length*chrsz);return core_md5(opad.concat(hash),512+128);}
function safe_add(x,y)
{var lsw=(x&0xFFFF)+(y&0xFFFF);var msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF);}
function bit_rol(num,cnt)
{return(num<<cnt)|(num>>>(32-cnt));}
function str2binl(str)
{var bin=Array();var mask=(1<<chrsz)-1;for(var i=0;i<str.length*chrsz;i+=chrsz)
bin[i>>5]|=(str.charCodeAt(i/chrsz)&mask)<<(i%32);return bin;}
function binl2str(bin)
{var str="";var mask=(1<<chrsz)-1;for(var i=0;i<bin.length*32;i+=chrsz)
str+=String.fromCharCode((bin[i>>5]>>>(i%32))&mask);return str;}
function binl2hex(binarray)
{var hex_tab=hexcase?"0123456789ABCDEF":"0123456789abcdef";var str="";for(var i=0;i<binarray.length*4;i++)
{str+=hex_tab.charAt((binarray[i>>2]>>((i%4)*8+4))&0xF)+
hex_tab.charAt((binarray[i>>2]>>((i%4)*8))&0xF);}
return str;}
function binl2b64(binarray)
{var tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var str="";for(var i=0;i<binarray.length*4;i+=3)
{var triplet=(((binarray[i>>2]>>8*(i%4))&0xFF)<<16)|(((binarray[i+1>>2]>>8*((i+1)%4))&0xFF)<<8)|((binarray[i+2>>2]>>8*((i+2)%4))&0xFF);for(var j=0;j<4;j++)
{if(i*8+j*6>binarray.length*32)str+=b64pad;else str+=tab.charAt((triplet>>6*(3-j))&0x3F);}}
return str;}
\ No newline at end of file
var QRCode;(function(){function QR8bitByte(data){this.mode=QRMode.MODE_8BIT_BYTE;this.data=data;this.parsedData=[];for(var i=0,l=this.data.length;i<l;i++){var byteArray=[];var code=this.data.charCodeAt(i);if(code>65536){byteArray[0]=240|((code&1835008)>>>18);byteArray[1]=128|((code&258048)>>>12);byteArray[2]=128|((code&4032)>>>6);byteArray[3]=128|(code&63)}else{if(code>2048){byteArray[0]=224|((code&61440)>>>12);byteArray[1]=128|((code&4032)>>>6);byteArray[2]=128|(code&63)}else{if(code>128){byteArray[0]=192|((code&1984)>>>6);byteArray[1]=128|(code&63)}else{byteArray[0]=code}}}this.parsedData.push(byteArray)}this.parsedData=Array.prototype.concat.apply([],this.parsedData);if(this.parsedData.length!=this.data.length){this.parsedData.unshift(191);this.parsedData.unshift(187);this.parsedData.unshift(239)}}QR8bitByte.prototype={getLength:function(buffer){return this.parsedData.length},write:function(buffer){for(var i=0,l=this.parsedData.length;i<l;i++){buffer.put(this.parsedData[i],8)}}};function QRCodeModel(typeNumber,errorCorrectLevel){this.typeNumber=typeNumber;this.errorCorrectLevel=errorCorrectLevel;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]}QRCodeModel.prototype={addData:function(data){var newData=new QR8bitByte(data);this.dataList.push(newData);this.dataCache=null},isDark:function(row,col){if(row<0||this.moduleCount<=row||col<0||this.moduleCount<=col){throw new Error(row+","+col)}return this.modules[row][col]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(false,this.getBestMaskPattern())},makeImpl:function(test,maskPattern){this.moduleCount=this.typeNumber*4+17;this.modules=new Array(this.moduleCount);for(var row=0;row<this.moduleCount;row++){this.modules[row]=new Array(this.moduleCount);for(var col=0;col<this.moduleCount;col++){this.modules[row][col]=null}}this.setupPositionProbePattern(0,0);this.setupPositionProbePattern(this.moduleCount-7,0);this.setupPositionProbePattern(0,this.moduleCount-7);this.setupPositionAdjustPattern();this.setupTimingPattern();this.setupTypeInfo(test,maskPattern);if(this.typeNumber>=7){this.setupTypeNumber(test)}if(this.dataCache==null){this.dataCache=QRCodeModel.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)}this.mapData(this.dataCache,maskPattern)},setupPositionProbePattern:function(row,col){for(var r=-1;r<=7;r++){if(row+r<=-1||this.moduleCount<=row+r){continue}for(var c=-1;c<=7;c++){if(col+c<=-1||this.moduleCount<=col+c){continue}if((0<=r&&r<=6&&(c==0||c==6))||(0<=c&&c<=6&&(r==0||r==6))||(2<=r&&r<=4&&2<=c&&c<=4)){this.modules[row+r][col+c]=true}else{this.modules[row+r][col+c]=false}}}},getBestMaskPattern:function(){var minLostPoint=0;var pattern=0;for(var i=0;i<8;i++){this.makeImpl(true,i);var lostPoint=QRUtil.getLostPoint(this);if(i==0||minLostPoint>lostPoint){minLostPoint=lostPoint;pattern=i}}return pattern},createMovieClip:function(target_mc,instance_name,depth){var qr_mc=target_mc.createEmptyMovieClip(instance_name,depth);var cs=1;this.make();for(var row=0;row<this.modules.length;row++){var y=row*cs;for(var col=0;col<this.modules[row].length;col++){var x=col*cs;var dark=this.modules[row][col];if(dark){qr_mc.beginFill(0,100);qr_mc.moveTo(x,y);qr_mc.lineTo(x+cs,y);qr_mc.lineTo(x+cs,y+cs);qr_mc.lineTo(x,y+cs);qr_mc.endFill()}}}return qr_mc},setupTimingPattern:function(){for(var r=8;r<this.moduleCount-8;r++){if(this.modules[r][6]!=null){continue}this.modules[r][6]=(r%2==0)}for(var c=8;c<this.moduleCount-8;c++){if(this.modules[6][c]!=null){continue}this.modules[6][c]=(c%2==0)}},setupPositionAdjustPattern:function(){var pos=QRUtil.getPatternPosition(this.typeNumber);for(var i=0;i<pos.length;i++){for(var j=0;j<pos.length;j++){var row=pos[i];var col=pos[j];if(this.modules[row][col]!=null){continue}for(var r=-2;r<=2;r++){for(var c=-2;c<=2;c++){if(r==-2||r==2||c==-2||c==2||(r==0&&c==0)){this.modules[row+r][col+c]=true}else{this.modules[row+r][col+c]=false}}}}}},setupTypeNumber:function(test){var bits=QRUtil.getBCHTypeNumber(this.typeNumber);for(var i=0;i<18;i++){var mod=(!test&&((bits>>i)&1)==1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=mod}for(var i=0;i<18;i++){var mod=(!test&&((bits>>i)&1)==1);this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=mod}},setupTypeInfo:function(test,maskPattern){var data=(this.errorCorrectLevel<<3)|maskPattern;var bits=QRUtil.getBCHTypeInfo(data);for(var i=0;i<15;i++){var mod=(!test&&((bits>>i)&1)==1);if(i<6){this.modules[i][8]=mod}else{if(i<8){this.modules[i+1][8]=mod}else{this.modules[this.moduleCount-15+i][8]=mod}}}for(var i=0;i<15;i++){var mod=(!test&&((bits>>i)&1)==1);if(i<8){this.modules[8][this.moduleCount-i-1]=mod}else{if(i<9){this.modules[8][15-i-1+1]=mod}else{this.modules[8][15-i-1]=mod}}}this.modules[this.moduleCount-8][8]=(!test)},mapData:function(data,maskPattern){var inc=-1;var row=this.moduleCount-1;var bitIndex=7;var byteIndex=0;for(var col=this.moduleCount-1;col>0;col-=2){if(col==6){col--}while(true){for(var c=0;c<2;c++){if(this.modules[row][col-c]==null){var dark=false;
if(byteIndex<data.length){dark=(((data[byteIndex]>>>bitIndex)&1)==1)}var mask=QRUtil.getMask(maskPattern,row,col-c);if(mask){dark=!dark}this.modules[row][col-c]=dark;bitIndex--;if(bitIndex==-1){byteIndex++;bitIndex=7}}}row+=inc;if(row<0||this.moduleCount<=row){row-=inc;inc=-inc;break}}}}};QRCodeModel.PAD0=236;QRCodeModel.PAD1=17;QRCodeModel.createData=function(typeNumber,errorCorrectLevel,dataList){var rsBlocks=QRRSBlock.getRSBlocks(typeNumber,errorCorrectLevel);var buffer=new QRBitBuffer();for(var i=0;i<dataList.length;i++){var data=dataList[i];buffer.put(data.mode,4);buffer.put(data.getLength(),QRUtil.getLengthInBits(data.mode,typeNumber));data.write(buffer)}var totalDataCount=0;for(var i=0;i<rsBlocks.length;i++){totalDataCount+=rsBlocks[i].dataCount}if(buffer.getLengthInBits()>totalDataCount*8){throw new Error("code length overflow. ("+buffer.getLengthInBits()+">"+totalDataCount*8+")")}if(buffer.getLengthInBits()+4<=totalDataCount*8){buffer.put(0,4)}while(buffer.getLengthInBits()%8!=0){buffer.putBit(false)}while(true){if(buffer.getLengthInBits()>=totalDataCount*8){break}buffer.put(QRCodeModel.PAD0,8);if(buffer.getLengthInBits()>=totalDataCount*8){break}buffer.put(QRCodeModel.PAD1,8)}return QRCodeModel.createBytes(buffer,rsBlocks)};QRCodeModel.createBytes=function(buffer,rsBlocks){var offset=0;var maxDcCount=0;var maxEcCount=0;var dcdata=new Array(rsBlocks.length);var ecdata=new Array(rsBlocks.length);for(var r=0;r<rsBlocks.length;r++){var dcCount=rsBlocks[r].dataCount;var ecCount=rsBlocks[r].totalCount-dcCount;maxDcCount=Math.max(maxDcCount,dcCount);maxEcCount=Math.max(maxEcCount,ecCount);dcdata[r]=new Array(dcCount);for(var i=0;i<dcdata[r].length;i++){dcdata[r][i]=255&buffer.buffer[i+offset]}offset+=dcCount;var rsPoly=QRUtil.getErrorCorrectPolynomial(ecCount);var rawPoly=new QRPolynomial(dcdata[r],rsPoly.getLength()-1);var modPoly=rawPoly.mod(rsPoly);ecdata[r]=new Array(rsPoly.getLength()-1);for(var i=0;i<ecdata[r].length;i++){var modIndex=i+modPoly.getLength()-ecdata[r].length;ecdata[r][i]=(modIndex>=0)?modPoly.get(modIndex):0}}var totalCodeCount=0;for(var i=0;i<rsBlocks.length;i++){totalCodeCount+=rsBlocks[i].totalCount}var data=new Array(totalCodeCount);var index=0;for(var i=0;i<maxDcCount;i++){for(var r=0;r<rsBlocks.length;r++){if(i<dcdata[r].length){data[index++]=dcdata[r][i]}}}for(var i=0;i<maxEcCount;i++){for(var r=0;r<rsBlocks.length;r++){if(i<ecdata[r].length){data[index++]=ecdata[r][i]}}}return data};var QRMode={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3};var QRErrorCorrectLevel={L:1,M:0,Q:3,H:2};var QRMaskPattern={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var QRUtil={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:(1<<10)|(1<<8)|(1<<5)|(1<<4)|(1<<2)|(1<<1)|(1<<0),G18:(1<<12)|(1<<11)|(1<<10)|(1<<9)|(1<<8)|(1<<5)|(1<<2)|(1<<0),G15_MASK:(1<<14)|(1<<12)|(1<<10)|(1<<4)|(1<<1),getBCHTypeInfo:function(data){var d=data<<10;while(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G15)>=0){d^=(QRUtil.G15<<(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G15)))}return((data<<10)|d)^QRUtil.G15_MASK},getBCHTypeNumber:function(data){var d=data<<12;while(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G18)>=0){d^=(QRUtil.G18<<(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G18)))}return(data<<12)|d},getBCHDigit:function(data){var digit=0;while(data!=0){digit++;data>>>=1}return digit},getPatternPosition:function(typeNumber){return QRUtil.PATTERN_POSITION_TABLE[typeNumber-1]},getMask:function(maskPattern,i,j){switch(maskPattern){case QRMaskPattern.PATTERN000:return(i+j)%2==0;case QRMaskPattern.PATTERN001:return i%2==0;case QRMaskPattern.PATTERN010:return j%3==0;case QRMaskPattern.PATTERN011:return(i+j)%3==0;case QRMaskPattern.PATTERN100:return(Math.floor(i/2)+Math.floor(j/3))%2==0;case QRMaskPattern.PATTERN101:return(i*j)%2+(i*j)%3==0;case QRMaskPattern.PATTERN110:return((i*j)%2+(i*j)%3)%2==0;case QRMaskPattern.PATTERN111:return((i*j)%3+(i+j)%2)%2==0;default:throw new Error("bad maskPattern:"+maskPattern)}},getErrorCorrectPolynomial:function(errorCorrectLength){var a=new QRPolynomial([1],0);for(var i=0;i<errorCorrectLength;i++){a=a.multiply(new QRPolynomial([1,QRMath.gexp(i)],0))}return a},getLengthInBits:function(mode,type){if(1<=type&&type<10){switch(mode){case QRMode.MODE_NUMBER:return 10;case QRMode.MODE_ALPHA_NUM:return 9;case QRMode.MODE_8BIT_BYTE:return 8;
case QRMode.MODE_KANJI:return 8;default:throw new Error("mode:"+mode)}}else{if(type<27){switch(mode){case QRMode.MODE_NUMBER:return 12;case QRMode.MODE_ALPHA_NUM:return 11;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 10;default:throw new Error("mode:"+mode)}}else{if(type<41){switch(mode){case QRMode.MODE_NUMBER:return 14;case QRMode.MODE_ALPHA_NUM:return 13;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 12;default:throw new Error("mode:"+mode)}}else{throw new Error("type:"+type)}}}},getLostPoint:function(qrCode){var moduleCount=qrCode.getModuleCount();var lostPoint=0;for(var row=0;row<moduleCount;row++){for(var col=0;col<moduleCount;col++){var sameCount=0;var dark=qrCode.isDark(row,col);for(var r=-1;r<=1;r++){if(row+r<0||moduleCount<=row+r){continue}for(var c=-1;c<=1;c++){if(col+c<0||moduleCount<=col+c){continue}if(r==0&&c==0){continue}if(dark==qrCode.isDark(row+r,col+c)){sameCount++}}}if(sameCount>5){lostPoint+=(3+sameCount-5)}}}for(var row=0;row<moduleCount-1;row++){for(var col=0;col<moduleCount-1;col++){var count=0;if(qrCode.isDark(row,col)){count++}if(qrCode.isDark(row+1,col)){count++}if(qrCode.isDark(row,col+1)){count++}if(qrCode.isDark(row+1,col+1)){count++}if(count==0||count==4){lostPoint+=3}}}for(var row=0;row<moduleCount;row++){for(var col=0;col<moduleCount-6;col++){if(qrCode.isDark(row,col)&&!qrCode.isDark(row,col+1)&&qrCode.isDark(row,col+2)&&qrCode.isDark(row,col+3)&&qrCode.isDark(row,col+4)&&!qrCode.isDark(row,col+5)&&qrCode.isDark(row,col+6)){lostPoint+=40}}}for(var col=0;col<moduleCount;col++){for(var row=0;row<moduleCount-6;row++){if(qrCode.isDark(row,col)&&!qrCode.isDark(row+1,col)&&qrCode.isDark(row+2,col)&&qrCode.isDark(row+3,col)&&qrCode.isDark(row+4,col)&&!qrCode.isDark(row+5,col)&&qrCode.isDark(row+6,col)){lostPoint+=40}}}var darkCount=0;for(var col=0;col<moduleCount;col++){for(var row=0;row<moduleCount;row++){if(qrCode.isDark(row,col)){darkCount++}}}var ratio=Math.abs(100*darkCount/moduleCount/moduleCount-50)/5;lostPoint+=ratio*10;return lostPoint}};var QRMath={glog:function(n){if(n<1){throw new Error("glog("+n+")")}return QRMath.LOG_TABLE[n]},gexp:function(n){while(n<0){n+=255}while(n>=256){n-=255}return QRMath.EXP_TABLE[n]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var i=0;i<8;i++){QRMath.EXP_TABLE[i]=1<<i}for(var i=8;i<256;i++){QRMath.EXP_TABLE[i]=QRMath.EXP_TABLE[i-4]^QRMath.EXP_TABLE[i-5]^QRMath.EXP_TABLE[i-6]^QRMath.EXP_TABLE[i-8]}for(var i=0;i<255;i++){QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]]=i}function QRPolynomial(num,shift){if(num.length==undefined){throw new Error(num.length+"/"+shift)}var offset=0;while(offset<num.length&&num[offset]==0){offset++}this.num=new Array(num.length-offset+shift);for(var i=0;i<num.length-offset;i++){this.num[i]=num[i+offset]}}QRPolynomial.prototype={get:function(index){return this.num[index]},getLength:function(){return this.num.length},multiply:function(e){var num=new Array(this.getLength()+e.getLength()-1);for(var i=0;i<this.getLength();i++){for(var j=0;j<e.getLength();j++){num[i+j]^=QRMath.gexp(QRMath.glog(this.get(i))+QRMath.glog(e.get(j)))}}return new QRPolynomial(num,0)},mod:function(e){if(this.getLength()-e.getLength()<0){return this}var ratio=QRMath.glog(this.get(0))-QRMath.glog(e.get(0));var num=new Array(this.getLength());for(var i=0;i<this.getLength();i++){num[i]=this.get(i)}for(var i=0;i<e.getLength();i++){num[i]^=QRMath.gexp(QRMath.glog(e.get(i))+ratio)}return new QRPolynomial(num,0).mod(e)}};function QRRSBlock(totalCount,dataCount){this.totalCount=totalCount;this.dataCount=dataCount}QRRSBlock.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];
QRRSBlock.getRSBlocks=function(typeNumber,errorCorrectLevel){var rsBlock=QRRSBlock.getRsBlockTable(typeNumber,errorCorrectLevel);if(rsBlock==undefined){throw new Error("bad rs block @ typeNumber:"+typeNumber+"/errorCorrectLevel:"+errorCorrectLevel)}var length=rsBlock.length/3;var list=[];for(var i=0;i<length;i++){var count=rsBlock[i*3+0];var totalCount=rsBlock[i*3+1];var dataCount=rsBlock[i*3+2];for(var j=0;j<count;j++){list.push(new QRRSBlock(totalCount,dataCount))}}return list};QRRSBlock.getRsBlockTable=function(typeNumber,errorCorrectLevel){switch(errorCorrectLevel){case QRErrorCorrectLevel.L:return QRRSBlock.RS_BLOCK_TABLE[(typeNumber-1)*4+0];case QRErrorCorrectLevel.M:return QRRSBlock.RS_BLOCK_TABLE[(typeNumber-1)*4+1];case QRErrorCorrectLevel.Q:return QRRSBlock.RS_BLOCK_TABLE[(typeNumber-1)*4+2];case QRErrorCorrectLevel.H:return QRRSBlock.RS_BLOCK_TABLE[(typeNumber-1)*4+3];default:return undefined}};function QRBitBuffer(){this.buffer=[];this.length=0}QRBitBuffer.prototype={get:function(index){var bufIndex=Math.floor(index/8);return((this.buffer[bufIndex]>>>(7-index%8))&1)==1},put:function(num,length){for(var i=0;i<length;i++){this.putBit(((num>>>(length-i-1))&1)==1)}},getLengthInBits:function(){return this.length},putBit:function(bit){var bufIndex=Math.floor(this.length/8);if(this.buffer.length<=bufIndex){this.buffer.push(0)}if(bit){this.buffer[bufIndex]|=(128>>>(this.length%8))}this.length++}};var QRCodeLimitLength=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function _isSupportCanvas(){return typeof CanvasRenderingContext2D!="undefined"}function _getAndroid(){var android=false;var sAgent=navigator.userAgent;if(/android/i.test(sAgent)){android=true;var aMat=sAgent.toString().match(/android ([0-9]\.[0-9])/i);if(aMat&&aMat[1]){android=parseFloat(aMat[1])}}return android}var svgDrawer=(function(){var Drawing=function(el,htOption){this._el=el;this._htOption=htOption};Drawing.prototype.draw=function(oQRCode){var _htOption=this._htOption;var _el=this._el;var nCount=oQRCode.getModuleCount();var nWidth=Math.floor(_htOption.width/nCount);var nHeight=Math.floor(_htOption.height/nCount);this.clear();function makeSVG(tag,attrs){var el=document.createElementNS("http://www.w3.org/2000/svg",tag);for(var k in attrs){if(attrs.hasOwnProperty(k)){el.setAttribute(k,attrs[k])}}return el}var svg=makeSVG("svg",{"viewBox":"0 0 "+String(nCount)+" "+String(nCount),"width":"100%","height":"100%","fill":_htOption.colorLight});svg.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink");_el.appendChild(svg);svg.appendChild(makeSVG("rect",{"fill":_htOption.colorLight,"width":"100%","height":"100%"}));svg.appendChild(makeSVG("rect",{"fill":_htOption.colorDark,"width":"1","height":"1","id":"template"}));for(var row=0;row<nCount;row++){for(var col=0;col<nCount;col++){if(oQRCode.isDark(row,col)){var child=makeSVG("use",{"x":String(col),"y":String(row)});child.setAttributeNS("http://www.w3.org/1999/xlink","href","#template");svg.appendChild(child)}}}};Drawing.prototype.clear=function(){while(this._el.hasChildNodes()){this._el.removeChild(this._el.lastChild)}};return Drawing})();var useSVG=document.documentElement.tagName.toLowerCase()==="svg";var Drawing=useSVG?svgDrawer:!_isSupportCanvas()?(function(){var Drawing=function(el,htOption){this._el=el;this._htOption=htOption};Drawing.prototype.draw=function(oQRCode){var _htOption=this._htOption;var _el=this._el;var nCount=oQRCode.getModuleCount();var nWidth=Math.floor(_htOption.width/nCount);var nHeight=Math.floor(_htOption.height/nCount);var aHTML=['<table style="border:0;border-collapse:collapse;">'];for(var row=0;row<nCount;row++){aHTML.push("<tr>");for(var col=0;col<nCount;col++){aHTML.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+nWidth+"px;height:"+nHeight+"px;background-color:"+(oQRCode.isDark(row,col)?_htOption.colorDark:_htOption.colorLight)+';"></td>')}aHTML.push("</tr>")}aHTML.push("</table>");_el.innerHTML=aHTML.join("");var elTable=_el.childNodes[0];var nLeftMarginTable=(_htOption.width-elTable.offsetWidth)/2;var nTopMarginTable=(_htOption.height-elTable.offsetHeight)/2;if(nLeftMarginTable>0&&nTopMarginTable>0){elTable.style.margin=nTopMarginTable+"px "+nLeftMarginTable+"px"}};Drawing.prototype.clear=function(){this._el.innerHTML=""
};return Drawing})():(function(){function _onMakeImage(){this._elImage.src=this._elCanvas.toDataURL("image/png");this._elImage.style.display="block";this._elCanvas.style.display="none"}if(this._android&&this._android<=2.1){var factor=1/window.devicePixelRatio;var drawImage=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(image,sx,sy,sw,sh,dx,dy,dw,dh){if(("nodeName" in image)&&/img/i.test(image.nodeName)){for(var i=arguments.length-1;i>=1;i--){arguments[i]=arguments[i]*factor}}else{if(typeof dw=="undefined"){arguments[1]*=factor;arguments[2]*=factor;arguments[3]*=factor;arguments[4]*=factor}}drawImage.apply(this,arguments)}}function _safeSetDataURI(fSuccess,fFail){var self=this;self._fFail=fFail;self._fSuccess=fSuccess;if(self._bSupportDataURI===null){var el=document.createElement("img");var fOnError=function(){self._bSupportDataURI=false;if(self._fFail){self._fFail.call(self)}};var fOnSuccess=function(){self._bSupportDataURI=true;if(self._fSuccess){self._fSuccess.call(self)}};el.onabort=fOnError;el.onerror=fOnError;el.onload=fOnSuccess;el.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";return}else{if(self._bSupportDataURI===true&&self._fSuccess){self._fSuccess.call(self)}else{if(self._bSupportDataURI===false&&self._fFail){self._fFail.call(self)}}}}var Drawing=function(el,htOption){this._bIsPainted=false;this._android=_getAndroid();this._htOption=htOption;this._elCanvas=document.createElement("canvas");this._elCanvas.width=htOption.width;this._elCanvas.height=htOption.height;el.appendChild(this._elCanvas);this._el=el;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=false;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this._el.appendChild(this._elImage);this._bSupportDataURI=null};Drawing.prototype.draw=function(oQRCode){var _elImage=this._elImage;var _oContext=this._oContext;var _htOption=this._htOption;var nCount=oQRCode.getModuleCount();var nWidth=_htOption.width/nCount;var nHeight=_htOption.height/nCount;var nRoundedWidth=Math.round(nWidth);var nRoundedHeight=Math.round(nHeight);_elImage.style.display="none";this.clear();for(var row=0;row<nCount;row++){for(var col=0;col<nCount;col++){var bIsDark=oQRCode.isDark(row,col);var nLeft=col*nWidth;var nTop=row*nHeight;_oContext.strokeStyle=bIsDark?_htOption.colorDark:_htOption.colorLight;_oContext.lineWidth=1;_oContext.fillStyle=bIsDark?_htOption.colorDark:_htOption.colorLight;_oContext.fillRect(nLeft,nTop,nWidth,nHeight);_oContext.strokeRect(Math.floor(nLeft)+0.5,Math.floor(nTop)+0.5,nRoundedWidth,nRoundedHeight);_oContext.strokeRect(Math.ceil(nLeft)-0.5,Math.ceil(nTop)-0.5,nRoundedWidth,nRoundedHeight)}}this._bIsPainted=true};Drawing.prototype.makeImage=function(){if(this._bIsPainted){_safeSetDataURI.call(this,_onMakeImage)}};Drawing.prototype.isPainted=function(){return this._bIsPainted};Drawing.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=false};Drawing.prototype.round=function(nNumber){if(!nNumber){return nNumber}return Math.floor(nNumber*1000)/1000};return Drawing})();function _getTypeNumber(sText,nCorrectLevel){var nType=1;var length=_getUTF8Length(sText);for(var i=0,len=QRCodeLimitLength.length;i<=len;i++){var nLimit=0;switch(nCorrectLevel){case QRErrorCorrectLevel.L:nLimit=QRCodeLimitLength[i][0];break;case QRErrorCorrectLevel.M:nLimit=QRCodeLimitLength[i][1];break;case QRErrorCorrectLevel.Q:nLimit=QRCodeLimitLength[i][2];break;case QRErrorCorrectLevel.H:nLimit=QRCodeLimitLength[i][3];break}if(length<=nLimit){break}else{nType++}}if(nType>QRCodeLimitLength.length){throw new Error("Too long data")}return nType}function _getUTF8Length(sText){var replacedText=encodeURI(sText).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return replacedText.length+(replacedText.length!=sText?3:0)}QRCode=function(el,vOption){this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:QRErrorCorrectLevel.H};if(typeof vOption==="string"){vOption={text:vOption}}if(vOption){for(var i in vOption){this._htOption[i]=vOption[i]}}if(typeof el=="string"){el=document.getElementById(el)}if(this._htOption.useSVG){Drawing=svgDrawer}this._android=_getAndroid();this._el=el;this._oQRCode=null;this._oDrawing=new Drawing(this._el,this._htOption);if(this._htOption.text){this.makeCode(this._htOption.text)}};QRCode.prototype.makeCode=function(sText){this._oQRCode=new QRCodeModel(_getTypeNumber(sText,this._htOption.correctLevel),this._htOption.correctLevel);this._oQRCode.addData(sText);this._oQRCode.make();this._oDrawing.draw(this._oQRCode);this.makeImage()};QRCode.prototype.makeImage=function(){if(typeof this._oDrawing.makeImage=="function"&&(!this._android||this._android>=3)){this._oDrawing.makeImage()}};QRCode.prototype.clear=function(){this._oDrawing.clear()};QRCode.CorrectLevel=QRErrorCorrectLevel
})();
\ No newline at end of file
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
.demo-drawer-footer{width:100%;position:absolute;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:12px 16px;text-align:right;background:#fff}
\ No newline at end of file
.columnsItemMinWidth[data-v-166ccdc4]{min-width:1000px}
\ No newline at end of file
.iconScale[data-v-90cb5854]:hover{color:#1e93ff}.iconScale[data-v-90cb5854]:hover,.selectTitleIcon[data-v-90cb5854]:hover{transform:scale(1.3);cursor:pointer}
\ No newline at end of file
.selectTitleIcon[data-v-610c9a35]:hover{transform:scale(1.3);cursor:pointer}
\ No newline at end of file
.demo-drawer-footer{width:100%;position:absolute;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:12px 16px;text-align:right;background:#fff}
\ No newline at end of file
.demo-drawer-footer{width:100%;position:absolute;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:12px 16px;text-align:right;background:#fff}
\ No newline at end of file
.demo-drawer-footer{width:100%;position:absolute;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:12px 16px;text-align:right;background:#fff}
\ No newline at end of file
.columnsItemMinWidth[data-v-32a72e16]{min-width:1000px}
\ No newline at end of file
.demo-drawer-footer{width:100%;position:absolute;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:12px 16px;text-align:right;background:#fff}
\ No newline at end of file
.demo-drawer-footer{width:100%;position:absolute;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:12px 16px;text-align:right;background:#fff}
\ No newline at end of file
.columnsItemMinWidth[data-v-ac7f55fe]{min-width:1000px}
\ No newline at end of file
.demo-drawer-footer{width:100%;position:absolute;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:12px 16px;text-align:right;background:#fff}
\ No newline at end of file
.demo-drawer-footer{width:100%;position:absolute;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:12px 16px;text-align:right;background:#fff}
\ No newline at end of file
.demo-drawer-footer{width:100%;position:absolute;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:12px 16px;text-align:right;background:#fff}
\ No newline at end of file
.demo-drawer-footer{width:100%;position:absolute;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:12px 16px;text-align:right;background:#fff}
\ No newline at end of file
.demo-drawer-footer{width:100%;position:absolute;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:12px 16px;text-align:right;background:#fff}
\ No newline at end of file
p[data-v-058f094f]{font-size:40px}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<svg width="1457px" height="651px" viewBox="0 0 1457 651" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 54 (76480) - https://sketchapp.com -->
<title>bg</title>
<desc>Created with Sketch.</desc>
<g id="页面1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="body">
<rect id="矩形" fill="#E0E3F5" transform="translate(1111.405592, 620.405592) rotate(45.000000) translate(-1111.405592, -620.405592) " x="1089.90559" y="598.905592" width="43" height="43"></rect>
<rect id="矩形" fill="#DEEFF6" transform="translate(127.254834, 230.254834) rotate(40.000000) translate(-127.254834, -230.254834) " x="95.254834" y="198.254834" width="64" height="64"></rect>
<circle id="Oval-7" fill="#C9CFED" fill-rule="nonzero" opacity="0.45" cx="1286.5" cy="27.5" r="23.5"></circle>
<circle id="Oval-7" fill="#E7E6E6" fill-rule="nonzero" opacity="0.45" cx="191" cy="51" r="18"></circle>
<circle id="Oval-7" fill="#EFEFEF" fill-rule="nonzero" opacity="0.45" cx="888" cy="499" r="18"></circle>
<ellipse id="Oval-7" stroke="#E4E4F2" stroke-width="10" fill-opacity="0" fill="#FFFFFF" fill-rule="nonzero" opacity="0.45" cx="1373.5" cy="331.5" rx="78.5" ry="79.5"></ellipse>
<ellipse id="Oval-7" stroke="#CEECF8" stroke-width="10" fill-opacity="0" fill="#FFFFFF" fill-rule="nonzero" opacity="0.45" cx="235" cy="481.5" rx="44" ry="44.5"></ellipse>
</g>
</g>
</svg>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<svg width="52px" height="45px" viewBox="0 0 52 45" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 50.2 (55047) - http://www.bohemiancoding.com/sketch -->
<title>Group 5 Copy 5</title>
<desc>Created with Sketch.</desc>
<defs>
<filter x="-9.4%" y="-6.2%" width="118.8%" height="122.5%" filterUnits="objectBoundingBox" id="filter-1">
<feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feGaussianBlur stdDeviation="1" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
<feMerge>
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
<feMergeNode in="SourceGraphic"></feMergeNode>
</feMerge>
</filter>
<rect id="path-2" x="0" y="0" width="48" height="40" rx="4"></rect>
<filter x="-4.2%" y="-2.5%" width="108.3%" height="110.0%" filterUnits="objectBoundingBox" id="filter-4">
<feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feGaussianBlur stdDeviation="0.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
</filter>
</defs>
<g id="配置面板" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="setting-copy-2" transform="translate(-1190.000000, -136.000000)">
<g id="Group-8" transform="translate(1167.000000, 0.000000)">
<g id="Group-5-Copy-5" filter="url(#filter-1)" transform="translate(25.000000, 137.000000)">
<mask id="mask-3" fill="white">
<use xlink:href="#path-2"></use>
</mask>
<g id="Rectangle-18">
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-2"></use>
<use fill="#F0F2F5" fill-rule="evenodd" xlink:href="#path-2"></use>
</g>
<rect id="Rectangle-11" fill="#303648" mask="url(#mask-3)" x="-1" y="0" width="49" height="10"></rect>
<rect id="Rectangle-18" fill="#303648" mask="url(#mask-3)" x="0" y="0" width="16" height="44"></rect>
</g>
</g>
</g>
</g>
</svg>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<svg width="52px" height="45px" viewBox="0 0 52 45" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 50.2 (55047) - http://www.bohemiancoding.com/sketch -->
<title>Group 5 Copy 5</title>
<desc>Created with Sketch.</desc>
<defs>
<filter x="-9.4%" y="-6.2%" width="118.8%" height="122.5%" filterUnits="objectBoundingBox" id="filter-1">
<feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feGaussianBlur stdDeviation="1" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
<feMerge>
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
<feMergeNode in="SourceGraphic"></feMergeNode>
</feMerge>
</filter>
<rect id="path-2" x="0" y="0" width="48" height="40" rx="4"></rect>
<filter x="-4.2%" y="-2.5%" width="108.3%" height="110.0%" filterUnits="objectBoundingBox" id="filter-4">
<feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feGaussianBlur stdDeviation="0.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
</filter>
</defs>
<g id="配置面板" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="setting-copy-2" transform="translate(-1190.000000, -136.000000)">
<g id="Group-8" transform="translate(1167.000000, 0.000000)">
<g id="Group-5-Copy-5" filter="url(#filter-1)" transform="translate(25.000000, 137.000000)">
<mask id="mask-3" fill="white">
<use xlink:href="#path-2"></use>
</mask>
<g id="Rectangle-18">
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-2"></use>
<use fill="#F0F2F5" fill-rule="evenodd" xlink:href="#path-2"></use>
</g>
<rect id="Rectangle-11" fill="#2d8cf0" mask="url(#mask-3)" x="-1" y="0" width="49" height="10"></rect>
<rect id="Rectangle-18" fill="#303648" mask="url(#mask-3)" x="0" y="0" width="16" height="44"></rect>
</g>
</g>
</g>
</g>
</svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1547543886845" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16941" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="400"><defs><style type="text/css"></style></defs><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#18ACFC" p-id="16942"></path><path d="M500.113 228.39c118.396-1.518 178.924 61.004 201 156 3.497 15.048 0.15 34.807 0 50 27.142999999999997 5.682 33.087 60.106 10 75v1h1c8.26 14.329999999999998 19.04 28.125 26 44 7.332 16.723 9.305999999999997 35.16 14 55 4.024 17.01-2.287 51.505-10 57-0.7709999999999998 0.683-2.231 1.312-3 2-14.601-3.016-30.377-16.865-38-27-3.065-4.074-5.275-9.672-10-12-0.395 21.568-12.503 41.15-22 55-3.5139999999999993 5.123-14.073 13.216999999999999-14 18 3.690999999999999 2.836 8.305 2.955999999999999 13 5 10.513 4.577 25.449 13.168 32 22 2.333999999999999 3.146 5.548 7.554999999999999 7 11 16.193 38.414-36.527 48.314-63 54-27.185 5.839-77.818-10.224-92-19-8.749-5.414-16.863-18.573-29-19-3.666 2.3889999999999993-14.438 1.1319999999999997-20 1-16.829 32.804-101.913 47.867999999999995-148 31-14.061-5.146-43.398-17.695-38-40 4.437-18.327 19.947-29.224 35-37 5.759-2.975 18.915-4.419 22-10-13.141-8.988-24.521-28.659-31-44-3.412-8.077-4.193-25.775-9-32-7.789 12.245-32.097 36.91-52 33-3.071-4.553-7.213-9.097-9-15-4.792-15.835-1.81-40.379 2-54 8.117-29.02 16.965-50.62299999999998 32-72 4.672-6.643 11.425-12.135 16-19-8.945-9.733-6.951-37.535999999999994-1-49 4.002-7.709 9.701-7.413 10-20-1.9199999999999997-3.022-0.071-8.604-1-13-4.383-20.75 3.2729999999999997-47.552 9-63 19.8-53.420999999999985 53.712-90.466 105-112 11.986-5.033 25.833-7.783 39-11 5.322-1.3 11.969 0.518 16-2z" fill="#FFFFFF" p-id="16943"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1547543880869" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16720" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="400"><defs><style type="text/css"></style></defs><path d="M512 1024C229.228089 1024 0 794.771911 0 512S229.228089 0 512 0s512 229.228089 512 512-229.228089 512-512 512z m-87.813689-750.933333C314.1632 273.066667 221.866667 351.744 221.866667 444.7232c0 57.230222 31.9488 103.708444 78.085689 135.896178h3.549866l-21.2992 60.802844 74.5472-39.344355h3.549867c21.2992 10.729244 42.587022 14.301867 63.886222 14.301866h14.199467c-3.549867-14.301867-7.099733-28.603733-7.099734-42.9056 0-85.833956 81.635556-157.354667 184.570312-157.354666h7.099733C608.756622 337.442133 527.132444 273.066667 424.186311 273.066667z m370.676622 306.722133c0-78.654578-78.791111-143.018667-171.906844-143.018667-96.688356 0-171.895467 64.364089-171.895467 143.018667s78.791111 143.018667 171.895467 143.018667c17.908622 0 35.817244-3.584 53.725867-7.156623h3.572622l60.882489 32.176356-17.908623-53.623467c46.557867-28.603733 71.634489-67.925333 71.634489-114.414933z" fill="#5FC948" p-id="16721"></path><path d="M358.4 420.977778a28.444444 28.444444 0 1 1 0-56.888889 28.444444 28.444444 0 0 1 0 56.888889z m204.8 136.533333a28.444444 28.444444 0 1 1 0-56.888889 28.444444 28.444444 0 0 1 0 56.888889z m-68.266667-136.533333a28.444444 28.444444 0 1 1 0-56.888889 28.444444 28.444444 0 0 1 0 56.888889z m193.422223 136.533333a28.444444 28.444444 0 1 1 0-56.888889 28.444444 28.444444 0 0 1 0 56.888889z" fill="#5FC948" p-id="16722"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1547543890412" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17052" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="400"><defs><style type="text/css"></style></defs><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#F1DF55" p-id="17053"></path><path d="M455.876923 589.784615c-6.892308-2.953846-15.753846 0.984615-19.692308 7.876923-3.938462 6.892308-1.969231 14.769231 4.923077 17.723077 6.892308 2.953846 16.738462 0 20.676923-7.876923 2.953846-6.892308 0.984615-14.769231-5.907692-17.723077zM410.584615 608.492308c-18.707692-7.876923-42.338462 0-53.16923 17.723077-11.815385 17.723077-5.907692 39.384615 11.815384 47.261538 18.707692 8.861538 43.323077 0 54.153846-17.723077 10.830769-17.723077 4.923077-39.384615-12.8-47.261538z" fill="#FFFFFF" p-id="17054"></path><path d="M426.338462 466.707692C307.2 478.523077 217.6 551.384615 225.476923 629.169231c7.876923 77.784615 110.276923 131.938462 229.415385 120.123077 119.138462-11.815385 208.738462-84.676923 200.861538-162.461539-7.876923-78.769231-110.276923-131.938462-229.415384-120.123077zM530.707692 649.846154c-24.615385 55.138462-93.538462 83.692308-152.615384 64.984615-57.107692-18.707692-81.723077-74.830769-56.123077-126.030769 24.615385-50.215385 88.615385-77.784615 144.738461-63.015385 58.092308 15.753846 88.615385 70.892308 64 124.061539z" fill="#FFFFFF" p-id="17055"></path><path d="M692.184615 490.338462c-9.846154-2.953846-16.738462-4.923077-11.815384-18.707693 11.815385-28.553846 12.8-54.153846 0-71.876923-23.630769-33.476923-86.646154-31.507692-160.492308-0.984615 0 0-22.646154 9.846154-16.738461-7.876923 10.830769-36.430769 9.846154-65.969231-7.876924-83.692308-39.384615-39.384615-144.738462 1.969231-235.323076 91.569231-66.953846 67.938462-106.338462 139.815385-106.338462 201.846154 0 118.153846 151.630769 191.015385 301.292308 191.015384 194.953846 0 324.923077-113.230769 324.923077-202.830769-0.984615-55.138462-46.276923-85.661538-87.63077-98.461538zM454.892308 748.307692c-119.138462 11.815385-221.538462-42.338462-229.415385-120.123077-7.876923-77.784615 82.707692-150.646154 200.861539-162.461538 119.138462-11.815385 221.538462 42.338462 229.415384 120.123077 7.876923 78.769231-82.707692 151.630769-200.861538 162.461538z" fill="#D52B2A" p-id="17056"></path><path d="M822.153846 272.738462c-47.261538-52.184615-116.184615-71.876923-181.169231-58.092308-14.769231 2.953846-24.615385 17.723077-20.676923 32.492308 2.953846 14.769231 17.723077 24.615385 32.492308 20.676923 45.292308-9.846154 94.523077 4.923077 128 41.353846 33.476923 37.415385 42.338462 87.630769 28.553846 131.938461-4.923077 14.769231 2.953846 29.538462 17.723077 34.461539s29.538462-2.953846 34.461539-17.723077c19.692308-62.030769 6.892308-132.923077-39.384616-185.107692z" fill="#E89214" p-id="17057"></path><path d="M738.461538 444.061538c12.8 3.938462 25.6-2.953846 29.538462-14.76923 9.846154-30.523077 3.938462-64.984615-19.692308-90.584616-22.646154-25.6-57.107692-35.446154-87.630769-28.553846-12.8 2.953846-20.676923 15.753846-17.723077 28.553846 2.953846 12.8 15.753846 20.676923 27.569231 17.723077 15.753846-2.953846 31.507692 1.969231 43.323077 13.784616 10.830769 12.8 13.784615 29.538462 9.846154 44.307692-3.938462 11.815385 2.953846 25.6 14.76923 29.538461z" fill="#E89214" p-id="17058"></path><path d="M466.707692 526.769231c-56.123077-14.769231-120.123077 13.784615-144.738461 63.015384-24.615385 51.2-0.984615 107.323077 56.123077 126.03077 59.076923 18.707692 128.984615-9.846154 152.615384-64.984616 24.615385-54.153846-5.907692-109.292308-64-124.061538zM423.384615 655.753846c-11.815385 18.707692-36.430769 26.584615-54.153846 17.723077-18.707692-7.876923-23.630769-29.538462-11.815384-47.261538 11.815385-17.723077 35.446154-25.6 53.16923-17.723077 17.723077 7.876923 23.630769 29.538462 12.8 47.261538z m37.415385-48.246154c-3.938462 6.892308-13.784615 10.830769-20.676923 7.876923-6.892308-2.953846-8.861538-10.830769-4.923077-17.723077s12.8-9.846154 19.692308-7.876923c7.876923 2.953846 9.846154 10.830769 5.907692 17.723077z" fill="#040000" p-id="17059"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<!--
2013-9-30: Created.
-->
<svg>
<metadata>
Created by iconfont
</metadata>
<defs>
<font id="i-icon" horiz-adv-x="1024" >
<font-face
font-family="i-icon"
font-weight="500"
font-stretch="normal"
units-per-em="1024"
ascent="896"
descent="-128"
/>
<missing-glyph />
<glyph glyph-name="record" unicode="&#58911;" d="M512 802.14057281c-230.54965688 0-418.14057281-187.5893025-418.14057281-418.14057281 0-230.58029812 187.56027375-418.14057281 418.14057281-418.14057281S930.14057281 153.41970188000005 930.14057281 384C930.14057281 614.5496568799999 742.58029812 802.14057281 512 802.14057281zM512 25.85942719000002c-197.48958469 0-358.14057281 160.68001594-358.14057281 358.14057281 0 197.48958469 160.64937469 358.14057281 358.14057281 358.14057281 197.46055594 0 358.14057281-160.64937469 358.14057281-358.14057281C870.14057281 186.53944406000005 709.46055594 25.85942719000002 512 25.85942719000002zM512 533.99919375c-82.70985094 0-150.00080625-67.28934281-150.00080625-149.99919375s67.28934281-150.00080625 150.00080625-150.00080625 150.00080625 67.28934281 150.00080625 150.00080625S594.70985094 533.99919375 512 533.99919375z" horiz-adv-x="1024" />
<glyph glyph-name="refresh" unicode="&#59345;" d="M924.06640625 401.56054688l-122.34375-122.34375001c-6.27539063-6.22265625-14.81835938-9.80859375-23.67773438-9.80859375s-17.296875 3.53320313-23.67773437 9.80859375l-122.23828125 122.34375c-13.02539063 13.078125-13.02539063 34.22460938 0 47.35546875 13.078125 13.078125 34.171875 13.078125 47.35546875 0l65.07421875-65.23242187L744.55859375 384c0 162-131.67773438 293.73046875-293.73046875 293.73046875C288.88085937 677.73046875 157.04492187 546 157.04492187 384s131.8359375-293.73046875 293.78320313-293.73046875c78.46875 0 152.24414063 30.53320313 207.82617188 86.00976563 12.97265625 13.078125 34.171875 13.078125 47.24999999-1e-8s13.02539063-34.171875 0-47.25c-68.08007813-68.18554688-158.67773438-105.6796875-255.07617187-105.67968749C251.9140625 23.40234375 90.125 185.13867187000005 90.125 384s161.7890625 360.703125 360.703125 360.703125c198.9140625 0 360.703125-161.7890625 360.703125-360.703125l0-0.31640625 65.1796875 65.23242188c13.078125 13.02539063 34.171875 13.02539063 47.35546875-1e-8C937.14453125 435.73242188 937.14453125 414.63867188 924.06640625 401.56054688z" horiz-adv-x="1024" />
<glyph glyph-name="exit-full-screen" unicode="&#58967;" d="M121.9475 516.110625h224.5190625c18.6103125 0 33.75 15.1396875 33.75 33.75V774.380625c0 16.5684375-13.4315625 30-30 30s-30-13.4315625-30-30v-198.27H121.9475c-16.5684375 0-30-13.4315625-30-30 0-16.5675 13.4315625-30 30-30zM121.9475 192.735h198.2690625v-198.2690625c0-16.5684375 13.4315625-30 30-30s30 13.4315625 30 30V218.985c0 18.6103125-15.1396875 33.75-33.75 33.75H121.9475c-16.5684375 0-30-13.4315625-30-30s13.4315625-30 30-30zM673.7309375-35.43937500000004c16.5684375 0 30 13.4315625 30 30V192.82968749999998H902c16.5684375 0 30 13.4315625 30 30s-13.4315625 30-30 30H677.4809375c-18.6103125 0-33.75-15.1396875-33.75-33.75v-224.5190625c0-16.5684375 13.4315625-30 30-30zM677.4809375 515.5884375H902c16.5684375 0 30 13.4315625 30 30s-13.4315625 30-30 30H703.7309375V773.8584375c0 16.5684375-13.4315625 30-30 30s-30-13.4315625-30-30v-224.52c0-18.609375 15.1396875-33.75 33.75-33.75z" horiz-adv-x="1024" />
<glyph glyph-name="notification" unicode="&#59037;" d="M861.41176455 137.82352910999998l-63.52941182 111.17647089v238.23529453c0 50.29411729-18.52941182 105.88235273-52.94117637 150.88235274-34.41176455 47.64705908-84.70588271 84.70588271-137.64705907 105.88235273 0 0-2.64705908 0-7.94117637 2.64705908v2.64705821C596.70588271 796.94117636 559.64705908 834 512 834c-47.64705908 0-84.70588271-37.05882364-84.70588271-84.70588271v-2.64705821c-2.64705908 0-5.29411729-2.64705908-7.94117637-2.64705908-55.58823545-18.52941182-103.23529453-55.58823545-140.29411728-103.23529453-34.41176455-47.64705908-52.94117637-100.58823545-52.94117637-153.52941094v-238.23529453l-68.82352998-121.76470547c-10.58823545-15.88235273-10.58823545-37.05882364 0-52.94117724 10.58823545-15.88235273 29.11764727-26.47058818 47.64705908-26.47058819h169.41176455c13.23529453-66.17647089 71.47058818-113.82352911 140.29411816-113.8235291s127.05882363 47.64705908 140.29411728 113.8235291h169.41176456c29.11764727 0 55.58823545 23.82352911 55.58823544 52.94117637-5.29411729 13.23529453-10.58823545 26.47058818-18.52941181 37.05882363zM512 781.05882363c13.23529453 0 26.47058818-7.94117637 29.11764727-21.1764709H538.47058818h-2.64705907-5.29411729c-10.58823545 2.64705908-26.47058818 2.64705908-37.05882364 0h-5.29411728-2.64705908c2.64705908 10.58823545 13.23529453 21.1764709 26.47058818 21.17647091z m0-794.11764726c-37.05882364 0-71.47058818 23.82352911-82.05882363 58.23529453h166.76470634C583.47058818 13.411764550000044 549.05882364-13.058823630000006 512-13.058823630000006z m307.05882363 113.8235291H204.94117637l74.11764726 127.05882364c2.64705908 5.29411729 2.64705908 7.94117637 2.64705908 13.23529453v243.52941181c0 84.70588271 66.17647089 174.70588271 156.17647002 206.47058819 5.29411729 0 26.47058818 7.94117637 50.29411816 10.58823544H538.47058818c23.82352911-2.64705908 47.64705908-10.58823545 52.94117637-13.23529453 87.35294092-31.76470547 153.52941182-121.76470547 153.52941181-206.47058818v-243.52941182c0-5.29411729 0-10.58823545 2.64705909-13.23529365l68.8235291-121.76470635c0 2.64705908 2.64705908 0 2.64705908-2.64705908z" horiz-adv-x="1024" />
<glyph glyph-name="full-screen" unicode="&#59203;" d="M898.71874973-37.875h-175.78124973a35.15625027 35.15625027 0 0 0 0 70.31249973h140.62500027v140.62500027a35.15625027 35.15625027 0 0 0 70.31249973 0v-175.78124973a35.15625027 35.15625027 0 0 0-35.15625027-35.15625027z m0 597.65624973a35.15625027 35.15625027 0 0 0-35.15624946 35.15625027V735.56250027h-175.78125054a35.15625027 35.15625027 0 0 0 0 70.31249973h210.9375a35.15625027 35.15625027 0 0 0 35.15625027-35.15625027v-175.78124973a35.15625027 35.15625027 0 0 0-35.15625027-35.15625027zM336.21875027 735.56250027H160.43749973v-175.78125054a35.15625027 35.15625027 0 0 0-70.31249973 0V770.71874973a35.15625027 35.15625027 0 0 0 35.15625027 35.15625027h210.9375a35.15625027 35.15625027 0 0 0 0-70.31249973zM125.28125027 208.21875027a35.15625027 35.15625027 0 0 0 35.15624946-35.15625027v-140.62500027h140.62500027a35.15625027 35.15625027 0 0 0 0-70.31249973H125.28125027a35.15625027 35.15625027 0 0 0-35.15625027 35.15625027v175.78124973a35.15625027 35.15625027 0 0 0 35.15625027 35.15625027z" horiz-adv-x="1024" />
<glyph glyph-name="menu-unfold" unicode="&#59019;" d="M408 454h480c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H408c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8z m-8-204c0-4.4 3.6-8 8-8h480c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H408c-4.4 0-8-3.6-8-8v-56z m504 486H120c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h784c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8z m0-632H120c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h784c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8zM142.4 253.9L298.7 377c4.5 3.5 4.5 10.3 0 13.9L142.4 514.1c-5.8 4.6-14.4 0.5-14.4-6.9v-246.3c0-7.4 8.5-11.6 14.4-7z" horiz-adv-x="1024" />
<glyph glyph-name="menu-fold" unicode="&#58880;" d="M408 454h480c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H408c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8z m-8-204c0-4.4 3.6-8 8-8h480c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H408c-4.4 0-8-3.6-8-8v-56z m504 486H120c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h784c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8z m0-632H120c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h784c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8zM115.4 377.1L271.7 254c5.8-4.6 14.4-0.5 14.4 6.9V507.1c0 7.4-8.5 11.5-14.4 6.9L115.4 390.9a8.74 8.74 0 0 1 0-13.8z" horiz-adv-x="1024" />
</font>
</defs></svg>
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
<?xml version="1.0" encoding="UTF-8"?>
<svg width="52px" height="45px" viewBox="0 0 52 45" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 50.2 (55047) - http://www.bohemiancoding.com/sketch -->
<title>Group 5 Copy 5</title>
<desc>Created with Sketch.</desc>
<defs>
<filter x="-9.4%" y="-6.2%" width="118.8%" height="122.5%" filterUnits="objectBoundingBox" id="filter-1">
<feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feGaussianBlur stdDeviation="1" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
<feMerge>
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
<feMergeNode in="SourceGraphic"></feMergeNode>
</feMerge>
</filter>
<rect id="path-2" x="0" y="0" width="48" height="40" rx="4"></rect>
<filter x="-4.2%" y="-2.5%" width="108.3%" height="110.0%" filterUnits="objectBoundingBox" id="filter-4">
<feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feGaussianBlur stdDeviation="0.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
</filter>
</defs>
<g id="配置面板" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="setting-copy-2" transform="translate(-1190.000000, -136.000000)">
<g id="Group-8" transform="translate(1167.000000, 0.000000)">
<g id="Group-5-Copy-5" filter="url(#filter-1)" transform="translate(25.000000, 137.000000)">
<mask id="mask-3" fill="white">
<use xlink:href="#path-2"></use>
</mask>
<g id="Rectangle-18">
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-2"></use>
<use fill="#F0F2F5" fill-rule="evenodd" xlink:href="#path-2"></use>
</g>
<rect id="Rectangle-11" fill="#FFFFFF" mask="url(#mask-3)" x="-1" y="0" width="49" height="10"></rect>
<rect id="Rectangle-18" fill="#303648" mask="url(#mask-3)" x="0" y="0" width="16" height="44"></rect>
</g>
</g>
</g>
</g>
</svg>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<svg width="52px" height="45px" viewBox="0 0 52 45" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 50.2 (55047) - http://www.bohemiancoding.com/sketch -->
<title>Group 5</title>
<desc>Created with Sketch.</desc>
<defs>
<filter x="-9.4%" y="-6.2%" width="118.8%" height="122.5%" filterUnits="objectBoundingBox" id="filter-1">
<feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feGaussianBlur stdDeviation="1" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
<feMerge>
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
<feMergeNode in="SourceGraphic"></feMergeNode>
</feMerge>
</filter>
<rect id="path-2" x="0" y="0" width="48" height="40" rx="4"></rect>
<filter x="-4.2%" y="-2.5%" width="108.3%" height="110.0%" filterUnits="objectBoundingBox" id="filter-4">
<feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feGaussianBlur stdDeviation="0.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
</filter>
</defs>
<g id="配置面板" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="setting-copy-2" transform="translate(-1254.000000, -136.000000)">
<g id="Group-8" transform="translate(1167.000000, 0.000000)">
<g id="Group-5" filter="url(#filter-1)" transform="translate(89.000000, 137.000000)">
<mask id="mask-3" fill="white">
<use xlink:href="#path-2"></use>
</mask>
<g id="Rectangle-18">
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-2"></use>
<use fill="#F0F2F5" fill-rule="evenodd" xlink:href="#path-2"></use>
</g>
<rect id="Rectangle-18" fill="#FFFFFF" mask="url(#mask-3)" x="0" y="0" width="16" height="44"></rect>
<rect id="Rectangle-11" fill="#FFFFFF" mask="url(#mask-3)" x="-1" y="0" width="49" height="10"></rect>
</g>
</g>
</g>
</g>
</svg>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>值班管理</title><link href=css/app.f8f860e0.css rel=stylesheet></head><body><script charset=utf-8 src="https://map.qq.com/api/gljs?v=1.exp&key=ZNMBZ-NYOEO-WNMWL-SJF4C-MWKQT-KJB7W"></script><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 党建管理系统。</strong></noscript><div id=app></div><script src=js/chunk-vendors.c0d93cbb.js></script><script src=js/app.bedd993e.js></script></body></html>
\ No newline at end of file
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-107b1649"],{"3dda":function(e,t,r){"use strict";r("8e6e"),r("ac6a"),r("456d");var a=r("ade3"),s=r("8af8"),n=r("2f62");function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){Object(a["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t["a"]={components:{iHeaderI18n:s["a"]},computed:i({},Object(n["e"])("admin/layout",["showI18n"]))}},"8e67":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"page-account"},[e.showI18n?r("div",{staticClass:"page-account-header"},[r("i-header-i18n")],1):e._e(),r("div",{staticClass:"page-account-container"},[e._m(0),r("Login",{ref:"form",on:{"on-submit":e.handleSubmit}},[r("Email",{attrs:{name:"mail"}}),r("Poptip",{attrs:{trigger:"focus",placement:"right",width:"240"}},[r("Password",{attrs:{name:"password",rules:e.passwordRule,placeholder:"至少6位密码,区分大小写"},on:{"on-change":e.handleChangePassword}}),r("div",{staticClass:"page-account-register-tip",attrs:{slot:"content"},slot:"content"},[r("div",{staticClass:"page-account-register-tip-title",class:e.passwordTip.class},[e._v("\n 强度:"+e._s(e.passwordTip.strong)+"\n ")]),r("Progress",{attrs:{percent:e.passwordTip.percent,"hide-info":"","stroke-width":6,"stroke-color":e.passwordTip.color}}),r("div",{staticClass:"page-account-register-tip-desc"},[e._v("\n 请至少输入 6 个字符。请不要使用容易被猜到的密码。\n ")])],1)],1),r("Password",{attrs:{name:"passwordConfirm",rules:e.passwordConfirmRule,placeholder:"确认密码"}}),r("Mobile",{attrs:{name:"mobile"}}),r("Captcha",{attrs:{name:"captcha",field:["mobile"],"enter-to-submit":""},on:{"on-get-captcha":e.handleGetCaptcha}}),r("Submit",[e._v(e._s(e.$t("page.register.submit")))])],1),r("div",{staticClass:"page-account-to-login"},[r("router-link",{attrs:{to:{name:"login"}}},[e._v(e._s(e.$t("page.register.other")))])],1)],1),r("i-copyright")],1)},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page-account-top"},[a("div",{staticClass:"page-account-top-logo"},[a("img",{attrs:{src:r("9d64"),alt:"logo"}})]),a("div",{staticClass:"page-account-top-desc"},[e._v("iView Admin Pro 企业级中台前端/设计解决方案")])])}],n=(r("8e6e"),r("ac6a"),r("456d"),r("a481"),r("ade3")),o=r("2f08"),i=r("2f62"),c=r("3dda");function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){Object(n["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var d={mixins:[c["a"]],components:{iCopyright:o["a"]},data:function(){var e=this,t=function(t,r,a){r!==e.$refs.form.formValidate.password?a(new Error("两次输入的密码不匹配!")):a()};return{passwordRule:[{required:!0,message:"密码不能为空!",trigger:"change"},{min:6,message:"密码不能少于6位!",trigger:"change"}],passwordConfirmRule:[{required:!0,message:"确认密码不能为空!",trigger:"change"},{validator:t,trigger:"change"}],passwordLen:0}},computed:{passwordTip:function(){var e="强",t="strong",r=this.passwordLen>10?10:this.passwordLen,a="#19be6b";return this.passwordLen<6?(e="太短",t="low",a="#ed4014"):this.passwordLen<10&&(e="中",t="medium",a="#ff9900"),{strong:e,class:"page-account-register-tip-".concat(t),percent:10*r,color:a}}},methods:l(l({},Object(i["b"])("admin/account",["register","login"])),{},{handleChangePassword:function(e){this.passwordLen=e.length},handleSubmit:function(e,t){var r=this;if(e&&e){var a=t.mail,s=t.password,n=t.mobile,o=t.captcha;this.register({mail:a,password:s,mobile:n,captcha:o}).then((function(){r.$router.replace({name:"register-result"})}))}},handleGetCaptcha:function(){}})},u=d,g=r("2877"),f=Object(g["a"])(u,a,s,!1,null,null,null);t["default"]=f.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-12099594"],{"043a":function(t,e,a){},"0731":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{ref:"card"},[a("TableFrom"),a("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:t.add}},[a("Icon",{attrs:{type:"md-add"}}),t._v("新增")],1),a("Table",{staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.tableData,loading:t.loading,size:t.tableSize},scopedSlots:t._u([{key:"status",fn:function(e){var s=e.row;return[a("i-switch",{attrs:{size:"large","true-value":1,"false-value":0},on:{"on-change":function(e){return t.switchChange(s)}},model:{value:s.status,callback:function(e){t.$set(s,"status",e)},expression:"row.status"}},[a("span",{attrs:{slot:"open",type:"md-checkmark"},slot:"open"},[t._v("启用")]),a("span",{attrs:{slot:"close",type:"md-close"},slot:"close"},[t._v("停用")])])]}},{key:"action",fn:function(e){var s=e.row;return[a("Button",{attrs:{type:"info"},on:{click:function(e){return t.edit(s)}}},[t._v("编辑")]),a("Poptip",{attrs:{confirm:"",transfer:"",title:"你确定删除吗?"},on:{"on-ok":function(e){return t.del(s)},"on-cancel":t.cancel}},[a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"error"}},[t._v("删除")])],1)]}}])}),a("div",{staticClass:"ivu-text-center ivu-mt"},[a("Page",{attrs:{total:t.total,current:t.params.pageIndex,"show-total":"","show-sizer":"","page-size":t.params.pageSize},on:{"update:current":function(e){return t.$set(t.params,"pageIndex",e)},"on-change":t.handleChangePage,"on-page-size-change":t.handleChangePageSize}})],1),a("AddEditDrawer",{ref:"addEdit",on:{getData:t.getData}})],1)],1)},i=[],n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Modal",{attrs:{title:"add"==t.addOrEdit?"新增":"修改",width:"40%"},model:{value:t.visibleShow,callback:function(e){t.visibleShow=e},expression:"visibleShow"}},[a("Form",{ref:"formData",attrs:{model:t.formData,"label-width":100,rules:t.rules}},[a("Row",{attrs:{gutter:32}},[a("Col",{attrs:{span:"12"}},[a("FormItem",{attrs:{label:"ddd",prop:"a"}},[a("Input",{model:{value:t.formData.a,callback:function(e){t.$set(t.formData,"a",e)},expression:"formData.a"}})],1)],1)],1)],1),"add"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.addSubmit}},[t._v("确认新增")])],1):t._e(),"edit"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.editSubmit}},[t._v("确认修改")])],1):t._e()],1)],1)},l=[],r=(a("456d"),a("ac6a"),a("15fd")),o=["status"],c={data:function(){return{visibleShow:!1,rules:{class_code:[{required:!0,message:"不能为空",trigger:"blur"}],class_name:[{required:!0,message:"不能为空",trigger:"blur"}],college_id:[{required:!0,message:"不能为空",trigger:"change"}],grade:[{required:!0,message:"不能为空",trigger:"change"}],training_id:[{required:!0,message:"不能为空",trigger:"change"}]},formData:{a:""},formList:[],addOrEdit:""}},mounted:function(){this.getData()},methods:{getData:function(){},addSubmit:function(){var t=this;this.$refs.formData.validate((function(e){e&&(t.$Message.success(res),t.visibleShow=!1,t.$emit("getData"))}))},editSubmit:function(){var t=this.formData;t.status,Object(r["a"])(t,o);this.$refs.formData.validate((function(t){}))},add:function(){var t=this;this.addOrEdit="add",this.visibleShow=!0,Object.keys(this.formData).forEach((function(e){return t.formData[e]=""}))},edit:function(t){this.addOrEdit="edit",this.visibleShow=!0,this.formData=Object.assign({},t)}}},d=c,u=(a("c3cb"),a("2877")),m=Object(u["a"])(d,n,l,!1,null,null,null),p=m.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Form",{attrs:{"label-width":120}},[a("Row",{attrs:{gutter:32}},[t._l(t.formList,(function(e,s){return[~[0,1].indexOf(s)?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e(),t.collapse?[s>=2?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e()]:t._e()]})),0!==t.formList.length?a("Col",t._b({staticClass:"ivu-text-right"},"Col",t.grid,!1),[a("FormItem",{attrs:{type:"flex",justify:"end"}},[a("Button",{attrs:{type:"primary"},on:{click:t.getData}},[t._v("查询")]),a("a",{directives:[{name:"font",rawName:"v-font",value:14,expression:"14"}],staticClass:"ivu-ml-8",on:{click:function(e){t.collapse=!t.collapse}}},[t.collapse?[t._v("\n 收起 "),a("Icon",{attrs:{type:"ios-arrow-up"}})]:[t._v("\n 展开 "),a("Icon",{attrs:{type:"ios-arrow-down"}})]],2)],1)],1):t._e()],2)],1)},g=[],f={data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},formList:[{label:"所属院系",code:"college_id",search_type:"select",is_must:0,option_list:[{value:"117c96a1-5c8f-4c71-8574-d45ec049db3b",label:"电气工程系"}]},{label:"状态1",code:"status",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态2",code:"status2",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态3",code:"status3",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]}],collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",status:"",status2:"",status3:""}}},mounted:function(){},methods:{getData:function(){console.log("搜索条件查询")}}},_=f,b=Object(u["a"])(_,h,g,!1,null,null,null),v=b.exports,w={name:"list",components:{AddEditDrawer:p,TableFrom:v},data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"班级编号",key:"class_code",align:"center",show:!0,minWidth:100},{title:"班级名称",key:"class_name",align:"center",show:!0,minWidth:150},{title:"年级",key:"grade",align:"center",show:!0,minWidth:100},{title:"培养层次",key:"training",align:"center",show:!0,minWidth:120},{title:"辅导员工号",key:"counselor_card",align:"center",show:!0,minWidth:150},{title:"辅导员姓名",key:"counselor_name",align:"center",show:!0,minWidth:120},{title:"班主任工号",key:"head_teacher_card",align:"center",show:!0,minWidth:150},{title:"班主任姓名",key:"head_teacher_name",align:"center",show:!0,minWidth:120},{title:"院系名称",key:"college_name",align:"center",show:!0,minWidth:200},{title:"状态",key:"status",align:"center",slot:"status",show:!0,minWidth:130},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""}}},created:function(){},mounted:function(){this.getData()},methods:{getData:function(){this.params.college_id=void 0==this.params.college_id?"":this.params.college_id,this.params.grade=void 0==this.params.grade?"":this.params.grade,this.params.classId_Name=void 0==this.params.classId_Name?"":this.params.classId_Name,this.params.status=void 0==this.params.status?"":this.params.status,this.params.pageIndex=1},add:function(){this.$refs.addEdit.add()},edit:function(t){this.$refs.addEdit.edit(t)},del:function(t){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(t){this.params.pageIndex=t,this.getData()},handleChangePageSize:function(t){this.current=1,this.params.pageSize=t,this.getData()}}},y=w,k=Object(u["a"])(y,s,i,!1,null,null,null);e["default"]=k.exports},"15fd":function(t,e,a){"use strict";function s(t,e){if(null==t)return{};var a,s,i={},n=Object.keys(t);for(s=0;s<n.length;s++)a=n[s],e.indexOf(a)>=0||(i[a]=t[a]);return i}function i(t,e){if(null==t)return{};var a,i,n=s(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(i=0;i<l.length;i++)a=l[i],e.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}a.d(e,"a",(function(){return i}))},c3cb:function(t,e,a){"use strict";a("043a")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-24ec9ada"],{"2b5c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Card",{scopedSlots:e._u([{key:"title",fn:function(){return[n("div",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[n("h3",[e._v("操作日志")])])]},proxy:!0}])},[n("Table",{attrs:{columns:e.columns,data:e.data,loading:e.loading}}),n("div",{staticStyle:{width:"100%",height:"70px",display:"flex","align-items":"center"}},[n("Page",{attrs:{"show-total":"","show-sizer":"","show-elevator":"",total:e.total,"page-size":e.page_size,"model-value":"page_index"},on:{"on-change":e.currentPage,"on-page-size-change":e.currentPageCount}})],1)],1)],1)},a=[],c=(n("96cf"),n("1da1")),o=n("967e"),r=n.n(o),s=n("5e9b"),u={components:{},data:function(){return{loading:!1,total:null,page_size:10,page_index:1,columns:[{title:"操作时间",key:"createtime",minWidth:150,align:"center"},{title:"姓名",key:"user_name",minWidth:150,align:"center"},{title:"工号",key:"user_id",minWidth:150,align:"center"},{title:"操作内容",key:"type",minWidth:150,align:"center"},{title:"IP地址",key:"ip",minWidth:150,align:"center"}],data:[]}},computed:{},watch:{},methods:{currentPage:function(e){this.page_index=e,this.GetLogAll()},currentPageCount:function(e){this.page_size=e,this.GetLogAll()},publicConfirm:function(e){this.$Modal.confirm({title:"警告",content:"<p>是否继续此操作?</p>",cancelText:"取消",okText:"确定",onOk:function(){var t=Object(c["a"])(r.a.mark((function t(){return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e();case 2:case"end":return t.stop()}}),t)})));function n(){return t.apply(this,arguments)}return n}()})},publicMessage:function(e){1!==e.code?this.$Message["warning"]({background:!0,content:"操作异常"}):(this.$Spin.hide(),this.$Message["success"]({background:!0,content:"操作成功"}))},GetLogAll:function(){var e=Object(c["a"])(r.a.mark((function e(){var t=this;return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.hooks.getInitListRequest(Object(c["a"])(r.a.mark((function e(){var n,i;return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,n={page_index:t.page_index,page_size:t.page_size},e.next=4,s["g"](n);case 4:i=e.sent,t.total=i.response.data_count,t.data=i.response.data,t.loading=!1;case 8:case"end":return e.stop()}}),e)}))));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.GetLogAll()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},l=u,d=(n("89ef"),n("2877")),p=Object(d["a"])(l,i,a,!1,null,"166ccdc4",null);t["default"]=p.exports},"822b":function(e,t,n){},"89ef":function(e,t,n){"use strict";n("822b")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26cd7a24"],{"5df3":function(t,e,n){"use strict";var i=n("02f4")(!0);n("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})}))},"7dfb":function(t,e,n){"use strict";n("d338")},d338:function(t,e,n){},ebe1:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("h3",[t._v("签到列表   ")]),t.selectFlag?t._e():n("div",{staticClass:"selectTitleIcon",staticStyle:{display:"flex","align-items":"center"},on:{click:function(e){t.selectFlag=!0}}},[n("span",[t._v("展开")]),n("Icon",{attrs:{size:25,type:"ios-arrow-dropright",color:"#2d8cf0"}})],1),t.selectFlag?n("div",{staticClass:"selectTitleIcon",staticStyle:{display:"flex","align-items":"center"},on:{click:function(e){t.selectFlag=!t.selectFlag}}},[n("span",[t._v("收起")]),n("Icon",{staticClass:"selectTitleIcon",attrs:{size:25,type:"ios-arrow-dropdown",color:"#2d8cf0"}})],1):t._e()]),n("transition",{attrs:{name:"move-up"}},[t.selectFlag?n("div",[n("Row",{staticStyle:{"margin-top":"15px"},attrs:{justify:"space-between",wrap:""}},t._l(t.selectList,(function(e,i){return n("Col",{key:i,attrs:{span:4.5}},[n("div",{staticStyle:{display:"flex","flex-wrap":"nowrap","align-items":"center"}},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v(t._s(e[1]))]),n("Select",{key:i,staticStyle:{width:"10vw"},attrs:{clearable:""},model:{value:t.selectObject[e[2]],callback:function(n){t.$set(t.selectObject,e[2],n)},expression:"selectObject[item[2]]"}},t._l(e[0],(function(e,i){return n("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)])})),1),n("Row",{staticStyle:{"margin-top":"10px"},attrs:{justify:"space-between",wrap:""}},[n("Col",{attrs:{span:4.5}},[n("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[n("span",[t._v("值班日期: ")]),n("DatePicker",{staticStyle:{width:"10vw"},attrs:{type:"daterange",placeholder:"请选择值班日期"},on:{"on-change":t.signDateSelect},model:{value:t.dutyDateX,callback:function(e){t.dutyDateX=e},expression:"dutyDateX"}})],1)]),n("Col",{attrs:{span:4.5,push:6}}),n("Col",{attrs:{span:4.5}})],1)],1):t._e()])]},proxy:!0},{key:"extra",fn:function(){return[n("ButtonGroup",[0!==t.signArray.length?n("Button",{attrs:{label:"dutyModelOutput",icon:"ios-list-box-outline"},on:{click:function(e){return t.batchSignInOrSignOut(1)}}},[t._v("批量签到\n ")]):t._e(),0!==t.signArray.length?n("Button",{attrs:{label:"dutyModelOutput",icon:"ios-list-box-outline"},on:{click:function(e){return t.batchSignInOrSignOut(2)}}},[t._v("批量签退\n ")]):t._e(),n("Button",{staticStyle:{"margin-right":"20px"},attrs:{label:"dutyModelOutput",icon:"ios-log-out"},on:{click:t.importSignData}},[t._v("\n 导出签到消息\n ")]),n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center","margin-left":"20px"}},[n("Input",{staticStyle:{width:"15vw","margin-right":"20px"},attrs:{placeholder:"请输入名字或卡号"},model:{value:t.selectObject.key_name,callback:function(e){t.$set(t.selectObject,"key_name",e)},expression:"selectObject.key_name"}}),n("Button",{attrs:{type:"primary",icon:"ios-search"},on:{click:t.search}},[t._v("查询数据")])],1)],1)]},proxy:!0}])},[n("Table",{attrs:{columns:t.column,data:t.data,height:t.tableHeightCal,loading:t.loading},on:{"on-select":t.radioSelection,"on-select-cancel":t.cancelSelection,"on-select-all":t.allSelection,"on-select-all-cancel":t.cancelSelectionAll},scopedSlots:t._u([{key:"content",fn:function(e){var i=e.row;return[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("Ellipsis",{attrs:{text:i.content,length:10,tooltip:""}}),n("span",{on:{click:function(e){return t.logModalFun(i)}}},[n("Icon",{staticClass:"iconScale",attrs:{type:"ios-create",size:25}})],1)],1)]}},{key:"action",fn:function(e){var i=e.row;return[n("div",{staticStyle:{display:"flex","justify-content":"center"}},[2!==i.sign?n("Button",{staticStyle:{"margin-right":"10px"},attrs:{type:"success",disabled:Boolean(i.sign_set||0!==i.sign),size:"small",icon:"md-log-in"},on:{click:function(e){return t.signInOrSignOut(i,1)}}},[t._v("签\n ")]):t._e(),2!==i.sign?n("Button",{staticClass:"xiu",staticStyle:{display:"flex","justify-content":"space-between"},attrs:{disabled:Boolean(i.sign_set||1!==i.sign),type:"warning",size:"small"},on:{click:function(e){return t.signInOrSignOut(i,2)}}},[n("span",[t._v("退")]),n("Icon",{staticStyle:{"margin-left":"5px"},attrs:{type:"md-log-out"}})],1):t._e(),2===i.sign?n("Button",{attrs:{type:"success",disabled:Boolean(i.sign_set||0!==i.sign)},on:{click:function(e){return t.signInOrSignOut(i,1)}}},[t._v("\n 完成考勤\n "),n("Icon",{staticStyle:{"margin-left":"5px",color:"#23da6f"},attrs:{type:"md-checkmark-circle-outline"}})],1):t._e()],1)]}}])}),n("div",{staticStyle:{width:"100%",height:"70px",display:"flex","align-items":"center"}},[n("Page",{key:t.pageKey,attrs:{"show-total":"","show-sizer":"","show-elevator":"","page-size-opts":[100,200,500,1e3],total:t.total,"page-size":t.page_size,"model-value":"page_index"},on:{"on-change":t.currentPage,"on-page-size-change":t.currentPageCount}})],1)],1),n("Modal",{attrs:{title:"日志填写"},scopedSlots:t._u([{key:"footer",fn:function(){return[n("Button",{attrs:{type:"text"},on:{click:t.logCancel}},[t._v("取消")]),n("Button",{attrs:{type:"primary",loading:t.buttonLoding},on:{click:t.logOk}},[t._v("确定")])]},proxy:!0}]),model:{value:t.logModal,callback:function(e){t.logModal=e},expression:"logModal"}},[n("Form",{ref:"formValidate",attrs:{model:t.formValidate,rules:t.ruleValidate}},[n("FormItem",{attrs:{prop:"content"}},[n("Input",{attrs:{type:"textarea",autosize:{minRows:6,maxRows:6},placeholder:"请填写日志..."},model:{value:t.formValidate.content,callback:function(e){t.$set(t.formValidate,"content",e)},expression:"formValidate.content"}})],1)],1)],1),n("Modal",{attrs:{title:"导出签到信息",width:"40%"},scopedSlots:t._u([{key:"footer",fn:function(){return[n("Button",{attrs:{type:"text"},on:{click:t.signCancel}},[t._v("取消")]),n("Button",{attrs:{type:"primary",loading:t.buttonLoding},on:{click:t.signOk}},[t._v("确定")])]},proxy:!0}]),model:{value:t.importSignModel,callback:function(e){t.importSignModel=e},expression:"importSignModel"}},[n("Form",{ref:"signDataInput",attrs:{model:t.signyDataInputObject,rules:t.rulesSignDataInput,"label-width":80}},[n("FormItem",{attrs:{label:"名字或卡号",prop:"key_name"}},[n("Input",{attrs:{placeholder:"请输入名字或卡号"},model:{value:t.signyDataInputObject.key_name,callback:function(e){t.$set(t.signyDataInputObject,"key_name",e)},expression:"signyDataInputObject.key_name"}})],1),n("FormItem",{attrs:{label:"值班日期",prop:"watch_date"}},[n("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange"},on:{"on-change":t.signDataInputDateSelect}})],1),t._l(t.addDutySlectList,(function(e,i){return n("FormItem",{key:i,attrs:{label:e[1],prop:e[2],"label-width":80}},[n("Select",{attrs:{placeholder:e[1]},model:{value:t.signyDataInputObject[e[2]],callback:function(n){t.$set(t.signyDataInputObject,e[2],n)},expression:"signyDataInputObject[item[2]]"}},t._l(e[0],(function(e,i){return n("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)}))],2)],1)],1)},a=[],c=(n("5df3"),n("ac6a"),n("96cf"),n("1da1")),s=(n("a481"),n("967e")),r=n.n(s),o=n("5e9b"),l=(n("92c8"),n("806c")),u=n("5a0c"),d=n.n(u),h={components:{},data:function(){return{loading:!1,signArray:[],buttonLoding:!1,selectList:[],selectFlag:!1,signyDataInputObject:{watch_date:"",card_name:"",campusid:"",watch_hour_id:"",watchtypeid:"",dept_id:"",startTime:"",endTime:""},rulesSignDataInput:{key_name:[{type:"string",required:!0,message:"姓名或工号不能为空!",trigger:"blur"}],watch_date:[{type:"string",required:!0,message:"值班日期不能为空!",trigger:"change"}],campusid:[{type:"string",required:!0,message:"值班类型不能为空!",trigger:"change"}],watch_hour_id:[{type:"string",required:!0,message:"值班时段不能为空!",trigger:"change"}],watchtypeid:[{type:"string",required:!0,message:"值班校区不能为空!",trigger:"change"}],dept_id:[{type:"string",required:!0,message:"值班部门不能为空!",trigger:"change"}]},addDutySlectList:[],importSignModel:!1,ruleValidate:{content:[{type:"string",required:!0,message:"日志不能为空!",trigger:"blur"}]},formValidate:{content:""},logModal:!1,signFlag:!1,pageKey:1,selectObject:{dept_id:"",key_name:"",type_id:"",watchhour_time:"",campusid:"",watch_date:"",startTime:(new Date).toLocaleDateString("cn",{hour12:!1}).replace(/\//g,"-"),endTime:(new Date).toLocaleDateString("cn",{hour12:!1}).replace(/\//g,"-"),startTimeFlag:"",endTimeFlag:"",startTimeSearch:"",endTimeSearch:"",dep_idSearch:"",key_nameSearch:"",watchtypeidSearch:"",watch_hour_idSearch:"",campusidSearch:""},page_index:1,page_size:100,total:0,column:[{type:"selection",minWidth:60},{title:"值班日期",key:"watch_date",minWidth:120},{title:"姓名",key:"username",minWidth:120},{title:"工号",key:"card_name",minWidth:120},{title:"联系方式",key:"mobile",minWidth:120},{title:"值班类型",key:"watchtypename",minWidth:120},{title:"值班日志",slot:"content",minWidth:150},{title:"操作",slot:"action",align:"center",minWidth:120}],data:[],dutyDateX:[]}},computed:{tableHeightCal:function(){return document.documentElement.clientHeight-360}},watch:{selectObject:{deep:!0,handler:function(t,e){console.log("selectObject🚀🚀🚀,",t)}}},methods:{importSignData:function(){var t=Object(c["a"])(r.a.mark((function t(){var e,n;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e={dep_id:this.selectObject.dept_idSearch,key_name:this.selectObject.key_nameSearch,start_time:""===this.selectObject.startTimeSearch?this.selectObject.startTime:this.selectObject.startTimeSearch,end_time:""===this.selectObject.endTimeSearch?this.selectObject.endTime:this.selectObject.endTimeSearch,type_id:this.selectObject.watchtypeidSearch,watchhour_time:this.selectObject.watch_hour_idSearch,campus_id:this.selectObject.campusidSearch},t.next=3,o["A"](e);case 3:n=t.sent,window.location.href=this.$ascURL+n.response;case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),batchSignInOrSignOut:function(t){var e=this;this.publicConfirm((function(){e.hooks.myEncapsulationFunction(Object(c["a"])(r.a.mark((function n(){var i,a;return r.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=[],"",e.signArray.forEach((function(e,n){i.push({signid:e.signid,sign:t})})),n.next=5,o["B"](i);case 5:return a=n.sent,e.GetSignRecordList(),n.abrupt("return",a);case 8:case"end":return n.stop()}}),n)}))))}))},cancelSelectionAll:function(t){this.signArray=t,console.log("🚀🚀🚀,",this.signArray,t)},cancelSelection:function(t){this.signArray=t,console.log("🚀🚀🚀,",this.signArray,t)},allSelection:function(t){this.signArray=t,console.log("🚀🚀🚀,",this.signArray,t)},radioSelection:function(t){this.signArray=t,console.log("🚀🚀🚀,",this.signArray,t)},signInOrSignOut:function(t,e){var n=this;console.log("🚀🚀🚀,",t),this.publicConfirm((function(){l["myEncapsulationFunction"](Object(c["a"])(r.a.mark((function i(){var a,c;return r.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=[{signid:t.signid,sign:e}],i.next=3,o["B"](a);case 3:return c=i.sent,i.next=6,n.GetSignRecordList();case 6:return i.abrupt("return",c);case 7:case"end":return i.stop()}}),i)}))))}))},search:function(){var t=Object(c["a"])(r.a.mark((function t(){return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("🚀🚀🚀,",this.selectObject),this.selectObject.startTimeSearch=this.selectObject.startTimeFlag,this.selectObject.endTimeSearch=this.selectObject.endTimeFlag,this.selectObject.dept_idSearch=this.selectObject.dept_id,this.selectObject.key_nameSearch=this.selectObject.key_name,this.selectObject.watchtypeidSearch=this.selectObject.watchtypeid,this.selectObject.watch_hour_idSearch=this.selectObject.watch_hour_id,this.selectObject.campusidSearch=this.selectObject.campusid,this.pageKey++,this.page_index=1,t.next=12,this.GetSignRecordList();case 12:t.sent;case 13:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),signDateSelect:function(t){this.selectObject.watch_date=t[0]+"-"+t[1],this.selectObject.startTimeFlag=t[0],this.selectObject.endTimeFlag=t[1]},signDataInputDateSelect:function(t){this.signyDataInputObject.watch_date=t[0]+"-"+t[1],this.signyDataInputObject.startTime=t[0],this.signyDataInputObject.endTime=t[1],console.log("🚀🚀🚀,")},signCancel:function(){this.importSignModel=!1},signOk:function(){var t=this;this.$refs["signDataInput"].validate(function(){var e=Object(c["a"])(r.a.mark((function e(n){var i,a;return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=9;break}return t.buttonLoding=!0,i=t.signyDataInputObject,e.next=5,o["A"](i);case 5:a=e.sent,window.location.href=t.$ascURL+a.response,t.importSignModel=!1,t.buttonLoding=!1;case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},logOk:function(){var t=this;this.$refs["formValidate"].validate((function(e){e&&l["myEncapsulationFunction"](Object(c["a"])(r.a.mark((function e(){var n,i;return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.buttonLoding=!0,n={signId:t.formValidate.signid,content:t.formValidate.content},e.next=4,o["C"](n);case 4:return i=e.sent,t.logModal=!1,e.next=8,t.GetSignRecordList();case 8:return t.buttonLoding=!1,e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)}))))}))},logCancel:function(){this.logModal=!1},logModalFun:function(t){this.formValidate=_.cloneDeep(t),this.logModal=!0,console.log("🚀🚀🚀,",t)},signIdFunction:function(t){console.log("🚀🚀🚀,",t)},switchButton:function(t){var e,n=this,i=function(){var t=Object(c["a"])(r.a.mark((function t(e,i){var a;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={signid:e.signid,sign_set:i},t.next=3,o["D"](a);case 3:return t.sent,t.next=6,n.GetSignRecordList();case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();switch(t.sign_set){case 0:e=1,i(t,e);break;case 1:e=0,i(t,e);break}console.log("🚀🚀🚀,",t,e)},GetSignRecordList:function(){var t=Object(c["a"])(r.a.mark((function t(){var e=this;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:l["getInitListRequest"](Object(c["a"])(r.a.mark((function t(){var n,i;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,n={dep_id:e.selectObject.dept_idSearch,key_name:e.selectObject.key_nameSearch,start_time:""===e.selectObject.startTimeSearch?e.selectObject.startTime:e.selectObject.startTimeSearch,end_time:""===e.selectObject.endTimeSearch?e.selectObject.endTime:e.selectObject.endTimeSearch,type_id:e.selectObject.watchtypeidSearch,watchhour_time:e.selectObject.watch_hour_idSearch,page_index:e.page_index,page_size:e.page_size,campus_id:e.selectObject.campusidSearch,is_lead:0,sign:9},t.next=4,o["k"](n);case 4:i=t.sent,i.response.data.forEach((function(t,e){t._disabled=2===t.sign||1===t.sign_set})),e.data=i.response.data,e.total=i.response.data_count,e.loading=!1;case 9:case"end":return t.stop()}}),t)}))));case 1:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),addDutySearchSelectList:function(){var t=this;Promise.all([this.getSearchSelectListPromiseAllAction("dutyType","值班类型","watchtypeid",o["x"]),this.getSearchSelectListPromiseAllAction("dutyHourTime","值班时段","watch_hour_id",o["u"]),this.getSearchSelectListPromiseAllAction("campusname","值班校区","campusid",o["r"]),this.getSearchSelectListPromiseAllAction("dept_name","值班部门","dept_id",o["s"])]).then((function(e){t.addDutySlectList=e}))},addDutySearchSelectList1:function(){var t=this;Promise.all([this.getSearchSelectListPromiseAllAction("dutyType","值班类型:","watchtypeid",o["x"]),this.getSearchSelectListPromiseAllAction("dutyHourTime","值班时段:","watch_hour_id",o["u"]),this.getSearchSelectListPromiseAllAction("campusname","值班校区:","campusid",o["r"]),this.getSearchSelectListPromiseAllAction("dept_name","值班部门:","dept_id",o["s"])]).then((function(e){t.selectList=e}))},getSearchSelectListPromiseAllAction:function(t,e,n,i){return new Promise(function(){var t=Object(c["a"])(r.a.mark((function t(a,c){var s,o;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i();case 2:s=t.sent,o=[s.response,e,n],a(o);case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}())},currentPage:function(t){console.log(t),this.page_index=t,this.GetSignRecordList()},currentPageCount:function(t){this.page_size=t,this.GetSignRecordList()},publicConfirm:function(t){this.$Modal.confirm({title:"警告",content:"<p>是否继续此操作?</p>",cancelText:"取消",okText:"确定",onOk:function(){var e=Object(c["a"])(r.a.mark((function e(){return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()})},publicMessage:function(t){1!==t.code?this.$Message["warning"]({background:!0,content:"操作异常"}):(this.$Spin.hide(),this.$Message["success"]({background:!0,content:"操作成功"}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){var t=new Date,e=d()(t).format("YYYY-MM-")+d()(t).startOf("month").format("DD"),n=d()(t).format("YYYY-MM-")+d()(t).endOf("month").format("DD");this.signyDataInputObject.startTime=e,this.signyDataInputObject.endTime=n,this.selectObject.startTimeSearch=e,this.selectObject.endTimeSearch=n,this.selectObject.startTime=e,this.selectObject.endTime=n,this.dutyDateX=[new Date(e),new Date(n)],this.GetSignRecordList(),this.addDutySearchSelectList(),this.addDutySearchSelectList1()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},p=h,g=(n("7dfb"),n("2877")),m=Object(g["a"])(p,i,a,!1,null,"90cb5854",null);e["default"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b7c66fb"],{"16cd":function(t,e,a){},"5df3":function(t,e,a){"use strict";var i=a("02f4")(!0);a("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,a=this._i;return a>=e.length?{value:void 0,done:!0}:(t=i(e,a),this._i+=t.length,{value:t,done:!1})}))},9205:function(t,e,a){"use strict";a("16cd")},"9ca0":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{staticStyle:{width:"100%"},scopedSlots:t._u([{key:"title",fn:function(){return[a("div",{staticStyle:{display:"flex","align-items":"center"}},[a("h3",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[t._v("值班安排    ")]),t.selectFlag?t._e():a("div",{staticClass:"selectTitleIcon",staticStyle:{display:"flex","align-items":"center"},on:{click:function(e){t.selectFlag=!0}}},[a("span",[t._v("展开")]),a("Icon",{staticClass:"selectTitleIcon",attrs:{size:25,type:"ios-arrow-dropright",color:"#2d8cf0"}})],1),t.selectFlag?a("div",{staticClass:"selectTitleIcon",staticStyle:{display:"flex","align-items":"center"},on:{click:function(e){t.selectFlag=!t.selectFlag}}},[a("span",[t._v("收起")]),a("Icon",{staticClass:"selectTitleIcon",attrs:{size:25,type:"ios-arrow-dropdown",color:"#2d8cf0"}})],1):t._e()]),a("transition",{attrs:{name:"move-up"}},[t.selectFlag?a("div",[a("Row",{staticStyle:{"margin-top":"10px"},attrs:{justify:"space-between",wrap:""}},t._l(t.cityListAll,(function(e,i){return a("Col",{key:i,attrs:{span:4.5}},[a("div",{staticStyle:{display:"flex","flex-wrap":"nowrap","align-items":"center"}},[a("span",{staticStyle:{"margin-right":"5px"}},[t._v(t._s(e[1]))]),a("Select",{key:i,staticStyle:{width:"10vw"},attrs:{clearable:""},model:{value:t.cityListAllObject[e[2]],callback:function(a){t.$set(t.cityListAllObject,e[2],a)},expression:"cityListAllObject[item[2]]"}},t._l(e[0],(function(e,i){return a("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)])})),1),a("Row",{staticStyle:{"margin-top":"10px"},attrs:{justify:"space-between",wrap:""}},[a("Col",{attrs:{span:4.5}},[a("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[a("span",[t._v("值班日期: ")]),a("DatePicker",{staticStyle:{width:"10vw"},attrs:{type:"daterange",placeholder:"请选择值班日期"},on:{"on-change":t.dutyDateSelect},model:{value:t.dutyDateX,callback:function(e){t.dutyDateX=e},expression:"dutyDateX"}})],1)]),a("Col",{attrs:{span:4.5}},[a("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[a("span",[t._v("值班领导:    ")]),a("Select",{staticStyle:{width:"10vw"},attrs:{clearable:"",placeholder:"是否为值班领导"},model:{value:t.cityListAllObject.is_lead,callback:function(e){t.$set(t.cityListAllObject,"is_lead",e)},expression:"cityListAllObject.is_lead"}},t._l(t.dutyRole,(function(e,i){return a("Option",{key:i,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1)]),a("Col",{attrs:{span:4.5}},[a("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[a("span",[t._v("名字或卡号:")]),a("Input",{staticStyle:{width:"15vw","margin-right":"2.5vw"},attrs:{placeholder:"请输入名字或卡号"},model:{value:t.cityListAllObject.key_name,callback:function(e){t.$set(t.cityListAllObject,"key_name",e)},expression:"cityListAllObject.key_name"}})],1)]),a("Col",{attrs:{span:4.5}},[a("Button",{attrs:{type:"primary",icon:"ios-search"},on:{click:t.search}},[t._v("查询数据")])],1)],1)],1):t._e()])]},proxy:!0},{key:"extra",fn:function(){return[a("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[a("Button",{staticStyle:{"margin-right":"8px"},attrs:{type:"warning"},on:{click:t.batchPush}},[t._v("批量推送")]),a("ButtonGroup",[a("Button",{attrs:{icon:"ios-add-circle-outline"},on:{click:function(e){return t.handleButtonClick("addDuty")}}},[t._v("增添值班")]),a("Button",{attrs:{label:"dutyDataOutput",icon:"ios-log-out"},on:{click:t.dutyDataImport}},[t._v("数据导出\n ")]),a("Button",{staticStyle:{display:"flex","align-items":"center"},attrs:{icon:"ios-cloud-upload-outline",label:"dutyModelInput"},on:{click:function(e){return t.handleButtonClick("dutyModelInput")}}},[t._v("\n 模板导入\n ")]),a("Button",{attrs:{label:"dutyModelOutput",icon:"ios-log-out"},on:{click:function(e){t.exportModalShow=!0}}},[t._v("模板导出\n ")])],1)],1)]},proxy:!0}])},[a("Table",{attrs:{loading:t.tableLoading,columns:t.columns,data:t.data,height:t.tableHeightCal},on:{"on-select":t.onSelect,"on-select-cancel":t.onSelectCancel,"on-select-all":t.onSelectAll,"on-select-all-cancel":t.onSelectAllCancel},scopedSlots:t._u([{key:"is_lead",fn:function(e){var a=e.row;return[t._v("\n "+t._s(["值班教师","值班领导"][a.is_lead])+"\n ")]}},{key:"action",fn:function(e){var i=e.row;return[a("div",{staticStyle:{display:"flex","justify-content":"space-evenly"}},[a("Button",{attrs:{type:"warning",size:"small"},on:{click:function(e){return t.pushDuty(i)}}},[t._v("推送")]),a("Button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.updateDuty(i)}}},[t._v("修改")]),a("Button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.deleteDuty(i)}}},[t._v("删除")])],1)]}}])}),a("div",{staticStyle:{width:"100%",height:"70px",display:"flex","align-items":"center"}},[a("Page",{key:t.pageKey,attrs:{"show-total":"","show-sizer":"","show-elevator":"",total:t.total,"page-size":t.page_size,"page-size-opts":[100,200,500,1e3],"model-value":"page_index"},on:{"on-change":t.currentPage,"on-page-size-change":t.currentPageCount}})],1)],1),a("Modal",{attrs:{title:t.publicModalTitle,closable:"","mask-closable":!1,width:"40%"},scopedSlots:t._u([{key:"footer",fn:function(){return[a("Button",{attrs:{type:"text"},on:{click:t.asyncCancel}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.asyncOK}},[t._v("确定")])]},proxy:!0}]),model:{value:t.addDuty,callback:function(e){t.addDuty=e},expression:"addDuty"}},[a("Form",{ref:"formValidate",attrs:{model:t.formValidate,rules:t.ruleValidate,"label-width":80}},[a("FormItem",{attrs:{label:"姓名",prop:"username1"}},[a("Select",{attrs:{filterable:"",placeholder:"请选择用户"},on:{"on-change":t.usernameChange},model:{value:t.formValidate.username1,callback:function(e){t.$set(t.formValidate,"username1",e)},expression:"formValidate.username1"}},t._l(t.userArray,(function(e,i){return a("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1),a("FormItem",{attrs:{label:"工号",prop:"card_name"}},[a("Input",{attrs:{placeholder:"请输入工号"},model:{value:t.formValidate.card_name,callback:function(e){t.$set(t.formValidate,"card_name",e)},expression:"formValidate.card_name"}})],1),a("FormItem",{attrs:{label:"联系方式",prop:"mobile"}},[a("Input",{attrs:{type:"number",placeholder:"请输入联系方式"},model:{value:t.formValidate.mobile,callback:function(e){t.$set(t.formValidate,"mobile",e)},expression:"formValidate.mobile"}})],1),t._l(t.addDutySlectList,(function(e,i){return a("FormItem",{key:i,attrs:{label:e[1],prop:e[2],"label-width":80}},[a("Select",{attrs:{placeholder:e[1],filterable:!0},model:{value:t.formValidate[e[2]],callback:function(a){t.$set(t.formValidate,e[2],a)},expression:"formValidate[item[2]]"}},t._l(e[0],(function(e,i){return a("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)})),a("FormItem",{attrs:{label:"是否为值班领导",prop:"is_lead"}},[a("Select",{attrs:{placeholder:"是否为值班领导"},model:{value:t.formValidate.is_lead,callback:function(e){t.$set(t.formValidate,"is_lead",e)},expression:"formValidate.is_lead"}},t._l(t.dutyRole,(function(e,i){return a("Option",{key:i,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1),a("FormItem",{attrs:{label:"值班日期",prop:"watch_date"}},[a("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"date",options:t.options1,placeholder:"请选择值班日期"},on:{"on-change":t.dutyDate}})],1),a("FormItem",{attrs:{label:"值班要求",prop:"watch_remark"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"值班要求"},model:{value:t.formValidate.watch_remark,callback:function(e){t.$set(t.formValidate,"watch_remark",e)},expression:"formValidate.watch_remark"}})],1)],2)],1),a("Modal",{attrs:{title:"修改值班安排",width:"40%"},scopedSlots:t._u([{key:"footer",fn:function(){return[a("Button",{attrs:{type:"text"},on:{click:t.updateCancel}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.updateOK}},[t._v("确定")])]},proxy:!0}]),model:{value:t.updateDutyModal,callback:function(e){t.updateDutyModal=e},expression:"updateDutyModal"}},[a("Form",{ref:"updateDutyFrom",attrs:{model:t.updateDutyFrom,rules:t.updeteRuleValidate,"label-width":80}},[a("FormItem",{attrs:{label:"姓名",prop:"username1"}},[a("Select",{attrs:{filterable:"",placeholder:"请选择用户"},on:{"on-change":t.usernameChange1},model:{value:t.updateDutyFrom.username1,callback:function(e){t.$set(t.updateDutyFrom,"username1",e)},expression:"updateDutyFrom.username1"}},t._l(t.userArray,(function(e,i){return a("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1),a("FormItem",{attrs:{label:"工号",prop:"card_name"}},[a("Input",{attrs:{placeholder:"请输入工号"},model:{value:t.updateDutyFrom.card_name,callback:function(e){t.$set(t.updateDutyFrom,"card_name",e)},expression:"updateDutyFrom.card_name"}})],1),a("FormItem",{attrs:{label:"联系方式",prop:"mobile"}},[a("Input",{attrs:{type:"number",placeholder:"请输入联系方式"},model:{value:t.updateDutyFrom.mobile,callback:function(e){t.$set(t.updateDutyFrom,"mobile",e)},expression:"updateDutyFrom.mobile"}})],1),t._l(t.addDutySlectList,(function(e,i){return a("FormItem",{key:i,attrs:{label:e[1],prop:e[2],"label-width":80}},[a("Select",{attrs:{placeholder:e[1]},model:{value:t.updateDutyFrom[e[2]],callback:function(a){t.$set(t.updateDutyFrom,e[2],a)},expression:"updateDutyFrom[item[2]]"}},t._l(e[0],(function(e,i){return a("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)})),a("FormItem",{attrs:{label:"是否为值班领导",prop:"is_lead"}},[a("Select",{attrs:{placeholder:"是否为值班领导"},model:{value:t.updateDutyFrom.is_lead,callback:function(e){t.$set(t.updateDutyFrom,"is_lead",e)},expression:"updateDutyFrom.is_lead"}},t._l(t.dutyRole,(function(e,i){return a("Option",{key:i,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1),a("FormItem",{attrs:{label:"值班日期",prop:"watch_date"}},[a("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"date",value:t.updateDutyFrom.watch_date,options:t.options1},on:{"on-change":t.updateDutyDate}})],1),a("FormItem",{attrs:{label:"值班要求",prop:"watch_remark"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"值班要求"},model:{value:t.updateDutyFrom.watch_remark,callback:function(e){t.$set(t.updateDutyFrom,"watch_remark",e)},expression:"updateDutyFrom.watch_remark"}})],1)],2)],1),a("Modal",{attrs:{title:t.publicModalTitle,width:"40%"},scopedSlots:t._u([{key:"footer",fn:function(){return[a("Button",{attrs:{type:"text"},on:{click:t.dutyDataInputCancel}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.dutyDataInputOK}},[t._v("确定")])]},proxy:!0}]),model:{value:t.dutyDataInputModal,callback:function(e){t.dutyDataInputModal=e},expression:"dutyDataInputModal"}},[a("Form",{ref:"dutyDataInput",attrs:{model:t.dutyDataInputObject,rules:t.rulesDutyDataInput,"label-width":80}},[a("FormItem",{attrs:{label:"名字或卡号",prop:"key_name"}},[a("Input",{attrs:{placeholder:"请输入名字或卡号"},model:{value:t.dutyDataInputObject.key_name,callback:function(e){t.$set(t.dutyDataInputObject,"key_name",e)},expression:"dutyDataInputObject.key_name"}})],1),a("FormItem",{attrs:{label:"值班日期",prop:"watch_date"}},[a("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange"},on:{"on-change":t.dutyDataInputDateSelect}})],1),a("FormItem",{attrs:{label:"是否为值班领导",prop:"is_lead"}},[a("Select",{attrs:{placeholder:"是否为值班领导"},model:{value:t.dutyDataInputObject.is_lead,callback:function(e){t.$set(t.dutyDataInputObject,"is_lead",e)},expression:"dutyDataInputObject.is_lead"}},t._l(t.dutyRole,(function(e,i){return a("Option",{key:i,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1),t._l(t.addDutySlectList,(function(e,i){return a("FormItem",{key:i,attrs:{label:e[1],prop:e[2],"label-width":80}},[a("Select",{attrs:{placeholder:e[1]},model:{value:t.dutyDataInputObject[e[2]],callback:function(a){t.$set(t.dutyDataInputObject,e[2],a)},expression:"dutyDataInputObject[item[2]]"}},t._l(e[0],(function(e,i){return a("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)}))],2)],1),a("Modal",{attrs:{title:t.publicModalTitle,width:"40%"},scopedSlots:t._u([{key:"footer",fn:function(){return[a("Button",{attrs:{type:"text"},on:{click:t.dutyModelImportCancel}},[t._v("取消")])]},proxy:!0}]),model:{value:t.dutyModelImportModal,callback:function(e){t.dutyModelImportModal=e},expression:"dutyModelImportModal"}},[a("Upload",{attrs:{"before-upload":t.dutyModelUpload,"on-error":t.dutyModelError,"on-success":t.dutyModelSuccess,"on-format-error":t.dutyModelFormatError,format:["xlsx"],multiple:!1,type:"drag",action:""}},[a("div",{staticStyle:{padding:"120px 0"}},[a("Icon",{staticStyle:{color:"#3399ff"},attrs:{type:"ios-cloud-upload",size:"52"}}),a("p",[t._v("值班模板文件上传")])],1)])],1),a("Modal",{attrs:{"mask-closable":!1,title:"模板导出"},on:{"on-ok":t.exportTemplate},model:{value:t.exportModalShow,callback:function(e){t.exportModalShow=e},expression:"exportModalShow"}},[a("span",[t._v("模板年月:")]),a("DatePicker",{attrs:{type:"month",format:"yyyy-MM",placeholder:""},model:{value:t.tempYearMonth,callback:function(e){t.tempYearMonth=e},expression:"tempYearMonth"}})],1)],1)},n=[],r=(a("8e6e"),a("456d"),a("ac6a"),a("5df3"),a("28a5"),a("20d6"),a("96cf"),a("1da1")),l=a("ade3"),c=(a("a481"),a("967e")),s=a.n(c),o=a("5e9b"),u=a("2ef0"),d=a.n(u),p=a("c276"),y=(a("a78e"),a("5a0c")),m=a.n(y),h=a("806c");function f(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function g(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?f(Object(a),!0).forEach((function(e){Object(l["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):f(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var b={components:{},data:function(){return{userArray:[],tableLoading:!1,fileUploadFlag:!1,loadingStatus:!1,file:null,dutyModelImportModal:!1,dutyDataInputObject:{startTime:"",endTime:"",is_lead:"",watch_date:"",campusid:"",watch_hour_id:"",watchtypeid:"",dept_id:""},publicModalTitle:"",dutyDataInputModal:!1,DatePickerKey:1,updateDutyFrom:{},updateDutyModal:!1,addDutySlectList:[],dutyRole:[{label:"否",value:0},{label:"是",value:1}],options1:{disabledDate:function(t){return t&&t.valueOf()<Date.now()-864e5}},formValidate:{username:"",watch_date:"",mobile:"",is_lead:"",card_name:"",watch_remark:"",campusid:"",watch_hour_id:"",watchtypeid:"",dept_id:""},rulesDutyDataInput:{key_name:[{type:"string",required:!0,message:"姓名或工号不能为空!",trigger:"blur"}],watch_date:[{type:"string",required:!0,message:"值班日期不能为空!",trigger:"change"}],is_lead:[{type:"number",required:!0,message:"值班权限不能为空!",trigger:"change"}],campusid:[{type:"string",required:!0,message:"值班类型不能为空!",trigger:"change"}],watchtypeid:[{type:"string",required:!0,message:"值班校区不能为空!",trigger:"change"}],dept_id:[{type:"string",required:!0,message:"值班部门不能为空!",trigger:"change"}]},updeteRuleValidate:{username1:[{type:"string",required:!0,message:"姓名不能为空!",trigger:"change"}],card_name:[{type:"string",required:!0,message:"工号不能为空!!",trigger:"blur"}],mobile:[{type:"string",required:!0,message:"联系方式不能为空!",trigger:"blur"}],watch_date:[{type:"string",required:!0,message:"值班日期不能为空!",trigger:"blur"}],is_lead:[{type:"number",required:!0,message:"值班权限不能为空!",trigger:"change"}],campusid:[{type:"string",required:!0,message:"值班类型不能为空!",trigger:"change"}],watchtypeid:[{type:"string",required:!0,message:"值班校区不能为空!",trigger:"change"}],dept_id:[{type:"string",required:!0,message:"值班部门不能为空!",trigger:"change"}]},ruleValidate:{username1:[{type:"string",required:!0,message:"姓名不能为空!",trigger:"change"}],card_name:[{type:"string",required:!0,message:"工号不能为空!!",trigger:"change"}],mobile:[{type:"string",required:!0,message:"联系方式不能为空!",trigger:"blur"}],watch_date:[{type:"string",required:!0,message:"值班日期不能为空!",trigger:"change"}],is_lead:[{type:"number",required:!0,message:"值班权限不能为空!",trigger:"change"}],campusid:[{type:"string",required:!0,message:"值班类型不能为空!",trigger:"change"}],watchtypeid:[{type:"string",required:!0,message:"值班校区不能为空!",trigger:"change"}],dept_id:[{type:"string",required:!0,message:"值班部门不能为空!",trigger:"change"}]},addDutyLoading:!0,addDuty:!1,selectFlag:!1,cityListAllObject:{dutyType:"",dutyHourTime:"",dutyCampus:"",dutyDepSelect:"",key_name:"",is_lead:3,dutyDate:"",startTime:(new Date).toLocaleDateString("cn",{hour12:!1}).replace(/\//g,"-"),endTime:(new Date).toLocaleDateString("cn",{hour12:!1}).replace(/\//g,"-"),startTimeSearch:"",endTimeSearch:"",startTimeFlag:"",endTimeFlag:""},cityListAlltSearchFlagObject:{dutyType:"",dutyHourTime:"",dutyCampus:"",dutyDepSelect:"",key_name:"",is_lead:3,dutyDate:"",startTimeSearch:"",endTimeSearch:""},buttonSize:"",searchSlecte:["值班类型","值班部门","值班校区"],cityListAll:[],model1:"",model2:"",model3:"",model4:"",pageKey:1,total:0,page_index:1,page_size:100,is_lead:3,columns:[{type:"selection",width:60,align:"center",fixed:"left"},{title:"序号",type:"index",width:80,align:"center"},{title:"值班日期",key:"watch_date",minWidth:100,sortable:!0},{title:"值班权限",slot:"is_lead",minWidth:100},{title:"姓名",key:"username",minWidth:100},{title:"工号",key:"card_name",minWidth:100},{title:"联系方式",key:"mobile",minWidth:120},{title:"值班要求",key:"watch_remark",minWidth:100},{title:"值班时间",key:"watch_hour_time",minWidth:100},{title:"值班部门",key:"dept_name",minWidth:100},{title:"值班类型",key:"watchtypename",minWidth:100},{title:"值班校区",key:"campusname",minWidth:100},{title:"操作",slot:"action",minWidth:160,align:"center",fixed:"right"}],data:[],pushListSlc:[],exportModalShow:!1,tempYearMonth:"",dutyDateX:[]}},computed:{tableHeightCal:function(){return document.documentElement.clientHeight-360},util:function(){return p["a"]}},watch:{"cityListAllObject.dutyType":function(t,e){console.log("🚀🚀🚀,",t)},"cityListAllObject.dutyHourTime":function(t,e){console.log("🚀🚀🚀,",t)},"cityListAllObject.dutyCampus":function(t,e){console.log("🚀🚀🚀,",t)},"cityListAllObject.dutyDepSelect":function(t,e){console.log("🚀🚀🚀,",t)},dutyDataInputObject:{deep:!0,handler:function(t,e){console.log("🚀🚀🚀,",t)}},cityListAllObject:{deep:!0,handler:function(t,e){console.log("🚀🚀🚀,",t)}},formValidate:{deep:!0,handler:function(t,e){console.log("🚀🚀🚀,",t)}}},methods:{usernameChange1:function(t){var e=this;o["K"]({card:t}).then((function(t){e.updateDutyFrom=g(g({},e.updateDutyFrom),t.response)}))},usernameChange:function(t){var e=this;o["K"]({card:t}).then((function(t){e.formValidate=g(g({},e.formValidate),t.response)}))},dutyModelImportCancel:function(){this.dutyModelImportModal=!1},dutyModelImportOK:function(){this.file=null,this.loadingStatus=!1},dutyModelUpload:function(){var t=Object(r["a"])(s.a.mark((function t(e){var a,i;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=new FormData,a.append("file",e),t.next=4,o["Q"](a);case 4:if(i=t.sent,1===i.code){t.next=9;break}this.$Message.error(i.msg_detail),t.next=12;break;case 9:return t.next=11,this.getWatchList();case 11:this.dutyModelImportModal=!1;case 12:return t.abrupt("return",!1);case 13:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),dutyModelFormatError:function(t,e){this.$Message.error("文件格式错误!")},dutyModelSuccess:function(t,e,a){this.$Message.info(t.msg)},dutyModelError:function(t,e,a){},dutyDataInputCancel:function(){this.dutyDataInputModal=!1},dutyDataImport:function(){var t=Object(r["a"])(s.a.mark((function t(){var e,a;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e={start_time:""!==this.cityListAlltSearchFlagObject.startTimeSearch?this.cityListAlltSearchFlagObject.startTimeSearch:this.cityListAllObject.startTime,end_time:""!==this.cityListAlltSearchFlagObject.endTimeSearch?this.cityListAlltSearchFlagObject.endTimeSearch:this.cityListAllObject.endTime,is_lead:this.cityListAlltSearchFlagObject.is_lead,dep_id:this.cityListAlltSearchFlagObject.dutyDepSelect,key_name:this.cityListAlltSearchFlagObject.key_name,type_id:this.cityListAlltSearchFlagObject.dutyType,watchhour_time:this.cityListAlltSearchFlagObject.dutyHourTime,campus_id:this.cityListAlltSearchFlagObject.dutyCampus},t.next=3,o["M"](e);case 3:a=t.sent,window.location.href=this.$ascURL+a.response;case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),dutyDataInputOK:function(){var t=this;this.$refs["dutyDataInput"].validate(function(){var e=Object(r["a"])(s.a.mark((function e(a){var i,n;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=6;break}return i={dep_id:t.dutyDataInputObject.dep_id,key_name:t.dutyDataInputObject.key_name,start_time:t.dutyDataInputObject.startTime,end_time:t.dutyDataInputObject.endTime,type_id:t.dutyDataInputObject.watchtypeid,watchhour_time:t.dutyDataInputObject.watch_hour_id,is_lead:t.dutyDataInputObject.is_lead},e.next=4,o["M"](i);case 4:n=e.sent,window.location.href=t.$ascURL+n.response;case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},dutyDataInputDateSelect:function(t){this.dutyDataInputObject.watch_date=t[0]+"-"+t[1],this.dutyDataInputObject.startTime=t[0],this.dutyDataInputObject.endTime=t[1]},updateDutyDate:function(t){this.updateDutyFrom.watch_date=t},updateCancel:function(){this.updateDutyModal=!1},updateOK:function(){var t=this;this.$refs["updateDutyFrom"].validate((function(e){e&&h["myEncapsulationFunction"](Object(r["a"])(s.a.mark((function e(){var a,i;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.updateDutyFrom,e.next=3,o["S"](a);case 3:return i=e.sent,t.getWatchList(),t.updateDutyModal=!1,e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)}))))}))},validateTime:function(t){var e=new Date(t),a=e.getFullYear(),i=e.getMonth(),n=e.getDate();return"".concat(a,"-").concat(i,"-").concat(n)},onSelect:function(t,e){this.pushListSlc.push(e.watchid)},onSelectCancel:function(t,e){var a=this.pushListSlc.findIndex((function(t){return t==e.watchid}));this.pushListSlc.splice(a,1)},onSelectAll:function(t){this.pushListSlc=t.map((function(t){return t.watchid}))},onSelectAllCancel:function(t){this.pushListSlc=[]},batchPush:function(){var t=this;0!=this.pushListSlc.length?this.$Modal.confirm({title:"提示",content:"是否确认推送?",loading:!0,onOk:function(){t.pushM(t.pushListSlc).then((function(){t.$Modal.remove(),t.getWatchList()}))}}):this.$Message.warning({content:"请选择要推送的人员",background:!0})},pushDuty:function(t){var e=this;this.$Modal.confirm({title:"提示",content:"是否确认推送?",loading:!0,onOk:function(){e.pushM([t.watchid]).then((function(){e.$Modal.remove()}))}})},pushM:function(t){var e=this;return new Promise((function(a){o["T"](t).then((function(t){1==t.code?e.$Message.success({content:t.msg,background:!0}):e.$Message.error({content:t.msg_detail,background:!0})})).finally((function(){a()}))}))},updateDuty:function(t){this.updateDutyFrom=d.a.cloneDeep(g(g({},t),{},{username1:t.card_name})),this.updateDutyModal=!0},deleteDuty:function(t){var e=this;this.publicConfirm((function(){h["myEncapsulationFunction"](Object(r["a"])(s.a.mark((function a(){var i,n;return s.a.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i={id:t.watchid},a.next=3,o["N"](i);case 3:return n=a.sent,e.getWatchList(),a.abrupt("return",n);case 6:case"end":return a.stop()}}),a)}))))}))},search:function(){var t=Object(r["a"])(s.a.mark((function t(){return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.cityListAllObject.startTimeSearch=""!==this.cityListAllObject.startTimeFlag?this.cityListAllObject.startTimeFlag:this.cityListAllObject.startTime,this.cityListAllObject.endTimeSearch=""!==this.cityListAllObject.endtTimeFlag?this.cityListAllObject.endtTimeFlag:this.cityListAllObject.endTime,void 0===this.cityListAllObject.is_lead?this.cityListAllObject.is_lead=3:this.cityListAllObject.is_lead,this.cityListAlltSearchFlagObject=d.a.cloneDeep(this.cityListAllObject),this.pageKey++,this.page_index=1,t.next=8,this.getWatchList();case 8:t.sent;case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),dutyDateSelect:function(t){this.cityListAllObject.startTimeFlag=t[0],this.cityListAllObject.endtTimeFlag=t[1]},dutyDate:function(t){this.formValidate.watch_date=t},asyncOK:function(){var t=this,e=d.a.cloneDeep(this.formValidate);this.$refs["formValidate"].validate((function(a){a&&h["myEncapsulationFunction"](Object(r["a"])(s.a.mark((function a(){var i;return s.a.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,o["L"](e);case 2:return i=a.sent,a.next=5,t.getWatchList();case 5:return t.addDuty=!1,a.abrupt("return",i);case 7:case"end":return a.stop()}}),a)}))))}))},asyncCancel:function(){this.addDuty=!1},exportTemplate:function(){var t=m()(this.tempYearMonth).format("YYYY-MM").split("-");o["R"](t[0],t[1]).then((function(t){window.open(t.response)}))},handleButtonClick:function(){var t=Object(r["a"])(s.a.mark((function t(e){var a;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.t0=e,t.next="addDuty"===t.t0?3:"dutyModelOutput"===t.t0?6:"dutyDataOutput"===t.t0?11:"dutyModelInput"===t.t0?14:16;break;case 3:return this.publicModalTitle="增添值班数据",this.addDuty=!0,t.abrupt("break",16);case 6:return t.next=8,o["R"]();case 8:return a=t.sent,window.location.href=this.$ascURL+a.response,t.abrupt("break",16);case 11:return this.publicModalTitle="值班数据导出",this.dutyDataInputModal=!0,t.abrupt("break",16);case 14:this.publicModalTitle="值班模板导入",this.dutyModelImportModal=!0;case 16:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),addDutySearchSelectList:function(){var t=this;Promise.all([this.getSearchSelectListPromiseAllAction("dept_name","值班部门","dept_id",o["s"]),this.getSearchSelectListPromiseAllAction("dutyType","值班类型","watchtypeid",o["x"]),this.getSearchSelectListPromiseAllAction("campusname","值班校区","campusid",o["r"])]).then((function(e){t.addDutySlectList=e,console.log("🚀🚀🚀,",e),t.DatePickerKey++}))},getSearchSelectListPromiseAllAction:function(t,e,a,i){return new Promise(function(){var t=Object(r["a"])(s.a.mark((function t(n,r){var l,c;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i();case 2:l=t.sent,c=[l.response,e,a],n(c);case 5:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}())},getSearchSelectList:function(){var t=this;Promise.all([this.getSearchSelectListPromiseAllAction("dutyType","值班类型:","dutyType",o["x"]),this.getSearchSelectListPromiseAllAction("dutyHourTime","值班时段:","dutyHourTime",o["u"]),this.getSearchSelectListPromiseAllAction("dutyCampus","值班校区:","dutyCampus",o["r"]),this.getSearchSelectListPromiseAllAction("dutyDepSelect","值班部门:","dutyDepSelect",o["s"])]).then((function(e){t.cityListAll=e}))},getWatchList:function(){var t=Object(r["a"])(s.a.mark((function t(){var e=this;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:h["getInitListRequest"](Object(r["a"])(s.a.mark((function t(){var a,i;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.tableLoading=!0,e.pushListSlc=[],a={page_index:e.page_index,page_size:e.page_size,start_time:""!==e.cityListAlltSearchFlagObject.startTimeSearch?e.cityListAlltSearchFlagObject.startTimeSearch:e.cityListAllObject.startTime,end_time:""!==e.cityListAlltSearchFlagObject.endTimeSearch?e.cityListAlltSearchFlagObject.endTimeSearch:e.cityListAllObject.endTime,is_lead:e.cityListAlltSearchFlagObject.is_lead,dep_id:e.cityListAlltSearchFlagObject.dutyDepSelect,key_name:e.cityListAlltSearchFlagObject.key_name,type_id:e.cityListAlltSearchFlagObject.dutyType,watchhour_time:e.cityListAlltSearchFlagObject.dutyHourTime,campus_id:e.cityListAlltSearchFlagObject.dutyCampus},t.next=5,o["v"](a);case 5:i=t.sent,e.data=i.response.data,e.total=i.response.data_count,e.tableLoading=!1;case 9:case"end":return t.stop()}}),t)}))));case 1:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),currentPage:function(t){this.page_index=t,this.getWatchList()},currentPageCount:function(t){this.page_size=t,this.getWatchList()},publicConfirm:function(t){this.$Modal.confirm({title:"警告",content:"<p>是否继续此操作?</p>",cancelText:"取消",okText:"确定",onOk:function(){var e=Object(r["a"])(s.a.mark((function e(){return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:case"end":return e.stop()}}),e)})));function a(){return e.apply(this,arguments)}return a}()})},publicMessage:function(t){1!==t.code?this.$Message["warning"]({background:!0,content:"操作异常"}):(this.$Spin.hide(),this.$Message["success"]({background:!0,content:"操作成功"}))},GetUserSelect:function(){var t=this;o["q"]({condition:""}).then((function(e){t.userArray=e.response}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){var t=new Date,e=m()(t).format("YYYY-MM-")+m()(t).startOf("month").format("DD"),a=m()(t).format("YYYY-MM-")+m()(t).endOf("month").format("DD");this.cityListAllObject.startTimeFlag=e,this.cityListAllObject.endtTimeFlag=a,this.cityListAlltSearchFlagObject.startTimeSearch=e,this.cityListAlltSearchFlagObject.endTimeSearch=a,this.dutyDateX=[new Date(e),new Date(a)],this.addDutySearchSelectList(),this.getWatchList(),this.getSearchSelectList(),this.GetUserSelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},_=b,v=(a("9205"),a("2877")),w=Object(v["a"])(_,i,n,!1,null,"610c9a35",null);e["default"]=w.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a36aa"],{"01a4":function(t,n,e){"use strict";e.r(n);var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("Card",[e("Table",{attrs:{columns:t.columns,data:t.data}})],1)],1)},a=[],c={components:{},data:function(){return{columns:[{type:"index",title:"序号"}],data:[{}]}},computed:{},watch:{},methods:{},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},u=c,d=e("2877"),i=Object(d["a"])(u,o,a,!1,null,"52839822",null);n["default"]=i.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c45e8"],{"3b14":function(n,e,c){"use strict";c.r(e);var o=function(){var n=this,e=n.$createElement,c=n._self._c||e;return c("div",[n._v("\n 欢迎使用 iView Admin Pro\n")])},t=[],a={name:"dashboard-console"},i=a,l=c("2877"),r=Object(l["a"])(i,o,t,!1,null,null,null);e["default"]=r.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2084c8"],{a3cc:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[n("RadioGroup",{attrs:{type:"button"},model:{value:t.buttonSize,callback:function(e){t.buttonSize=e},expression:"buttonSize"}},[n("Radio",{attrs:{label:"type"}},[t._v("值班类型")]),n("Radio",{attrs:{label:"time"}},[t._v("值班时间")]),n("Radio",{attrs:{label:"campus"}},[t._v("校区配置")]),n("Radio",{attrs:{label:"info"}},[t._v("消息提醒")]),n("Radio",{attrs:{label:"attendance"}},[t._v("考勤管理")])],1)],1)]},proxy:!0},{key:"extra",fn:function(){return[n("div",{staticStyle:{display:"flex","flex-wrap":"nowrap","align-items":"center"}},[t.showComponent.info||t.showComponent.attendance?t._e():n("Input",{attrs:{placeholder:"请输入权限名称进行查找..."},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),t.showComponent.info||t.showComponent.attendance?t._e():n("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",disabled:""===t.searchValue},on:{click:t.searchEvent}},[t._v("查找\n ")]),t.showComponent.info||t.showComponent.attendance?t._e():n("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:t.addWatchType}},[t._v("\n "+t._s(t.ModalTitleValue)+"\n ")]),t.showComponent.attendance?n("Button",{attrs:{type:"primary"},on:{click:t.addAttendance}},[t._v("添加考勤范围")]):t._e()],1)]},proxy:!0}])},[t.showComponent.type?n("watchType",{attrs:{input:t.formTop,searchValue:t.searchValue},on:{cancelModal:t.cancelModal}}):t._e(),t.showComponent.info?n("MessageConfig"):t._e(),t.showComponent.campus?n("Campus",{attrs:{input:t.formTop,searchValue:t.searchValue},on:{cancelModal:t.cancelModal}}):t._e(),t.showComponent.time?n("WatchHour",{attrs:{input:t.formTop,searchValue:t.searchValue},on:{cancelModal:t.cancelModal}}):t._e(),t.showComponent.attendance?n("Attendance",{ref:"attendance"}):t._e(),n("Modal",{attrs:{title:""+t.ModalTitleValue,"cancel-text":"取消","ok-text":"确认","mask-closable":!1,loading:t.loading},on:{"on-ok":function(e){return t.modalOk()}},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[n("Form",{ref:"updateRoleValue",attrs:{model:t.formTop,"label-width":80}},[t.showComponent.type?n("FormItem",{attrs:{label:"值班名称",prop:"input1"}},[n("Input",{model:{value:t.formTop.input1,callback:function(e){t.$set(t.formTop,"input1",e)},expression:"formTop.input1"}})],1):t._e(),t.showComponent.type?n("FormItem",{attrs:{label:"值班时间",prop:"input3"}},[n("Select",{attrs:{placeholder:""},model:{value:t.formTop.input3,callback:function(e){t.$set(t.formTop,"input3",e)},expression:"formTop.input3"}},t._l(t.watchHourTimeList,(function(e){return n("Option",{key:e.id,attrs:{value:e.id}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1):t._e(),t.showComponent.type?n("FormItem",{attrs:{label:"值班备注",prop:"input2"}},[n("Input",{model:{value:t.formTop.input2,callback:function(e){t.$set(t.formTop,"input2",e)},expression:"formTop.input2"}})],1):t._e(),t.showComponent.type?n("FormItem",{attrs:{label:"签到类型"}},[n("Select",{attrs:{placeholder:""},model:{value:t.formTop.type,callback:function(e){t.$set(t.formTop,"type",e)},expression:"formTop.type"}},[n("Option",{attrs:{value:0}},[t._v("免打卡")]),n("Option",{attrs:{value:1}},[t._v("无定位打卡")]),n("Option",{attrs:{value:2}},[t._v("定位拍照打卡")])],1)],1):t._e(),t.showComponent.campus?n("FormItem",{attrs:{label:"校区名称",prop:"input1"}},[n("Input",{model:{value:t.formTop.input1,callback:function(e){t.$set(t.formTop,"input1",e)},expression:"formTop.input1"}})],1):t._e(),t.showComponent.time?n("FormItem",{attrs:{label:"区间名称",prop:"input1"}},[n("Input",{model:{value:t.formTop.timeName1,callback:function(e){t.$set(t.formTop,"timeName1",e)},expression:"formTop.timeName1"}})],1):t._e(),t.showComponent.time?n("FormItem",{attrs:{label:"时间",prop:"input2"}},[n("TimePicker",{staticStyle:{width:"100%"},attrs:{format:"HH:mm",type:"timerange",placement:"bottom-end",placeholder:"Select time"},on:{"on-change":t.selectTileValue}})],1):t._e()],1)],1)],1)],1)},o=[],i=n("5e9b"),r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Table",{attrs:{columns:t.columns,data:t.data,loading:t.loading},scopedSlots:t._u([{key:"sign_type",fn:function(e){var a=e.row;return[0==a.sign_type?n("span",[t._v("免打卡")]):t._e(),1==a.sign_type?n("span",[t._v("无定位打卡")]):t._e(),2==a.sign_type?n("span",[t._v("定位拍照打卡")]):t._e()]}},{key:"action",fn:function(e){var a=e.row;return[n("Button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.update(a)}}},[t._v("修改")]),n("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"error",size:"small"},on:{click:function(e){return t.Delete(a)}}},[t._v("删除")])]}}])}),n("div",{staticStyle:{width:"100%",height:"70px",display:"flex","align-items":"center"}},[n("Page",{attrs:{"show-total":"","show-sizer":"","show-elevator":"",total:t.total,"page-size":t.page_size,"model-value":"page_index"},on:{"on-change":t.currentPage,"on-page-size-change":t.currentPageCount}})],1),n("Modal",{attrs:{title:"值班类型","cancel-text":"取消","ok-text":"确认","mask-closable":!1},on:{"on-ok":t.modalOk},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[n("Form",{ref:"updateRoleValue",attrs:{model:t.formTop,"label-width":100}},[n("FormItem",{attrs:{label:"值班类型",prop:"input1"}},[n("Input",{model:{value:t.formTop.input1,callback:function(e){t.$set(t.formTop,"input1",e)},expression:"formTop.input1"}})],1),n("FormItem",{attrs:{label:"值班时间",prop:"input2"}},[n("Select",{attrs:{placeholder:""},model:{value:t.formTop.input3,callback:function(e){t.$set(t.formTop,"input3",e)},expression:"formTop.input3"}},t._l(t.watchHourTimeList,(function(e){return n("Option",{key:e.id,attrs:{value:e.id}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1),n("FormItem",{attrs:{label:"值班类型备注",prop:"input2"}},[n("Input",{model:{value:t.formTop.input2,callback:function(e){t.$set(t.formTop,"input2",e)},expression:"formTop.input2"}})],1),n("FormItem",{attrs:{label:"签到类型"}},[n("Select",{attrs:{placeholder:""},model:{value:t.formTop.type,callback:function(e){t.$set(t.formTop,"type",e)},expression:"formTop.type"}},[n("Option",{attrs:{value:0}},[t._v("免打卡")]),n("Option",{attrs:{value:1}},[t._v("无定位打卡")]),n("Option",{attrs:{value:2}},[t._v("定位拍照打卡")])],1)],1)],1)],1)],1)},s=[],c=(n("96cf"),n("1da1")),u=n("967e"),l=n.n(u),p=n("806c"),d={name:"watchType",components:{},props:["input","searchValue"],data:function(){return{watchHourTimeList:[],modal:!1,formTop:{id:"",input1:"",input2:"",input3:"",type:""},page_size:10,page_index:1,total:null,loading:!1,columns:[{title:"序号",type:"index"},{title:"值班类型",key:"watchtypename"},{title:"值班时间",key:"watchhourname"},{title:"类型备注",key:"watchtype_remark"},{title:"签到类型",slot:"sign_type"},{title:"操作",slot:"action",align:"center"}],data:[]}},computed:{},watch:{"input.flag":function(){var t=Object(c["a"])(l.a.mark((function t(e,n){var a,o;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log(e),!e){t.next=10;break}return a={watchtypename:this.input.input1,watchtype_remark:this.input.input2,watchhour_id:this.input.input3,sign_type:this.input.type},t.next=5,i["V"](a);case 5:return o=t.sent,t.next=8,this.GetWatchTypeList();case 8:this.input.flag=!1,1===o.code&&this.$emit("cancelModal",!1);case 10:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}(),"input.searchFlag":function(){var t=Object(c["a"])(l.a.mark((function t(e,n){return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log(e),!e){t.next=6;break}return t.next=4,this.GetWatchTypeList();case 4:this.input.searchFlag=!1,this.$emit("cancelModal",!1);case 6:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}()},methods:{modalOk:function(){var t=this;p["myEncapsulationFunction"](Object(c["a"])(l.a.mark((function e(){var n,a;return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={watchtypeid:t.formTop.id,watchtypename:t.formTop.input1,watchtype_remark:t.formTop.input2,watchhour_id:t.formTop.input3,sign_type:t.formTop.type},e.next=3,i["V"](n);case 3:return a=e.sent,e.next=6,t.GetWatchTypeList();case 6:return e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)}))))},update:function(t){this.formTop.id=t.watchtypeid,this.formTop.input1=t.watchtypename,this.formTop.input2=t.watchtype_remark,this.formTop.input3=t.watchhour_id,this.formTop.type=t.sign_type,this.modal=!0},DeleteAction:function(){var t=Object(c["a"])(l.a.mark((function t(){var e=this;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:p["myEncapsulationFunction"](Object(c["a"])(l.a.mark((function t(){var n,a;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={id:e.formTop.id},t.next=3,i["U"](n);case 3:return a=t.sent,t.next=6,e.GetWatchTypeList();case 6:return t.abrupt("return",a);case 7:case"end":return t.stop()}}),t)}))));case 1:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),Delete:function(t){var e=this;this.formTop.id=t.watchtypeid,this.publicConfirm((function(){return e.DeleteAction()}))},currentPage:function(t){console.log(t),this.page_index=t,this.GetWatchTypeList()},currentPageCount:function(t){console.log(t,"currentPageCount"),this.page_size=t,this.GetWatchTypeList()},publicConfirm:function(t){this.$Modal.confirm({title:"警告",content:"<p>是否继续此操作?</p>",cancelText:"取消",okText:"确定",onOk:function(){var e=Object(c["a"])(l.a.mark((function e(){return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()})},publicMessage:function(t){1!==t.code?this.$Message["warning"]({background:!0,content:"操作异常"}):(this.$Spin.hide(),this.$Message["success"]({background:!0,content:"操作成功"}))},GetWatchTypeList:function(){var t=Object(c["a"])(l.a.mark((function t(){var e=this,n=arguments;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n.length>0&&void 0!==n[0]?n[0]:"",p["getInitListRequest"](Object(c["a"])(l.a.mark((function t(){var n,a;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,n={name:e.searchValue,page_size:e.page_size,page_index:e.page_index},t.next=4,i["w"](n);case 4:a=t.sent,e.data=a.response.data,e.total=a.response.data_count,e.loading=!1;case 8:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}()},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){var t=this;this.GetWatchTypeList(),i["u"]().then((function(e){t.watchHourTimeList=e.response}))},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){console.info("🚀🚀🚀destroyed,")},activated:function(){}},m=d,h=n("2877"),f=Object(h["a"])(m,r,s,!1,null,"11b2a98e",null),g=f.exports,w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Table",{attrs:{columns:t.columns,data:t.data,loading:t.loading},scopedSlots:t._u([{key:"action",fn:function(e){var a=e.row;return[n("Button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.update(a)}}},[t._v("修改")]),n("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"error",size:"small"},on:{click:function(e){return t.Delete(a)}}},[t._v("删除")])]}}])}),n("div",{staticStyle:{width:"100%",height:"70px",display:"flex","align-items":"center"}},[n("Page",{attrs:{"show-total":"","show-sizer":"","show-elevator":"",total:t.total,"page-size":t.page_size,"model-value":"page_index"},on:{"on-change":t.currentPage,"on-page-size-change":t.currentPageCount}})],1),n("Modal",{attrs:{title:"配置校区","cancel-text":"取消","ok-text":"确认","mask-closable":!1},on:{"on-ok":t.modalOk},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[n("Form",{ref:"updateRoleValue",attrs:{model:t.formTop,"label-width":80}},[n("FormItem",{attrs:{label:"配置校区",prop:"input1"}},[n("Input",{model:{value:t.formTop.input1,callback:function(e){t.$set(t.formTop,"input1",e)},expression:"formTop.input1"}})],1)],1)],1)],1)},v=[],b={name:"watchType",components:{},props:["input","searchValue"],data:function(){return{loading:!1,spinShow:!1,modal:!1,formTop:{id:"",input1:"",input2:""},page_size:10,page_index:1,total:null,columns:[{title:"序号",type:"index"},{title:"校区名称",key:"campusname"},{title:"操作",slot:"action",align:"center"}],data:[]}},computed:{},watch:{"input.flag":function(){var t=Object(c["a"])(l.a.mark((function t(e,n){var a,o;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e){t.next=9;break}return a={campusname:this.input.input1},t.next=4,i["d"](a);case 4:return o=t.sent,t.next=7,this.GetCampusList();case 7:this.input.flag=!1,1===o.code&&this.$emit("cancelModal",!1);case 9:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}(),"input.searchFlag":function(){var t=Object(c["a"])(l.a.mark((function t(e,n){return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,this.GetCampusList();case 3:this.input.searchFlag=!1,this.$emit("cancelModal",!1);case 5:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}()},methods:{modalOk:function(){var t=this;p["myEncapsulationFunction"](Object(c["a"])(l.a.mark((function e(){var n,a;return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={campusid:t.formTop.id,campusname:t.formTop.input1},e.next=3,i["d"](n);case 3:if(a=e.sent,1!==a.code){e.next=7;break}return e.next=7,t.GetCampusList();case 7:return e.abrupt("return",a);case 8:case"end":return e.stop()}}),e)}))))},update:function(t){this.formTop.id=t.campusid,this.formTop.input1=t.campusname,this.modal=!0},DeleteAction:function(){var t=this;p["myEncapsulationFunction"](Object(c["a"])(l.a.mark((function e(){var n,a;return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={campusid:t.formTop.id},e.next=3,i["c"](n);case 3:return a=e.sent,t.GetCampusList(),e.abrupt("return",a);case 6:case"end":return e.stop()}}),e)}))))},Delete:function(t){var e=this;this.formTop.id=t.campusid,this.publicConfirm((function(){return e.DeleteAction()}))},currentPage:function(t){console.log(t),this.page_index=t,this.GetCampusList()},currentPageCount:function(t){console.log(t,"currentPageCount"),this.page_size=t,this.GetCampusList()},publicConfirm:function(t){this.$Modal.confirm({title:"警告",content:"<p>是否继续此操作?</p>",cancelText:"取消",okText:"确定",onOk:function(){var e=Object(c["a"])(l.a.mark((function e(){return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()})},publicMessage:function(t){1!==t.code?this.$Message["warning"]({background:!0,content:"操作异常"}):(this.$Message["success"]({background:!0,content:"操作成功"}),this.$Spin.hide())},GetCampusList:function(){var t=this;p["getInitListRequest"](Object(c["a"])(l.a.mark((function e(){var n,a;return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,n={name:t.searchValue,page_size:t.page_size,page_index:t.page_index},e.next=4,i["f"](n);case 4:a=e.sent,t.data=a.response.data,t.total=a.response.data_count,t.loading=!1;case 8:case"end":return e.stop()}}),e)}))))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.GetCampusList()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},y=b,T=Object(h["a"])(y,w,v,!1,null,"edda14ca",null),k=T.exports,x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Table",{attrs:{columns:t.columns,data:t.data,loading:t.loading},scopedSlots:t._u([{key:"advance_day",fn:function(e){var n=e.row;return[t._v("\n "+t._s(n.advance_day)+"天\n ")]}},{key:"action",fn:function(e){var a=e.row;return[n("Button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.update(a)}}},[t._v("修改")])]}}])}),n("div",{staticStyle:{width:"100%",height:"70px",display:"flex","align-items":"center"}},[n("Page",{attrs:{"show-total":"","show-sizer":"","show-elevator":"",total:t.total,"page-size":t.page_size,"model-value":"page_index"},on:{"on-change":t.currentPage,"on-page-size-change":t.currentPageCount}})],1),n("Modal",{attrs:{title:"值班类型","cancel-text":"取消","ok-text":"确认","mask-closable":!1},on:{"on-ok":t.modalOk},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[n("Form",{ref:"updateRoleValue",attrs:{model:t.formTop,"label-width":80}},[n("FormItem",{attrs:{label:"提前天数",prop:"input1"}},[n("InputNumber",{staticStyle:{width:"100%"},attrs:{max:10,min:1},model:{value:t.formTop.input1,callback:function(e){t.$set(t.formTop,"input1",e)},expression:"formTop.input1"}})],1),n("FormItem",{attrs:{label:"提醒时间",prop:"input2"}},[n("TimePicker",{staticStyle:{width:"100%"},attrs:{format:"HH:mm",placeholder:"Select time"},on:{"on-change":t.getSelectTime},model:{value:t.formTop.input2,callback:function(e){t.$set(t.formTop,"input2",e)},expression:"formTop.input2"}})],1)],1)],1)],1)},_=[],C={name:"watchType",components:{},props:["input","searchValue"],data:function(){return{loading:!1,modal:!1,formTop:{time_task_id:"",id:"",input1:1,input2:""},page_size:10,page_index:1,total:null,columns:[{title:"序号",type:"index"},{title:"提前天数",slot:"advance_day"},{title:"提醒时间",key:"remind_time"},{title:"操作",slot:"action",align:"center"}],data:[]}},computed:{},watch:{"input.flag":function(){var t=Object(c["a"])(l.a.mark((function t(e,n){var a,o;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log(e),!e){t.next=10;break}return a={watchtypename:this.input.input1,watchtype_remark:this.formTop.input2},t.next=5,i["V"](a);case 5:return o=t.sent,t.next=8,this.GetMessageConfigInfo();case 8:this.input.flag=!1,1===o.code&&this.$emit("cancelModal",!1);case 10:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}(),"input.searchFlag":function(){var t=Object(c["a"])(l.a.mark((function t(e,n){var a;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log(e),!e){t.next=7;break}return t.next=4,this.GetMessageConfigInfo();case 4:a=t.sent,this.input.searchFlag=!1,1===a.code&&this.$emit("cancelModal",!1);case 7:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}()},methods:{getSelectTime:function(t){this.formTop.input2=t},modalOk:function(){var t=this;p["myEncapsulationFunction"](Object(c["a"])(l.a.mark((function e(){var n,a;return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={megconfigid:t.formTop.id,advance_day:t.formTop.input1,remind_time:t.formTop.input2,time_task_id:t.formTop.time_task_id},e.next=3,i["i"](n);case 3:return a=e.sent,e.next=6,t.GetMessageConfigInfo();case 6:return e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)}))))},update:function(t){this.formTop.id=t.megconfigid,this.formTop.input1=t.advance_day,this.formTop.input2=t.remind_time,this.formTop.time_task_id=t.time_task_id,this.modal=!0},DeleteAction:function(){var t=Object(c["a"])(l.a.mark((function t(){var e;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e={id:this.formTop.id},t.next=3,i["U"](e);case 3:t.sent,this.GetMessageConfigInfo();case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),Delete:function(t){var e=this;this.formTop.id=t.watchtypeid,this.publicConfirm((function(){return e.DeleteAction()}))},currentPage:function(t){console.log(t),this.page_index=t,this.GetMessageConfigInfo()},currentPageCount:function(t){console.log(t,"currentPageCount"),this.page_size=t,this.GetMessageConfigInfo()},publicConfirm:function(t){this.$Modal.confirm({title:"警告",content:"<p>是否继续此操作?</p>",cancelText:"取消",okText:"确定",onOk:function(){var e=Object(c["a"])(l.a.mark((function e(){return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()})},publicMessage:function(t){1!==t.code?this.$Message["warning"]({background:!0,content:"操作异常"}):(this.$Spin.hide(),this.$Message["success"]({background:!0,content:"操作成功"}))},GetMessageConfigInfo:function(){var t=Object(c["a"])(l.a.mark((function t(){var e=this,n=arguments;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n.length>0&&void 0!==n[0]?n[0]:"",p["getInitListRequest"](Object(c["a"])(l.a.mark((function t(){var n;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,e.data=[],t.next=4,i["h"]();case 4:n=t.sent,e.data.push(n.response),e.loading=!1;case 7:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}()},beforeCreate:function(){console.info("🚀🚀🚀,")},created:function(){},beforeMount:function(){},mounted:function(){this.GetMessageConfigInfo()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){console.info("🚀🚀🚀destroyed,")},activated:function(){}},M=C,S=Object(h["a"])(M,x,_,!1,null,"d1c9db82",null),O=S.exports,$=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Table",{attrs:{columns:t.columns,data:t.data,loading:t.loading},scopedSlots:t._u([{key:"action",fn:function(e){var a=e.row;return[n("Button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.update(a)}}},[t._v("修改")]),n("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"error",size:"small"},on:{click:function(e){return t.Delete(a)}}},[t._v("删除")])]}}])}),n("div",{staticStyle:{width:"100%",height:"70px",display:"flex","align-items":"center"}},[n("Page",{attrs:{"show-total":"","show-sizer":"","show-elevator":"",total:t.total,"page-size":t.page_size,"model-value":"page_index"},on:{"on-change":t.currentPage,"on-page-size-change":t.currentPageCount}})],1),n("Modal",{attrs:{title:"值班类型","cancel-text":"取消","ok-text":"确认","mask-closable":!1},on:{"on-ok":t.modalOk},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[n("Form",{ref:"updateRoleValue",attrs:{model:t.formTop,"label-width":80}},[n("FormItem",{attrs:{label:"区间名称",prop:"input1"}},[n("Input",{model:{value:t.formTop.timeName,callback:function(e){t.$set(t.formTop,"timeName",e)},expression:"formTop.timeName"}})],1),n("FormItem",{attrs:{label:"时间",prop:"input2"}},[n("TimePicker",{staticStyle:{width:"100%"},attrs:{format:"HH:mm",type:"timerange",placement:"bottom-end",placeholder:"请选择时间"},on:{"on-change":t.selectTileValue}})],1)],1)],1)],1)},L=[],F={name:"watchType",components:{},props:["input","searchValue"],data:function(){return{loading:!1,modal:!1,formTop:{id:"",input1:"",input2:"",timeName:""},page_size:10,page_index:1,total:null,columns:[{title:"序号",type:"index"},{title:"开始时间",key:"watchhour_start_time"},{title:"结束时间",key:"watchhour_end_time"},{title:"区间名称",key:"watchhourname"},{title:"操作",slot:"action",align:"center"}],data:[]}},computed:{},watch:{"input.flag":function(){var t=Object(c["a"])(l.a.mark((function t(e,n){var a,o;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log(e),!e){t.next=10;break}return a={watchhourname:this.input.timeName1,watchhour_start_time:this.input.input1,watchhour_end_time:this.input.input2},t.next=5,i["P"](a);case 5:return o=t.sent,t.next=8,this.GetWatchHourList();case 8:this.input.flag=!1,1===o.code&&this.$emit("cancelModal",!1);case 10:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}(),"input.searchFlag":function(){var t=Object(c["a"])(l.a.mark((function t(e,n){return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log(e),!e){t.next=7;break}return t.next=4,this.GetWatchHourList();case 4:t.sent,this.input.searchFlag=!1,this.$emit("cancelModal",!1);case 7:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}()},methods:{selectTileValue:function(t){this.formTop.input1=t[0],this.formTop.input2=t[1],console.log("🚀🚀🚀,",t[1])},modalOk:function(){var t=this;p["myEncapsulationFunction"](Object(c["a"])(l.a.mark((function e(){var n,a;return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={watchhourid:t.formTop.id,watchhourname:t.formTop.timeName,watchhour_start_time:t.formTop.input1,watchhour_end_time:t.formTop.input2},e.next=3,i["P"](n);case 3:return a=e.sent,e.next=6,t.GetWatchHourList();case 6:return e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)}))))},update:function(t){this.formTop.id=t.watchhourid,this.formTop.timeName=t.watchhourname,this.modal=!0},DeleteAction:function(){var t=Object(c["a"])(l.a.mark((function t(){var e=this;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:p["myEncapsulationFunction"](Object(c["a"])(l.a.mark((function t(){var n,a;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={id:e.formTop.id},t.next=3,i["O"](n);case 3:return a=t.sent,t.next=6,e.GetWatchHourList();case 6:return t.abrupt("return",a);case 7:case"end":return t.stop()}}),t)}))));case 1:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),Delete:function(t){var e=this;this.formTop.id=t.watchhourid,this.publicConfirm((function(){return e.DeleteAction()}))},currentPage:function(t){console.log(t),this.page_index=t,this.GetWatchHourList()},currentPageCount:function(t){console.log(t,"currentPageCount"),this.page_size=t,this.GetWatchHourList()},publicConfirm:function(t){this.$Modal.confirm({title:"警告",content:"<p>是否继续此操作?</p>",cancelText:"取消",okText:"确定",onOk:function(){var e=Object(c["a"])(l.a.mark((function e(){return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()})},publicMessage:function(t){1!==t.code?this.$Message["warning"]({background:!0,content:"操作异常"}):(this.$Spin.hide(),this.$Message["success"]({background:!0,content:"操作成功"}))},GetWatchHourList:function(){var t=Object(c["a"])(l.a.mark((function t(){var e=this,n=arguments;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n.length>0&&void 0!==n[0]?n[0]:"",p["getInitListRequest"](Object(c["a"])(l.a.mark((function t(){var n,a;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,n={condition:e.searchValue,page_size:e.page_size,page_index:e.page_index},t.next=4,i["t"](n);case 4:a=t.sent,e.data=a.response.data,e.total=a.response.data_count,e.loading=!1;case 8:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}()},beforeCreate:function(){console.info("🚀🚀🚀,")},created:function(){},beforeMount:function(){},mounted:function(){this.GetWatchHourList()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){console.info("🚀🚀🚀destroyed,")},activated:function(){}},I=F,z=Object(h["a"])(I,$,L,!1,null,"6176df14",null),V=z.exports,j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Table",{attrs:{columns:t.tableColumns,data:t.tableData,loading:t.loading1},scopedSlots:t._u([{key:"action",fn:function(e){var a=e.row;return[n("a",{on:{click:function(e){return t.rowDelete(a)}}},[t._v("删除")])]}}])}),n("Modal",{attrs:{"mask-closable":"",title:(t.isEdit?"编辑":"添加")+"考勤地点"},on:{"on-cancle":function(e){t.address=void 0}},scopedSlots:t._u([{key:"footer",fn:function(){return[n("Button",{attrs:{type:"primary",disabled:void 0==t.address},on:{click:t.nextStep}},[t._v("下一步")])]},proxy:!0}]),model:{value:t.editModalShow,callback:function(e){t.editModalShow=e},expression:"editModalShow"}},[[n("iframe",{attrs:{id:"mapPage",width:"100%",height:"500px",frameborder:"0",src:"https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=ZNMBZ-NYOEO-WNMWL-SJF4C-MWKQT-KJB7W&referer=myapp"}})]],2),n("Modal",{attrs:{"mask-closable":"",title:"地点设置"},scopedSlots:t._u([{key:"footer",fn:function(){return[n("Button",{on:{click:function(e){t.locSetModalShow=!1}}},[t._v("上一步")]),n("Button",{attrs:{type:"primary",loading:t.btSaveLoading},on:{click:t.saveAttendance}},[t._v("确定")])]},proxy:!0}]),model:{value:t.locSetModalShow,callback:function(e){t.locSetModalShow=e},expression:"locSetModalShow"}},[[n("Form",{attrs:{"label-colon":"","label-width":100}},[n("Row",[n("Col",{attrs:{span:"24"}},[n("FormItem",{attrs:{label:"标题"}},[n("Input",{attrs:{type:"text"},model:{value:t.addrTitle,callback:function(e){t.addrTitle=e},expression:"addrTitle"}})],1)],1),n("Col",{attrs:{span:"24"}},[n("FormItem",{attrs:{label:"地点名称"}},[n("Input",{attrs:{type:"text"},model:{value:t.addrName,callback:function(e){t.addrName=e},expression:"addrName"}})],1)],1),n("Col",{attrs:{span:"24"}},[n("FormItem",{attrs:{label:"打卡范围"}},[n("Select",{model:{value:t.addrRange,callback:function(e){t.addrRange=e},expression:"addrRange"}},t._l(t.addrRangeList,(function(e){return n("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1)],1)],1)],1)]],2)],1)},G=[],P={data:function(){return{loading1:!1,tableColumns:[{title:"序号",type:"index",width:80,align:"center"},{title:"标题",key:"title"},{title:"地址",key:"address"},{title:"纬度",key:"latitude"},{title:"经度",key:"longitude"},{title:"误差",key:"offset"},{title:"创建时间",key:"createtime"},{title:"操作",slot:"action",width:120,align:"center"}],tableData:[],isEdit:!1,editModalShow:!1,addrTitle:"",addrName:void 0,addrRange:100,address:void 0,addrRangeList:[{label:"100米",value:100},{label:"200米",value:200},{label:"300米",value:300},{label:"400米",value:400},{label:"500米",value:500},{label:"600米",value:600},{label:"700米",value:700},{label:"800米",value:800},{label:"900米",value:900},{label:"1000米",value:1e3},{label:"2000米",value:2e3},{label:"3000米",value:3e3}],locSetModalShow:!1,btSaveLoading:!1}},computed:{},created:function(){this.getAttendanceList()},mounted:function(){var t=this;window.addEventListener("message",(function(e){var n=e.data;n&&"locationPicker"==n.module&&(t.address=n)}),!1)},methods:{nextStep:function(){this.addrName=this.address.poiname,this.addrTitle=this.address.poiname,this.locSetModalShow=!0},saveAttendance:function(){var t=this,e={title:this.addrTitle,address:this.addrName,latitude:this.address.latlng.lat,longitude:this.address.latlng.lng,offset:this.addrRange};this.btSaveLoading=!0,i["b"](e).then((function(e){1==e.code?(t.globalMessage("success",e.response),t.getAttendanceList(),t.editModalShow=!1,t.locSetModalShow=!1,t.address=void 0,t.addrName=void 0):t.globalMessage("error",e.msg_detail)})).catch((function(e){t.globalMessage("error",e)})).finally((function(){t.btSaveLoading=!1}))},rowDelete:function(t){var e=this;this.$Modal.confirm({title:"提示",content:"是否确认删除考勤 ".concat(t.title," ?"),loading:!0,onOk:function(){i["a"](t.attendanceid).then((function(t){1==t.code?(e.globalMessage("success",t.response),e.$Modal.remove(),e.getAttendanceList()):e.globalMessage("error",t.msg_detail)})).catch((function(t){e.globalMessage("error",t)}))}})},getAttendanceList:function(){var t=this;this.loading1=!0,i["e"]().then((function(e){t.tableData=e.response})).catch((function(e){t.globalMessage("error",e)})).finally((function(){t.loading1=!1}))},globalMessage:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.$Message[t]({type:t,content:e,duration:n,background:a})}}},N=P,D=Object(h["a"])(N,j,G,!1,null,"2ddc1dc2",null),W=D.exports,R={components:{watchType:g,MessageConfig:O,Campus:k,WatchHour:V,Attendance:W},data:function(){return{watchHourTimeList:[],showComponent:{type:!0,time:!1,campus:!1,info:!1,attendance:!1},buttonSize:"",searchValue:"",loading:!0,modal:!1,formTop:{input1:"",input2:"",input3:"",type:"",flag:!1,searchFlag:!1,timeName1:""}}},computed:{ModalTitleValue:function(){return!0===this.showComponent.type?"增添值班类型":!0===this.showComponent.info?"配置消息提醒":!0===this.showComponent.time?"增添值班时间":"增添校区"},ModalInputLabelValue:function(){var t=["权限名称","权限备注"],e=["校区名称"],n=["校区名称"],a=["校区名称"];return!0===this.showComponent.type?t:!0===this.showComponent.campus?e:!0===this.showComponent.time?a:n}},watch:{buttonSize:function(t,e){console.info("🚀🚀🚀,",t),this.columnButtonState(t)}},methods:{selectTileValue:function(t){this.formTop.input1=t[0],this.formTop.input2=t[1]},searchEvent:function(){this.formTop.searchFlag=!0},cancelModal:function(t){this.spinShow=t,this.modal=t,this.formTop.searchFlag=t,this.formTop.flag=t},addWatchType:function(){this.modal=!0},addAttendance:function(){this.$refs.attendance.isEdit=!1,this.$refs.attendance.editModalShow=!0},modalOk:function(){this.formTop.flag=!0},columnButtonState:function(t){switch(t){case"type":this.showComponent.type=!0,this.showComponent.info=!1,this.showComponent.time=!1,this.showComponent.campus=!1,this.showComponent.attendance=!1,this.searchValue="",this.formTop.input1="",this.formTop.input2="",this.formTop.input3="",this.formTop.type="",this.formTop.timeName1="";break;case"info":this.showComponent.type=!1,this.showComponent.info=!0,this.showComponent.time=!1,this.showComponent.campus=!1,this.showComponent.attendance=!1,this.searchValue="",this.formTop.input1="",this.formTop.input2="",this.formTop.input3="",this.formTop.type="",this.formTop.timeName1="";break;case"time":this.showComponent.type=!1,this.showComponent.info=!1,this.showComponent.time=!0,this.showComponent.campus=!1,this.showComponent.attendance=!1,this.searchValue="",this.formTop.input1="",this.formTop.input2="",this.formTop.input3="",this.formTop.type="",this.formTop.timeName1="";break;case"campus":this.showComponent.type=!1,this.showComponent.info=!1,this.showComponent.time=!1,this.showComponent.campus=!0,this.showComponent.attendance=!1,this.searchValue="",this.formTop.input1="",this.formTop.input2="",this.formTop.input3="",this.formTop.type="",this.formTop.timeName1="";break;case"attendance":this.showComponent.type=!1,this.showComponent.info=!1,this.showComponent.time=!1,this.showComponent.campus=!1,this.showComponent.attendance=!0,this.searchValue="",this.formTop.input1="",this.formTop.input2="",this.formTop.input3="",this.formTop.type="",this.formTop.timeName1="";break}}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){var t=this;i["u"]().then((function(e){t.watchHourTimeList=e.response}))},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},H=R,E=Object(h["a"])(H,a,o,!1,null,"16c9f476",null);e["default"]=E.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d226568"],{e7dd:function(t,a,s){"use strict";s.r(a);var e=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"page-account"},[s("div",{staticClass:"page-account-container page-account-container-result"},[t._m(0),s("Result",{attrs:{type:"success",title:t.title,desc:t.desc}},[s("div",{attrs:{slot:"actions"},slot:"actions"},[s("Button",{attrs:{size:"large",type:"primary",to:"https://mail.qq.com",target:"_blank"}},[t._v("查看邮箱")]),s("Button",{attrs:{size:"large",to:"/"}},[t._v("返回首页")])],1)])],1),s("i-copyright")],1)},c=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"page-account-top"},[e("div",{staticClass:"page-account-top-logo"},[e("img",{attrs:{src:s("9d64"),alt:"logo"}})]),e("div",{staticClass:"page-account-top-desc"},[t._v("iView Admin Pro 企业级中台前端/设计解决方案")])])}],i=s("2f08"),n={components:{iCopyright:i["a"]},data:function(){return{title:"你的账户:admin 注册成功",desc:"激活邮件已发送到你的邮箱中,邮件有效期为24小时。请及时登录邮箱,点击邮件中的链接激活帐户。"}}},o=n,r=s("2877"),l=Object(r["a"])(o,e,c,!1,null,null,null);a["default"]=l.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22ca54"],{f3b3:function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"i-table-no-border"},[r("Card",{attrs:{bordered:!1,"dis-hover":""}},[r("div",{attrs:{slot:"title"},slot:"title"},[r("Avatar",{directives:[{name:"color",rawName:"v-color",value:"#2f54eb",expression:"'#2f54eb'"},{name:"bg-color",rawName:"v-bg-color",value:"#f0f5ff",expression:"'#f0f5ff'"}],attrs:{icon:"md-locate",size:"small"}}),r("span",{staticClass:"ivu-pl-8"},[e._v("前端日志")])],1),r("div",{attrs:{slot:"extra"},slot:"extra"},[r("Tooltip",{attrs:{content:"清空日志",placement:"top"}},[r("Button",{attrs:{type:"text"},on:{click:e.clean}},[r("Icon",{attrs:{type:"md-trash",size:"16"}})],1)],1)],1),r("Table",{attrs:{columns:e.columns,data:e.log},scopedSlots:e._u([{key:"page",fn:function(t){var r=t.row;return[e._v("\n "+e._s(e.get(r,"meta.url"))+"\n ")]}},{key:"type",fn:function(t){var o=t.row;return["info"===o.type?r("Tag",{attrs:{color:"blue"}},[e._v("info")]):e._e(),"success"===o.type?r("Tag",{attrs:{color:"green"}},[e._v("success")]):e._e(),"warning"===o.type?r("Tag",{attrs:{color:"orange"}},[e._v("warning")]):e._e(),"error"===o.type?r("Tag",{attrs:{color:"red"}},[e._v("error")]):e._e()]}},{key:"more",fn:function(t){var o=t.row;return[r("Button",{attrs:{type:"primary"},on:{click:function(t){return e.handleMore(o)}}},[e._v("查看")])]}}])})],1)],1)},n=[],a=(r("8e6e"),r("ac6a"),r("456d"),r("ade3")),s=r("2f62"),c=r("2ef0");function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){Object(a["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u={name:"log",data:function(){return{columns:[{title:"时间",key:"time",width:180},{title:"信息",key:"message",minWidth:300},{title:"触发页面",slot:"page",minWidth:300},{title:"类型",width:100,slot:"type"},{title:"详细信息",width:100,slot:"more"}]}},computed:i({},Object(s["e"])("admin/log",["log"])),methods:i(i({},Object(s["d"])("admin/log",["clean"])),{},{get:c["get"],handleMore:function(e){this.$Notice.info({title:"提示",desc:"请在浏览器控制台查看完整日志"}),this.$log.capsule("iView Admin","完整日志内容","primary"),console.group("完整日志"),console.log("message ",e.message),console.log("time: ",e.time),console.log("type: ",e.type),console.log("meta: ",e.meta),console.groupEnd()}})},p=u,f=r("2877"),d=Object(f["a"])(p,o,n,!1,null,null,null);t["default"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3a75a70f"],{"15fd":function(t,e,a){"use strict";function s(t,e){if(null==t)return{};var a,s,i={},n=Object.keys(t);for(s=0;s<n.length;s++)a=n[s],e.indexOf(a)>=0||(i[a]=t[a]);return i}function i(t,e){if(null==t)return{};var a,i,n=s(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(i=0;i<l.length;i++)a=l[i],e.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}a.d(e,"a",(function(){return i}))},"57c0":function(t,e,a){},7056:function(t,e,a){"use strict";a("57c0")},bb53:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{ref:"card"},[a("TableFrom"),a("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:t.add}},[a("Icon",{attrs:{type:"md-add"}}),t._v("新增")],1),a("Table",{staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.tableData,loading:t.loading,size:t.tableSize},scopedSlots:t._u([{key:"status",fn:function(e){var s=e.row;return[a("i-switch",{attrs:{size:"large","true-value":1,"false-value":0},on:{"on-change":function(e){return t.switchChange(s)}},model:{value:s.status,callback:function(e){t.$set(s,"status",e)},expression:"row.status"}},[a("span",{attrs:{slot:"open",type:"md-checkmark"},slot:"open"},[t._v("启用")]),a("span",{attrs:{slot:"close",type:"md-close"},slot:"close"},[t._v("停用")])])]}},{key:"action",fn:function(e){var s=e.row;return[a("Button",{attrs:{type:"info"},on:{click:function(e){return t.edit(s)}}},[t._v("编辑")]),a("Poptip",{attrs:{confirm:"",transfer:"",title:"你确定删除吗?"},on:{"on-ok":function(e){return t.del(s)},"on-cancel":t.cancel}},[a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"error"}},[t._v("删除")])],1)]}}])}),a("div",{staticClass:"ivu-text-center ivu-mt"},[a("Page",{attrs:{total:t.total,current:t.params.pageIndex,"show-total":"","show-sizer":"","page-size":t.params.pageSize},on:{"update:current":function(e){return t.$set(t.params,"pageIndex",e)},"on-change":t.handleChangePage,"on-page-size-change":t.handleChangePageSize}})],1),a("AddEditDrawer",{ref:"addEdit",on:{getData:t.getData}})],1)],1)},i=[],n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Modal",{attrs:{title:"add"==t.addOrEdit?"新增":"修改",width:"40%"},model:{value:t.visibleShow,callback:function(e){t.visibleShow=e},expression:"visibleShow"}},[a("Form",{ref:"formData",attrs:{model:t.formData,"label-width":100,rules:t.rules}},[a("Row",{attrs:{gutter:32}},[a("Col",{attrs:{span:"12"}},[a("FormItem",{attrs:{label:"ddd",prop:"a"}},[a("Input",{model:{value:t.formData.a,callback:function(e){t.$set(t.formData,"a",e)},expression:"formData.a"}})],1)],1)],1)],1),"add"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.addSubmit}},[t._v("确认新增")])],1):t._e(),"edit"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.editSubmit}},[t._v("确认修改")])],1):t._e()],1)],1)},l=[],r=(a("456d"),a("ac6a"),a("15fd")),o=["status"],c={data:function(){return{visibleShow:!1,rules:{class_code:[{required:!0,message:"不能为空",trigger:"blur"}],class_name:[{required:!0,message:"不能为空",trigger:"blur"}],college_id:[{required:!0,message:"不能为空",trigger:"change"}],grade:[{required:!0,message:"不能为空",trigger:"change"}],training_id:[{required:!0,message:"不能为空",trigger:"change"}]},formData:{a:""},formList:[],addOrEdit:""}},mounted:function(){this.getData()},methods:{getData:function(){},addSubmit:function(){var t=this;this.$refs.formData.validate((function(e){e&&(t.$Message.success(res),t.visibleShow=!1,t.$emit("getData"))}))},editSubmit:function(){var t=this.formData;t.status,Object(r["a"])(t,o);this.$refs.formData.validate((function(t){}))},add:function(){var t=this;this.addOrEdit="add",this.visibleShow=!0,Object.keys(this.formData).forEach((function(e){return t.formData[e]=""}))},edit:function(t){this.addOrEdit="edit",this.visibleShow=!0,this.formData=Object.assign({},t)}}},d=c,u=(a("7056"),a("2877")),m=Object(u["a"])(d,n,l,!1,null,null,null),p=m.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Form",{attrs:{"label-width":120}},[a("Row",{attrs:{gutter:32}},[t._l(t.formList,(function(e,s){return[~[0,1].indexOf(s)?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e(),t.collapse?[s>=2?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e()]:t._e()]})),0!==t.formList.length?a("Col",t._b({staticClass:"ivu-text-right"},"Col",t.grid,!1),[a("FormItem",{attrs:{type:"flex",justify:"end"}},[a("Button",{attrs:{type:"primary"},on:{click:t.getData}},[t._v("查询")]),a("a",{directives:[{name:"font",rawName:"v-font",value:14,expression:"14"}],staticClass:"ivu-ml-8",on:{click:function(e){t.collapse=!t.collapse}}},[t.collapse?[t._v("\n 收起 "),a("Icon",{attrs:{type:"ios-arrow-up"}})]:[t._v("\n 展开 "),a("Icon",{attrs:{type:"ios-arrow-down"}})]],2)],1)],1):t._e()],2)],1)},g=[],f={data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},formList:[{label:"所属院系",code:"college_id",search_type:"select",is_must:0,option_list:[{value:"117c96a1-5c8f-4c71-8574-d45ec049db3b",label:"电气工程系"}]},{label:"状态1",code:"status",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态2",code:"status2",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态3",code:"status3",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]}],collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",status:"",status2:"",status3:""}}},mounted:function(){},methods:{getData:function(){console.log("搜索条件查询")}}},_=f,b=Object(u["a"])(_,h,g,!1,null,null,null),v=b.exports,w={name:"list",components:{AddEditDrawer:p,TableFrom:v},data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"班级编号",key:"class_code",align:"center",show:!0,minWidth:100},{title:"班级名称",key:"class_name",align:"center",show:!0,minWidth:150},{title:"年级",key:"grade",align:"center",show:!0,minWidth:100},{title:"培养层次",key:"training",align:"center",show:!0,minWidth:120},{title:"辅导员工号",key:"counselor_card",align:"center",show:!0,minWidth:150},{title:"辅导员姓名",key:"counselor_name",align:"center",show:!0,minWidth:120},{title:"班主任工号",key:"head_teacher_card",align:"center",show:!0,minWidth:150},{title:"班主任姓名",key:"head_teacher_name",align:"center",show:!0,minWidth:120},{title:"院系名称",key:"college_name",align:"center",show:!0,minWidth:200},{title:"状态",key:"status",align:"center",slot:"status",show:!0,minWidth:130},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""}}},created:function(){},mounted:function(){this.getData()},methods:{getData:function(){this.params.college_id=void 0==this.params.college_id?"":this.params.college_id,this.params.grade=void 0==this.params.grade?"":this.params.grade,this.params.classId_Name=void 0==this.params.classId_Name?"":this.params.classId_Name,this.params.status=void 0==this.params.status?"":this.params.status,this.params.pageIndex=1},add:function(){this.$refs.addEdit.add()},edit:function(t){this.$refs.addEdit.edit(t)},del:function(t){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(t){this.params.pageIndex=t,this.getData()},handleChangePageSize:function(t){this.current=1,this.params.pageSize=t,this.getData()}}},y=w,k=Object(u["a"])(y,s,i,!1,null,null,null);e["default"]=k.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e149608"],{"15fd":function(t,e,a){"use strict";function s(t,e){if(null==t)return{};var a,s,i={},n=Object.keys(t);for(s=0;s<n.length;s++)a=n[s],e.indexOf(a)>=0||(i[a]=t[a]);return i}function i(t,e){if(null==t)return{};var a,i,n=s(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(i=0;i<l.length;i++)a=l[i],e.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}a.d(e,"a",(function(){return i}))},"1d85":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{ref:"card"},[a("TableFrom"),a("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:t.add}},[a("Icon",{attrs:{type:"md-add"}}),t._v("新增")],1),a("Table",{staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.tableData,loading:t.loading,size:t.tableSize},scopedSlots:t._u([{key:"status",fn:function(e){var s=e.row;return[a("i-switch",{attrs:{size:"large","true-value":1,"false-value":0},on:{"on-change":function(e){return t.switchChange(s)}},model:{value:s.status,callback:function(e){t.$set(s,"status",e)},expression:"row.status"}},[a("span",{attrs:{slot:"open",type:"md-checkmark"},slot:"open"},[t._v("启用")]),a("span",{attrs:{slot:"close",type:"md-close"},slot:"close"},[t._v("停用")])])]}},{key:"action",fn:function(e){var s=e.row;return[a("Button",{attrs:{type:"info"},on:{click:function(e){return t.edit(s)}}},[t._v("编辑")]),a("Poptip",{attrs:{confirm:"",transfer:"",title:"你确定删除吗?"},on:{"on-ok":function(e){return t.del(s)},"on-cancel":t.cancel}},[a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"error"}},[t._v("删除")])],1)]}}])}),a("div",{staticClass:"ivu-text-center ivu-mt"},[a("Page",{attrs:{total:t.total,current:t.params.pageIndex,"show-total":"","show-sizer":"","page-size":t.params.pageSize},on:{"update:current":function(e){return t.$set(t.params,"pageIndex",e)},"on-change":t.handleChangePage,"on-page-size-change":t.handleChangePageSize}})],1),a("AddEditDrawer",{ref:"addEdit",on:{getData:t.getData}})],1)],1)},i=[],n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Modal",{attrs:{title:"add"==t.addOrEdit?"新增":"修改",width:"40%"},model:{value:t.visibleShow,callback:function(e){t.visibleShow=e},expression:"visibleShow"}},[a("Form",{ref:"formData",attrs:{model:t.formData,"label-width":100,rules:t.rules}},[a("Row",{attrs:{gutter:32}},[a("Col",{attrs:{span:"12"}},[a("FormItem",{attrs:{label:"ddd",prop:"a"}},[a("Input",{model:{value:t.formData.a,callback:function(e){t.$set(t.formData,"a",e)},expression:"formData.a"}})],1)],1)],1)],1),"add"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.addSubmit}},[t._v("确认新增")])],1):t._e(),"edit"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.editSubmit}},[t._v("确认修改")])],1):t._e()],1)],1)},l=[],r=(a("456d"),a("ac6a"),a("15fd")),o=["status"],c={data:function(){return{visibleShow:!1,rules:{class_code:[{required:!0,message:"不能为空",trigger:"blur"}],class_name:[{required:!0,message:"不能为空",trigger:"blur"}],college_id:[{required:!0,message:"不能为空",trigger:"change"}],grade:[{required:!0,message:"不能为空",trigger:"change"}],training_id:[{required:!0,message:"不能为空",trigger:"change"}]},formData:{a:""},formList:[],addOrEdit:""}},mounted:function(){this.getData()},methods:{getData:function(){},addSubmit:function(){var t=this;this.$refs.formData.validate((function(e){e&&(t.$Message.success(res),t.visibleShow=!1,t.$emit("getData"))}))},editSubmit:function(){var t=this.formData;t.status,Object(r["a"])(t,o);this.$refs.formData.validate((function(t){}))},add:function(){var t=this;this.addOrEdit="add",this.visibleShow=!0,Object.keys(this.formData).forEach((function(e){return t.formData[e]=""}))},edit:function(t){this.addOrEdit="edit",this.visibleShow=!0,this.formData=Object.assign({},t)}}},d=c,u=(a("a043"),a("2877")),m=Object(u["a"])(d,n,l,!1,null,null,null),p=m.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Form",{attrs:{"label-width":120}},[a("Row",{attrs:{gutter:32}},[t._l(t.formList,(function(e,s){return[~[0,1].indexOf(s)?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e(),t.collapse?[s>=2?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e()]:t._e()]})),0!==t.formList.length?a("Col",t._b({staticClass:"ivu-text-right"},"Col",t.grid,!1),[a("FormItem",{attrs:{type:"flex",justify:"end"}},[a("Button",{attrs:{type:"primary"},on:{click:t.getData}},[t._v("查询")]),a("a",{directives:[{name:"font",rawName:"v-font",value:14,expression:"14"}],staticClass:"ivu-ml-8",on:{click:function(e){t.collapse=!t.collapse}}},[t.collapse?[t._v("\n 收起 "),a("Icon",{attrs:{type:"ios-arrow-up"}})]:[t._v("\n 展开 "),a("Icon",{attrs:{type:"ios-arrow-down"}})]],2)],1)],1):t._e()],2)],1)},g=[],f={data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},formList:[{label:"所属院系",code:"college_id",search_type:"select",is_must:0,option_list:[{value:"117c96a1-5c8f-4c71-8574-d45ec049db3b",label:"电气工程系"}]},{label:"状态1",code:"status",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态2",code:"status2",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态3",code:"status3",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]}],collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",status:"",status2:"",status3:""}}},mounted:function(){},methods:{getData:function(){console.log("搜索条件查询")}}},_=f,b=Object(u["a"])(_,h,g,!1,null,null,null),v=b.exports,w={name:"list",components:{AddEditDrawer:p,TableFrom:v},data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"班级编号",key:"class_code",align:"center",show:!0,minWidth:100},{title:"班级名称",key:"class_name",align:"center",show:!0,minWidth:150},{title:"年级",key:"grade",align:"center",show:!0,minWidth:100},{title:"培养层次",key:"training",align:"center",show:!0,minWidth:120},{title:"辅导员工号",key:"counselor_card",align:"center",show:!0,minWidth:150},{title:"辅导员姓名",key:"counselor_name",align:"center",show:!0,minWidth:120},{title:"班主任工号",key:"head_teacher_card",align:"center",show:!0,minWidth:150},{title:"班主任姓名",key:"head_teacher_name",align:"center",show:!0,minWidth:120},{title:"院系名称",key:"college_name",align:"center",show:!0,minWidth:200},{title:"状态",key:"status",align:"center",slot:"status",show:!0,minWidth:130},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""}}},created:function(){},mounted:function(){this.getData()},methods:{getData:function(){this.params.college_id=void 0==this.params.college_id?"":this.params.college_id,this.params.grade=void 0==this.params.grade?"":this.params.grade,this.params.classId_Name=void 0==this.params.classId_Name?"":this.params.classId_Name,this.params.status=void 0==this.params.status?"":this.params.status,this.params.pageIndex=1},add:function(){this.$refs.addEdit.add()},edit:function(t){this.$refs.addEdit.edit(t)},del:function(t){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(t){this.params.pageIndex=t,this.getData()},handleChangePageSize:function(t){this.current=1,this.params.pageSize=t,this.getData()}}},y=w,k=Object(u["a"])(y,s,i,!1,null,null,null);e["default"]=k.exports},"854e":function(t,e,a){},a043:function(t,e,a){"use strict";a("854e")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4346c2ec"],{"15fd":function(t,e,a){"use strict";function s(t,e){if(null==t)return{};var a,s,i={},n=Object.keys(t);for(s=0;s<n.length;s++)a=n[s],e.indexOf(a)>=0||(i[a]=t[a]);return i}function i(t,e){if(null==t)return{};var a,i,n=s(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(i=0;i<l.length;i++)a=l[i],e.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}a.d(e,"a",(function(){return i}))},2744:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{ref:"card"},[a("TableFrom"),a("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:t.add}},[a("Icon",{attrs:{type:"md-add"}}),t._v("新增")],1),a("Table",{staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.tableData,loading:t.loading,size:t.tableSize},scopedSlots:t._u([{key:"status",fn:function(e){var s=e.row;return[a("i-switch",{attrs:{size:"large","true-value":1,"false-value":0},on:{"on-change":function(e){return t.switchChange(s)}},model:{value:s.status,callback:function(e){t.$set(s,"status",e)},expression:"row.status"}},[a("span",{attrs:{slot:"open",type:"md-checkmark"},slot:"open"},[t._v("启用")]),a("span",{attrs:{slot:"close",type:"md-close"},slot:"close"},[t._v("停用")])])]}},{key:"action",fn:function(e){var s=e.row;return[a("Button",{attrs:{type:"info"},on:{click:function(e){return t.edit(s)}}},[t._v("编辑")]),a("Poptip",{attrs:{confirm:"",transfer:"",title:"你确定删除吗?"},on:{"on-ok":function(e){return t.del(s)},"on-cancel":t.cancel}},[a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"error"}},[t._v("删除")])],1)]}}])}),a("div",{staticClass:"ivu-text-center ivu-mt"},[a("Page",{attrs:{total:t.total,current:t.params.pageIndex,"show-total":"","show-sizer":"","page-size":t.params.pageSize},on:{"update:current":function(e){return t.$set(t.params,"pageIndex",e)},"on-change":t.handleChangePage,"on-page-size-change":t.handleChangePageSize}})],1),a("AddEditDrawer",{ref:"addEdit",on:{getData:t.getData}})],1)],1)},i=[],n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Modal",{attrs:{title:"add"==t.addOrEdit?"新增":"修改",width:"40%"},model:{value:t.visibleShow,callback:function(e){t.visibleShow=e},expression:"visibleShow"}},[a("Form",{ref:"formData",attrs:{model:t.formData,"label-width":100,rules:t.rules}},[a("Row",{attrs:{gutter:32}},[a("Col",{attrs:{span:"12"}},[a("FormItem",{attrs:{label:"ddd",prop:"a"}},[a("Input",{model:{value:t.formData.a,callback:function(e){t.$set(t.formData,"a",e)},expression:"formData.a"}})],1)],1)],1)],1),"add"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.addSubmit}},[t._v("确认新增")])],1):t._e(),"edit"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.editSubmit}},[t._v("确认修改")])],1):t._e()],1)],1)},l=[],r=(a("456d"),a("ac6a"),a("15fd")),o=["status"],c={data:function(){return{visibleShow:!1,rules:{class_code:[{required:!0,message:"不能为空",trigger:"blur"}],class_name:[{required:!0,message:"不能为空",trigger:"blur"}],college_id:[{required:!0,message:"不能为空",trigger:"change"}],grade:[{required:!0,message:"不能为空",trigger:"change"}],training_id:[{required:!0,message:"不能为空",trigger:"change"}]},formData:{a:""},formList:[],addOrEdit:""}},mounted:function(){this.getData()},methods:{getData:function(){},addSubmit:function(){var t=this;this.$refs.formData.validate((function(e){e&&(t.$Message.success(res),t.visibleShow=!1,t.$emit("getData"))}))},editSubmit:function(){var t=this.formData;t.status,Object(r["a"])(t,o);this.$refs.formData.validate((function(t){}))},add:function(){var t=this;this.addOrEdit="add",this.visibleShow=!0,Object.keys(this.formData).forEach((function(e){return t.formData[e]=""}))},edit:function(t){this.addOrEdit="edit",this.visibleShow=!0,this.formData=Object.assign({},t)}}},d=c,u=(a("e572"),a("2877")),m=Object(u["a"])(d,n,l,!1,null,null,null),p=m.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Form",{attrs:{"label-width":120}},[a("Row",{attrs:{gutter:32}},[t._l(t.formList,(function(e,s){return[~[0,1].indexOf(s)?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e(),t.collapse?[s>=2?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e()]:t._e()]})),0!==t.formList.length?a("Col",t._b({staticClass:"ivu-text-right"},"Col",t.grid,!1),[a("FormItem",{attrs:{type:"flex",justify:"end"}},[a("Button",{attrs:{type:"primary"},on:{click:t.getData}},[t._v("查询")]),a("a",{directives:[{name:"font",rawName:"v-font",value:14,expression:"14"}],staticClass:"ivu-ml-8",on:{click:function(e){t.collapse=!t.collapse}}},[t.collapse?[t._v("\n 收起 "),a("Icon",{attrs:{type:"ios-arrow-up"}})]:[t._v("\n 展开 "),a("Icon",{attrs:{type:"ios-arrow-down"}})]],2)],1)],1):t._e()],2)],1)},g=[],f={data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},formList:[{label:"所属院系",code:"college_id",search_type:"select",is_must:0,option_list:[{value:"117c96a1-5c8f-4c71-8574-d45ec049db3b",label:"电气工程系"}]},{label:"状态1",code:"status",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态2",code:"status2",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态3",code:"status3",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]}],collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",status:"",status2:"",status3:""}}},mounted:function(){},methods:{getData:function(){console.log("搜索条件查询")}}},_=f,b=Object(u["a"])(_,h,g,!1,null,null,null),v=b.exports,w={name:"list",components:{AddEditDrawer:p,TableFrom:v},data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"班级编号",key:"class_code",align:"center",show:!0,minWidth:100},{title:"班级名称",key:"class_name",align:"center",show:!0,minWidth:150},{title:"年级",key:"grade",align:"center",show:!0,minWidth:100},{title:"培养层次",key:"training",align:"center",show:!0,minWidth:120},{title:"辅导员工号",key:"counselor_card",align:"center",show:!0,minWidth:150},{title:"辅导员姓名",key:"counselor_name",align:"center",show:!0,minWidth:120},{title:"班主任工号",key:"head_teacher_card",align:"center",show:!0,minWidth:150},{title:"班主任姓名",key:"head_teacher_name",align:"center",show:!0,minWidth:120},{title:"院系名称",key:"college_name",align:"center",show:!0,minWidth:200},{title:"状态",key:"status",align:"center",slot:"status",show:!0,minWidth:130},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""}}},created:function(){},mounted:function(){this.getData()},methods:{getData:function(){this.params.college_id=void 0==this.params.college_id?"":this.params.college_id,this.params.grade=void 0==this.params.grade?"":this.params.grade,this.params.classId_Name=void 0==this.params.classId_Name?"":this.params.classId_Name,this.params.status=void 0==this.params.status?"":this.params.status,this.params.pageIndex=1},add:function(){this.$refs.addEdit.add()},edit:function(t){this.$refs.addEdit.edit(t)},del:function(t){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(t){this.params.pageIndex=t,this.getData()},handleChangePageSize:function(t){this.current=1,this.params.pageSize=t,this.getData()}}},y=w,k=Object(u["a"])(y,s,i,!1,null,null,null);e["default"]=k.exports},"2be9":function(t,e,a){},e572:function(t,e,a){"use strict";a("2be9")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-444a6bc3"],{"386d":function(e,t,a){"use strict";var l=a("cb7c"),n=a("83a1"),o=a("5f1b");a("214f")("search",1,(function(e,t,a,c){return[function(a){var l=e(this),n=void 0==a?void 0:a[t];return void 0!==n?n.call(a,l):new RegExp(a)[t](String(l))},function(e){var t=c(a,e,this);if(t.done)return t.value;var i=l(e),r=String(this),s=i.lastIndex;n(s,0)||(i.lastIndex=0);var u=o(i,r);return n(i.lastIndex,s)||(i.lastIndex=s),null===u?-1:u.index}]}))},"4c2d":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Card",{scopedSlots:e._u([{key:"title",fn:function(){return[a("div",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[a("h3",[e._v("用户管理")])])]},proxy:!0},{key:"extra",fn:function(){return[a("div",{staticStyle:{display:"flex","flex-wrap":"nowrap","align-items":"center"}},[a("Input",{attrs:{placeholder:"请输入权限名称进行查找..."},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}),a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",disabled:""===e.searchValue},on:{click:e.searchEvent}},[e._v("查找\n ")]),a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:e.addUserRole}},[e._v("增添用户权限")])],1)]},proxy:!0}])},[a("Table",{attrs:{columns:e.columns,data:e.data,loading:e.loading},scopedSlots:e._u([{key:"role_name",fn:function(t){var l=t.row;return e._l(l.role_name,(function(t,l){return a("span",{key:l,staticStyle:{"margin-left":"5px"}},[a("Tag",{attrs:{color:"success"}},[e._v(e._s(t))])],1)}))}},{key:"action",fn:function(t){var l=t.row;return[a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"small"},on:{click:function(t){return e.roleUpdate(l)}}},[e._v("修改")]),a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"error",size:"small"},on:{click:function(t){return e.roleDelete(l)}}},[e._v("删除")])]}}])}),a("div",{staticStyle:{width:"100%",height:"70px",display:"flex","align-items":"center"}},[a("Page",{attrs:{"show-total":"","show-sizer":"","show-elevator":"",total:e.total,"page-size":e.page_size,"model-value":"page_index"},on:{"on-change":e.currentPage,"on-page-size-change":e.currentPageCount}})],1)],1),a("Modal",{attrs:{title:"添加教师权限","mask-closable":!1,width:800},scopedSlots:e._u([{key:"footer",fn:function(){return[a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:function(t){e.modalSelect.modal=!1}}},[e._v("取消")]),a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:e.teacherListOk}},[e._v("确认权限")])]},proxy:!0}]),model:{value:e.modalSelect.modal,callback:function(t){e.$set(e.modalSelect,"modal",t)},expression:"modalSelect.modal"}},[a("div",{staticStyle:{display:"flex","flex-wrap":"wrap"}},[a("CheckboxGroup",{staticStyle:{"margin-bottom":"15px"},model:{value:e.modalSelect.checkboxValue,callback:function(t){e.$set(e.modalSelect,"checkboxValue",t)},expression:"modalSelect.checkboxValue"}},e._l(e.modalSelect.rList,(function(t,l){return a("Checkbox",{key:l,attrs:{label:t.id,border:""}},[a("span",[e._v(e._s(t.name))])])})),1),a("div",{staticStyle:{"margin-left":"auto",display:"flex","flex-wrap":"nowrap"}},[a("Input",{attrs:{placeholder:"请输入姓名或卡号搜索..."},model:{value:e.modalSelect.searchValue,callback:function(t){e.$set(e.modalSelect,"searchValue",t)},expression:"modalSelect.searchValue"}}),a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",disabled:""===e.modalSelect.searchValue},on:{click:e.searchButton}},[e._v("\n 搜索\n ")]),a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:e.searchReset}},[e._v("重置")])],1),e.modalSelect.checkboxValue.some((function(e){return"8169147c-e4b1-41c0-9464-92bf446ec049"==e}))?a("div",{staticStyle:{width:"100%","margin-bottom":"15px"}},[a("span",[e._v("系部:")]),a("Select",{staticStyle:{width:"600px"},attrs:{multiple:"",filterable:"",placeholder:""},model:{value:e.modalSelect.deptSlcList,callback:function(t){e.$set(e.modalSelect,"deptSlcList",t)},expression:"modalSelect.deptSlcList"}},e._l(e.deptList,(function(t){return a("Option",{key:t.value,attrs:{value:t.value}},[e._v("\n "+e._s(t.lable)+"\n ")])})),1)],1):e._e()],1),a("Table",{attrs:{loading:e.loading3,columns:e.modalSelect.column,data:e.modalSelect.tList},on:{"on-select-all":e.modalTableSelectAll,"on-select-all-cancel":e.modalTableSelectAllCancel,"on-select":e.modalTableSelect,"on-select-cancel":e.modalTableSelectCancel}}),a("div",{staticStyle:{height:"30px","margin-top":"20px"}},[a("Page",{key:e.modalSelect.pageKey,attrs:{"show-total":"","show-sizer":"","show-elevator":"",total:e.modalSelect.total,"page-size":e.modalSelect.page_size,"model-value":"modalSelect.page_index"},on:{"on-change":e.currentPage1,"on-page-size-change":e.currentPageCount1}})],1)],1),a("Modal",{attrs:{title:"编辑教师权限","mask-closable":!1},on:{"on-cancel":e.editCancel},scopedSlots:e._u([{key:"footer",fn:function(){return[a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:e.editCancel}},[e._v("取消")]),a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:e.editSubmit}},[e._v("确认")])]},proxy:!0}]),model:{value:e.editRoleModalShow,callback:function(t){e.editRoleModalShow=t},expression:"editRoleModalShow"}},[a("CheckboxGroup",{staticStyle:{"margin-bottom":"15px"},model:{value:e.modalSelect.checkboxValue,callback:function(t){e.$set(e.modalSelect,"checkboxValue",t)},expression:"modalSelect.checkboxValue"}},e._l(e.modalSelect.rList,(function(t,l){return a("Checkbox",{key:l,attrs:{label:t.id,border:""}},[a("span",[e._v(e._s(t.name))])])})),1),e.modalSelect.checkboxValue.some((function(e){return"8169147c-e4b1-41c0-9464-92bf446ec049"==e}))?a("div",{staticStyle:{width:"100%","margin-bottom":"15px"}},[a("span",[e._v("系部:")]),a("Select",{staticStyle:{width:"445px"},attrs:{multiple:"",filterable:"",placeholder:""},model:{value:e.modalSelect.deptSlcList,callback:function(t){e.$set(e.modalSelect,"deptSlcList",t)},expression:"modalSelect.deptSlcList"}},e._l(e.deptList,(function(t){return a("Option",{key:t.value,attrs:{value:t.value}},[e._v("\n "+e._s(t.lable)+"\n ")])})),1)],1):e._e()],1)],1)},n=[],o=(a("7f7f"),a("386d"),a("28a5"),a("96cf"),a("1da1")),c=a("967e"),i=a.n(c),r=a("5e9b"),s=(a("806c"),{components:{},data:function(){return{deptList:[],userid:"",modalSelect:{pageKey:1,checkboxValue:[],page_index:1,page_size:10,total:null,modal:!1,search:"",searchValue:"",column:[{type:"selection"},{title:"姓名",key:"name"},{title:"工号",key:"number"}],deptSlcList:[],tList:[],rList:[],tid:[],rid:[]},modalKey:1,cityRoleList:[],roleSelectCurrentValueArray:[],teacherSelectCurrentValueArray:[],cityTeacherList:[],teacherValue:"",searchValue:"",total:null,page_size:10,page_index:1,ruleValidate:{input1:[{required:!0,message:"不能为空!",trigger:"blur"}],input2:[{required:!0,message:"不能为空!",trigger:"blur"}]},formTop_roleId:"",formTop:{input1:"",input2:"",roleId:"",roleCreateTime:""},modal:!1,loading:!1,loading3:!1,columns:[{title:"序号",type:"index"},{title:"工号",key:"card_name"},{title:"用户名称",key:"name"},{title:"部门",key:"dept"},{title:"电话",key:"mobile"},{title:"权限名称",slot:"role_name"},{title:"操作",slot:"action",align:"center",width:150}],data:[],editRoleModalShow:!1}},computed:{ModalTitleValue:function(){return"增添用户权限"}},watch:{"modalSelect.checkboxValue":function(e,t){console.log(e),e.some((function(e){return"8169147c-e4b1-41c0-9464-92bf446ec049"==e}))||(this.modalSelect.deptSlcList=[])},"formTop.input1":function(e,t){console.log(e)},teacherSelectCurrentValue:function(e,t){console.log(e)},roleSelectCurrentValue:function(e,t){}},methods:{searchReset:function(){this.modalSelect.checkboxValue=[],this.modalSelect.tid=[],this.modalSelect.page_index=1,this.modalSelect.page_size=10,this.modalSelect.pageKey++,this.modalSelect.search="",this.modalSelect.searchValue="",this.getTorR()},searchButton:function(){this.modalSelect.search=this.modalSelect.searchValue,this.getTorR()},addUserRole:function(){this.modalSelect.tid=[],this.modalSelect.modal=!0},teacherListOk:function(){var e=this;this.hooks.myEncapsulationFunction(Object(o["a"])(i.a.mark((function t(){var a,l;return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.modalSelect.checkboxValue.length){t.next=12;break}return a={tid:e.modalSelect.tid,role:e.modalSelect.checkboxValue,dept_id:e.modalSelect.deptSlcList},t.next=4,r["F"](a);case 4:return l=t.sent,e.modalSelect.modal=!1,e.modalSelect.checkboxValue=[],e.GetUserList(),e.getTorR(),t.abrupt("return",l);case 12:e.$Message.error("请选择权限");case 13:case"end":return t.stop()}}),t)}))))},modalTableSelectCancel:function(e,t){var a=this;this.modalSelect.tid=[],e.map((function(e,t){a.modalSelect.tid.push(e.tid)}))},modalTableSelectAll:function(e,t){var a=this;this.modalSelect.tid=[],e.map((function(e,t){a.modalSelect.tid.push(e.tid)}))},modalTableSelectAllCancel:function(e,t){this.modalSelect.tid=[]},modalTableSelect:function(e,t){var a=this;this.modalSelect.tid=[],e.map((function(e,t){a.modalSelect.tid.push(e.tid)}))},searchEvent:function(){this.page_index=1,this.GetUserList()},currentPage1:function(e){this.modalSelect.page_index=e,this.getTorR()},currentPageCount1:function(e){this.modalSelect.page_size=e,this.getTorR()},currentPage:function(e){console.log(e),this.page_index=e,this.GetUserList()},currentPageCount:function(e){console.log(e,"currentPageCount"),this.page_size=e,this.GetUserList()},publicConfirm:function(e){this.$Modal.confirm({title:"警告",content:"<p>是否继续此操作?</p>",cancelText:"取消",okText:"确定",onOk:function(){var t=Object(o["a"])(i.a.mark((function t(){return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e();case 2:case"end":return t.stop()}}),t)})));function a(){return t.apply(this,arguments)}return a}()})},publicMessage:function(e){1!==e.code?this.$Message["warning"]({background:!0,content:"操作异常"}):(this.$Spin.hide(),this.$Message["success"]({background:!0,content:"操作成功"}))},roleDeleteEvent:function(){var e=this;this.hooks.myEncapsulationFunction(Object(o["a"])(i.a.mark((function t(){var a,l;return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={id:e.formTop.roleId},t.next=3,r["E"](a);case 3:return l=t.sent,e.GetUserList(),t.abrupt("return",l);case 6:case"end":return t.stop()}}),t)}))))},roleUpdate:function(e){var t=this;this.editRoleModalShow=!0,this.userid=e.userid,r["n"](this.userid).then((function(e){t.modalSelect.checkboxValue=e.response.roleid.split("|"),t.modalSelect.deptSlcList=e.response.admin_dept_id.split("|")}))},editSubmit:function(){var e=this,t={userid:this.userid,role:this.modalSelect.checkboxValue,dept_id:this.modalSelect.deptSlcList};this.$Modal.confirm({title:"提示",content:"是否确认修改?",loading:!0,onOk:function(){r["J"](t).then((function(t){console.log("编辑用户提交res",t),1==t.code&&(e.$Message.success({content:t.response,background:!0}),e.$Modal.remove(),e.editRoleModalShow=!1,e.GetUserList())}))}})},editCancel:function(){this.editRoleModalShow=!1,this.modalSelect.checkboxValue=[],this.modalSelect.deptSlcList=[]},roleDelete:function(){var e=Object(o["a"])(i.a.mark((function e(t){var a=this;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.formTop.roleId=t.userid,this.publicConfirm((function(){return a.roleDeleteEvent()}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),addRoleClass:function(){this.formTop.roleId="",this.roleSelectCurrentValueArray=[],this.teacherSelectCurrentValueArray=[],console.log(this.teacherSelectCurrentValueArray,"🚀🚀🚀,",this.roleSelectCurrentValueArray),this.modal=!0},teacherSelectCurrentValue:function(e){this.teacherSelectCurrentValueArray=e},roleSelectCurrentValue:function(e){this.roleSelectCurrentValueArray=e},modalOk:function(){var e=Object(o["a"])(i.a.mark((function e(t){var a;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log("🚀🚀🚀,",this.roleSelectCurrentValue),a={tid:this.teacherSelectCurrentValueArray,role:this.roleSelectCurrentValueArray},e.next=4,r["F"](a);case 4:return e.sent,e.next=7,this.GetUserList();case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getTorR:function(){var e=this;this.hooks.getInitListRequest(Object(o["a"])(i.a.mark((function t(){var a,l,n;return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading3=!0,a={condition:e.modalSelect.search,page_index:e.modalSelect.page_index,page_size:e.modalSelect.page_size},t.next=4,r["l"](a);case 4:return l=t.sent,e.modalSelect.tList=l.response.data,e.modalSelect.total=l.response.data_count,e.loading3=!1,t.next=10,r["I"]();case 10:n=t.sent,e.modalSelect.rList=n.response;case 12:case"end":return t.stop()}}),t)}))))},GetUserList:function(){var e=Object(o["a"])(i.a.mark((function e(){var t=this;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.hooks.getInitListRequest(Object(o["a"])(i.a.mark((function e(){var a,l,n,o,c;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,a={page_index:t.page_index,page_size:t.page_size,name:t.searchValue},e.next=4,r["o"](a);case 4:return l=e.sent,t.data=[],t.data=l.response.data,t.total=l.response.data_count,t.loading=!1,n={condition:""},e.next=12,r["l"](n);case 12:return o=e.sent,t.cityTeacherList=o.response,e.next=16,r["I"]();case 16:c=e.sent,t.cityRoleList=c.response;case 18:case"end":return e.stop()}}),e)}))));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){var e=this;this.GetUserList(),this.getTorR(),r["s"]().then((function(t){e.deptList=t.response.map((function(e){return{value:e.id,lable:e.name}}))}))},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}}),u=s,d=(a("c398"),a("2877")),p=Object(d["a"])(u,l,n,!1,null,"32a72e16",null);t["default"]=p.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},c398:function(e,t,a){"use strict";a("f420")},f420:function(e,t,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-461504fe"],{3478:function(e,t,n){"use strict";n("5ffd")},"5ffd":function(e,t,n){},b769:function(e,t,n){"use strict";n.r(t);var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Card",{staticClass:"HeaderCard",staticStyle:{width:"100%"},attrs:{"dis-hover":""}},[n("div",{staticStyle:{"padding-bottom":"7px",display:"flex","flex-flow":"row nowrap","align-content":"center"}},[n("h3",[e._v("消息推送记录列表")]),n("div",{staticStyle:{"margin-left":"auto",display:"flex"}},[n("Select",{staticStyle:{"margin-right":"10px",width:"10vw"},attrs:{placeholder:"请选择..."},on:{"on-change":function(t){return e.OfficeArraySort()}},model:{value:e.send_state,callback:function(t){e.send_state=t},expression:"send_state"}},e._l(e.cityList,(function(t){return n("Option",{key:t.value,attrs:{value:t.value}},[e._v(e._s(t.label))])})),1),n("Select",{staticStyle:{"margin-right":"10px",width:"10vw"},attrs:{placeholder:"请选择..."},on:{"on-change":function(t){return e.OfficeArraySort()}},model:{value:e.is_succeed,callback:function(t){e.is_succeed=t},expression:"is_succeed"}},e._l(e.cityList1,(function(t){return n("Option",{key:t.value,attrs:{value:t.value}},[e._v(e._s(t.label))])})),1),n("Button",{staticStyle:{"margin-left":"1vh"},attrs:{disabled:""===e.send_state&&""===e.is_succeed,type:"primary"},on:{click:e.SearchViewEvent}},[e._v("查找\n ")])],1)]),n("Table",{ref:"selection",staticClass:"table",attrs:{border:!1,loading:e.loading,columns:e.columns,data:e.data},scopedSlots:e._u([{key:"messageinfo",fn:function(e){var t=e.row;return[n("Ellipsis",{attrs:{text:t.messageinfo,length:5,tooltip:""}})]}},{key:"reception_man",fn:function(t){var n=t.row;return[e._v("\n "+e._s(n.reception_man)+"\n ")]}},{key:"meg_link",fn:function(e){var t=e.row;return[n("Ellipsis",{attrs:{text:t.meg_link,height:100,tooltip:""}})]}},{key:"remark",fn:function(t){var n=t.row;return[e._v("\n "+e._s(n.remark)+"\n ")]}},{key:"send_state",fn:function(t){var s=t.row;return[n("Tag",{attrs:{color:["error","success"][s.send_state]}},[e._v(e._s(["未发送","已发送"][s.send_state]))])]}},{key:"is_succeed",fn:function(t){var s=t.row;return[n("Tag",{attrs:{color:["warning","error","success"][s.is_succeed]}},[e._v(e._s(["异常","失败","成功"][s.is_succeed])+"\n ")])]}},{key:"action",fn:function(t){var s=t.row;return[n("Button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.messageReset(s)}}},[e._v("重发\n ")])]}}])}),n("div",{staticStyle:{width:"100%",height:"50px","margin-top":"20px"}},[n("Page",{key:e.key,staticStyle:{"border-color":"#d89a7c"},attrs:{"show-total":"","show-sizer":"","show-elevator":"",total:e.total,"page-size":e.page_size,"model-value":"page_index"},on:{"on-change":e.currentPage,"on-page-size-change":e.currentPageCount}})],1)],1),n("Modal",{attrs:{title:"重新发送提示"},scopedSlots:e._u([{key:"header",fn:function(){return[n("p",{staticStyle:{color:"#f60","text-align":"center"}},[n("Icon",{attrs:{type:"ios-information-circle"}}),n("span",[e._v("重新发送提示")])],1)]},proxy:!0},{key:"footer",fn:function(){return[n("Button",{staticStyle:{color:"#574f44"},attrs:{size:"large"},on:{click:function(t){e.messageModal=!1}}},[e._v("取消\n ")]),n("Button",{staticStyle:{"margin-left":"1vh"},attrs:{type:"primary",size:"large"},on:{click:function(t){return e.messageOk()}}},[e._v("确定\n ")])]},proxy:!0}]),model:{value:e.messageModal,callback:function(t){e.messageModal=t},expression:"messageModal"}},[n("span",{staticStyle:{display:"flex","justify-content":"center"}},[e._v("确定重发此条消息提示吗?")])])],1)},a=[],i=(n("96cf"),n("1da1")),r=n("967e"),c=n.n(r),o=n("5e9b"),l={name:"numberLimit",data:function(){return{loading:!1,send_state:"",is_succeed:"",send_stateSearch:"",is_succeedSearch:"",messageResetObject:{},messageModal:!1,key:0,SelectMiedleValue:"",SelectValue:"",SearchDateValue:"",page_size:10,page_index:1,total:0,columns:[{title:"创建时间",key:"createtime",minWidth:150},{title:"消息内容",slot:"messageinfo",minWidth:150},{title:"发送时间",key:"send_time",minWidth:150},{title:"接收人",slot:"reception_man",minWidth:150},{title:"链接",slot:"meg_link",minWidth:300},{title:"失败原因",slot:"remark",minWidth:100},{title:"发送状态",slot:"send_state",minWidth:100},{title:"是否成功",slot:"is_succeed",minWidth:100},{title:"操作",slot:"action",minWidth:100}],data:[],cityList:[{value:1,label:"发送"},{value:0,label:"未发送"}],cityList1:[{value:2,label:"成功"},{value:1,label:"失败"}]}},methods:{messageOk:function(){var e=Object(i["a"])(c.a.mark((function e(){var t,n;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={megid:this.messageResetObject.msgid},e.next=3,o["y"](t);case 3:return n=e.sent,e.next=6,this.GetMessageimeListEvent();case 6:this.messageModal=!1,this.$Message.info(n.msg);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),messageReset:function(e){this.messageModal=!0,this.messageResetObject=e},OfficeArraySort:function(){console.log(this.SelectValue),this.SelectMiedleValue=this.SelectValue},DateManagementModal:function(e,t){console.log(e)},SearchViewEvent:function(){var e=Object(i["a"])(c.a.mark((function e(){return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.is_succeedSearch=this.is_succeed,this.send_stateSearch=this.send_state,this.page_index=1,this.key=new Date,e.next=6,this.GetMessageimeListEvent();case 6:this.$Message["success"]({background:!0,content:"查询成功!"});case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),searchTimeValue:function(e){},currentPage:function(e){this.page_index=e,this.GetMessageimeListEvent()},currentPageCount:function(e){this.page_size=e,this.GetMessageimeListEvent()},GetMessageimeListEvent:function(){var e=Object(i["a"])(c.a.mark((function e(){var t=this;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.hooks.getInitListRequest(Object(i["a"])(c.a.mark((function e(){var n,s;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,n={send_state:t.send_stateSearch,is_succeed:t.is_succeedSearch,page_index:t.page_index,page_size:t.page_size},e.next=4,o["j"](n);case 4:s=e.sent,t.loading=!1,t.data=s.response.data,0===t.data.length&&1!==t.page_index&&(t.page_index=1,t.currentPage(t.page_index)),t.total=s.response.data_count;case 9:case"end":return e.stop()}}),e)}))));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},mounted:function(){this.GetMessageimeListEvent()}},u=l,d=(n("3478"),n("2877")),h=Object(d["a"])(u,s,a,!1,null,"c8e783be",null);t["default"]=h.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-47e50cec"],{"0469":function(t,e,a){"use strict";a("c250")},"15fd":function(t,e,a){"use strict";function s(t,e){if(null==t)return{};var a,s,i={},n=Object.keys(t);for(s=0;s<n.length;s++)a=n[s],e.indexOf(a)>=0||(i[a]=t[a]);return i}function i(t,e){if(null==t)return{};var a,i,n=s(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(i=0;i<l.length;i++)a=l[i],e.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}a.d(e,"a",(function(){return i}))},"7e34":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{ref:"card"},[a("TableFrom"),a("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:t.add}},[a("Icon",{attrs:{type:"md-add"}}),t._v("新增")],1),a("Table",{staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.tableData,loading:t.loading,size:t.tableSize},scopedSlots:t._u([{key:"status",fn:function(e){var s=e.row;return[a("i-switch",{attrs:{size:"large","true-value":1,"false-value":0},on:{"on-change":function(e){return t.switchChange(s)}},model:{value:s.status,callback:function(e){t.$set(s,"status",e)},expression:"row.status"}},[a("span",{attrs:{slot:"open",type:"md-checkmark"},slot:"open"},[t._v("启用")]),a("span",{attrs:{slot:"close",type:"md-close"},slot:"close"},[t._v("停用")])])]}},{key:"action",fn:function(e){var s=e.row;return[a("Button",{attrs:{type:"info"},on:{click:function(e){return t.edit(s)}}},[t._v("编辑")]),a("Poptip",{attrs:{confirm:"",transfer:"",title:"你确定删除吗?"},on:{"on-ok":function(e){return t.del(s)},"on-cancel":t.cancel}},[a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"error"}},[t._v("删除")])],1)]}}])}),a("div",{staticClass:"ivu-text-center ivu-mt"},[a("Page",{attrs:{total:t.total,current:t.params.pageIndex,"show-total":"","show-sizer":"","page-size":t.params.pageSize},on:{"update:current":function(e){return t.$set(t.params,"pageIndex",e)},"on-change":t.handleChangePage,"on-page-size-change":t.handleChangePageSize}})],1),a("AddEditDrawer",{ref:"addEdit",on:{getData:t.getData}})],1)],1)},i=[],n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Modal",{attrs:{title:"add"==t.addOrEdit?"新增":"修改",width:"40%"},model:{value:t.visibleShow,callback:function(e){t.visibleShow=e},expression:"visibleShow"}},[a("Form",{ref:"formData",attrs:{model:t.formData,"label-width":100,rules:t.rules}},[a("Row",{attrs:{gutter:32}},[a("Col",{attrs:{span:"12"}},[a("FormItem",{attrs:{label:"ddd",prop:"a"}},[a("Input",{model:{value:t.formData.a,callback:function(e){t.$set(t.formData,"a",e)},expression:"formData.a"}})],1)],1)],1)],1),"add"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.addSubmit}},[t._v("确认新增")])],1):t._e(),"edit"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.editSubmit}},[t._v("确认修改")])],1):t._e()],1)],1)},l=[],r=(a("456d"),a("ac6a"),a("15fd")),o=["status"],c={data:function(){return{visibleShow:!1,rules:{class_code:[{required:!0,message:"不能为空",trigger:"blur"}],class_name:[{required:!0,message:"不能为空",trigger:"blur"}],college_id:[{required:!0,message:"不能为空",trigger:"change"}],grade:[{required:!0,message:"不能为空",trigger:"change"}],training_id:[{required:!0,message:"不能为空",trigger:"change"}]},formData:{a:""},formList:[],addOrEdit:""}},mounted:function(){this.getData()},methods:{getData:function(){},addSubmit:function(){var t=this;this.$refs.formData.validate((function(e){e&&(t.$Message.success(res),t.visibleShow=!1,t.$emit("getData"))}))},editSubmit:function(){var t=this.formData;t.status,Object(r["a"])(t,o);this.$refs.formData.validate((function(t){}))},add:function(){var t=this;this.addOrEdit="add",this.visibleShow=!0,Object.keys(this.formData).forEach((function(e){return t.formData[e]=""}))},edit:function(t){this.addOrEdit="edit",this.visibleShow=!0,this.formData=Object.assign({},t)}}},d=c,u=(a("0469"),a("2877")),m=Object(u["a"])(d,n,l,!1,null,null,null),p=m.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Form",{attrs:{"label-width":120}},[a("Row",{attrs:{gutter:32}},[t._l(t.formList,(function(e,s){return[~[0,1].indexOf(s)?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e(),t.collapse?[s>=2?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e()]:t._e()]})),0!==t.formList.length?a("Col",t._b({staticClass:"ivu-text-right"},"Col",t.grid,!1),[a("FormItem",{attrs:{type:"flex",justify:"end"}},[a("Button",{attrs:{type:"primary"},on:{click:t.getData}},[t._v("查询")]),a("a",{directives:[{name:"font",rawName:"v-font",value:14,expression:"14"}],staticClass:"ivu-ml-8",on:{click:function(e){t.collapse=!t.collapse}}},[t.collapse?[t._v("\n 收起 "),a("Icon",{attrs:{type:"ios-arrow-up"}})]:[t._v("\n 展开 "),a("Icon",{attrs:{type:"ios-arrow-down"}})]],2)],1)],1):t._e()],2)],1)},g=[],f={data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},formList:[{label:"所属院系",code:"college_id",search_type:"select",is_must:0,option_list:[{value:"117c96a1-5c8f-4c71-8574-d45ec049db3b",label:"电气工程系"}]},{label:"状态1",code:"status",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态2",code:"status2",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态3",code:"status3",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]}],collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",status:"",status2:"",status3:""}}},mounted:function(){},methods:{getData:function(){console.log("搜索条件查询")}}},_=f,b=Object(u["a"])(_,h,g,!1,null,null,null),v=b.exports,w={name:"list",components:{AddEditDrawer:p,TableFrom:v},data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"班级编号",key:"class_code",align:"center",show:!0,minWidth:100},{title:"班级名称",key:"class_name",align:"center",show:!0,minWidth:150},{title:"年级",key:"grade",align:"center",show:!0,minWidth:100},{title:"培养层次",key:"training",align:"center",show:!0,minWidth:120},{title:"辅导员工号",key:"counselor_card",align:"center",show:!0,minWidth:150},{title:"辅导员姓名",key:"counselor_name",align:"center",show:!0,minWidth:120},{title:"班主任工号",key:"head_teacher_card",align:"center",show:!0,minWidth:150},{title:"班主任姓名",key:"head_teacher_name",align:"center",show:!0,minWidth:120},{title:"院系名称",key:"college_name",align:"center",show:!0,minWidth:200},{title:"状态",key:"status",align:"center",slot:"status",show:!0,minWidth:130},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""}}},created:function(){},mounted:function(){this.getData()},methods:{getData:function(){this.params.college_id=void 0==this.params.college_id?"":this.params.college_id,this.params.grade=void 0==this.params.grade?"":this.params.grade,this.params.classId_Name=void 0==this.params.classId_Name?"":this.params.classId_Name,this.params.status=void 0==this.params.status?"":this.params.status,this.params.pageIndex=1},add:function(){this.$refs.addEdit.add()},edit:function(t){this.$refs.addEdit.edit(t)},del:function(t){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(t){this.params.pageIndex=t,this.getData()},handleChangePageSize:function(t){this.current=1,this.params.pageSize=t,this.getData()}}},y=w,k=Object(u["a"])(y,s,i,!1,null,null,null);e["default"]=k.exports},c250:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d705732"],{a7a0:function(n,t,e){"use strict";e.r(t);var u=e("d507"),c=e("f4fd");for(var r in c)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return c[n]}))}(r);var f=e("2877"),i=Object(f["a"])(c["default"],u["a"],u["b"],!1,null,null,null);t["default"]=i.exports},d507:function(n,t,e){"use strict";e.d(t,"a",(function(){return u})),e.d(t,"b",(function(){return c}));var u=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",[e("Exception",{attrs:{type:"403","img-color":"",desc:n.$t("page.exception.e403"),"back-text":n.$t("page.exception.btn")}})],1)},c=[]},f4fd:function(n,t,e){"use strict";e.r(t);var u=e("fd2c"),c=e.n(u);for(var r in u)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(r);t["default"]=c.a},fd2c:function(n,t){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-567abd9a"],{"15fd":function(t,e,a){"use strict";function s(t,e){if(null==t)return{};var a,s,i={},n=Object.keys(t);for(s=0;s<n.length;s++)a=n[s],e.indexOf(a)>=0||(i[a]=t[a]);return i}function i(t,e){if(null==t)return{};var a,i,n=s(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(i=0;i<l.length;i++)a=l[i],e.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}a.d(e,"a",(function(){return i}))},"3d13":function(t,e,a){"use strict";a("caec")},"807f":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{ref:"card"},[a("TableFrom"),a("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:t.add}},[a("Icon",{attrs:{type:"md-add"}}),t._v("新增")],1),a("Table",{staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.tableData,loading:t.loading,size:t.tableSize},scopedSlots:t._u([{key:"status",fn:function(e){var s=e.row;return[a("i-switch",{attrs:{size:"large","true-value":1,"false-value":0},on:{"on-change":function(e){return t.switchChange(s)}},model:{value:s.status,callback:function(e){t.$set(s,"status",e)},expression:"row.status"}},[a("span",{attrs:{slot:"open",type:"md-checkmark"},slot:"open"},[t._v("启用")]),a("span",{attrs:{slot:"close",type:"md-close"},slot:"close"},[t._v("停用")])])]}},{key:"action",fn:function(e){var s=e.row;return[a("Button",{attrs:{type:"info"},on:{click:function(e){return t.edit(s)}}},[t._v("编辑")]),a("Poptip",{attrs:{confirm:"",transfer:"",title:"你确定删除吗?"},on:{"on-ok":function(e){return t.del(s)},"on-cancel":t.cancel}},[a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"error"}},[t._v("删除")])],1)]}}])}),a("div",{staticClass:"ivu-text-center ivu-mt"},[a("Page",{attrs:{total:t.total,current:t.params.pageIndex,"show-total":"","show-sizer":"","page-size":t.params.pageSize},on:{"update:current":function(e){return t.$set(t.params,"pageIndex",e)},"on-change":t.handleChangePage,"on-page-size-change":t.handleChangePageSize}})],1),a("AddEditDrawer",{ref:"addEdit",on:{getData:t.getData}})],1)],1)},i=[],n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Modal",{attrs:{title:"add"==t.addOrEdit?"新增":"修改",width:"40%"},model:{value:t.visibleShow,callback:function(e){t.visibleShow=e},expression:"visibleShow"}},[a("Form",{ref:"formData",attrs:{model:t.formData,"label-width":100,rules:t.rules}},[a("Row",{attrs:{gutter:32}},[a("Col",{attrs:{span:"12"}},[a("FormItem",{attrs:{label:"ddd",prop:"a"}},[a("Input",{model:{value:t.formData.a,callback:function(e){t.$set(t.formData,"a",e)},expression:"formData.a"}})],1)],1)],1)],1),"add"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.addSubmit}},[t._v("确认新增")])],1):t._e(),"edit"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.editSubmit}},[t._v("确认修改")])],1):t._e()],1)],1)},l=[],r=(a("456d"),a("ac6a"),a("15fd")),o=["status"],c={data:function(){return{visibleShow:!1,rules:{class_code:[{required:!0,message:"不能为空",trigger:"blur"}],class_name:[{required:!0,message:"不能为空",trigger:"blur"}],college_id:[{required:!0,message:"不能为空",trigger:"change"}],grade:[{required:!0,message:"不能为空",trigger:"change"}],training_id:[{required:!0,message:"不能为空",trigger:"change"}]},formData:{a:""},formList:[],addOrEdit:""}},mounted:function(){this.getData()},methods:{getData:function(){},addSubmit:function(){var t=this;this.$refs.formData.validate((function(e){e&&(t.$Message.success(res),t.visibleShow=!1,t.$emit("getData"))}))},editSubmit:function(){var t=this.formData;t.status,Object(r["a"])(t,o);this.$refs.formData.validate((function(t){}))},add:function(){var t=this;this.addOrEdit="add",this.visibleShow=!0,Object.keys(this.formData).forEach((function(e){return t.formData[e]=""}))},edit:function(t){this.addOrEdit="edit",this.visibleShow=!0,this.formData=Object.assign({},t)}}},d=c,u=(a("3d13"),a("2877")),m=Object(u["a"])(d,n,l,!1,null,null,null),p=m.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Form",{attrs:{"label-width":120}},[a("Row",{attrs:{gutter:32}},[t._l(t.formList,(function(e,s){return[~[0,1].indexOf(s)?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e(),t.collapse?[s>=2?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e()]:t._e()]})),0!==t.formList.length?a("Col",t._b({staticClass:"ivu-text-right"},"Col",t.grid,!1),[a("FormItem",{attrs:{type:"flex",justify:"end"}},[a("Button",{attrs:{type:"primary"},on:{click:t.getData}},[t._v("查询")]),a("a",{directives:[{name:"font",rawName:"v-font",value:14,expression:"14"}],staticClass:"ivu-ml-8",on:{click:function(e){t.collapse=!t.collapse}}},[t.collapse?[t._v("\n 收起 "),a("Icon",{attrs:{type:"ios-arrow-up"}})]:[t._v("\n 展开 "),a("Icon",{attrs:{type:"ios-arrow-down"}})]],2)],1)],1):t._e()],2)],1)},g=[],f={data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},formList:[{label:"所属院系",code:"college_id",search_type:"select",is_must:0,option_list:[{value:"117c96a1-5c8f-4c71-8574-d45ec049db3b",label:"电气工程系"}]},{label:"状态1",code:"status",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态2",code:"status2",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态3",code:"status3",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]}],collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",status:"",status2:"",status3:""}}},mounted:function(){},methods:{getData:function(){console.log("搜索条件查询")}}},_=f,b=Object(u["a"])(_,h,g,!1,null,null,null),v=b.exports,w={name:"list",components:{AddEditDrawer:p,TableFrom:v},data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"班级编号",key:"class_code",align:"center",show:!0,minWidth:100},{title:"班级名称",key:"class_name",align:"center",show:!0,minWidth:150},{title:"年级",key:"grade",align:"center",show:!0,minWidth:100},{title:"培养层次",key:"training",align:"center",show:!0,minWidth:120},{title:"辅导员工号",key:"counselor_card",align:"center",show:!0,minWidth:150},{title:"辅导员姓名",key:"counselor_name",align:"center",show:!0,minWidth:120},{title:"班主任工号",key:"head_teacher_card",align:"center",show:!0,minWidth:150},{title:"班主任姓名",key:"head_teacher_name",align:"center",show:!0,minWidth:120},{title:"院系名称",key:"college_name",align:"center",show:!0,minWidth:200},{title:"状态",key:"status",align:"center",slot:"status",show:!0,minWidth:130},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""}}},created:function(){},mounted:function(){this.getData()},methods:{getData:function(){this.params.college_id=void 0==this.params.college_id?"":this.params.college_id,this.params.grade=void 0==this.params.grade?"":this.params.grade,this.params.classId_Name=void 0==this.params.classId_Name?"":this.params.classId_Name,this.params.status=void 0==this.params.status?"":this.params.status,this.params.pageIndex=1},add:function(){this.$refs.addEdit.add()},edit:function(t){this.$refs.addEdit.edit(t)},del:function(t){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(t){this.params.pageIndex=t,this.getData()},handleChangePageSize:function(t){this.current=1,this.params.pageSize=t,this.getData()}}},y=w,k=Object(u["a"])(y,s,i,!1,null,null,null);e["default"]=k.exports},caec:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-57578a70"],{"318e":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page-account"},[t.showI18n?n("div",{staticClass:"page-account-header"},[n("i-header-i18n")],1):t._e(),n("div",{staticClass:"page-account-container"},[t._m(0),n("Login",{on:{"on-submit":t.handleSubmit}},[n("UserName",{attrs:{name:"username",value:"admin"}}),n("Password",{attrs:{name:"password",value:"admin","enter-to-submit":""}}),n("div",{staticClass:"page-account-auto-login"},[n("Checkbox",{attrs:{size:"large"},model:{value:t.autoLogin,callback:function(e){t.autoLogin=e},expression:"autoLogin"}},[t._v(t._s(t.$t("page.login.remember")))]),n("a",{attrs:{href:""}},[t._v(t._s(t.$t("page.login.forgot")))])],1),n("Submit",[t._v(t._s(t.$t("page.login.submit")))])],1),n("div",{staticClass:"page-account-other"},[n("span",[t._v(t._s(t.$t("page.login.other")))]),n("img",{attrs:{src:r("cbbd"),alt:"wechat"}}),n("img",{attrs:{src:r("c3b8"),alt:"qq"}}),n("img",{attrs:{src:r("fd1c"),alt:"weibo"}}),n("router-link",{staticClass:"page-account-register",attrs:{to:{name:"register"}}},[t._v(t._s(t.$t("page.login.signup")))])],1)],1),n("i-copyright")],1)},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"page-account-top"},[r("h1",[t._v("研究生选课系统")])])}],o=(r("8e6e"),r("ac6a"),r("456d"),r("a481"),r("ade3")),c=r("2f08"),i=r("2f62"),s=r("3dda");function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){Object(o["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var l={mixins:[s["a"]],components:{iCopyright:c["a"]},data:function(){return{autoLogin:!0}},methods:p(p({},Object(i["b"])("admin/account",["login"])),{},{handleSubmit:function(t,e){var r=this;if(t){var n=e.username,a=e.password;this.login({username:n,password:a}).then((function(){r.$router.replace(r.$route.query.redirect||"/")}))}}})},g=l,b=r("2877"),f=Object(b["a"])(g,n,a,!1,null,null,null);e["default"]=f.exports},"3dda":function(t,e,r){"use strict";r("8e6e"),r("ac6a"),r("456d");var n=r("ade3"),a=r("8af8"),o=r("2f62");function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){Object(n["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}e["a"]={components:{iHeaderI18n:a["a"]},computed:i({},Object(o["e"])("admin/layout",["showI18n"]))}},c3b8:function(t,e,r){t.exports=r.p+"img/icon-social-qq.2cf4276d.svg"},cbbd:function(t,e,r){t.exports=r.p+"img/icon-social-wechat.c69ec08c.svg"},fd1c:function(t,e,r){t.exports=r.p+"img/icon-social-weibo.cbf658a0.svg"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-63ed61ac"],{"23b1":function(e,t,n){},"4ca7":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Card",{scopedSlots:e._u([{key:"title",fn:function(){return[n("div",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[n("h3",[e._v("权限分配")])])]},proxy:!0},{key:"extra",fn:function(){return[n("div",{staticStyle:{display:"flex","flex-wrap":"nowrap","align-items":"center"}},[n("Input",{attrs:{placeholder:"请输入权限名称进行查找..."},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}),n("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",disabled:""===e.searchValue},on:{click:e.searchEvent}},[e._v("查找\n ")])],1)]},proxy:!0}])},[n("Table",{attrs:{columns:e.columns,data:e.data,loading:e.loading},scopedSlots:e._u([{key:"action",fn:function(t){var r=t.row;return[n("Button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.update(r)}}},[e._v("修改")]),n("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"error",size:"small"},on:{click:function(t){return e.roleDelete(r)}}},[e._v("删除")])]}}])}),n("div",{staticStyle:{width:"100%",height:"70px",display:"flex","align-items":"center"}},[n("Page",{attrs:{"show-total":"","show-sizer":"","show-elevator":"",total:e.total,"page-size":e.page_size,"model-value":"page_index"},on:{"on-change":e.currentPage,"on-page-size-change":e.currentPageCount}})],1)],1),n("Modal",{attrs:{title:""+e.ModalTitleValue,"cancel-text":"取消","ok-text":"确认","mask-closable":!1},on:{"on-ok":e.modalOk},model:{value:e.modal,callback:function(t){e.modal=t},expression:"modal"}},[n("Form",{ref:"updateRoleValue",attrs:{model:e.formTop,"label-width":80}},[n("FormItem",{attrs:{label:"权限名称",prop:"input1"}},[n("Input",{model:{value:e.formTop.input1,callback:function(t){e.$set(e.formTop,"input1",t)},expression:"formTop.input1"}})],1),n("FormItem",{attrs:{label:"备注",prop:"input2"}},[n("Input",{model:{value:e.formTop.input2,callback:function(t){e.$set(e.formTop,"input2",t)},expression:"formTop.input2"}})],1)],1)],1)],1)},a=[],o=(n("96cf"),n("1da1")),i=n("967e"),s=n.n(i),c=n("5e9b"),u=n("806c"),l={components:{},data:function(){return{loading:!1,searchValue:"",total:null,page_size:10,page_index:1,ruleValidate:{input1:[{required:!0,message:"不能为空!",trigger:"blur"}],input2:[{required:!0,message:"不能为空!",trigger:"blur"}]},formTop_roleId:"",formTop:{input1:"",input2:"",roleId:"",roleCreateTime:""},modal:!1,columns:[{title:"序号",type:"index"},{title:"权限名称",key:"role_name"},{title:"备注",key:"role_remark"},{title:"操作",slot:"action",align:"center"}],data:[]}},computed:{ModalTitleValue:function(){return""===this.formTop.input1?"增添权限类型":"信息修改"}},watch:{"formTop.input1":function(e,t){}},methods:{searchEvent:function(){this.page_index=1,this.GetUserRoleList()},currentPage:function(e){this.page_index=e,this.GetUserRoleList()},currentPageCount:function(e){this.page_size=e,this.GetUserRoleList()},publicConfirm:function(e){this.$Modal.confirm({title:"警告",content:"<p>是否继续此操作?</p>",cancelText:"取消",okText:"确定",onOk:function(){var t=Object(o["a"])(s.a.mark((function t(){return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e();case 2:case"end":return t.stop()}}),t)})));function n(){return t.apply(this,arguments)}return n}()})},publicMessage:function(e){1!==e.code?this.$Message["warning"]({background:!0,content:"操作异常"}):(this.$Spin.hide(),this.$Message["success"]({background:!0,content:"操作成功"}))},roleDeleteEvent:function(){var e=Object(o["a"])(s.a.mark((function e(){var t=this;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:u["myEncapsulationFunction"](Object(o["a"])(s.a.mark((function e(){var n,r;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={id:t.formTop.roleId},e.next=3,c["G"](n);case 3:return r=e.sent,e.next=6,t.GetUserRoleList();case 6:return e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)}))));case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),roleDelete:function(){var e=Object(o["a"])(s.a.mark((function e(t){var n=this;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.formTop.roleId=t.roleid,this.publicConfirm((function(){return n.roleDeleteEvent()}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),addRoleClass:function(){this.formTop.input1="",this.formTop.input2="",this.formTop.roleId="",this.modal=!0},update:function(e){this.modal=!0,this.formTop.input1=e.role_name,this.formTop.input2=e.role_remark,this.formTop.roleId=e.roleid,this.formTop.roleCreateTime=e.createtime},modalOkDataAction:function(e){var t;return t=e?{roleid:this.formTop.roleId,role_name:this.formTop.input1,role_remark:this.formTop.input2,createtime:this.formTop.roleCreateTime}:{role_name:this.formTop.input1,role_remark:this.formTop.input2},t},modalOk:function(){var e=Object(o["a"])(s.a.mark((function e(){var t=this;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:u["myEncapsulationFunction"](Object(o["a"])(s.a.mark((function e(){var n,r;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.modalOkDataAction(t.formTop),e.next=3,c["H"](n);case 3:return r=e.sent,e.next=6,t.GetUserRoleList();case 6:return e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)}))));case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),GetUserRoleList:function(){var e=Object(o["a"])(s.a.mark((function e(){var t=this;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:u["getInitListRequest"](Object(o["a"])(s.a.mark((function e(){var n,r;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,n={page_index:t.page_index,page_size:t.page_size,name:t.searchValue},e.next=4,c["p"](n);case 4:r=e.sent,t.data=[],t.data=r.response.data,t.total=r.response.data_count,t.loading=!1;case 9:case"end":return e.stop()}}),e)}))));case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.GetUserRoleList()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},p=l,f=(n("9a33"),n("2877")),d=Object(f["a"])(p,r,a,!1,null,"ac7f55fe",null);t["default"]=d.exports},"9a33":function(e,t,n){"use strict";n("23b1")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-73aa32a3"],{"11b7":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{ref:"card"},[a("TableFrom"),a("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:t.add}},[a("Icon",{attrs:{type:"md-add"}}),t._v("新增")],1),a("Table",{staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.tableData,loading:t.loading,size:t.tableSize},scopedSlots:t._u([{key:"status",fn:function(e){var s=e.row;return[a("i-switch",{attrs:{size:"large","true-value":1,"false-value":0},on:{"on-change":function(e){return t.switchChange(s)}},model:{value:s.status,callback:function(e){t.$set(s,"status",e)},expression:"row.status"}},[a("span",{attrs:{slot:"open",type:"md-checkmark"},slot:"open"},[t._v("启用")]),a("span",{attrs:{slot:"close",type:"md-close"},slot:"close"},[t._v("停用")])])]}},{key:"action",fn:function(e){var s=e.row;return[a("Button",{attrs:{type:"info"},on:{click:function(e){return t.edit(s)}}},[t._v("编辑")]),a("Poptip",{attrs:{confirm:"",transfer:"",title:"你确定删除吗?"},on:{"on-ok":function(e){return t.del(s)},"on-cancel":t.cancel}},[a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"error"}},[t._v("删除")])],1)]}}])}),a("div",{staticClass:"ivu-text-center ivu-mt"},[a("Page",{attrs:{total:t.total,current:t.params.pageIndex,"show-total":"","show-sizer":"","page-size":t.params.pageSize},on:{"update:current":function(e){return t.$set(t.params,"pageIndex",e)},"on-change":t.handleChangePage,"on-page-size-change":t.handleChangePageSize}})],1),a("AddEditDrawer",{ref:"addEdit",on:{getData:t.getData}})],1)],1)},i=[],n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Modal",{attrs:{title:"add"==t.addOrEdit?"新增":"修改",width:"40%"},model:{value:t.visibleShow,callback:function(e){t.visibleShow=e},expression:"visibleShow"}},[a("Form",{ref:"formData",attrs:{model:t.formData,"label-width":100,rules:t.rules}},[a("Row",{attrs:{gutter:32}},[a("Col",{attrs:{span:"12"}},[a("FormItem",{attrs:{label:"ddd",prop:"a"}},[a("Input",{model:{value:t.formData.a,callback:function(e){t.$set(t.formData,"a",e)},expression:"formData.a"}})],1)],1)],1)],1),"add"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.addSubmit}},[t._v("确认新增")])],1):t._e(),"edit"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.editSubmit}},[t._v("确认修改")])],1):t._e()],1)],1)},l=[],r=(a("456d"),a("ac6a"),a("15fd")),o=["status"],c={data:function(){return{visibleShow:!1,rules:{class_code:[{required:!0,message:"不能为空",trigger:"blur"}],class_name:[{required:!0,message:"不能为空",trigger:"blur"}],college_id:[{required:!0,message:"不能为空",trigger:"change"}],grade:[{required:!0,message:"不能为空",trigger:"change"}],training_id:[{required:!0,message:"不能为空",trigger:"change"}]},formData:{a:""},formList:[],addOrEdit:""}},mounted:function(){this.getData()},methods:{getData:function(){},addSubmit:function(){var t=this;this.$refs.formData.validate((function(e){e&&(t.$Message.success(res),t.visibleShow=!1,t.$emit("getData"))}))},editSubmit:function(){var t=this.formData;t.status,Object(r["a"])(t,o);this.$refs.formData.validate((function(t){}))},add:function(){var t=this;this.addOrEdit="add",this.visibleShow=!0,Object.keys(this.formData).forEach((function(e){return t.formData[e]=""}))},edit:function(t){this.addOrEdit="edit",this.visibleShow=!0,this.formData=Object.assign({},t)}}},d=c,u=(a("3529"),a("2877")),m=Object(u["a"])(d,n,l,!1,null,null,null),p=m.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Form",{attrs:{"label-width":120}},[a("Row",{attrs:{gutter:32}},[t._l(t.formList,(function(e,s){return[~[0,1].indexOf(s)?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e(),t.collapse?[s>=2?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e()]:t._e()]})),0!==t.formList.length?a("Col",t._b({staticClass:"ivu-text-right"},"Col",t.grid,!1),[a("FormItem",{attrs:{type:"flex",justify:"end"}},[a("Button",{attrs:{type:"primary"},on:{click:t.getData}},[t._v("查询")]),a("a",{directives:[{name:"font",rawName:"v-font",value:14,expression:"14"}],staticClass:"ivu-ml-8",on:{click:function(e){t.collapse=!t.collapse}}},[t.collapse?[t._v("\n 收起 "),a("Icon",{attrs:{type:"ios-arrow-up"}})]:[t._v("\n 展开 "),a("Icon",{attrs:{type:"ios-arrow-down"}})]],2)],1)],1):t._e()],2)],1)},g=[],f={data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},formList:[{label:"所属院系",code:"college_id",search_type:"select",is_must:0,option_list:[{value:"117c96a1-5c8f-4c71-8574-d45ec049db3b",label:"电气工程系"}]},{label:"状态1",code:"status",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态2",code:"status2",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态3",code:"status3",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]}],collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",status:"",status2:"",status3:""}}},mounted:function(){},methods:{getData:function(){console.log("搜索条件查询")}}},_=f,b=Object(u["a"])(_,h,g,!1,null,null,null),v=b.exports,w={name:"list",components:{AddEditDrawer:p,TableFrom:v},data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"班级编号",key:"class_code",align:"center",show:!0,minWidth:100},{title:"班级名称",key:"class_name",align:"center",show:!0,minWidth:150},{title:"年级",key:"grade",align:"center",show:!0,minWidth:100},{title:"培养层次",key:"training",align:"center",show:!0,minWidth:120},{title:"辅导员工号",key:"counselor_card",align:"center",show:!0,minWidth:150},{title:"辅导员姓名",key:"counselor_name",align:"center",show:!0,minWidth:120},{title:"班主任工号",key:"head_teacher_card",align:"center",show:!0,minWidth:150},{title:"班主任姓名",key:"head_teacher_name",align:"center",show:!0,minWidth:120},{title:"院系名称",key:"college_name",align:"center",show:!0,minWidth:200},{title:"状态",key:"status",align:"center",slot:"status",show:!0,minWidth:130},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""}}},created:function(){},mounted:function(){this.getData()},methods:{getData:function(){this.params.college_id=void 0==this.params.college_id?"":this.params.college_id,this.params.grade=void 0==this.params.grade?"":this.params.grade,this.params.classId_Name=void 0==this.params.classId_Name?"":this.params.classId_Name,this.params.status=void 0==this.params.status?"":this.params.status,this.params.pageIndex=1},add:function(){this.$refs.addEdit.add()},edit:function(t){this.$refs.addEdit.edit(t)},del:function(t){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(t){this.params.pageIndex=t,this.getData()},handleChangePageSize:function(t){this.current=1,this.params.pageSize=t,this.getData()}}},y=w,k=Object(u["a"])(y,s,i,!1,null,null,null);e["default"]=k.exports},"15fd":function(t,e,a){"use strict";function s(t,e){if(null==t)return{};var a,s,i={},n=Object.keys(t);for(s=0;s<n.length;s++)a=n[s],e.indexOf(a)>=0||(i[a]=t[a]);return i}function i(t,e){if(null==t)return{};var a,i,n=s(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(i=0;i<l.length;i++)a=l[i],e.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}a.d(e,"a",(function(){return i}))},3529:function(t,e,a){"use strict";a("f252")},f252:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7917ffb2"],{"15fd":function(t,e,a){"use strict";function s(t,e){if(null==t)return{};var a,s,i={},n=Object.keys(t);for(s=0;s<n.length;s++)a=n[s],e.indexOf(a)>=0||(i[a]=t[a]);return i}function i(t,e){if(null==t)return{};var a,i,n=s(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(i=0;i<l.length;i++)a=l[i],e.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}a.d(e,"a",(function(){return i}))},"3f52":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{ref:"card"},[a("TableFrom"),a("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:t.add}},[a("Icon",{attrs:{type:"md-add"}}),t._v("新增")],1),a("Table",{staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.tableData,loading:t.loading,size:t.tableSize},scopedSlots:t._u([{key:"status",fn:function(e){var s=e.row;return[a("i-switch",{attrs:{size:"large","true-value":1,"false-value":0},on:{"on-change":function(e){return t.switchChange(s)}},model:{value:s.status,callback:function(e){t.$set(s,"status",e)},expression:"row.status"}},[a("span",{attrs:{slot:"open",type:"md-checkmark"},slot:"open"},[t._v("启用")]),a("span",{attrs:{slot:"close",type:"md-close"},slot:"close"},[t._v("停用")])])]}},{key:"action",fn:function(e){var s=e.row;return[a("Button",{attrs:{type:"info"},on:{click:function(e){return t.edit(s)}}},[t._v("编辑")]),a("Poptip",{attrs:{confirm:"",transfer:"",title:"你确定删除吗?"},on:{"on-ok":function(e){return t.del(s)},"on-cancel":t.cancel}},[a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"error"}},[t._v("删除")])],1)]}}])}),a("div",{staticClass:"ivu-text-center ivu-mt"},[a("Page",{attrs:{total:t.total,current:t.params.pageIndex,"show-total":"","show-sizer":"","page-size":t.params.pageSize},on:{"update:current":function(e){return t.$set(t.params,"pageIndex",e)},"on-change":t.handleChangePage,"on-page-size-change":t.handleChangePageSize}})],1),a("AddEditDrawer",{ref:"addEdit",on:{getData:t.getData}})],1)],1)},i=[],n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Modal",{attrs:{title:"add"==t.addOrEdit?"新增":"修改",width:"40%"},model:{value:t.visibleShow,callback:function(e){t.visibleShow=e},expression:"visibleShow"}},[a("Form",{ref:"formData",attrs:{model:t.formData,"label-width":100,rules:t.rules}},[a("Row",{attrs:{gutter:32}},[a("Col",{attrs:{span:"12"}},[a("FormItem",{attrs:{label:"ddd",prop:"a"}},[a("Input",{model:{value:t.formData.a,callback:function(e){t.$set(t.formData,"a",e)},expression:"formData.a"}})],1)],1)],1)],1),"add"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.addSubmit}},[t._v("确认新增")])],1):t._e(),"edit"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.editSubmit}},[t._v("确认修改")])],1):t._e()],1)],1)},l=[],r=(a("456d"),a("ac6a"),a("15fd")),o=["status"],c={data:function(){return{visibleShow:!1,rules:{class_code:[{required:!0,message:"不能为空",trigger:"blur"}],class_name:[{required:!0,message:"不能为空",trigger:"blur"}],college_id:[{required:!0,message:"不能为空",trigger:"change"}],grade:[{required:!0,message:"不能为空",trigger:"change"}],training_id:[{required:!0,message:"不能为空",trigger:"change"}]},formData:{a:""},formList:[],addOrEdit:""}},mounted:function(){this.getData()},methods:{getData:function(){},addSubmit:function(){var t=this;this.$refs.formData.validate((function(e){e&&(t.$Message.success(res),t.visibleShow=!1,t.$emit("getData"))}))},editSubmit:function(){var t=this.formData;t.status,Object(r["a"])(t,o);this.$refs.formData.validate((function(t){}))},add:function(){var t=this;this.addOrEdit="add",this.visibleShow=!0,Object.keys(this.formData).forEach((function(e){return t.formData[e]=""}))},edit:function(t){this.addOrEdit="edit",this.visibleShow=!0,this.formData=Object.assign({},t)}}},d=c,u=(a("5ff4"),a("2877")),m=Object(u["a"])(d,n,l,!1,null,null,null),p=m.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Form",{attrs:{"label-width":120}},[a("Row",{attrs:{gutter:32}},[t._l(t.formList,(function(e,s){return[~[0,1].indexOf(s)?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e(),t.collapse?[s>=2?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e()]:t._e()]})),0!==t.formList.length?a("Col",t._b({staticClass:"ivu-text-right"},"Col",t.grid,!1),[a("FormItem",{attrs:{type:"flex",justify:"end"}},[a("Button",{attrs:{type:"primary"},on:{click:t.getData}},[t._v("查询")]),a("a",{directives:[{name:"font",rawName:"v-font",value:14,expression:"14"}],staticClass:"ivu-ml-8",on:{click:function(e){t.collapse=!t.collapse}}},[t.collapse?[t._v("\n 收起 "),a("Icon",{attrs:{type:"ios-arrow-up"}})]:[t._v("\n 展开 "),a("Icon",{attrs:{type:"ios-arrow-down"}})]],2)],1)],1):t._e()],2)],1)},g=[],f={data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},formList:[{label:"所属院系",code:"college_id",search_type:"select",is_must:0,option_list:[{value:"117c96a1-5c8f-4c71-8574-d45ec049db3b",label:"电气工程系"}]},{label:"状态1",code:"status",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态2",code:"status2",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态3",code:"status3",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]}],collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",status:"",status2:"",status3:""}}},mounted:function(){},methods:{getData:function(){console.log("搜索条件查询")}}},_=f,b=Object(u["a"])(_,h,g,!1,null,null,null),v=b.exports,w={name:"list",components:{AddEditDrawer:p,TableFrom:v},data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"班级编号",key:"class_code",align:"center",show:!0,minWidth:100},{title:"班级名称",key:"class_name",align:"center",show:!0,minWidth:150},{title:"年级",key:"grade",align:"center",show:!0,minWidth:100},{title:"培养层次",key:"training",align:"center",show:!0,minWidth:120},{title:"辅导员工号",key:"counselor_card",align:"center",show:!0,minWidth:150},{title:"辅导员姓名",key:"counselor_name",align:"center",show:!0,minWidth:120},{title:"班主任工号",key:"head_teacher_card",align:"center",show:!0,minWidth:150},{title:"班主任姓名",key:"head_teacher_name",align:"center",show:!0,minWidth:120},{title:"院系名称",key:"college_name",align:"center",show:!0,minWidth:200},{title:"状态",key:"status",align:"center",slot:"status",show:!0,minWidth:130},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""}}},created:function(){},mounted:function(){this.getData()},methods:{getData:function(){this.params.college_id=void 0==this.params.college_id?"":this.params.college_id,this.params.grade=void 0==this.params.grade?"":this.params.grade,this.params.classId_Name=void 0==this.params.classId_Name?"":this.params.classId_Name,this.params.status=void 0==this.params.status?"":this.params.status,this.params.pageIndex=1},add:function(){this.$refs.addEdit.add()},edit:function(t){this.$refs.addEdit.edit(t)},del:function(t){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(t){this.params.pageIndex=t,this.getData()},handleChangePageSize:function(t){this.current=1,this.params.pageSize=t,this.getData()}}},y=w,k=Object(u["a"])(y,s,i,!1,null,null,null);e["default"]=k.exports},"5ff4":function(t,e,a){"use strict";a("746b")},"746b":function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8f36cd58"],{2968:function(n,t,e){"use strict";e.d(t,"a",(function(){return c})),e.d(t,"b",(function(){return u}));var c=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",[e("Exception",{attrs:{type:"500","img-color":"",desc:n.$t("page.exception.e500"),"back-text":n.$t("page.exception.btn")}})],1)},u=[]},6077:function(n,t,e){"use strict";e.r(t);var c=e("2968"),u=e("92ec");for(var r in u)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(r);var a=e("2877"),i=Object(a["a"])(u["default"],c["a"],c["b"],!1,null,null,null);t["default"]=i.exports},"92ec":function(n,t,e){"use strict";e.r(t);var c=e("afa3"),u=e.n(c);for(var r in c)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return c[n]}))}(r);t["default"]=u.a},afa3:function(n,t){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9dec7822"],{"15fd":function(t,e,a){"use strict";function s(t,e){if(null==t)return{};var a,s,i={},n=Object.keys(t);for(s=0;s<n.length;s++)a=n[s],e.indexOf(a)>=0||(i[a]=t[a]);return i}function i(t,e){if(null==t)return{};var a,i,n=s(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(i=0;i<l.length;i++)a=l[i],e.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}a.d(e,"a",(function(){return i}))},"35fe":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{ref:"card"},[a("TableFrom"),a("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:t.add}},[a("Icon",{attrs:{type:"md-add"}}),t._v("新增")],1),a("Table",{staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.tableData,loading:t.loading,size:t.tableSize},scopedSlots:t._u([{key:"status",fn:function(e){var s=e.row;return[a("i-switch",{attrs:{size:"large","true-value":1,"false-value":0},on:{"on-change":function(e){return t.switchChange(s)}},model:{value:s.status,callback:function(e){t.$set(s,"status",e)},expression:"row.status"}},[a("span",{attrs:{slot:"open",type:"md-checkmark"},slot:"open"},[t._v("启用")]),a("span",{attrs:{slot:"close",type:"md-close"},slot:"close"},[t._v("停用")])])]}},{key:"action",fn:function(e){var s=e.row;return[a("Button",{attrs:{type:"info"},on:{click:function(e){return t.edit(s)}}},[t._v("编辑")]),a("Poptip",{attrs:{confirm:"",transfer:"",title:"你确定删除吗?"},on:{"on-ok":function(e){return t.del(s)},"on-cancel":t.cancel}},[a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"error"}},[t._v("删除")])],1)]}}])}),a("div",{staticClass:"ivu-text-center ivu-mt"},[a("Page",{attrs:{total:t.total,current:t.params.pageIndex,"show-total":"","show-sizer":"","page-size":t.params.pageSize},on:{"update:current":function(e){return t.$set(t.params,"pageIndex",e)},"on-change":t.handleChangePage,"on-page-size-change":t.handleChangePageSize}})],1),a("AddEditDrawer",{ref:"addEdit",on:{getData:t.getData}})],1)],1)},i=[],n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Modal",{attrs:{title:"add"==t.addOrEdit?"新增":"修改",width:"40%"},model:{value:t.visibleShow,callback:function(e){t.visibleShow=e},expression:"visibleShow"}},[a("Form",{ref:"formData",attrs:{model:t.formData,"label-width":100,rules:t.rules}},[a("Row",{attrs:{gutter:32}},[a("Col",{attrs:{span:"12"}},[a("FormItem",{attrs:{label:"ddd",prop:"a"}},[a("Input",{model:{value:t.formData.a,callback:function(e){t.$set(t.formData,"a",e)},expression:"formData.a"}})],1)],1)],1)],1),"add"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.addSubmit}},[t._v("确认新增")])],1):t._e(),"edit"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.editSubmit}},[t._v("确认修改")])],1):t._e()],1)],1)},l=[],r=(a("456d"),a("ac6a"),a("15fd")),o=["status"],c={data:function(){return{visibleShow:!1,rules:{class_code:[{required:!0,message:"不能为空",trigger:"blur"}],class_name:[{required:!0,message:"不能为空",trigger:"blur"}],college_id:[{required:!0,message:"不能为空",trigger:"change"}],grade:[{required:!0,message:"不能为空",trigger:"change"}],training_id:[{required:!0,message:"不能为空",trigger:"change"}]},formData:{a:""},formList:[],addOrEdit:""}},mounted:function(){this.getData()},methods:{getData:function(){},addSubmit:function(){var t=this;this.$refs.formData.validate((function(e){e&&(t.$Message.success(res),t.visibleShow=!1,t.$emit("getData"))}))},editSubmit:function(){var t=this.formData;t.status,Object(r["a"])(t,o);this.$refs.formData.validate((function(t){}))},add:function(){var t=this;this.addOrEdit="add",this.visibleShow=!0,Object.keys(this.formData).forEach((function(e){return t.formData[e]=""}))},edit:function(t){this.addOrEdit="edit",this.visibleShow=!0,this.formData=Object.assign({},t)}}},d=c,u=(a("daf0"),a("2877")),m=Object(u["a"])(d,n,l,!1,null,null,null),p=m.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Form",{attrs:{"label-width":120}},[a("Row",{attrs:{gutter:32}},[t._l(t.formList,(function(e,s){return[~[0,1].indexOf(s)?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e(),t.collapse?[s>=2?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e()]:t._e()]})),0!==t.formList.length?a("Col",t._b({staticClass:"ivu-text-right"},"Col",t.grid,!1),[a("FormItem",{attrs:{type:"flex",justify:"end"}},[a("Button",{attrs:{type:"primary"},on:{click:t.getData}},[t._v("查询")]),a("a",{directives:[{name:"font",rawName:"v-font",value:14,expression:"14"}],staticClass:"ivu-ml-8",on:{click:function(e){t.collapse=!t.collapse}}},[t.collapse?[t._v("\n 收起 "),a("Icon",{attrs:{type:"ios-arrow-up"}})]:[t._v("\n 展开 "),a("Icon",{attrs:{type:"ios-arrow-down"}})]],2)],1)],1):t._e()],2)],1)},g=[],f={data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},formList:[{label:"所属院系",code:"college_id",search_type:"select",is_must:0,option_list:[{value:"117c96a1-5c8f-4c71-8574-d45ec049db3b",label:"电气工程系"}]},{label:"状态1",code:"status",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态2",code:"status2",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态3",code:"status3",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]}],collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",status:"",status2:"",status3:""}}},mounted:function(){},methods:{getData:function(){console.log("搜索条件查询")}}},_=f,b=Object(u["a"])(_,h,g,!1,null,null,null),v=b.exports,w={name:"list",components:{AddEditDrawer:p,TableFrom:v},data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"班级编号",key:"class_code",align:"center",show:!0,minWidth:100},{title:"班级名称",key:"class_name",align:"center",show:!0,minWidth:150},{title:"年级",key:"grade",align:"center",show:!0,minWidth:100},{title:"培养层次",key:"training",align:"center",show:!0,minWidth:120},{title:"辅导员工号",key:"counselor_card",align:"center",show:!0,minWidth:150},{title:"辅导员姓名",key:"counselor_name",align:"center",show:!0,minWidth:120},{title:"班主任工号",key:"head_teacher_card",align:"center",show:!0,minWidth:150},{title:"班主任姓名",key:"head_teacher_name",align:"center",show:!0,minWidth:120},{title:"院系名称",key:"college_name",align:"center",show:!0,minWidth:200},{title:"状态",key:"status",align:"center",slot:"status",show:!0,minWidth:130},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""}}},created:function(){},mounted:function(){this.getData()},methods:{getData:function(){this.params.college_id=void 0==this.params.college_id?"":this.params.college_id,this.params.grade=void 0==this.params.grade?"":this.params.grade,this.params.classId_Name=void 0==this.params.classId_Name?"":this.params.classId_Name,this.params.status=void 0==this.params.status?"":this.params.status,this.params.pageIndex=1},add:function(){this.$refs.addEdit.add()},edit:function(t){this.$refs.addEdit.edit(t)},del:function(t){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(t){this.params.pageIndex=t,this.getData()},handleChangePageSize:function(t){this.current=1,this.params.pageSize=t,this.getData()}}},y=w,k=Object(u["a"])(y,s,i,!1,null,null,null);e["default"]=k.exports},daf0:function(t,e,a){"use strict";a("f56f")},f56f:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9fb3e214"],{"0e10":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{ref:"card"},[a("TableFrom"),a("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:t.add}},[a("Icon",{attrs:{type:"md-add"}}),t._v("新增")],1),a("Table",{staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.tableData,loading:t.loading,size:t.tableSize},scopedSlots:t._u([{key:"status",fn:function(e){var s=e.row;return[a("i-switch",{attrs:{size:"large","true-value":1,"false-value":0},on:{"on-change":function(e){return t.switchChange(s)}},model:{value:s.status,callback:function(e){t.$set(s,"status",e)},expression:"row.status"}},[a("span",{attrs:{slot:"open",type:"md-checkmark"},slot:"open"},[t._v("启用")]),a("span",{attrs:{slot:"close",type:"md-close"},slot:"close"},[t._v("停用")])])]}},{key:"action",fn:function(e){var s=e.row;return[a("Button",{attrs:{type:"info"},on:{click:function(e){return t.edit(s)}}},[t._v("编辑")]),a("Poptip",{attrs:{confirm:"",transfer:"",title:"你确定删除吗?"},on:{"on-ok":function(e){return t.del(s)},"on-cancel":t.cancel}},[a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"error"}},[t._v("删除")])],1)]}}])}),a("div",{staticClass:"ivu-text-center ivu-mt"},[a("Page",{attrs:{total:t.total,current:t.params.pageIndex,"show-total":"","show-sizer":"","page-size":t.params.pageSize},on:{"update:current":function(e){return t.$set(t.params,"pageIndex",e)},"on-change":t.handleChangePage,"on-page-size-change":t.handleChangePageSize}})],1),a("AddEditDrawer",{ref:"addEdit",on:{getData:t.getData}})],1)],1)},i=[],n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Modal",{attrs:{title:"add"==t.addOrEdit?"新增":"修改",width:"40%"},model:{value:t.visibleShow,callback:function(e){t.visibleShow=e},expression:"visibleShow"}},[a("Form",{ref:"formData",attrs:{model:t.formData,"label-width":100,rules:t.rules}},[a("Row",{attrs:{gutter:32}},[a("Col",{attrs:{span:"12"}},[a("FormItem",{attrs:{label:"ddd",prop:"a"}},[a("Input",{model:{value:t.formData.a,callback:function(e){t.$set(t.formData,"a",e)},expression:"formData.a"}})],1)],1)],1)],1),"add"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.addSubmit}},[t._v("确认新增")])],1):t._e(),"edit"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.editSubmit}},[t._v("确认修改")])],1):t._e()],1)],1)},l=[],r=(a("456d"),a("ac6a"),a("15fd")),o=["status"],c={data:function(){return{visibleShow:!1,rules:{class_code:[{required:!0,message:"不能为空",trigger:"blur"}],class_name:[{required:!0,message:"不能为空",trigger:"blur"}],college_id:[{required:!0,message:"不能为空",trigger:"change"}],grade:[{required:!0,message:"不能为空",trigger:"change"}],training_id:[{required:!0,message:"不能为空",trigger:"change"}]},formData:{a:""},formList:[],addOrEdit:""}},mounted:function(){this.getData()},methods:{getData:function(){},addSubmit:function(){var t=this;this.$refs.formData.validate((function(e){e&&(t.$Message.success(res),t.visibleShow=!1,t.$emit("getData"))}))},editSubmit:function(){var t=this.formData;t.status,Object(r["a"])(t,o);this.$refs.formData.validate((function(t){}))},add:function(){var t=this;this.addOrEdit="add",this.visibleShow=!0,Object.keys(this.formData).forEach((function(e){return t.formData[e]=""}))},edit:function(t){this.addOrEdit="edit",this.visibleShow=!0,this.formData=Object.assign({},t)}}},d=c,u=(a("2a95"),a("2877")),m=Object(u["a"])(d,n,l,!1,null,null,null),p=m.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Form",{attrs:{"label-width":120}},[a("Row",{attrs:{gutter:32}},[t._l(t.formList,(function(e,s){return[~[0,1].indexOf(s)?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e(),t.collapse?[s>=2?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e()]:t._e()]})),0!==t.formList.length?a("Col",t._b({staticClass:"ivu-text-right"},"Col",t.grid,!1),[a("FormItem",{attrs:{type:"flex",justify:"end"}},[a("Button",{attrs:{type:"primary"},on:{click:t.getData}},[t._v("查询")]),a("a",{directives:[{name:"font",rawName:"v-font",value:14,expression:"14"}],staticClass:"ivu-ml-8",on:{click:function(e){t.collapse=!t.collapse}}},[t.collapse?[t._v("\n 收起 "),a("Icon",{attrs:{type:"ios-arrow-up"}})]:[t._v("\n 展开 "),a("Icon",{attrs:{type:"ios-arrow-down"}})]],2)],1)],1):t._e()],2)],1)},g=[],f={data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},formList:[{label:"所属院系",code:"college_id",search_type:"select",is_must:0,option_list:[{value:"117c96a1-5c8f-4c71-8574-d45ec049db3b",label:"电气工程系"}]},{label:"状态1",code:"status",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态2",code:"status2",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态3",code:"status3",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]}],collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",status:"",status2:"",status3:""}}},mounted:function(){},methods:{getData:function(){console.log("搜索条件查询")}}},_=f,b=Object(u["a"])(_,h,g,!1,null,null,null),v=b.exports,w={name:"list",components:{AddEditDrawer:p,TableFrom:v},data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"班级编号",key:"class_code",align:"center",show:!0,minWidth:100},{title:"班级名称",key:"class_name",align:"center",show:!0,minWidth:150},{title:"年级",key:"grade",align:"center",show:!0,minWidth:100},{title:"培养层次",key:"training",align:"center",show:!0,minWidth:120},{title:"辅导员工号",key:"counselor_card",align:"center",show:!0,minWidth:150},{title:"辅导员姓名",key:"counselor_name",align:"center",show:!0,minWidth:120},{title:"班主任工号",key:"head_teacher_card",align:"center",show:!0,minWidth:150},{title:"班主任姓名",key:"head_teacher_name",align:"center",show:!0,minWidth:120},{title:"院系名称",key:"college_name",align:"center",show:!0,minWidth:200},{title:"状态",key:"status",align:"center",slot:"status",show:!0,minWidth:130},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""}}},created:function(){},mounted:function(){this.getData()},methods:{getData:function(){this.params.college_id=void 0==this.params.college_id?"":this.params.college_id,this.params.grade=void 0==this.params.grade?"":this.params.grade,this.params.classId_Name=void 0==this.params.classId_Name?"":this.params.classId_Name,this.params.status=void 0==this.params.status?"":this.params.status,this.params.pageIndex=1},add:function(){this.$refs.addEdit.add()},edit:function(t){this.$refs.addEdit.edit(t)},del:function(t){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(t){this.params.pageIndex=t,this.getData()},handleChangePageSize:function(t){this.current=1,this.params.pageSize=t,this.getData()}}},y=w,k=Object(u["a"])(y,s,i,!1,null,null,null);e["default"]=k.exports},"15fd":function(t,e,a){"use strict";function s(t,e){if(null==t)return{};var a,s,i={},n=Object.keys(t);for(s=0;s<n.length;s++)a=n[s],e.indexOf(a)>=0||(i[a]=t[a]);return i}function i(t,e){if(null==t)return{};var a,i,n=s(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(i=0;i<l.length;i++)a=l[i],e.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}a.d(e,"a",(function(){return i}))},"2a95":function(t,e,a){"use strict";a("d33a")},d33a:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-af03f5e8"],{"15fd":function(t,e,a){"use strict";function s(t,e){if(null==t)return{};var a,s,i={},n=Object.keys(t);for(s=0;s<n.length;s++)a=n[s],e.indexOf(a)>=0||(i[a]=t[a]);return i}function i(t,e){if(null==t)return{};var a,i,n=s(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(i=0;i<l.length;i++)a=l[i],e.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}a.d(e,"a",(function(){return i}))},b082:function(t,e,a){"use strict";a("f9a6")},f266:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{ref:"card"},[a("TableFrom"),a("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:t.add}},[a("Icon",{attrs:{type:"md-add"}}),t._v("新增")],1),a("Table",{staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.tableData,loading:t.loading,size:t.tableSize},scopedSlots:t._u([{key:"status",fn:function(e){var s=e.row;return[a("i-switch",{attrs:{size:"large","true-value":1,"false-value":0},on:{"on-change":function(e){return t.switchChange(s)}},model:{value:s.status,callback:function(e){t.$set(s,"status",e)},expression:"row.status"}},[a("span",{attrs:{slot:"open",type:"md-checkmark"},slot:"open"},[t._v("启用")]),a("span",{attrs:{slot:"close",type:"md-close"},slot:"close"},[t._v("停用")])])]}},{key:"action",fn:function(e){var s=e.row;return[a("Button",{attrs:{type:"info"},on:{click:function(e){return t.edit(s)}}},[t._v("编辑")]),a("Poptip",{attrs:{confirm:"",transfer:"",title:"你确定删除吗?"},on:{"on-ok":function(e){return t.del(s)},"on-cancel":t.cancel}},[a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"error"}},[t._v("删除")])],1)]}}])}),a("div",{staticClass:"ivu-text-center ivu-mt"},[a("Page",{attrs:{total:t.total,current:t.params.pageIndex,"show-total":"","show-sizer":"","page-size":t.params.pageSize},on:{"update:current":function(e){return t.$set(t.params,"pageIndex",e)},"on-change":t.handleChangePage,"on-page-size-change":t.handleChangePageSize}})],1),a("AddEditDrawer",{ref:"addEdit",on:{getData:t.getData}})],1)],1)},i=[],n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Modal",{attrs:{title:"add"==t.addOrEdit?"新增":"修改",width:"40%"},model:{value:t.visibleShow,callback:function(e){t.visibleShow=e},expression:"visibleShow"}},[a("Form",{ref:"formData",attrs:{model:t.formData,"label-width":100,rules:t.rules}},[a("Row",{attrs:{gutter:32}},[a("Col",{attrs:{span:"12"}},[a("FormItem",{attrs:{label:"ddd",prop:"a"}},[a("Input",{model:{value:t.formData.a,callback:function(e){t.$set(t.formData,"a",e)},expression:"formData.a"}})],1)],1)],1)],1),"add"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.addSubmit}},[t._v("确认新增")])],1):t._e(),"edit"==t.addOrEdit?a("div",{staticClass:"demo-drawer-footer"},[a("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.editSubmit}},[t._v("确认修改")])],1):t._e()],1)],1)},l=[],r=(a("456d"),a("ac6a"),a("15fd")),o=["status"],c={data:function(){return{visibleShow:!1,rules:{class_code:[{required:!0,message:"不能为空",trigger:"blur"}],class_name:[{required:!0,message:"不能为空",trigger:"blur"}],college_id:[{required:!0,message:"不能为空",trigger:"change"}],grade:[{required:!0,message:"不能为空",trigger:"change"}],training_id:[{required:!0,message:"不能为空",trigger:"change"}]},formData:{a:""},formList:[],addOrEdit:""}},mounted:function(){this.getData()},methods:{getData:function(){},addSubmit:function(){var t=this;this.$refs.formData.validate((function(e){e&&(t.$Message.success(res),t.visibleShow=!1,t.$emit("getData"))}))},editSubmit:function(){var t=this.formData;t.status,Object(r["a"])(t,o);this.$refs.formData.validate((function(t){}))},add:function(){var t=this;this.addOrEdit="add",this.visibleShow=!0,Object.keys(this.formData).forEach((function(e){return t.formData[e]=""}))},edit:function(t){this.addOrEdit="edit",this.visibleShow=!0,this.formData=Object.assign({},t)}}},d=c,u=(a("b082"),a("2877")),m=Object(u["a"])(d,n,l,!1,null,null,null),p=m.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Form",{attrs:{"label-width":120}},[a("Row",{attrs:{gutter:32}},[t._l(t.formList,(function(e,s){return[~[0,1].indexOf(s)?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e(),t.collapse?[s>=2?a("Col",t._b({key:e.code},"Col",t.grid,!1),[a("FormItem",{attrs:{label:e.label+":"}},[e.option_list?a("Select",{attrs:{clearable:"",placeholder:"请选择"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}},t._l(e.option_list,(function(e){return a("Option",{key:e.label,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1):t._e(),e.option_list?t._e():a("Input",{attrs:{clearable:"",placeholder:"请输入"},on:{"on-clear":t.getData},model:{value:t.params[e.code],callback:function(a){t.$set(t.params,e.code,a)},expression:"params[item.code]"}})],1)],1):t._e()]:t._e()]})),0!==t.formList.length?a("Col",t._b({staticClass:"ivu-text-right"},"Col",t.grid,!1),[a("FormItem",{attrs:{type:"flex",justify:"end"}},[a("Button",{attrs:{type:"primary"},on:{click:t.getData}},[t._v("查询")]),a("a",{directives:[{name:"font",rawName:"v-font",value:14,expression:"14"}],staticClass:"ivu-ml-8",on:{click:function(e){t.collapse=!t.collapse}}},[t.collapse?[t._v("\n 收起 "),a("Icon",{attrs:{type:"ios-arrow-up"}})]:[t._v("\n 展开 "),a("Icon",{attrs:{type:"ios-arrow-down"}})]],2)],1)],1):t._e()],2)],1)},g=[],f={data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},formList:[{label:"所属院系",code:"college_id",search_type:"select",is_must:0,option_list:[{value:"117c96a1-5c8f-4c71-8574-d45ec049db3b",label:"电气工程系"}]},{label:"状态1",code:"status",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态2",code:"status2",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]},{label:"状态3",code:"status3",search_type:"select",is_must:0,option_list:[{value:"0",label:"停用"}]}],collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",status:"",status2:"",status3:""}}},mounted:function(){},methods:{getData:function(){console.log("搜索条件查询")}}},_=f,b=Object(u["a"])(_,h,g,!1,null,null,null),v=b.exports,w={name:"list",components:{AddEditDrawer:p,TableFrom:v},data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"班级编号",key:"class_code",align:"center",show:!0,minWidth:100},{title:"班级名称",key:"class_name",align:"center",show:!0,minWidth:150},{title:"年级",key:"grade",align:"center",show:!0,minWidth:100},{title:"培养层次",key:"training",align:"center",show:!0,minWidth:120},{title:"辅导员工号",key:"counselor_card",align:"center",show:!0,minWidth:150},{title:"辅导员姓名",key:"counselor_name",align:"center",show:!0,minWidth:120},{title:"班主任工号",key:"head_teacher_card",align:"center",show:!0,minWidth:150},{title:"班主任姓名",key:"head_teacher_name",align:"center",show:!0,minWidth:120},{title:"院系名称",key:"college_name",align:"center",show:!0,minWidth:200},{title:"状态",key:"status",align:"center",slot:"status",show:!0,minWidth:130},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""}}},created:function(){},mounted:function(){this.getData()},methods:{getData:function(){this.params.college_id=void 0==this.params.college_id?"":this.params.college_id,this.params.grade=void 0==this.params.grade?"":this.params.grade,this.params.classId_Name=void 0==this.params.classId_Name?"":this.params.classId_Name,this.params.status=void 0==this.params.status?"":this.params.status,this.params.pageIndex=1},add:function(){this.$refs.addEdit.add()},edit:function(t){this.$refs.addEdit.edit(t)},del:function(t){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(t){this.params.pageIndex=t,this.getData()},handleChangePageSize:function(t){this.current=1,this.params.pageSize=t,this.getData()}}},y=w,k=Object(u["a"])(y,s,i,!1,null,null,null);e["default"]=k.exports},f9a6:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c1c626fa"],{2903:function(t,n,a){"use strict";a.r(n);var c=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("Card",{staticStyle:{width:"100%"},attrs:{"dis-hover":""}},[a("p",[t._v("欢迎使用党建管理系统")])])},e=[],r={data:function(){return{}}},u=r,i=(a("71aa"),a("2877")),s=Object(i["a"])(u,c,e,!1,null,"058f094f",null);n["default"]=s.exports},"71aa":function(t,n,a){"use strict";a("a15c")},a15c:function(t,n,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c4892f82"],{2911:function(n,t,e){"use strict";e.r(t);var c=e("b767"),u=e("c99b");for(var r in u)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(r);var i=e("2877"),a=Object(i["a"])(u["default"],c["a"],c["b"],!1,null,null,null);t["default"]=a.exports},b767:function(n,t,e){"use strict";e.d(t,"a",(function(){return c})),e.d(t,"b",(function(){return u}));var c=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",[e("Exception",{attrs:{type:"404","img-color":"",desc:n.$t("page.exception.e404"),"back-text":n.$t("page.exception.btn")}})],1)},u=[]},c99b:function(n,t,e){"use strict";e.r(t);var c=e("e658"),u=e.n(c);for(var r in c)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return c[n]}))}(r);t["default"]=u.a},e658:function(n,t){}}]);
\ No newline at end of file
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
......@@ -473,6 +473,7 @@ export function GetAttendanceList() {
method: 'get',
});
}
// 保存考勤
export function AttendanceSave(data) {
return request({
......@@ -481,6 +482,7 @@ export function AttendanceSave(data) {
data,
});
}
// 删除考勤
export function AttendanceDel(id) {
return request({
......@@ -488,6 +490,7 @@ export function AttendanceDel(id) {
method: 'get',
});
}
// 获取考勤时间
export function GetSignTime() {
return request({
......@@ -495,6 +498,7 @@ export function GetSignTime() {
method: 'get',
});
}
// 保存考勤时间
export function GetSignTimeSave(data) {
return request({
......@@ -503,3 +507,20 @@ export function GetSignTimeSave(data) {
data,
});
}
//获取用户信息
export function GetUserSelect(data) {
return request({
url: `/api/UserInfo/api/UserInfo/GetUserSelect?condition=${data.condition}`,
method: 'get',
});
}
//自动带出用户信息
export function UserWalk(data) {
return request({
url: `/api/UserInfo/api/UserInfo/UserWalk?card=${data.card}`,
method: 'get',
});
}
......@@ -131,12 +131,14 @@
v-model="addDuty"
:title="publicModalTitle"
closable
:mask-closable="false"
width="40%">
<Form ref="formValidate" :model="formValidate" :rules="ruleValidate" :label-width="80">
<FormItem label="姓名" prop="username">
<Input v-model="formValidate.username" placeholder="请输入姓名"></Input>
<FormItem label="姓名" prop="username1">
<!--<Input v-model="formValidate.username" placeholder="请输入姓名"></Input>-->
<Select v-model="formValidate.username1" @on-change="usernameChange" filterable placeholder="请选择用户">
<Option v-for="(item,index) in userArray" :key="index" :value="item.id">{{ item.name }}</Option>
</Select>
</FormItem>
<FormItem label="工号" prop="card_name">
<Input v-model="formValidate.card_name" placeholder="请输入工号"></Input>
......@@ -144,20 +146,20 @@
<FormItem label="联系方式" prop="mobile">
<Input v-model="formValidate.mobile" type="number" placeholder="请输入联系方式"></Input>
</FormItem>
<FormItem label="值班日期" prop="watch_date">
<DatePicker type="date" @on-change="dutyDate" :options="options1" placeholder="请选择值班日期"
style="width: 100%"/>
<FormItem v-for="(item,index) in addDutySlectList" :key="index" :label="item[1]" :prop="item[2]"
:label-width="80">
<Select v-model="formValidate[item[2]]" :placeholder="item[1]" :filterable="true">
<Option v-for="(ite,inde) in item[0]" :key="inde" :value="ite.id">{{ ite.name }}</Option>
</Select>
</FormItem>
<FormItem label="是否为值班领导" prop="is_lead">
<Select v-model="formValidate.is_lead" placeholder="是否为值班领导">
<Option v-for="(item,index) in dutyRole" :key="index" :value="item.value">{{ item.label }}</Option>
</Select>
</FormItem>
<FormItem v-for="(item,index) in addDutySlectList" :key="index" :label="item[1]" :prop="item[2]"
:label-width="80">
<Select v-model="formValidate[item[2]]" :placeholder="item[1]">
<Option v-for="(ite,inde) in item[0]" :key="inde" :value="ite.id">{{ ite.name }}</Option>
</Select>
<FormItem label="值班日期" prop="watch_date">
<DatePicker type="date" @on-change="dutyDate" :options="options1" placeholder="请选择值班日期"
style="width: 100%"/>
</FormItem>
<FormItem label="值班要求" prop="watch_remark">
<Input v-model="formValidate.watch_remark" type="textarea" :autosize="{minRows:2,maxRows: 5}"
......@@ -177,8 +179,11 @@
width="40%"
>
<Form ref="updateDutyFrom" :model="updateDutyFrom" :rules="updeteRuleValidate" :label-width="80">
<FormItem label="姓名" prop="username">
<Input v-model="updateDutyFrom.username" placeholder="请输入姓名"></Input>
<FormItem label="姓名" prop="username1">
<!-- <Input v-model="updateDutyFrom.username" placeholder="请输入姓名"></Input>-->
<Select v-model="updateDutyFrom.username1" @on-change="usernameChange1" filterable placeholder="请选择用户">
<Option v-for="(item,index) in userArray" :key="index" :value="item.id">{{ item.name }}</Option>
</Select>
</FormItem>
<FormItem label="工号" prop="card_name">
<Input v-model="updateDutyFrom.card_name" placeholder="请输入工号"></Input>
......@@ -186,20 +191,21 @@
<FormItem label="联系方式" prop="mobile">
<Input v-model="updateDutyFrom.mobile" type="number" placeholder="请输入联系方式"></Input>
</FormItem>
<FormItem label="值班日期" prop="watch_date">
<DatePicker type="date" :value="updateDutyFrom.watch_date" @on-change="updateDutyDate" :options="options1"
style="width: 100%"/>
<FormItem v-for="(item,index) in addDutySlectList" :key="index" :label="item[1]" :prop="item[2]"
:label-width="80">
<Select v-model="updateDutyFrom[item[2]]" :placeholder="item[1]">
<Option v-for="(ite,inde) in item[0]" :key="inde" :value="ite.id">{{ ite.name }}</Option>
</Select>
</FormItem>
<FormItem label="是否为值班领导" prop="is_lead">
<Select v-model="updateDutyFrom.is_lead" placeholder="是否为值班领导">
<Option v-for="(item,index) in dutyRole" :key="index" :value="item.value">{{ item.label }}</Option>
</Select>
</FormItem>
<FormItem v-for="(item,index) in addDutySlectList" :key="index" :label="item[1]" :prop="item[2]"
:label-width="80">
<Select v-model="updateDutyFrom[item[2]]" :placeholder="item[1]">
<Option v-for="(ite,inde) in item[0]" :key="inde" :value="ite.id">{{ ite.name }}</Option>
</Select>
<FormItem label="值班日期" prop="watch_date">
<DatePicker type="date" :value="updateDutyFrom.watch_date" @on-change="updateDutyDate" :options="options1"
style="width: 100%"/>
</FormItem>
<FormItem label="值班要求" prop="watch_remark">
<Input v-model="updateDutyFrom.watch_remark" type="textarea" :autosize="{minRows:2,maxRows: 5}"
......@@ -295,6 +301,7 @@
data() {
//这里存放数据",
return {
userArray: [],
tableLoading: false,
fileUploadFlag: false,
loadingStatus: false,
......@@ -366,7 +373,7 @@
dept_id: [{type: 'string', required: true, message: '值班部门不能为空!', trigger: 'change'}],
},
updeteRuleValidate: {
username: [{type: 'string', required: true, message: '姓名不能为空!', trigger: 'blur'}],
username1: [{type: 'string', required: true, message: '姓名不能为空!', trigger: 'change'}],
card_name: [{type: 'string', required: true, message: '工号不能为空!!', trigger: 'blur'}],
mobile: [{type: 'string', required: true, message: '联系方式不能为空!', trigger: 'blur'}],
watch_date: [{type: 'string', required: true, message: '值班日期不能为空!', trigger: 'blur'}],
......@@ -377,8 +384,8 @@
dept_id: [{type: 'string', required: true, message: '值班部门不能为空!', trigger: 'change'}],
},
ruleValidate: {
username: [{type: 'string', required: true, message: '姓名不能为空!', trigger: 'blur'}],
card_name: [{type: 'string', required: true, message: '工号不能为空!!', trigger: 'blur'}],
username1: [{type: 'string', required: true, message: '姓名不能为空!', trigger: 'change'}],
card_name: [{type: 'string', required: true, message: '工号不能为空!!', trigger: 'change'}],
mobile: [{type: 'string', required: true, message: '联系方式不能为空!', trigger: 'blur'}],
watch_date: [{type: 'string', required: true, message: '值班日期不能为空!', trigger: 'change'}],
is_lead: [{type: 'number', required: true, message: '值班权限不能为空!', trigger: 'change'}],
......@@ -572,7 +579,16 @@
//方法集合",
methods: {
usernameChange1(e) {
api.UserWalk({card: e}).then(res => {
this.updateDutyFrom = {...this.updateDutyFrom, ...res.response}
})
},
usernameChange(e) {
api.UserWalk({card: e}).then(res => {
this.formValidate = {...this.formValidate, ...res.response}
})
},
dutyModelImportCancel() {
this.dutyModelImportModal = false
},
......@@ -633,7 +649,7 @@
dutyDataInputOK() {
this.$refs['dutyDataInput'].validate(async (validate) => {
if (validate) {
console.log("🚀🚀🚀validate,", this.dutyDataInputObject)
// this.dutyDataInputModal = false
let data = {
"dep_id": this.dutyDataInputObject.dep_id,
......@@ -759,7 +775,7 @@
},
updateDuty(e) {
// this.addDutySearchSelectList()
this.updateDutyFrom = _.cloneDeep(e)
this.updateDutyFrom = _.cloneDeep({...e, username1: e.card_name})
this.updateDutyModal = true
},
deleteDuty(e) {
......@@ -781,7 +797,7 @@
this.cityListAlltSearchFlagObject = _.cloneDeep(this.cityListAllObject)
this.pageKey++
this.page_index = 1
console.log("🚀🚀🚀,cityListAlltSearchFlagObject", this.cityListAlltSearchFlagObject)
const res = await this.getWatchList()
},
......@@ -844,11 +860,11 @@
},
addDutySearchSelectList() {
Promise.all([
this.getSearchSelectListPromiseAllAction("dept_name", '值班部门', "dept_id", api.GetWatchDepSelect),
this.getSearchSelectListPromiseAllAction("dutyType", '值班类型', "watchtypeid", api.GetWatchTypeSelect),
// this.getSearchSelectListPromiseAllAction("dutyHourTime", '值班时段', "watch_hour_id", api.GetWatchHourTime),
this.getSearchSelectListPromiseAllAction("campusname", '值班校区', "campusid", api.GetWatchCampusSelect),
this.getSearchSelectListPromiseAllAction("dept_name", '值班部门', "dept_id", api.GetWatchDepSelect),
])
.then(res => {
this.addDutySlectList = res
......@@ -958,6 +974,11 @@
}
},
GetUserSelect() {
api.GetUserSelect({condition: ''}).then(res => {
this.userArray = res.response
})
}
},
//生命周期 - 创建之前",数据模型未加载,方法未加载,html模板未加载
beforeCreate() {
......@@ -989,6 +1010,7 @@
this.addDutySearchSelectList()
this.getWatchList() // 初始化值班列表
this.getSearchSelectList() // 初始化搜索select
this.GetUserSelect()
},
//生命周期 - 更新之前",数据模型已更新,html模板未更新
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或