Commit b5c1cfa1 by keith

update code

parent 75a031ef
Showing with 119 additions and 107 deletions
......@@ -15,9 +15,9 @@ kefu_client_url = "http://localhost:8080"
static_host = "http://localhost:8080"
# 进程监控
EnableAdmin = false
AdminAddr = "localhost"
AdminPort = 8089
# EnableAdmin = false
# AdminAddr = "localhost"
# AdminPort = 8089
# 小米mimc open api URL
mimc_HttpUrl = "https://mimc.chat.xiaomi.net/api/account/token"
......
......@@ -44,9 +44,6 @@ func (c *BaseController) JSON(status configs.ResponseStatusType, message string,
// GetAdminAuthInfo get current anth admin that AuthInfo
func (c *BaseController) GetAdminAuthInfo() *models.Auths {
token := c.Ctx.Input.Header("Authorization")
if token == "" {
c.JSON(configs.ResponseFail, "用户效验失败!", nil)
}
var authsRepository = services.GetAuthsRepositoryInstance()
auth := authsRepository.GetAdminAuthInfo(token)
if auth == nil {
......
......@@ -104,9 +104,9 @@ func (c *PublicController) Register() {
if user != nil {
// The last login address is inconsistent with this time and the token is not empty
if user.Token != "" && user.RemoteAddr != "" && currentRemoteAddr != user.RemoteAddr {
c.JSON(configs.ResponseFail, "注册失败,请稍等重试!", "")
}
// if user.Token != "" && user.RemoteAddr != "" && currentRemoteAddr != user.RemoteAddr {
// c.JSON(configs.ResponseFail, "注册失败,请稍等重试!", "")
// }
// fetchResult
fetchResult, fetchError = utils.CreateMiMcToken(strconv.FormatInt(user.ID, 10))
......
......@@ -13,7 +13,7 @@ type User struct {
Platform int64 `orm:"type(bigint);column(platform)" json:"platform"` // 用户所在渠道(平台)
Online int `orm:"default(0);column(online)" json:"online"` // 用户是否在线
RemoteAddr string `orm:"type(char);null;column(remote_addr)" json:"remote_addr"` // 用户当次登录地址
IsWindow int `orm:"default(0);column(is_window)" json:"is_window"` // 是否在聊天窗口
IsWindow int `orm:"default(0);column(is_window)" json:"is_window"` // 是否在聊天窗口,0 不在, 1在
UpdateAt int64 `orm:"type(bigint);column(update_at)" json:"update_at"` // 用户资料被更新时间
Remarks string `orm:"type(char);null;column(remarks)" json:"remarks"` // 备注
LastActivity int64 `orm:"type(bigint);column(last_activity)" json:"last_activity"` // 最后活动时间
......
File mode changed
.mini-im-home-title[data-v-046eea91]{text-align:center;font-size:18px;color:#666;padding:15px 0 50px}.mini-im-home-copyright[data-v-046eea91]{text-align:center;color:#666;font-size:14px;padding-top:50px}.online-count[data-v-046eea91]{text-align:center;color:#666;margin-top:10px}.online-count span[data-v-046eea91]{color:#8bc34a;margin:0 5px}
\ No newline at end of file
.mini-im-button[data-v-3d019866]{height:30px;padding:0 5px;border:0;background-color:#fff;cursor:pointer;color:#666;font-size:12px}.mini-im-button i[data-v-3d019866]{color:#666}.emoji-box[data-v-3d019866]{font-size:20px}.emoji-box span[data-v-3d019866]{cursor:pointer;padding:2px}.mini-im-chat-item[data-v-595d9a46]{padding:10px;cursor:pointer;display:-ms-flexbox;display:flex;border-left:3px solid #fff;border-bottom:1px solid hsla(0,0%,68.6%,.11);position:relative}.mini-im-chat-item[data-v-595d9a46]:hover{border-left:3px solid #ff5722;background-color:#f3f3f3}.mini-im-chat-item:hover .delete_contact[data-v-595d9a46]{display:block}.mini-im-chat-item .mini-im-avatar[data-v-595d9a46]{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center;-ms-flex-negative:0;flex-shrink:0}.mini-im-chat-item[data-v-595d9a46]::last-child{border-bottom:0}.mini-im-chat-item .delete_contact[data-v-595d9a46]{position:absolute;left:0;top:0;color:#999;display:none}.mini-im-chat-item .mini-im-message-box[data-v-595d9a46]{width:180px;-ms-flex-positive:1;flex-grow:1;padding:8px 0;padding-left:10px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around;box-sizing:border-box;font-size:14px}.mini-im-chat-item .mini-im-message-box .mini-im-nickname[data-v-595d9a46]{font-size:14px;color:#666;font-weight:600;margin-bottom:5px}.mini-im-chat-item .mini-im-message-box .mini-im-nickname .mini-im-online-status[data-v-595d9a46]{font-size:12px;color:#9e9e9e}.mini-im-chat-item .mini-im-message-box .mini-im-nickname .mini-im-online-status.success[data-v-595d9a46]{color:#aadc97}.mini-im-chat-item .mini-im-message-box .mini-im-message-badge[data-v-595d9a46],.mini-im-chat-item .mini-im-message-box .mini-im-user-date[data-v-595d9a46]{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.mini-im-chat-item .mini-im-message-box .mini-im-badge[data-v-595d9a46]{width:20px;height:20px;border-radius:100%;background-color:#f56c6c;text-align:center;color:#fff;line-height:20px;font-size:12px;-ms-flex-negative:0;flex-shrink:0}.mini-im-chat-item .mini-im-message-box .mini-im-message[data-v-595d9a46]{font-size:13px;color:#999;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-right:5px}.mini-im-chat-item .mini-im-message-box .mini-im-date[data-v-595d9a46]{font-size:12px;color:#999}.mini-im-chat-item-active[data-v-595d9a46]{border-left:3px solid #ff5722;background-color:#f4f5f7}.mini-im-username-component-box{height:100%;overflow:hidden;overflow-y:auto;padding:10px 10px 10px 5px}.mini-im-username-component-box .form-item{margin-top:25px}.mini-im-username-component-box .form-item-readonly input.el-input__inner,.mini-im-username-component-box .form-item-readonly textarea.el-textarea__inner,.mini-im-username-component-box .no-border input.el-input__inner{border:0}.mini-im-username-component{position:absolute;top:10px;right:25px}.mini-im-username-component span{font-size:18px;color:#666}.mini-im-username-component span i{font-size:20px}.mini-im-username-component button{border:0;cursor:pointer}.mini-im-chat-list .mini-im-chat-message-box[data-v-1390f214],.mini-im-chat-list[data-v-1390f214]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.mini-im-chat-list .mini-im-chat-message-box[data-v-1390f214]{width:100%;margin-bottom:15px}.mini-im-chat-list .mini-im-chat-message-box .user-date[data-v-1390f214]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;color:#999;font-size:14px}.mini-im-chat-list .mini-im-chat-message-box .user-date span[data-v-1390f214]{color:#666;font-weight:500;font-size:14px;padding:0 5px}.mini-im-chat-list .mini-im-chat-message-box .user-date em[data-v-1390f214]{font-style:normal;font-size:12px}.mini-im-chat-list .mini-im-chat-message-box .loading[data-v-1390f214]{color:#666;display:-ms-flexbox;display:flex;margin-top:5px;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;-ms-flex-pack:center;justify-content:center}.mini-im-chat-list .mini-im-chat-message-box .loading span[data-v-1390f214]{margin-left:5px;font-size:13px}.mini-im-chat-list .mini-im-chat-message-box .text[data-v-1390f214]{display:-ms-flexbox;display:flex;margin-top:5px;word-break:break-all}.mini-im-chat-list .mini-im-chat-message-box .text span[data-v-1390f214]{max-width:40%;display:inline;padding:5px 10px;border-radius:5px;background-color:#eef4f9;font-size:14px;color:#666}.mini-im-chat-list .mini-im-chat-message-box .photo[data-v-1390f214]{display:-ms-flexbox;display:flex;margin-top:5px}.mini-im-chat-list .mini-im-chat-message-box .photo .loading[data-v-1390f214]{-ms-flex-item-align:end;align-self:flex-end;padding:0 5px}.mini-im-chat-list .mini-im-chat-message-box .photo .loading span[data-v-1390f214]{background:none!important;color:#999!important}.mini-im-chat-list .mini-im-chat-message-box .photo .img-content[data-v-1390f214]{border-radius:5px;width:200px;overflow:hidden}.mini-im-chat-list .mini-im-chat-message-box .photo img[data-v-1390f214]{cursor:pointer;width:100%;height:100%;display:inline}.mini-im-chat-list .mini-im-chat-message-box .knowledge[data-v-1390f214]{display:-ms-flexbox;display:flex;margin-top:5px;-ms-flex-pack:end;justify-content:flex-end}.mini-im-chat-list .mini-im-chat-message-box .knowledge .content[data-v-1390f214]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:5px;border-radius:5px;color:#666;text-align:left;background-color:#eef4f9}.mini-im-chat-list .mini-im-chat-message-box .knowledge .content .title[data-v-1390f214]{font-size:13px;font-weight:500}.mini-im-chat-list .mini-im-chat-message-box .knowledge .content .item[data-v-1390f214]{font-size:13px;line-height:22px}.mini-im-chat-list .mini-im-chat-message-box .system[data-v-1390f214]{display:-ms-flexbox;display:flex;margin-top:5px;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.mini-im-chat-list .mini-im-chat-message-box .system em[data-v-1390f214]{margin-top:5px;font-size:12px;color:#999}.mini-im-chat-list .mini-im-chat-message-box .system span[data-v-1390f214]{font-size:12px;max-width:50%;min-width:100px;display:inline;padding:3px 20px;border-radius:5px;text-align:center;background-color:#f2f2f2;color:#999}.mini-im-chat-list .mini-im-chat-message-box.self[data-v-1390f214]{text-align:right}.mini-im-chat-list .mini-im-chat-message-box.self .user-date[data-v-1390f214]{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.mini-im-chat-list .mini-im-chat-message-box.self .user-date span[data-v-1390f214]{-ms-flex-order:-2;order:-2}.mini-im-chat-list .mini-im-chat-message-box.self .user-date em[data-v-1390f214]{-ms-flex-order:-3;order:-3}.mini-im-chat-list .mini-im-chat-message-box.self .photo[data-v-1390f214],.mini-im-chat-list .mini-im-chat-message-box.self .text[data-v-1390f214]{-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:end;align-items:flex-end;word-break:break-all}.mini-im-chat-list .mini-im-chat-message-box.self .photo .cancel-btn[data-v-1390f214],.mini-im-chat-list .mini-im-chat-message-box.self .text .cancel-btn[data-v-1390f214]{color:#26a2ff;font-size:12px;margin-right:5px;cursor:pointer}.mini-im-chat-list .mini-im-chat-message-box.self .photo span[data-v-1390f214],.mini-im-chat-list .mini-im-chat-message-box.self .text span[data-v-1390f214]{background-color:rgba(33,150,243,.72);color:#fff;text-align:left}.mini-im-chat-list .mini-im-chat-message-box.self .knowledge>.content[data-v-1390f214]{background-color:rgba(33,150,243,.72);color:#fff}.mini-im-workbench[data-v-81d8c19a]{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;min-width:1100px}.mini-im-session-list[data-v-81d8c19a]{width:280px;border-radius:5px;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.mini-im-session-list .mini-im-no-data[data-v-81d8c19a]{text-align:center;padding-top:15px;font-size:14px;color:#666}.mini-im-session-list .title[data-v-81d8c19a]{height:35px;border-radius:5px 5px 0 0;background-color:#f4f5f7;line-height:35px;padding-left:10px;color:#666;font-size:14px;border:1px solid #edf1f5}.mini-im-session-list .title button[data-v-81d8c19a]{border:0;background:none;text-align:right}.mini-im-session-list .title button span>span[data-v-81d8c19a]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center}.mini-im-session-list .title button span>span i[data-v-81d8c19a]{font-size:15px}.mini-im-session-list .title button span>span em[data-v-81d8c19a]{margin-left:3px}.mini-im-session-list .title button span>span .el-icon--right[data-v-81d8c19a]{font-size:12px}.mini-im-session-list .mini-im-session-content[data-v-81d8c19a]{-ms-flex-positive:1;flex-grow:1;height:100%;border:1px solid #edf1f5;overflow:hidden;overflow-y:auto;width:278px;background-color:#fff;border-radius:0 0 5px 5px}.mini-im-chat-view[data-v-81d8c19a]{-ms-flex-positive:1;flex-grow:1;border:1px solid #edf1f5;margin-left:20px;border-radius:3px;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.mini-im-chat-view .mini-im-chat-view-content-header[data-v-81d8c19a]{width:100%;-ms-flex-negative:0;flex-shrink:0;height:55px;border-bottom:1px solid #edf1f5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;background-color:#f4f5f7;-ms-flex-align:center;align-items:center;padding:0 10px;box-sizing:border-box}.mini-im-chat-view .mini-im-chat-view-content-header .mini-im-header-user-box[data-v-81d8c19a]{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}.mini-im-chat-view .mini-im-chat-view-content-header .mini-im-header-user-box .mini-im-header-user-info[data-v-81d8c19a]{padding-left:10px;font-size:14px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around}.mini-im-chat-view .mini-im-chat-view-content-header .mini-im-header-user-box .mini-im-header-user-info .input-pong[data-v-81d8c19a]{margin-left:10px;font-size:12px}.mini-im-chat-view .mini-im-chat-view-content-header .mini-im-header-user-box .mini-im-header-user-info div[data-v-81d8c19a]{font-weight:600;color:#666}.mini-im-chat-view .mini-im-chat-view-content-header .mini-im-header-user-box .mini-im-header-user-info div span[data-v-81d8c19a]{font-size:10px}.mini-im-chat-view .mini-im-chat-view-content-header .mini-im-header-user-box .mini-im-header-user-info span[data-v-81d8c19a]{color:#999;font-size:12px}.mini-im-chat-view .mini-im-chat-view-content-header .mini-im-buttons[data-v-81d8c19a]{width:230px;display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around}.mini-im-chat-view .mini-im-chat-view-content-body[data-v-81d8c19a]{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-positive:1;flex-grow:1;overflow:hidden;background-color:#fff}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content[data-v-81d8c19a]{-ms-flex-positive:1;flex-grow:1;height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content .mini-im-chat-body[data-v-81d8c19a]{background-color:#fff;-ms-flex-positive:1;flex-grow:1;padding:10px;padding-bottom:20px;overflow:hidden;overflow-y:auto;min-width:400px}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content .mini-im-chat-input[data-v-81d8c19a]{height:115px;border-top:1px solid #edf1f5;position:relative;-ms-flex-positive:0;flex-grow:0;background-color:#fff;-ms-flex-negative:0;flex-shrink:0}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content .mini-im-chat-input .mini-im-chat-input-bar[data-v-81d8c19a]{height:30px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:0 15px;box-sizing:border-box}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content .mini-im-chat-input .mini-im-chat-input-bar .mini-im-button[data-v-81d8c19a]{height:30px;padding:0 5px;border:0;font-size:18px;cursor:pointer;background-color:#fff;color:#666;position:relative;overflow:hidden}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content .mini-im-chat-input .mini-im-chat-input-bar .mini-im-button input[data-v-81d8c19a]{position:absolute;top:0;cursor:pointer;left:0;width:100%;opacity:0;height:100%;font-size:100px}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content .mini-im-chat-input .mini-im-chat-input-bar .mini-im-button i[data-v-81d8c19a]{color:#666}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content .mini-im-chat-input .mini-im-chat-input-edit[data-v-81d8c19a]{height:100%}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content .mini-im-chat-input .mini-im-chat-input-edit .mini-im-chat-text-input[data-v-81d8c19a]{width:100%;border:0 solid #dcdfe6;resize:none;font-size:14px;color:#666;box-sizing:border-box;padding:5px}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-user[data-v-81d8c19a]{width:350px;height:100%;border-left:1px solid #edf1f5;box-sizing:border-box;background-color:#fff;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-user .el-tabs--border-card[data-v-81d8c19a]{height:100%;border:0;box-shadow:none}.mini-im-chat-view .mini-im-chat-view-content[data-v-81d8c19a]{position:relative}.mini-im-chat-view .mini-im-chat-view-content .advance[data-v-81d8c19a]{position:absolute;box-sizing:border-box;width:100%;left:0;bottom:115px;font-size:14px;color:#999;display:-ms-flexbox;display:flex;padding:5px 3px;background-color:#f5f7fa;border-top:1px solid #f3f3f3}.mini-im-chat-view .mini-im-chat-view-content .advance div[data-v-81d8c19a]{width:70px;-ms-flex-negative:0;flex-shrink:0}.mini-im-chat-view .mini-im-chat-view-content .advance span[data-v-81d8c19a]{font-size:12px}.no-window[data-v-81d8c19a]{display:-ms-flexbox;display:flex;background-color:#fff;text-align:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.no-window i[data-v-81d8c19a]{font-size:130px;color:#999}.no-window span[data-v-81d8c19a]{color:#999;font-size:20px;margin-top:10px}.no-window .mini-im-right-window-loading[data-v-81d8c19a]{width:100%;height:100%;background-color:#fff;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;left:0;top:0}.no-window .mini-im-right-window-loading i[data-v-81d8c19a]{font-size:25px}.no-window .mini-im-right-window-loading span[data-v-81d8c19a]{margin-left:5px;font-size:15px;margin-top:0}.mini-im-user-info[data-v-81d8c19a]{width:300px}.mini-im-online-setting[data-v-81d8c19a]{font-size:14px;color:#666}.mini-im-online-setting .item[data-v-81d8c19a]{padding:5px;cursor:pointer;border-radius:3px}.mini-im-online-setting .item[data-v-81d8c19a]:hover{background:#f2f2f2}.mini-im-shortcut[data-v-81d8c19a]{display:-ms-flexbox;display:flex;height:500px;-ms-flex-direction:column;flex-direction:column}.mini-im-shortcut .mini-im-shortcut-head[data-v-81d8c19a]{height:30px;width:100%;display:-ms-flexbox;display:flex;border-bottom:1px solid #f4f5f7;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding-bottom:5px}.mini-im-shortcut .mini-im-shortcut-head button[data-v-81d8c19a]{width:25px;height:25px;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;border:0}.mini-im-shortcut .mini-im-shortcut-head button i[data-v-81d8c19a]{font-size:15px;color:#999;cursor:pointer}.mini-im-shortcut .mini-im-shortcut-body[data-v-81d8c19a]{-ms-flex-positive:1;flex-grow:1;display:block;width:100%;overflow:hidden;overflow-y:auto}.mini-im-shortcut .mini-im-shortcut-item[data-v-81d8c19a]{display:-ms-flexbox;display:flex;width:100%;min-height:30px;padding:5px;box-sizing:border-box;cursor:pointer;font-size:13px}.mini-im-shortcut .mini-im-shortcut-item span[data-v-81d8c19a]{-ms-flex-positive:1;flex-grow:1;padding-right:10px}.mini-im-shortcut .mini-im-shortcut-item button[data-v-81d8c19a]{width:15px;height:30px;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;margin-right:5px;border:0;background:none}.mini-im-shortcut .mini-im-shortcut-item button i[data-v-81d8c19a]{font-size:15px;color:#999;cursor:pointer}.mini-im-shortcut .mini-im-shortcut-item[data-v-81d8c19a]:hover{opacity:.9;background:#f2f2f2;border-radius:3px}.mini-im-customer-list[data-v-81d8c19a]{overflow:hidden;min-height:150px;max-height:500px;overflow-y:auto}.mini-im-customer-list .mini-im-customer-title[data-v-81d8c19a]{padding-bottom:10px;border-bottom:1px solid #f2f2f2}.mini-im-customer-list .mini-im-customer-item[data-v-81d8c19a]{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;padding:5px;border-bottom:1px solid #f7f5f5;border-radius:3px}.mini-im-customer-list .mini-im-customer-item[data-v-81d8c19a]:hover{background:#f2f2f2}.mini-im-customer-list .mini-im-customer-item span[data-v-81d8c19a]{margin-left:10px}.mini-im-avatar[data-v-81d8c19a]{-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0}
\ No newline at end of file
.mini-im-button[data-v-3d019866]{height:30px;padding:0 5px;border:0;background-color:#fff;cursor:pointer;color:#666;font-size:12px}.mini-im-button i[data-v-3d019866]{color:#666}.emoji-box[data-v-3d019866]{font-size:20px}.emoji-box span[data-v-3d019866]{cursor:pointer;padding:2px}.mini-im-chat-item[data-v-595d9a46]{padding:10px;cursor:pointer;display:-ms-flexbox;display:flex;border-left:3px solid #fff;border-bottom:1px solid hsla(0,0%,68.6%,.11);position:relative}.mini-im-chat-item[data-v-595d9a46]:hover{border-left:3px solid #ff5722;background-color:#f3f3f3}.mini-im-chat-item:hover .delete_contact[data-v-595d9a46]{display:block}.mini-im-chat-item .mini-im-avatar[data-v-595d9a46]{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center;-ms-flex-negative:0;flex-shrink:0}.mini-im-chat-item[data-v-595d9a46]::last-child{border-bottom:0}.mini-im-chat-item .delete_contact[data-v-595d9a46]{position:absolute;left:0;top:0;color:#999;display:none}.mini-im-chat-item .mini-im-message-box[data-v-595d9a46]{width:180px;-ms-flex-positive:1;flex-grow:1;padding:8px 0;padding-left:10px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around;box-sizing:border-box;font-size:14px}.mini-im-chat-item .mini-im-message-box .mini-im-nickname[data-v-595d9a46]{font-size:14px;color:#666;font-weight:600;margin-bottom:5px}.mini-im-chat-item .mini-im-message-box .mini-im-nickname .mini-im-online-status[data-v-595d9a46]{font-size:12px;color:#9e9e9e}.mini-im-chat-item .mini-im-message-box .mini-im-nickname .mini-im-online-status.success[data-v-595d9a46]{color:#aadc97}.mini-im-chat-item .mini-im-message-box .mini-im-message-badge[data-v-595d9a46],.mini-im-chat-item .mini-im-message-box .mini-im-user-date[data-v-595d9a46]{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.mini-im-chat-item .mini-im-message-box .mini-im-badge[data-v-595d9a46]{width:20px;height:20px;border-radius:100%;background-color:#f56c6c;text-align:center;color:#fff;line-height:20px;font-size:12px;-ms-flex-negative:0;flex-shrink:0}.mini-im-chat-item .mini-im-message-box .mini-im-message[data-v-595d9a46]{font-size:13px;color:#999;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-right:5px}.mini-im-chat-item .mini-im-message-box .mini-im-date[data-v-595d9a46]{font-size:12px;color:#999}.mini-im-chat-item-active[data-v-595d9a46]{border-left:3px solid #ff5722;background-color:#f4f5f7}.mini-im-username-component-box{height:100%;overflow:hidden;overflow-y:auto;padding:10px 10px 10px 5px}.mini-im-username-component-box .form-item{margin-top:25px}.mini-im-username-component-box .form-item-readonly input.el-input__inner,.mini-im-username-component-box .form-item-readonly textarea.el-textarea__inner,.mini-im-username-component-box .no-border input.el-input__inner{border:0}.mini-im-username-component{position:absolute;top:10px;right:25px}.mini-im-username-component span{font-size:18px;color:#666}.mini-im-username-component span i{font-size:20px}.mini-im-username-component button{border:0;cursor:pointer}.mini-im-chat-list .mini-im-chat-message-box[data-v-719a88be],.mini-im-chat-list[data-v-719a88be]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.mini-im-chat-list .mini-im-chat-message-box[data-v-719a88be]{width:100%;margin-bottom:15px}.mini-im-chat-list .mini-im-chat-message-box .user-date[data-v-719a88be]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;color:#999;font-size:14px}.mini-im-chat-list .mini-im-chat-message-box .user-date span[data-v-719a88be]{color:#666;font-weight:500;font-size:14px;padding:0 5px}.mini-im-chat-list .mini-im-chat-message-box .user-date em[data-v-719a88be]{font-style:normal;font-size:12px}.mini-im-chat-list .mini-im-chat-message-box .loading[data-v-719a88be]{color:#666;display:-ms-flexbox;display:flex;margin-top:5px;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;-ms-flex-pack:center;justify-content:center}.mini-im-chat-list .mini-im-chat-message-box .loading span[data-v-719a88be]{margin-left:5px;font-size:13px}.mini-im-chat-list .mini-im-chat-message-box .text[data-v-719a88be]{display:-ms-flexbox;display:flex;margin-top:5px;word-break:break-all}.mini-im-chat-list .mini-im-chat-message-box .text span[data-v-719a88be]{max-width:40%;display:inline;padding:5px 10px;border-radius:5px;background-color:#eef4f9;font-size:14px;color:#666}.mini-im-chat-list .mini-im-chat-message-box .photo[data-v-719a88be]{display:-ms-flexbox;display:flex;margin-top:5px}.mini-im-chat-list .mini-im-chat-message-box .photo .loading[data-v-719a88be]{-ms-flex-item-align:end;align-self:flex-end;padding:0 5px}.mini-im-chat-list .mini-im-chat-message-box .photo .loading span[data-v-719a88be]{background:none!important;color:#999!important}.mini-im-chat-list .mini-im-chat-message-box .photo .img-content[data-v-719a88be]{border-radius:5px;width:200px;overflow:hidden}.mini-im-chat-list .mini-im-chat-message-box .photo img[data-v-719a88be]{cursor:pointer;width:100%;height:100%;display:inline}.mini-im-chat-list .mini-im-chat-message-box .knowledge[data-v-719a88be]{display:-ms-flexbox;display:flex;margin-top:5px;-ms-flex-pack:end;justify-content:flex-end}.mini-im-chat-list .mini-im-chat-message-box .knowledge .content[data-v-719a88be]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:5px;border-radius:5px;color:#666;text-align:left;background-color:#eef4f9}.mini-im-chat-list .mini-im-chat-message-box .knowledge .content .title[data-v-719a88be]{font-size:13px;font-weight:500}.mini-im-chat-list .mini-im-chat-message-box .knowledge .content .item[data-v-719a88be]{font-size:13px;line-height:22px}.mini-im-chat-list .mini-im-chat-message-box .system[data-v-719a88be]{display:-ms-flexbox;display:flex;margin-top:5px;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.mini-im-chat-list .mini-im-chat-message-box .system em[data-v-719a88be]{margin-top:5px;font-size:12px;color:#999}.mini-im-chat-list .mini-im-chat-message-box .system span[data-v-719a88be]{font-size:12px;max-width:50%;min-width:100px;display:inline;padding:3px 20px;border-radius:5px;text-align:center;background-color:#f2f2f2;color:#999}.mini-im-chat-list .mini-im-chat-message-box.self[data-v-719a88be]{text-align:right}.mini-im-chat-list .mini-im-chat-message-box.self .user-date[data-v-719a88be]{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.mini-im-chat-list .mini-im-chat-message-box.self .user-date span[data-v-719a88be]{-ms-flex-order:-2;order:-2}.mini-im-chat-list .mini-im-chat-message-box.self .user-date em[data-v-719a88be]{-ms-flex-order:-3;order:-3}.mini-im-chat-list .mini-im-chat-message-box.self .photo[data-v-719a88be],.mini-im-chat-list .mini-im-chat-message-box.self .text[data-v-719a88be]{-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:end;align-items:flex-end;word-break:break-all}.mini-im-chat-list .mini-im-chat-message-box.self .photo .cancel-btn[data-v-719a88be],.mini-im-chat-list .mini-im-chat-message-box.self .text .cancel-btn[data-v-719a88be]{color:#26a2ff;font-size:12px;margin-right:5px;cursor:pointer}.mini-im-chat-list .mini-im-chat-message-box.self .photo span[data-v-719a88be],.mini-im-chat-list .mini-im-chat-message-box.self .text span[data-v-719a88be]{background-color:rgba(33,150,243,.72);color:#fff;text-align:left}.mini-im-chat-list .mini-im-chat-message-box.self .knowledge>.content[data-v-719a88be]{background-color:rgba(33,150,243,.72);color:#fff}.mini-im-workbench[data-v-81d8c19a]{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;min-width:1100px}.mini-im-session-list[data-v-81d8c19a]{width:280px;border-radius:5px;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.mini-im-session-list .mini-im-no-data[data-v-81d8c19a]{text-align:center;padding-top:15px;font-size:14px;color:#666}.mini-im-session-list .title[data-v-81d8c19a]{height:35px;border-radius:5px 5px 0 0;background-color:#f4f5f7;line-height:35px;padding-left:10px;color:#666;font-size:14px;border:1px solid #edf1f5}.mini-im-session-list .title button[data-v-81d8c19a]{border:0;background:none;text-align:right}.mini-im-session-list .title button span>span[data-v-81d8c19a]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center}.mini-im-session-list .title button span>span i[data-v-81d8c19a]{font-size:15px}.mini-im-session-list .title button span>span em[data-v-81d8c19a]{margin-left:3px}.mini-im-session-list .title button span>span .el-icon--right[data-v-81d8c19a]{font-size:12px}.mini-im-session-list .mini-im-session-content[data-v-81d8c19a]{-ms-flex-positive:1;flex-grow:1;height:100%;border:1px solid #edf1f5;overflow:hidden;overflow-y:auto;width:278px;background-color:#fff;border-radius:0 0 5px 5px}.mini-im-chat-view[data-v-81d8c19a]{-ms-flex-positive:1;flex-grow:1;border:1px solid #edf1f5;margin-left:20px;border-radius:3px;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.mini-im-chat-view .mini-im-chat-view-content-header[data-v-81d8c19a]{width:100%;-ms-flex-negative:0;flex-shrink:0;height:55px;border-bottom:1px solid #edf1f5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;background-color:#f4f5f7;-ms-flex-align:center;align-items:center;padding:0 10px;box-sizing:border-box}.mini-im-chat-view .mini-im-chat-view-content-header .mini-im-header-user-box[data-v-81d8c19a]{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}.mini-im-chat-view .mini-im-chat-view-content-header .mini-im-header-user-box .mini-im-header-user-info[data-v-81d8c19a]{padding-left:10px;font-size:14px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around}.mini-im-chat-view .mini-im-chat-view-content-header .mini-im-header-user-box .mini-im-header-user-info .input-pong[data-v-81d8c19a]{margin-left:10px;font-size:12px}.mini-im-chat-view .mini-im-chat-view-content-header .mini-im-header-user-box .mini-im-header-user-info div[data-v-81d8c19a]{font-weight:600;color:#666}.mini-im-chat-view .mini-im-chat-view-content-header .mini-im-header-user-box .mini-im-header-user-info div span[data-v-81d8c19a]{font-size:10px}.mini-im-chat-view .mini-im-chat-view-content-header .mini-im-header-user-box .mini-im-header-user-info span[data-v-81d8c19a]{color:#999;font-size:12px}.mini-im-chat-view .mini-im-chat-view-content-header .mini-im-buttons[data-v-81d8c19a]{width:230px;display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around}.mini-im-chat-view .mini-im-chat-view-content-body[data-v-81d8c19a]{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-positive:1;flex-grow:1;overflow:hidden;background-color:#fff}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content[data-v-81d8c19a]{-ms-flex-positive:1;flex-grow:1;height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content .mini-im-chat-body[data-v-81d8c19a]{background-color:#fff;-ms-flex-positive:1;flex-grow:1;padding:10px;padding-bottom:20px;overflow:hidden;overflow-y:auto;min-width:400px}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content .mini-im-chat-input[data-v-81d8c19a]{height:115px;border-top:1px solid #edf1f5;position:relative;-ms-flex-positive:0;flex-grow:0;background-color:#fff;-ms-flex-negative:0;flex-shrink:0}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content .mini-im-chat-input .mini-im-chat-input-bar[data-v-81d8c19a]{height:30px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:0 15px;box-sizing:border-box}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content .mini-im-chat-input .mini-im-chat-input-bar .mini-im-button[data-v-81d8c19a]{height:30px;padding:0 5px;border:0;font-size:18px;cursor:pointer;background-color:#fff;color:#666;position:relative;overflow:hidden}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content .mini-im-chat-input .mini-im-chat-input-bar .mini-im-button input[data-v-81d8c19a]{position:absolute;top:0;cursor:pointer;left:0;width:100%;opacity:0;height:100%;font-size:100px}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content .mini-im-chat-input .mini-im-chat-input-bar .mini-im-button i[data-v-81d8c19a]{color:#666}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content .mini-im-chat-input .mini-im-chat-input-edit[data-v-81d8c19a]{height:100%}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-content .mini-im-chat-input .mini-im-chat-input-edit .mini-im-chat-text-input[data-v-81d8c19a]{width:100%;border:0 solid #dcdfe6;resize:none;font-size:14px;color:#666;box-sizing:border-box;padding:5px}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-user[data-v-81d8c19a]{width:350px;height:100%;border-left:1px solid #edf1f5;box-sizing:border-box;background-color:#fff;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.mini-im-chat-view .mini-im-chat-view-content-body .mini-im-chat-view-user .el-tabs--border-card[data-v-81d8c19a]{height:100%;border:0;box-shadow:none}.mini-im-chat-view .mini-im-chat-view-content[data-v-81d8c19a]{position:relative}.mini-im-chat-view .mini-im-chat-view-content .advance[data-v-81d8c19a]{position:absolute;box-sizing:border-box;width:100%;left:0;bottom:115px;font-size:14px;color:#999;display:-ms-flexbox;display:flex;padding:5px 3px;background-color:#f5f7fa;border-top:1px solid #f3f3f3}.mini-im-chat-view .mini-im-chat-view-content .advance div[data-v-81d8c19a]{width:70px;-ms-flex-negative:0;flex-shrink:0}.mini-im-chat-view .mini-im-chat-view-content .advance span[data-v-81d8c19a]{font-size:12px}.no-window[data-v-81d8c19a]{display:-ms-flexbox;display:flex;background-color:#fff;text-align:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.no-window i[data-v-81d8c19a]{font-size:130px;color:#999}.no-window span[data-v-81d8c19a]{color:#999;font-size:20px;margin-top:10px}.no-window .mini-im-right-window-loading[data-v-81d8c19a]{width:100%;height:100%;background-color:#fff;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;left:0;top:0}.no-window .mini-im-right-window-loading i[data-v-81d8c19a]{font-size:25px}.no-window .mini-im-right-window-loading span[data-v-81d8c19a]{margin-left:5px;font-size:15px;margin-top:0}.mini-im-user-info[data-v-81d8c19a]{width:300px}.mini-im-online-setting[data-v-81d8c19a]{font-size:14px;color:#666}.mini-im-online-setting .item[data-v-81d8c19a]{padding:5px;cursor:pointer;border-radius:3px}.mini-im-online-setting .item[data-v-81d8c19a]:hover{background:#f2f2f2}.mini-im-shortcut[data-v-81d8c19a]{display:-ms-flexbox;display:flex;height:500px;-ms-flex-direction:column;flex-direction:column}.mini-im-shortcut .mini-im-shortcut-head[data-v-81d8c19a]{height:30px;width:100%;display:-ms-flexbox;display:flex;border-bottom:1px solid #f4f5f7;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding-bottom:5px}.mini-im-shortcut .mini-im-shortcut-head button[data-v-81d8c19a]{width:25px;height:25px;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;border:0}.mini-im-shortcut .mini-im-shortcut-head button i[data-v-81d8c19a]{font-size:15px;color:#999;cursor:pointer}.mini-im-shortcut .mini-im-shortcut-body[data-v-81d8c19a]{-ms-flex-positive:1;flex-grow:1;display:block;width:100%;overflow:hidden;overflow-y:auto}.mini-im-shortcut .mini-im-shortcut-item[data-v-81d8c19a]{display:-ms-flexbox;display:flex;width:100%;min-height:30px;padding:5px;box-sizing:border-box;cursor:pointer;font-size:13px}.mini-im-shortcut .mini-im-shortcut-item span[data-v-81d8c19a]{-ms-flex-positive:1;flex-grow:1;padding-right:10px}.mini-im-shortcut .mini-im-shortcut-item button[data-v-81d8c19a]{width:15px;height:30px;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;margin-right:5px;border:0;background:none}.mini-im-shortcut .mini-im-shortcut-item button i[data-v-81d8c19a]{font-size:15px;color:#999;cursor:pointer}.mini-im-shortcut .mini-im-shortcut-item[data-v-81d8c19a]:hover{opacity:.9;background:#f2f2f2;border-radius:3px}.mini-im-customer-list[data-v-81d8c19a]{overflow:hidden;min-height:150px;max-height:500px;overflow-y:auto}.mini-im-customer-list .mini-im-customer-title[data-v-81d8c19a]{padding-bottom:10px;border-bottom:1px solid #f2f2f2}.mini-im-customer-list .mini-im-customer-item[data-v-81d8c19a]{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;padding:5px;border-bottom:1px solid #f7f5f5;border-radius:3px}.mini-im-customer-list .mini-im-customer-item[data-v-81d8c19a]:hover{background:#f2f2f2}.mini-im-customer-list .mini-im-customer-item span[data-v-81d8c19a]{margin-left:10px}.mini-im-avatar[data-v-81d8c19a]{-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0}
\ No newline at end of file
.el-tag+.el-tag[data-v-015f50bf]{margin-left:10px}.button-new-tag[data-v-015f50bf]{margin-left:10px;height:32px;line-height:30px;padding-top:0;padding-bottom:0}.input-new-tag[data-v-015f50bf]{width:150px;margin-left:10px;vertical-align:bottom}.el-tag+.el-tag[data-v-7b12f7d6]{margin-left:10px}.button-new-tag[data-v-7b12f7d6]{margin-left:10px;height:32px;line-height:30px;padding-top:0;padding-bottom:0}.input-new-tag[data-v-7b12f7d6]{width:150px;margin-left:10px;vertical-align:bottom}.me-head[data-v-e6cb2868]{height:30px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:20px;-ms-flex-pack:justify;justify-content:space-between;color:#666}.me-head i[data-v-e6cb2868]{margin-right:5px}
\ No newline at end of file
.el-tag+.el-tag[data-v-015f50bf]{margin-left:10px}.button-new-tag[data-v-015f50bf]{margin-left:10px;height:32px;line-height:30px;padding-top:0;padding-bottom:0}.input-new-tag[data-v-015f50bf]{width:150px;margin-left:10px;vertical-align:bottom}.el-tag+.el-tag[data-v-7b12f7d6]{margin-left:10px}.button-new-tag[data-v-7b12f7d6]{margin-left:10px;height:32px;line-height:30px;padding-top:0;padding-bottom:0}.input-new-tag[data-v-7b12f7d6]{width:150px;margin-left:10px;vertical-align:bottom}.me-head[data-v-22f8e0fa]{height:30px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:20px;-ms-flex-pack:justify;justify-content:space-between;color:#666}.me-head i[data-v-22f8e0fa]{margin-right:5px}
\ No newline at end of file
.mini-im-file-button[data-v-6bfc8d44]{width:50px;height:50px;border-radius:50%;position:relative;overflow:hidden;cursor:pointer}.mini-im-file-button input[data-v-6bfc8d44]{font-size:100px;position:absolute;top:0;left:0;cursor:pointer;opacity:0}.mini-im-file-button .mini-im-file-percent[data-v-6bfc8d44]{position:absolute;top:0;left:0;width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:50%;background-color:rgba(0,0,0,.5);color:#fff;font-size:12px}.mini-im-head[data-v-d2bb02c0]{height:30px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:20px;-ms-flex-pack:justify;justify-content:space-between;color:#666}.mini-im-head i[data-v-d2bb02c0]{margin-right:5px}
\ No newline at end of file
.mini-im-file-button[data-v-6bfc8d44]{width:50px;height:50px;border-radius:50%;position:relative;overflow:hidden;cursor:pointer}.mini-im-file-button input[data-v-6bfc8d44]{font-size:100px;position:absolute;top:0;left:0;cursor:pointer;opacity:0}.mini-im-file-button .mini-im-file-percent[data-v-6bfc8d44]{position:absolute;top:0;left:0;width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:50%;background-color:rgba(0,0,0,.5);color:#fff;font-size:12px}.mini-im-head[data-v-3a13145a]{height:30px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:20px;-ms-flex-pack:justify;justify-content:space-between;color:#666}.mini-im-head i[data-v-3a13145a]{margin-right:5px}
\ No newline at end of file
.mini-im-file-button[data-v-3e845274]{width:50px;height:50px;border-radius:50%;position:relative;overflow:hidden;cursor:pointer}.mini-im-file-button input[data-v-3e845274]{font-size:100px;position:absolute;top:0;left:0;cursor:pointer;opacity:0}.mini-im-file-button .mini-im-file-percent[data-v-3e845274]{position:absolute;top:0;left:0;width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:50%;background-color:rgba(0,0,0,.5);color:#fff;font-size:12px}.mini-im-head[data-v-0aee8f9a]{height:30px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:20px;-ms-flex-pack:justify;justify-content:space-between;color:#666}.mini-im-head i[data-v-0aee8f9a]{margin-right:5px}.el-select .el-input[data-v-0aee8f9a]{width:130px}.input-with-select .el-input-group__prepend[data-v-0aee8f9a]{background-color:#fff}
\ No newline at end of file
.mini-im-file-button[data-v-3e845274]{width:50px;height:50px;border-radius:50%;position:relative;overflow:hidden;cursor:pointer}.mini-im-file-button input[data-v-3e845274]{font-size:100px;position:absolute;top:0;left:0;cursor:pointer;opacity:0}.mini-im-file-button .mini-im-file-percent[data-v-3e845274]{position:absolute;top:0;left:0;width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:50%;background-color:rgba(0,0,0,.5);color:#fff;font-size:12px}.mini-im-head[data-v-65c494d4]{height:30px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:20px;-ms-flex-pack:justify;justify-content:space-between;color:#666}.mini-im-head i[data-v-65c494d4]{margin-right:5px}.el-select .el-input[data-v-65c494d4]{width:130px}.input-with-select .el-input-group__prepend[data-v-65c494d4]{background-color:#fff}
\ No newline at end of file
.mini-im-home-title[data-v-66efe601]{text-align:center;font-size:18px;color:#666;padding:15px 0 50px}.mini-im-home-copyright[data-v-66efe601]{text-align:center;color:#666;font-size:14px;padding-top:50px}.online-count[data-v-66efe601]{text-align:center;color:#666;margin-top:10px}.online-count span[data-v-66efe601]{color:#8bc34a;margin:0 5px}
\ No newline at end of file
.workorder-view[data-v-04313ef6]{width:100vw;height:100vh;position:fixed;right:0;top:0;left:0;background-color:rgba(0,0,0,.8);z-index:9}.workorder-view .mask[data-v-04313ef6]{width:100%;height:100%}.workorder-view .no-data[data-v-04313ef6]{color:#666;font-size:14px}.workorder-view .comments-loading[data-v-04313ef6],.workorder-view .workorder-close[data-v-04313ef6]{text-align:center;color:#666;font-size:14px;padding:10px}.workorder-view .comments[data-v-04313ef6]{padding:10px}.workorder-view .comments .item[data-v-04313ef6]{display:-ms-flexbox;display:flex}.workorder-view .comments .item .avatar[data-v-04313ef6]{padding-top:10px;border-bottom:1px solid hsla(0,0%,62%,.13)}.workorder-view .comments .item .avatar img[data-v-04313ef6]{width:30px;height:30px;border-radius:100px;display:block}.workorder-view .comments .item .right[data-v-04313ef6]{padding:10px 5px;-ms-flex-positive:1;flex-grow:1;border-bottom:1px solid hsla(0,0%,62%,.13)}.workorder-view .comments .item .right .nickname[data-v-04313ef6]{font-size:15px;color:#333}.workorder-view .comments .item .right .detail[data-v-04313ef6]{font-size:15px;color:#333;margin-top:5px}.workorder-view .comments .item .right .date[data-v-04313ef6]{color:#999;font-size:14px;margin-top:5px}.workorder-view .comments .item:last-child .avatar[data-v-04313ef6],.workorder-view .comments .item:last-child .right[data-v-04313ef6]{border-bottom:0}.workorder-view .content-box[data-v-04313ef6]{width:600px;height:100%;background-color:#fff;position:fixed;right:0;left:260px;margin:0 auto;top:30px;overflow:hidden;border-radius:5px 5px 0 0;padding-top:40px;padding-bottom:135px;box-sizing:border-box}.workorder-view .content-box.padding-bottom30[data-v-04313ef6]{padding-bottom:30px}.workorder-view .content-box .content[data-v-04313ef6]{box-sizing:border-box;width:100%;padding:0 10px;height:100%;overflow:hidden;overflow-y:auto;padding-top:10px;position:relative;padding-bottom:20px}.workorder-view .content-box .file-view[data-v-04313ef6]{position:absolute;bottom:135px;left:0;right:0;padding:5px 10px;margin:0 auto;font-size:13px;color:#8bc34a}.workorder-view .content-box .file-view span[data-v-04313ef6]{display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center}.workorder-view .content-box .file-view span img[data-v-04313ef6]{width:20px;height:20px}.workorder-view .content-box .file-view span i[data-v-04313ef6]{font-style:normal;margin-left:5px}.workorder-view .content-box .input-form[data-v-04313ef6]{position:absolute;bottom:35px;left:0;right:0;margin:0 auto;width:100%;height:100px;background-color:#fff;border-top:1px solid hsla(0,0%,62%,.13);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:10px 10px 0;box-sizing:border-box;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center}.workorder-view .content-box .input-form textarea[data-v-04313ef6]{height:90%;-ms-flex-positive:1;flex-grow:1;border-radius:0;border:0;color:#333;font-size:14px;resize:none}.workorder-view .content-box .input-form .icon-btn[data-v-04313ef6]{background:url(../img/upload.76668586.png) 50% no-repeat;background-size:30px;width:55px;height:55px;overflow:hidden}.workorder-view .content-box .input-form .icon-btn input[data-v-04313ef6]{display:block;width:100%;height:100%;font-size:100px;opacity:0}.workorder-view .content-box .title[data-v-04313ef6]{width:100%;height:40px;border-bottom:1px solid #ddd;position:absolute;top:0;left:0;background-color:#fff;padding:10px 0 0 10px;box-sizing:border-box}.workorder-view .content-box .buttons[data-v-04313ef6]{position:absolute;top:5px;right:50px}.workorder-view .content-box .close[data-v-04313ef6]{position:absolute;top:5px;right:5px;font-size:25px;color:#ccc;cursor:pointer}.workorder-view .content-box .form-line[data-v-04313ef6]{margin-bottom:5px;font-size:14px;color:#333;display:-ms-flexbox;display:flex}.workorder-view .content-box .form-line .lable[data-v-04313ef6]{width:50px;-ms-flex-negative:0;flex-shrink:0}.workorder-view .content-box .form-line .con[data-v-04313ef6]{-ms-flex-positive:1;flex-grow:1}.workorder-view .content-box .form-line img[data-v-04313ef6]{width:30%}.workorder-view.is-show-aside .content[data-v-04313ef6],.workorder-view.is-show-aside[data-v-04313ef6]{left:0}.me-head[data-v-28a53d25]{height:30px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:20px;-ms-flex-pack:justify;justify-content:space-between;color:#666}.me-head i[data-v-28a53d25]{margin-right:5px}.container-box[data-v-28a53d25]{display:-ms-flexbox;display:flex}.container-box .menu[data-v-28a53d25]{-ms-flex-negative:0;flex-shrink:0;width:180px}.container-box .table-content[data-v-28a53d25]{-ms-flex-positive:1;flex-grow:1}
\ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type

4.35 KB | W: | H:

4.35 KB | W: | H:

public/admin/img/kefu_logo.9c308a55.png
public/admin/img/kefu_logo.9c308a55.png
public/admin/img/kefu_logo.9c308a55.png
public/admin/img/kefu_logo.9c308a55.png
  • 2-up
  • Swipe
  • Onion skin

237 KB | W: | H:

237 KB | W: | H:

public/admin/img/login_bg.8ba760be.jpg
public/admin/img/login_bg.8ba760be.jpg
public/admin/img/login_bg.8ba760be.jpg
public/admin/img/login_bg.8ba760be.jpg
  • 2-up
  • Swipe
  • Onion skin

23.4 KB | W: | H:

23.4 KB | W: | H:

public/admin/img/login_bg1.531e0c1c.jpg
public/admin/img/login_bg1.531e0c1c.jpg
public/admin/img/login_bg1.531e0c1c.jpg
public/admin/img/login_bg1.531e0c1c.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -47,4 +47,4 @@
}
input:-ms-input-placeholder{ /* Internet Explorer 10-11 */
color:#ccc;
}</style><link href=css/chunk-08473d3a.77daa9fe.css rel=prefetch><link href=css/chunk-3a5ae4b9.36eb5b7d.css rel=prefetch><link href=css/chunk-44f6e77d.96ac4fad.css rel=prefetch><link href=css/chunk-4bc425fc.a028419f.css rel=prefetch><link href=css/chunk-4d213a0b.e2ea152d.css rel=prefetch><link href=css/chunk-5c1245e5.acb5ca11.css rel=prefetch><link href=css/chunk-615380b5.0b5bbfe0.css rel=prefetch><link href=css/chunk-771e4186.92ee7235.css rel=prefetch><link href=css/chunk-b4735d10.9f747f60.css rel=prefetch><link href=css/chunk-d086e898.6a96c7a1.css rel=prefetch><link href=js/chunk-08473d3a.b8ea5cf2.js rel=prefetch><link href=js/chunk-343c8d41.f0041881.js rel=prefetch><link href=js/chunk-3a5ae4b9.95fb80dc.js rel=prefetch><link href=js/chunk-44f6e77d.2455bfe6.js rel=prefetch><link href=js/chunk-4bc425fc.0bbe4f9b.js rel=prefetch><link href=js/chunk-4d213a0b.fb158f44.js rel=prefetch><link href=js/chunk-5c1245e5.8e906d8e.js rel=prefetch><link href=js/chunk-615380b5.8e004b72.js rel=prefetch><link href=js/chunk-771e4186.f1240d97.js rel=prefetch><link href=js/chunk-b4735d10.e80c520c.js rel=prefetch><link href=js/chunk-d086e898.72fb38e4.js rel=prefetch><link href=css/app.ba710877.css rel=preload as=style><link href=css/chunk-vendors.cb739fea.css rel=preload as=style><link href=js/app.315b59ad.js rel=preload as=script><link href=js/chunk-vendors.420bd1eb.js rel=preload as=script><link href=css/chunk-vendors.cb739fea.css rel=stylesheet><link href=css/app.ba710877.css rel=stylesheet></head><body><noscript><strong>We're sorry but m doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.420bd1eb.js></script><script src=js/app.315b59ad.js></script></body></html>
\ No newline at end of file
}</style><link href=css/chunk-0673cf5f.70fac712.css rel=prefetch><link href=css/chunk-081fd645.c5547932.css rel=prefetch><link href=css/chunk-08473d3a.77daa9fe.css rel=prefetch><link href=css/chunk-1b20b679.bbe54d80.css rel=prefetch><link href=css/chunk-3a5ae4b9.36eb5b7d.css rel=prefetch><link href=css/chunk-43693859.1243ef48.css rel=prefetch><link href=css/chunk-4bc425fc.a028419f.css rel=prefetch><link href=css/chunk-4d213a0b.e2ea152d.css rel=prefetch><link href=css/chunk-688d1b8e.fd85133d.css rel=prefetch><link href=css/chunk-cabbc79c.036672e3.css rel=prefetch><link href=css/chunk-d086e898.6a96c7a1.css rel=prefetch><link href=js/chunk-0673cf5f.add337a2.js rel=prefetch><link href=js/chunk-081fd645.cbf6b703.js rel=prefetch><link href=js/chunk-08473d3a.230bbeeb.js rel=prefetch><link href=js/chunk-1b20b679.382e3755.js rel=prefetch><link href=js/chunk-343c8d41.f0041881.js rel=prefetch><link href=js/chunk-3a5ae4b9.95fb80dc.js rel=prefetch><link href=js/chunk-43693859.d666587e.js rel=prefetch><link href=js/chunk-4bc425fc.0bbe4f9b.js rel=prefetch><link href=js/chunk-4d213a0b.fb158f44.js rel=prefetch><link href=js/chunk-688d1b8e.764bf305.js rel=prefetch><link href=js/chunk-cabbc79c.8d69ea53.js rel=prefetch><link href=js/chunk-d086e898.fd9639b1.js rel=prefetch><link href=css/app.ba710877.css rel=preload as=style><link href=css/chunk-vendors.cb739fea.css rel=preload as=style><link href=js/app.bb3d4191.js rel=preload as=script><link href=js/chunk-vendors.420bd1eb.js rel=preload as=script><link href=css/chunk-vendors.cb739fea.css rel=stylesheet><link href=css/app.ba710877.css rel=stylesheet></head><body><noscript><strong>We're sorry but m doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.420bd1eb.js></script><script src=js/app.bb3d4191.js></script></body></html>
\ No newline at end of file
(function(e){function t(t){for(var a,o,r=t[0],i=t[1],u=t[2],l=0,f=[];l<r.length;l++)o=r[l],Object.prototype.hasOwnProperty.call(s,o)&&s[o]&&f.push(s[o][0]),s[o]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);d&&d(t);while(f.length)f.shift()();return c.push.apply(c,u||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],a=!0,o=1;o<n.length;o++){var r=n[o];0!==s[r]&&(a=!1)}a&&(c.splice(t--,1),e=i(i.s=n[0]))}return e}var a={},o={app:0},s={app:0},c=[];function r(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-08473d3a":"b8ea5cf2","chunk-343c8d41":"f0041881","chunk-3a5ae4b9":"95fb80dc","chunk-44f6e77d":"2455bfe6","chunk-4bc425fc":"0bbe4f9b","chunk-615380b5":"8e004b72","chunk-771e4186":"f1240d97","chunk-d086e898":"72fb38e4","chunk-4d213a0b":"fb158f44","chunk-5c1245e5":"8e906d8e","chunk-b4735d10":"e80c520c"}[e]+".js"}function i(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n={"chunk-08473d3a":1,"chunk-3a5ae4b9":1,"chunk-44f6e77d":1,"chunk-4bc425fc":1,"chunk-615380b5":1,"chunk-771e4186":1,"chunk-d086e898":1,"chunk-4d213a0b":1,"chunk-5c1245e5":1,"chunk-b4735d10":1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=new Promise((function(t,n){for(var a="css/"+({}[e]||e)+"."+{"chunk-08473d3a":"77daa9fe","chunk-343c8d41":"31d6cfe0","chunk-3a5ae4b9":"36eb5b7d","chunk-44f6e77d":"96ac4fad","chunk-4bc425fc":"a028419f","chunk-615380b5":"0b5bbfe0","chunk-771e4186":"92ee7235","chunk-d086e898":"6a96c7a1","chunk-4d213a0b":"e2ea152d","chunk-5c1245e5":"acb5ca11","chunk-b4735d10":"9f747f60"}[e]+".css",s=i.p+a,c=document.getElementsByTagName("link"),r=0;r<c.length;r++){var u=c[r],l=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(l===a||l===s))return t()}var f=document.getElementsByTagName("style");for(r=0;r<f.length;r++){u=f[r],l=u.getAttribute("data-href");if(l===a||l===s)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var a=t&&t.target&&t.target.src||s,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=a,delete o[e],d.parentNode.removeChild(d),n(c)},d.href=s;var m=document.getElementsByTagName("head")[0];m.appendChild(d)})).then((function(){o[e]=0})));var a=s[e];if(0!==a)if(a)t.push(a[2]);else{var c=new Promise((function(t,n){a=s[e]=[t,n]}));t.push(a[2]=c);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=r(e);var f=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(d);var n=s[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",f.name="ChunkLoadError",f.type=a,f.request=o,n[1](f)}s[e]=void 0}};var d=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],l=u.push.bind(u);u.push=t,u=u.slice();for(var f=0;f<u.length;f++)t(u[f]);var d=l;c.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"41cb":function(e,t,n){"use strict";var a=n("2b0e"),o=n("8c4f");a["default"].use(o["a"]),t["a"]=new o["a"]({base:"",routes:[{path:"/",name:"home",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-d086e898")]).then(n.bind(null,"1e4b"))},redirect:"/index",children:[{path:"index",component:function(){return n.e("chunk-b4735d10").then(n.bind(null,"7abe"))}},{path:"workbench",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-44f6e77d")]).then(n.bind(null,"29e5"))}},{path:"knowledge",component:function(){return n.e("chunk-5c1245e5").then(n.bind(null,"7a26"))}},{path:"robot",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-4bc425fc")]).then(n.bind(null,"2157"))}},{path:"customer",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-615380b5")]).then(n.bind(null,"aedf"))}},{path:"users",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-771e4186")]).then(n.bind(null,"4468"))}},{path:"system",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-3a5ae4b9")]).then(n.bind(null,"26b0"))}},{path:"chat_record",component:function(){return n.e("chunk-08473d3a").then(n.bind(null,"caae"))}}]},{path:"/login",name:"login",component:function(){return n.e("chunk-4d213a0b").then(n.bind(null,"bd01"))}},{path:"*",redirect:"/index"}]})},4360:function(e,t,n){"use strict";var a=n("2b0e"),o=n("2f62"),s=(n("57e7"),n("bc3a")),c=n.n(s),r=n("41cb"),i={ON_GET_ME:function(e){var t=location.pathname;c.a.get("/admin/me").then((function(t){e.commit("onIsLogin",!0),e.commit("onChangeAdminInfo",t.data.data),"/login"!=location.pathname&&-1==location.hash.indexOf("#/login")||r["a"].push({path:"/index"})})).catch((function(n){console.log(n.response),e.commit("onIsLogin",!1),"/login"!=t&&r["a"].push({path:"/login"})}))},ON_GET_UPLOAD_TOKEN:function(e){c.a.get("/public/secret").then((function(t){e.commit("onChangeUploadToken",t.data.data)}))},ON_GET_PLATFORM_CONFIG:function(e){c.a.get("/platform/list").then((function(t){e.commit("onChangePlatformConfig",t.data.data)}))},ON_GET_SYSTEM:function(e){c.a.get("/system").then((function(t){e.commit("onChangeSystemInfo",t.data.data),document.title=t.data.data.title}))},ON_GET_COMPANY:function(e){c.a.get("/public/company").then((function(t){e.commit("onChangeCompanyInfo",t.data.data)}))},ON_GET_UPLOADS_CONFIG:function(e){c.a.get("/uploads/config").then((function(t){e.commit("onChangeUploadsConfigs",t.data.data)}))},ON_GET_CONTACTS:function(e){c.a.get("/contact/list").then((function(t){e.commit("onChangeContacts",t.data.data)}))},ON_RUN_LAST_ACTiIVITY:function(){c.a.get("/public/activity/")},ON_GET_ROBOTS:function(e){var t=this;c.a.get("/robot/list").then((function(t){e.commit("onChangeRobos",t.data.data)})).catch((function(){t.loading=!1}))}},u={onChangeHeaserTitle:function(e,t){e.heaserTitle=t},onChangePlatformConfig:function(e,t){e.platformConfig=t},onChangeToggleAside:function(e,t){e.isShowAside=t},onChangeEditDialogFormVisible:function(e,t){e.editDialogFormVisible=t},onChangeEditPasswordDialogFormVisible:function(e,t){e.editPasswordDialogFormVisible=t},onChangeAdminInfo:function(e,t){e.adminInfo=t},onChangeUploadToken:function(e,t){e.uploadToken=t},onChangeSystemInfo:function(e,t){e.systemInfo=t},onChangeCompanyInfo:function(e,t){e.companyInfo=t},onChangeUploadsConfigs:function(e,t){e.uploadsConfigs=t},onChangeMimcUser:function(e,t){e.mimcUser=t},onChangeContacts:function(e,t){for(var n in e.contacts=t,t){var a=t[n];if(e.seviceCurrentUser&&a.from_account==e.seviceCurrentUser.from_account){e.seviceCurrentUser=a;break}}},onChangeSeviceCurrentUser:function(e,t){e.seviceCurrentUser=t},onChangeRobos:function(e,t){e.robots=t},onReset:function(e){e.seviceCurrentUser=null,e.contacts=[],e.mimcUser=null},onChangeMessageRecord:function(e,t){e.messageRecord=t},onIsLogin:function(e,t){e.isLogin=t}},l={adminInfo:function(e){return e.adminInfo||{}},isLogin:function(e){return e.isLogin},avatar:function(e){return e.adminInfo&&""!=e.adminInfo.avatar?e.adminInfo.avatar:""},uploadMod:function(e){return e.uploadToken.mode||-1},nickname:function(e){return e.adminInfo&&""!=e.adminInfo.nickname?e.adminInfo.nickname:"未设置昵称"},uploadToken:function(e){return e.uploadToken},platformConfig:function(e){return e.platformConfig},systemInfo:function(e){return e.systemInfo},companyInfo:function(e){return e.companyInfo},uploadsConfigs:function(e){return e.uploadsConfigs},contacts:function(e){return e.contacts||[]},seviceCurrentUser:function(e){return e.seviceCurrentUser||{}},robots:function(e){return e.robots||[]},messageRecord:function(e){return e.messageRecord||{list:[]}},readCount:function(e){for(var t=0,n=0;n<e.contacts.length;n++)t+=e.contacts[n].read;return t},workbenchBgColor:function(e){return e.workbenchBgColor}},f={adminInfo:null,heaserTitle:"首页",isShowAside:!0,editDialogFormVisible:!1,isLogin:!1,editPasswordDialogFormVisible:!1,uploadToken:null,platformConfig:[],systemInfo:{},companyInfo:{},uploadsConfigs:[],mimcUser:null,contacts:[],robots:[],seviceCurrentUser:null,messageRecord:{list:[]},avatar:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAD7tJREFUeAHtXV1sHMUdn9m7s50P59NxbBI7McH5IHz5A8g5OHFTJECUIlWFVkIFCdI+8dYHqOARBKjqG08tIIHEA7QvlCJAShPHxnYAO6aiKE0s5DZpcBJiFOqEOLZvp//f3q1zd7673b2dnZ21b6TT7u3O/L9+O/Of7+FsEYTx8fGa0xOTrVwYOwQT9GM7OGP1pFotY6JWMG5duXWlJ0xMMcaneOZK8aYozQVKc5LinBTcPNncuH6spaVlOurmIZ2iF44OjewilA7Q70cETAcp0SyEMGRqwjk3ifZpoj3CODtCv8P7kx0nZPJQQSsSAA8PD9ddmTEeZqZ5gIx+gAzToMI4BXicI4MdZoZxeEWV+V5nZ+fFAnG0eqQtwGNjY9UTF6Yeopz5OOPifiFYQifLcc5mmeAfUU5/q7G+9v3W1tZrOslny6IdwL0Do3dyYT5FOfUX5C3X2ILqfeWXyJDvCG683rO37XOdZNUG4P6h0Z5UynyOQL1XJwN5l4UfisWMF7uTbb3e08pPETrAvUPHH6DqzPNUFHfJVy88ilR0DwqDv9CTbP8wPCmorRAW8/6h4btTJn+VCdEZlgxK+HI+HDPE093Jzk+V8MtjohzgwcGv1s2I6ZeJ8UHKtcr55+mv5C/lZqojsteqeM2zXV27v1PCNMNEmYEBZt/Q6JNCmK9Q+3W9SiW14cXZJOfGM/uSbW8AdBVyKQH46GdfNrHZmbcJ5G4VSunOg8DtZ4mqx/bfdeuZoGUNHOC+geEHTcbeXLK5thiClJup6+2JfXs7PygWRcZzqd172QJRbo0f/WTk99QP/H4F3GzLZO7JTcE2lo3IVgViSHkUSA4eHPxi06xI/ZlATkqRcpEToSJ7KMFjj3R13XFWtqrSAbYGAlLiY6pBNMkWdjHTIyDOsBi/T/aA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00g4VACoAVACoAVACoA//2Q==",workbenchBgColor:"#646b6f"};a["default"].use(o["a"]);t["a"]=new o["a"].Store({state:f,getters:l,mutations:u,actions:i})},4678:function(e,t,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-SG":"cdab","./en-SG.js":"cdab","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-nz":"6f50","./en-nz.js":"6f50","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-tw":"90ea","./zh-tw.js":"90ea"};function o(e){var t=s(e);return n(t)}function s(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=s,e.exports=o,o.id="4678"},"56d7":function(e,t,n){"use strict";n.r(t);n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),o=n("5c96"),s=n.n(o),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},r=[],i=(n("6d67"),n("bc3a")),u=n.n(i),l=n("b730"),f=n.n(l),d={created:function(){this.$store.dispatch("ON_GET_ME")},methods:{appInit:function(){var e=this;this.adminInfo?(this.$store.dispatch("ON_GET_UPLOAD_TOKEN"),this.$store.dispatch("ON_GET_PLATFORM_CONFIG"),this.$store.dispatch("ON_GET_SYSTEM"),this.$store.dispatch("ON_GET_COMPANY"),this.$store.dispatch("ON_GET_UPLOADS_CONFIG"),this.$store.dispatch("ON_GET_ROBOTS"),this.$store.dispatch("ON_GET_CONTACTS"),this.upLastActivity(),this.getContacts(),this.initMimc()):setTimeout((function(){return e.appInit()}),50)},getContacts:function(){var e=this;this.adminInfo&&(this.$store.dispatch("ON_GET_CONTACTS"),this.seviceCurrentUser&&this.$store.getters.contacts.length>0&&this.$store.getters.contacts.map((function(t){t.from_account==e.seviceCurrentUser.from_account&&e.$store.commit("onChangeSeviceCurrentUser",t)})))},upLastActivity:function(){var e=this;this.$store.dispatch("ON_RUN_LAST_ACTiIVITY"),setTimeout((function(){return e.upLastActivity()}),6e4)},initMimc:function(){var e=this,t=this,n=this.$store.state.adminInfo;n?t.$mimcInstance.init({type:1,account_id:n.id},(function(n){n?(e.$mimcInstance.addEventListener("statusChange",(function(e){e||0==t.$store.getters.adminInfo.online||t.watchLogin()})),e.$mimcInstance.addEventListener("disconnect",(function(){console.log("链接断开!"),0!=t.$store.getters.adminInfo.online&&t.watchLogin()})),t.watchLogin()):t.initMimc()})):setTimeout((function(){return e.initMimc()}),1e3)},changeUserOnlineStatus:function(e){var t=this;u.a.put("/admin/online/"+e).then((function(){t.$store.dispatch("ON_GET_ME"),0==e&&t.$message.info("当前状态为离线")})).catch((function(e){t.$message.error(e.response.data.message)}))},watchLogin:function(){var e=this;try{var t=this;if(null!=t.$store.state.user)return;1==t.$store.getters.adminInfo.online||2==t.$store.getters.adminInfo.online?t.$mimcInstance.login((function(){t.changeUserOnlineStatus(t.$store.getters.adminInfo.online),t.$store.dispatch("ON_RUN_LAST_ACTiIVITY"),t.$store.dispatch("ON_GET_CONTACTS"),t.$store.commit("onChangeMimcUser",t.$mimcInstance.user)})):0!=t.$store.getters.adminInfo.online&&setTimeout((function(){return t.watchLogin()}),1e3)}catch(n){setTimeout((function(){return e.watchLogin()}),1e3)}}},mounted:function(){var e=this;window.addEventListener("resize",(function(){e.$store.commit("onChangeToggleAside",!0),document.body.clientWidth<1e3&&e.$store.commit("onChangeToggleAside",!1)}),!1),f.a.Permission.has()||f.a.Permission.request((function(){}),(function(){}))},computed:{adminInfo:function(){return this.$store.getters.adminInfo},seviceCurrentUser:function(){return this.$store.getters.seviceCurrentUser},messageRecord:function(){return this.$store.getters.messageRecord},isLogin:function(){return this.$store.getters.isLogin}},watch:{$route:function(){var e=this;/^\/workbench(\/\d+)?$/i.test(this.$route.path)||this.$mimcInstance.addEventListener("receiveP2PMsg",(function(t){var n=parseInt(((new Date).getTime()+"").substr(0,10));if(t.timestamp=parseInt((t.timestamp+"").substr(0,10)),!(n-t.timestamp>=60))if("contacts"!=t.biz_type)if("handshake"!=t.biz_type){var a=JSON.parse(JSON.stringify(e.messageRecord));a.list.push(t),e.$store.commit("onChangeMessageRecord",a),"contacts"!=t.biz_type&&"pong"!=t.biz_type&&"welcome"!=t.biz_type&&"cancel"!=t.biz_type&&"handshake"!=t.biz_type&&"end"!=t.biz_type&&"timeout"!=t.biz_type&&f.a.Permission.has()&&f.a.create("收到一条新消息",{body:t.payload,icon:e.$store.state.pushIcon,timeout:5e3,onClick:function(){e.$router.push({path:"/workbench?uid="+t.from_account}),window.focus()}})}else e.$mimcInstance.sendMessage("text",t.from_account,e.adminInfo.auto_reply);else{var o=JSON.parse(t.payload);e.$store.commit("onChangeContacts",o)}}))},isLogin:function(){console.log("当前是登录状态"),this.appInit()}}},m=d,b=(n("7faf"),n("2877")),h=Object(b["a"])(m,c,r,!1,null,null,null),p=h.exports,A=n("41cb"),y=n("4360"),g=(n("0fae"),n("d1d4")),k=n.n(g),j=(n("394c"),n("c1df")),T={install:function(e,t){e.prototype.$myMethod=function(){console.log(t)},e.prototype.$getPlatformItem=function(e){for(var t,n=this.$store.getters.platformConfig,a=0;a<n.length;a++)n[a].id==e&&(t=n[a]);return t||{title:"未知"}},e.prototype.$formatUnixDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return j(parseInt(e+"000")).format(t)},e.prototype.$formatFromNowDate=function(e){return j().format("YYYYMMDD")==j(parseInt(e+"000")).format("YYYYMMDD")?j(parseInt(e+"000")).format("HH:mm"):j(parseInt(e+"000")).format("YYYY-MM-DD HH:mm")},e.prototype.$robotNickname=function(e){for(var t,n=this.$store.getters.robots,a=0;a<n.length;a++)n[a].id==e&&(t=n[a].nickname);return t}}},U=T,C=(n("6b54"),n("87b3"),{install:function(e,t){console.log(t),e.MimcInstance=e.prototype.$mimcInstance={user:null,robot:null,fetchMIMCTokenResult:null,init:function(e,t){this.getRobot(),this.fetchMIMCToken(e,t)},_receiveP2PMsgCallback:null,_statusChangeCallback:null,_serverAckCallback:null,_disconnectCallback:null,fetchMIMCToken:function(e,t){var n=this;u.a.post("/public/register",e).then((function(e){n.fetchMIMCTokenResult=e.data.data.token,t&&t(!0),console.log("MIMC初始化成功")})).catch((function(e){t&&t(!1),o["Message"].error("mimc初始化失败,请刷新重试,"+e.response.data.message)}))},getRobot:function(){var e=this;u.a.get("/public/robot/1").then((function(t){e.robot=t.data.data})).catch((function(e){o["Message"].error("mimc初始化失败,请刷新重试"+e.response.data.message)}))},pushMessage:function(e){var t=this;u.a.post("/public/message/push",{msgType:"NORMAL_MSG",payload:e}).then((function(n){console.log(n.data),200!=n.data["code"]&&setTimeout((function(){return t.pushMessage(e)}),300)})).catch((function(){setTimeout((function(){return t.pushMessage(e)}),300)}))},login:function(e){var t=this;try{var n=this.fetchMIMCTokenResult;if(!n)return;this.user=new MIMCUser(n.data.appId,n.data.appAccount,"666"),this.user.registerP2PMsgHandler((function(e){var n=JSON.parse(window.Base64.decode(e.getPayload()));t._receiveP2PMsgCallback&&t._receiveP2PMsgCallback(n)})),this.user.registerFetchToken((function(){return n})),this.user.registerStatusChange((function(e,n,a,o){t._statusChangeCallback&&t._statusChangeCallback(e,n,a,o)})),this.user.registerServerAckHandler((function(e,n,a,o){t._serverAckCallback&&t._serverAckCallback(e,n,a,o)})),this.user.registerDisconnHandler((function(){t._disconnectCallback&&t._disconnectCallback()})),this.user.login(),window.mimcInstance=this,e&&e(),console.log("MIMC登录成功")}catch(a){console.log(a),console.log("MIMC登录失败"),setTimeout((function(){t.login()}),1e3)}},logout:function(){this.user&&(this.user.logout(),this.user=null)},addEventListener:function(e,t){switch(e){case"receiveP2PMsg":this._receiveP2PMsgCallback=t;break;case"statusChange":this._statusChangeCallback=t;break;case"serverAck":this._serverAckCallback=t;break;case"disconnect":this._disconnectCallback=t;break}},sendMessage:function(e,t){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(this.user){var c={from_account:parseInt(this.fetchMIMCTokenResult.data.appAccount),to_account:parseInt(t),biz_type:e,version:"0",timestamp:parseInt(((new Date).getTime()+" ").substr(0,10)),key:(new Date).getTime(),read:0,transfer_account:parseInt(s),payload:a+""},r=window.Base64.encode(JSON.stringify(c));try{"contacts"!=e&&"pong"!=e&&"welcome"!=e&&"handshake"!=e&&this.pushMessage(window.Base64.encode(r)),setTimeout((function(){n.user.sendMessage(t.toString(),r)}),200)}catch(i){console.log("sendMessage fail, err="+i)}return c}o["Message"].error("服务异常,请刷新重试!")},createLocalMessage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o={from_account:parseInt(this.fetchMIMCTokenResult.data.appAccount),to_account:parseInt(t),biz_type:e,version:"0",timestamp:parseInt(((new Date).getTime()+" ").substr(0,10)),key:(new Date).getTime(),read:0,transfer_account:parseInt(a),payload:n+""};return o}}}}),v=C,O=(n("28a5"),{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY年MM月DD日",LLL:"YYYY年MM月DD日Ah点mm分",LLLL:"YYYY年MM月DD日ddddAh点mm分",l:"YYYY-M-D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d秒",m:"1分钟",mm:"%d分钟",h:"1小时",hh:"%d小时",d:"1天",dd:"%d天",M:"1个月",MM:"%d个月",y:"1年",yy:"%d年"},week:{dow:1,doy:4}}),I=n("c1df");I.locale("zh-cn",O),u.a.defaults.baseURL="/v1",u.a.interceptors.request.use((function(e){var t=localStorage.getItem("Authorization");return e.headers["Authorization"]=t||"",e}),(function(e){return Promise.reject(e)})),u.a.interceptors.response.use((function(e){return e}),(function(e){return 401==e.response.status&&(localStorage.clear(),y["a"].commit("onChangeAdminInfo",null),y["a"].state.mimcUser&&y["a"].state.mimcUser.logout(),A["a"].push("/login")),Promise.reject(e)}));var L={fullscreenEl:!1};a["default"].use(k.a,L),a["default"].use(s.a),a["default"].use(U),a["default"].use(v),a["default"].config.productionTip=!1,new a["default"]({router:A["a"],store:y["a"],render:function(e){return e(p)}}).$mount("#app")},"7faf":function(e,t,n){"use strict";var a=n("8fba"),o=n.n(a);o.a},"8fba":function(e,t,n){}});
//# sourceMappingURL=app.315b59ad.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/router.js","webpack:///./src/store/actions.js","webpack:///./src/store/mutations.js","webpack:///./src/store/getters.js","webpack:///./src/store/state.js","webpack:///./src/store/index.js","webpack:///./node_modules/moment/locale sync ^\\.\\/.*$","webpack:///./src/App.vue?00cc","webpack:///src/App.vue","webpack:///./src/App.vue?2e55","webpack:///./src/App.vue","webpack:///./src/plugins/help.js","webpack:///./src/plugins/mimc.js","webpack:///./src/resource/moment_locale.js","webpack:///./src/main.js","webpack:///./src/App.vue?2c4a"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","jsonpScriptSrc","p","exports","module","l","e","promises","cssChunks","Promise","resolve","reject","href","fullhref","existingLinkTags","document","getElementsByTagName","tag","dataHref","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","code","parentNode","removeChild","head","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","error","clearTimeout","chunk","errorType","realSrc","message","name","undefined","setTimeout","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice","Vue","use","Router","base","process","routes","path","component","redirect","children","ON_GET_ME","context","pathname","location","axios","response","commit","hash","indexOf","router","catch","log","ON_GET_UPLOAD_TOKEN","ON_GET_PLATFORM_CONFIG","ON_GET_SYSTEM","title","ON_GET_COMPANY","ON_GET_UPLOADS_CONFIG","ON_GET_CONTACTS","ON_RUN_LAST_ACTiIVITY","ON_GET_ROBOTS","loading","onChangeHeaserTitle","state","heaserTitle","onChangePlatformConfig","platformConfig","onChangeToggleAside","isShow","isShowAside","onChangeEditDialogFormVisible","editDialogFormVisible","onChangeEditPasswordDialogFormVisible","editPasswordDialogFormVisible","onChangeAdminInfo","adminInfo","onChangeUploadToken","uploadToken","onChangeSystemInfo","systemInfo","onChangeCompanyInfo","companyInfo","onChangeUploadsConfigs","uploadsConfigs","onChangeMimcUser","mimcUser","onChangeContacts","contacts","index","contact","seviceCurrentUser","from_account","onChangeSeviceCurrentUser","onChangeRobos","robots","onReset","onChangeMessageRecord","messageRecord","onIsLogin","isLogin","avatar","uploadMod","nickname","list","readCount","count","read","workbenchBgColor","pushIcon","Vuex","Store","getters","mutations","actions","map","webpackContext","req","id","webpackContextResolve","keys","_vm","this","_h","$createElement","_c","_self","attrs","staticRenderFns","created","$store","dispatch","methods","appInit","upLastActivity","getContacts","initMimc","changeUserOnlineStatus","watchLogin","self","$mimcInstance","login","online","user","mounted","addEventListener","computed","watch","nowTime","parseInt","Date","getTime","timestamp","newMessageRecord","JSON","parse","stringify","payload","moment","require","Helps","options","$myMethod","$getPlatformItem","platformConfigItem","$formatUnixDate","unix","format","$formatFromNowDate","$robotNickname","MimcPlugin","MimcInstance","robot","fetchMIMCTokenResult","init","callback","getRobot","fetchMIMCToken","_receiveP2PMsgCallback","_statusChangeCallback","_serverAckCallback","_disconnectCallback","post","token","Message","pushMessage","MIMCUser","appId","appAccount","registerP2PMsgHandler","msg","Base64","decode","getPayload","registerFetchToken","registerStatusChange","bindResult","errType","errReason","errDesc","registerServerAckHandler","packetId","sequence","timeStamp","errMsg","registerDisconnHandler","mimcInstance","logout","sendMessage","toAccount","transferAccount","messageJson","substr","jsonBase64Msg","encode","toString","createLocalMessage","months","split","monthsShort","weekdays","weekdaysShort","weekdaysMin","longDateFormat","LT","LTS","L","LL","LLL","LLLL","ll","lll","llll","meridiemParse","meridiemHour","hour","meridiem","minute","hm","calendar","sameDay","nextDay","nextWeek","lastDay","lastWeek","sameElse","dayOfMonthOrdinalParse","ordinal","number","period","relativeTime","future","past","ss","mm","h","hh","dd","M","MM","y","yy","week","dow","doy","locale","momentLocal","defaults","baseURL","interceptors","config","localStorage","getItem","headers","status","clear","store","fullscreenEl","preview","ElementUI","productionTip","render","App","$mount"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAG/Be,GAAqBA,EAAoBhB,GAE5C,MAAMO,EAASC,OACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,EAAIN,EAAe,KAItE,OA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IAAIsP,IAASrH,GACjBlI,aAAIC,IAAIuP,KACRxP,aAAIC,IAAIgI,GACRjI,aAAIC,IAAI0I,GAER3I,aAAI+O,OAAOU,eAAgB,EAC3B,IAAIzP,aAAI,CACNmB,cACAkO,aACAK,OAAQ,SAAA1B,GAAC,OAAIA,EAAE2B,MACdC,OAAO,S,oCCtDV,yBAAqf,EAAG,G","file":"js/app.315b59ad.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t\"app\": 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"js/\" + ({}[chunkId]||chunkId) + \".\" + {\"chunk-08473d3a\":\"b8ea5cf2\",\"chunk-343c8d41\":\"f0041881\",\"chunk-3a5ae4b9\":\"95fb80dc\",\"chunk-44f6e77d\":\"2455bfe6\",\"chunk-4bc425fc\":\"0bbe4f9b\",\"chunk-615380b5\":\"8e004b72\",\"chunk-771e4186\":\"f1240d97\",\"chunk-d086e898\":\"72fb38e4\",\"chunk-4d213a0b\":\"fb158f44\",\"chunk-5c1245e5\":\"8e906d8e\",\"chunk-b4735d10\":\"e80c520c\"}[chunkId] + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"chunk-08473d3a\":1,\"chunk-3a5ae4b9\":1,\"chunk-44f6e77d\":1,\"chunk-4bc425fc\":1,\"chunk-615380b5\":1,\"chunk-771e4186\":1,\"chunk-d086e898\":1,\"chunk-4d213a0b\":1,\"chunk-5c1245e5\":1,\"chunk-b4735d10\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"css/\" + ({}[chunkId]||chunkId) + \".\" + {\"chunk-08473d3a\":\"77daa9fe\",\"chunk-343c8d41\":\"31d6cfe0\",\"chunk-3a5ae4b9\":\"36eb5b7d\",\"chunk-44f6e77d\":\"96ac4fad\",\"chunk-4bc425fc\":\"a028419f\",\"chunk-615380b5\":\"0b5bbfe0\",\"chunk-771e4186\":\"92ee7235\",\"chunk-d086e898\":\"6a96c7a1\",\"chunk-4d213a0b\":\"e2ea152d\",\"chunk-5c1245e5\":\"acb5ca11\",\"chunk-b4735d10\":\"9f747f60\"}[chunkId] + \".css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import Vue from 'vue'\nimport Router from 'vue-router'\n\nVue.use(Router)\n\nexport default new Router({\n // mode: 'history',\n base: process.env.BASE_URL,\n routes: [\n {\n path: '/',\n name: 'home',\n component: () => import('./views/index.vue'),\n redirect: \"/index\",\n children: [\n {\n path: 'index',\n component: () => import('./views/home/index.vue'),\n },\n {\n path: 'workbench',\n component: () => import('./views/workbench/index.vue'),\n },\n {\n path: 'knowledge',\n component: () => import('./views/knowledge/index.vue'),\n },\n {\n path: 'robot',\n component: () => import('./views/robot/index.vue'),\n },\n {\n path: 'customer',\n component: () => import('./views/customer/index.vue'),\n },\n {\n path: 'users',\n component: () => import('./views/users/index.vue'),\n },\n {\n path: 'system',\n component: () => import('./views/system/index.vue'),\n },\n {\n path: 'chat_record',\n component: () => import('./views/record/index.vue')\n },\n ]\n },\n {\n path: '/login',\n name: 'login',\n component: () => import('./views/auth/login.vue')\n },\n {path:'*',redirect: \"/index\"},\n ]\n})\n","import axios from 'axios'\nimport router from '../router'\nexport default {\n // 获取用户信息\n ON_GET_ME(context){\n var pathname = location.pathname\n axios.get('/admin/me')\n .then(response => {\n context.commit(\"onIsLogin\", true)\n context.commit(\"onChangeAdminInfo\", response.data.data)\n if(location.pathname == '/login' || location.hash.indexOf(\"#/login\") != -1){\n router.push({ path: '/index'})\n }\n })\n .catch(error => {\n console.log(error.response)\n context.commit(\"onIsLogin\", false)\n if(pathname != '/login'){\n router.push({ path: '/login'})\n }\n });\n },\n // 获取上传配置\n ON_GET_UPLOAD_TOKEN(context){\n axios.get('/public/secret')\n .then(response => {\n context.commit('onChangeUploadToken', response.data.data)\n })\n },\n // 获取平台配置数据\n ON_GET_PLATFORM_CONFIG(context){\n axios.get('/platform/list')\n .then(response => {\n context.commit('onChangePlatformConfig', response.data.data)\n })\n },\n // 获取systemInfo\n ON_GET_SYSTEM(context){\n axios.get('/system')\n .then(response => {\n context.commit('onChangeSystemInfo', response.data.data)\n document.title = response.data.data.title\n })\n },\n // 获取companyInfo\n ON_GET_COMPANY(context){\n axios.get('/public/company')\n .then(response => {\n context.commit('onChangeCompanyInfo', response.data.data)\n })\n },\n // 获取uploads/config\n ON_GET_UPLOADS_CONFIG(context){\n axios.get('/uploads/config')\n .then(response => {\n context.commit('onChangeUploadsConfigs', response.data.data)\n })\n },\n // 获取会话列表\n ON_GET_CONTACTS(context){\n axios.get('/contact/list')\n .then(response => {\n context.commit('onChangeContacts', response.data.data)\n })\n },\n // 一分钟上报一次我的活动\n ON_RUN_LAST_ACTiIVITY(){\n axios.get('/public/activity/')\n },\n // 获取机器人列表\n ON_GET_ROBOTS(context){\n axios.get('/robot/list')\n .then(response => {\n context.commit('onChangeRobos', response.data.data)\n })\n .catch(() => {\n this.loading = false\n });\n }\n}","export default {\n // 更新标题\n onChangeHeaserTitle(state, title){\n state.heaserTitle = title\n },\n // 更新平台配置数据\n onChangePlatformConfig(state, platformConfig){\n state.platformConfig = platformConfig\n },\n // 展开隐藏\n onChangeToggleAside(state, isShow){\n state.isShowAside = isShow\n },\n // 更新个人资料modal状态\n onChangeEditDialogFormVisible(state, isShow){\n state.editDialogFormVisible = isShow\n },\n // 更新个人密码modal状态\n onChangeEditPasswordDialogFormVisible(state, isShow){\n state.editPasswordDialogFormVisible = isShow\n },\n // 更新个人资料\n onChangeAdminInfo(state, adminInfo){\n state.adminInfo = adminInfo\n },\n // 更新上传token\n onChangeUploadToken(state, uploadToken){\n state.uploadToken = uploadToken\n },\n // 更新systemInfo\n onChangeSystemInfo(state, systemInfo){\n state.systemInfo = systemInfo\n },\n // 更新companyInfo\n onChangeCompanyInfo(state, companyInfo){\n state.companyInfo = companyInfo\n },\n // 更新uploadsConfigs\n onChangeUploadsConfigs(state, uploadsConfigs){\n state.uploadsConfigs = uploadsConfigs\n },\n // 更新mimcUser\n onChangeMimcUser(state, mimcUser){\n state.mimcUser = mimcUser\n },\n // 更新contacts\n onChangeContacts(state, contacts){\n state.contacts = contacts\n for(let index in contacts){\n var contact = contacts[index]\n if(state.seviceCurrentUser && contact.from_account == state.seviceCurrentUser.from_account){\n state.seviceCurrentUser = contact\n break\n }\n }\n },\n // 更新当前窗口服务谁\n onChangeSeviceCurrentUser(state, seviceCurrentUser){\n state.seviceCurrentUser = seviceCurrentUser\n },\n // 更新机器人列表\n onChangeRobos(state, robots){\n state.robots = robots\n },\n // 重置某些值\n onReset(state){\n state.seviceCurrentUser = null\n state.contacts = []\n state.mimcUser = null\n },\n // 更新聊天记录\n onChangeMessageRecord(state, messageRecord){\n state.messageRecord = messageRecord\n },\n // 是否是登陆状态\n onIsLogin(state, isLogin){\n state.isLogin = isLogin\n }\n}","export default {\n // 获取个人信息\n adminInfo(state){\n return state.adminInfo || {}\n },\n // 是否是登录状态\n isLogin(state){\n return state.isLogin\n },\n // 获取头像\n avatar(state){\n if(state.adminInfo && state.adminInfo.avatar != \"\"){\n return state.adminInfo.avatar\n }else{\n return ''\n }\n },\n // 获取上传mode\n uploadMod(state){\n return state.uploadToken.mode || -1\n }, \n // 获取昵称\n nickname(state){\n if(state.adminInfo && state.adminInfo.nickname != \"\"){\n return state.adminInfo.nickname\n }else{\n return '未设置昵称'\n }\n },\n // 获取上传配置文件\n uploadToken(state){\n return state.uploadToken\n },\n // 获取平台配置数据\n platformConfig(state){\n return state.platformConfig\n },\n // 获取systemInfo\n systemInfo(state){\n return state.systemInfo\n },\n // 获取companyInfo\n companyInfo(state){\n return state.companyInfo\n },\n // 获取uploadsConfigs\n uploadsConfigs(state){\n return state.uploadsConfigs\n },\n // 获取会话列表\n contacts(state){\n return state.contacts|| []\n },\n // 获取当前窗口服务谁\n seviceCurrentUser(state){\n return state.seviceCurrentUser || {}\n },\n // 获取机器人\n robots(state){\n return state.robots || []\n },\n // 聊天信息\n messageRecord(state){\n return state.messageRecord || {list:[]}\n },\n // 新消息总数\n readCount(state){\n var count = 0\n for(let i =0; i<state.contacts.length; i++) {\n count = count + state.contacts[i].read\n }\n return count\n },\n // 工作台背景颜色\n workbenchBgColor(state){\n return state.workbenchBgColor\n },\n}","export default {\n adminInfo: null, // 个人信息\n heaserTitle: \"首页\", // header标题\n isShowAside: true, // 控制左侧栏显示隐藏\n editDialogFormVisible: false, // 控制修改个人资料modal\n isLogin: false, // 是否已登录状态\n editPasswordDialogFormVisible: false, // 控制修改密码modal\n uploadToken: null, // 上传签名数据\n platformConfig: [], // 平台数据\n systemInfo: {}, // 系统信息\n companyInfo: {}, // 公司信息\n uploadsConfigs: [], // 可配置上传参数\n mimcUser: null, // mimc用户对象\n contacts: [], // 会话列表\n robots: [], // 机器人列表\n seviceCurrentUser: null,// 当前窗口服务谁\n messageRecord: { // 当前聊天面板聊天消息记录\n list: []\n },\n avatar: \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAD7tJREFUeAHtXV1sHMUdn9m7s50P59NxbBI7McH5IHz5A8g5OHFTJECUIlWFVkIFCdI+8dYHqOARBKjqG08tIIHEA7QvlCJAShPHxnYAO6aiKE0s5DZpcBJiFOqEOLZvp//f3q1zd7673b2dnZ21b6TT7u3O/L9+O/Of7+FsEYTx8fGa0xOTrVwYOwQT9GM7OGP1pFotY6JWMG5duXWlJ0xMMcaneOZK8aYozQVKc5LinBTcPNncuH6spaVlOurmIZ2iF44OjewilA7Q70cETAcp0SyEMGRqwjk3ifZpoj3CODtCv8P7kx0nZPJQQSsSAA8PD9ddmTEeZqZ5gIx+gAzToMI4BXicI4MdZoZxeEWV+V5nZ+fFAnG0eqQtwGNjY9UTF6Yeopz5OOPifiFYQifLcc5mmeAfUU5/q7G+9v3W1tZrOslny6IdwL0Do3dyYT5FOfUX5C3X2ILqfeWXyJDvCG683rO37XOdZNUG4P6h0Z5UynyOQL1XJwN5l4UfisWMF7uTbb3e08pPETrAvUPHH6DqzPNUFHfJVy88ilR0DwqDv9CTbP8wPCmorRAW8/6h4btTJn+VCdEZlgxK+HI+HDPE093Jzk+V8MtjohzgwcGv1s2I6ZeJ8UHKtcr55+mv5C/lZqojsteqeM2zXV27v1PCNMNEmYE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oz4++P2siXoE9o2divNkc9ba0/OKnVsH2aInTNd0znLblvcV6jS74+Y3ZLyPW4U102ajOuE8gltSvmFI7Yru0SQpm+yZJRdmbsl28DEySDyUpBbT616RUU82qPeRYhg3S7RJ/G9Gt1ySDLcjwUHmFKLq/4UcPzVTs5WC+lNl6vh5v6noXHD9F9txFBzIuO5JwfVUfCa/gRxPpVVC3krZ9uiNGri6o9/UXiDjYMBgR4UduMwnk20kIT6hVCUnLv1NCMUux00g4VACoAVACoAVACoA//2Q==\",\n workbenchBgColor: \"#646b6f\" // 工作台背景颜色\n}","import Vue from 'vue'\nimport Vuex from 'vuex'\nimport actions from './actions'\nimport mutations from './mutations'\nimport getters from './getters'\nimport state from './state'\nVue.use(Vuex)\nexport default new Vuex.Store({\n state: state,\n getters: getters,\n mutations: mutations,\n actions: actions\n})","var map = {\n\t\"./af\": \"2bfb\",\n\t\"./af.js\": \"2bfb\",\n\t\"./ar\": \"8e73\",\n\t\"./ar-dz\": \"a356\",\n\t\"./ar-dz.js\": \"a356\",\n\t\"./ar-kw\": \"423e\",\n\t\"./ar-kw.js\": \"423e\",\n\t\"./ar-ly\": \"1cfd\",\n\t\"./ar-ly.js\": \"1cfd\",\n\t\"./ar-ma\": \"0a84\",\n\t\"./ar-ma.js\": \"0a84\",\n\t\"./ar-sa\": \"8230\",\n\t\"./ar-sa.js\": \"8230\",\n\t\"./ar-tn\": \"6d83\",\n\t\"./ar-tn.js\": \"6d83\",\n\t\"./ar.js\": \"8e73\",\n\t\"./az\": \"485c\",\n\t\"./az.js\": \"485c\",\n\t\"./be\": \"1fc1\",\n\t\"./be.js\": \"1fc1\",\n\t\"./bg\": \"84aa\",\n\t\"./bg.js\": \"84aa\",\n\t\"./bm\": \"a7fa\",\n\t\"./bm.js\": \"a7fa\",\n\t\"./bn\": \"9043\",\n\t\"./bn.js\": \"9043\",\n\t\"./bo\": \"d26a\",\n\t\"./bo.js\": \"d26a\",\n\t\"./br\": \"6887\",\n\t\"./br.js\": \"6887\",\n\t\"./bs\": \"2554\",\n\t\"./bs.js\": \"2554\",\n\t\"./ca\": \"d716\",\n\t\"./ca.js\": \"d716\",\n\t\"./cs\": \"3c0d\",\n\t\"./cs.js\": \"3c0d\",\n\t\"./cv\": \"03ec\",\n\t\"./cv.js\": \"03ec\",\n\t\"./cy\": \"9797\",\n\t\"./cy.js\": \"9797\",\n\t\"./da\": \"0f14\",\n\t\"./da.js\": \"0f14\",\n\t\"./de\": \"b469\",\n\t\"./de-at\": \"b3eb\",\n\t\"./de-at.js\": \"b3eb\",\n\t\"./de-ch\": \"bb71\",\n\t\"./de-ch.js\": \"bb71\",\n\t\"./de.js\": \"b469\",\n\t\"./dv\": \"598a\",\n\t\"./dv.js\": \"598a\",\n\t\"./el\": \"8d47\",\n\t\"./el.js\": \"8d47\",\n\t\"./en-SG\": \"cdab\",\n\t\"./en-SG.js\": \"cdab\",\n\t\"./en-au\": \"0e6b\",\n\t\"./en-au.js\": \"0e6b\",\n\t\"./en-ca\": \"3886\",\n\t\"./en-ca.js\": \"3886\",\n\t\"./en-gb\": \"39a6\",\n\t\"./en-gb.js\": \"39a6\",\n\t\"./en-ie\": \"e1d3\",\n\t\"./en-ie.js\": \"e1d3\",\n\t\"./en-il\": \"7333\",\n\t\"./en-il.js\": \"7333\",\n\t\"./en-nz\": \"6f50\",\n\t\"./en-nz.js\": \"6f50\",\n\t\"./eo\": \"65db\",\n\t\"./eo.js\": \"65db\",\n\t\"./es\": \"898b\",\n\t\"./es-do\": \"0a3c\",\n\t\"./es-do.js\": \"0a3c\",\n\t\"./es-us\": \"55c9\",\n\t\"./es-us.js\": \"55c9\",\n\t\"./es.js\": \"898b\",\n\t\"./et\": \"ec18\",\n\t\"./et.js\": \"ec18\",\n\t\"./eu\": \"0ff2\",\n\t\"./eu.js\": \"0ff2\",\n\t\"./fa\": \"8df4\",\n\t\"./fa.js\": \"8df4\",\n\t\"./fi\": \"81e9\",\n\t\"./fi.js\": \"81e9\",\n\t\"./fo\": \"0721\",\n\t\"./fo.js\": \"0721\",\n\t\"./fr\": \"9f26\",\n\t\"./fr-ca\": \"d9f8\",\n\t\"./fr-ca.js\": \"d9f8\",\n\t\"./fr-ch\": \"0e49\",\n\t\"./fr-ch.js\": \"0e49\",\n\t\"./fr.js\": \"9f26\",\n\t\"./fy\": \"7118\",\n\t\"./fy.js\": \"7118\",\n\t\"./ga\": \"5120\",\n\t\"./ga.js\": \"5120\",\n\t\"./gd\": \"f6b4\",\n\t\"./gd.js\": \"f6b4\",\n\t\"./gl\": \"8840\",\n\t\"./gl.js\": \"8840\",\n\t\"./gom-latn\": \"0caa\",\n\t\"./gom-latn.js\": \"0caa\",\n\t\"./gu\": \"e0c5\",\n\t\"./gu.js\": \"e0c5\",\n\t\"./he\": \"c7aa\",\n\t\"./he.js\": \"c7aa\",\n\t\"./hi\": \"dc4d\",\n\t\"./hi.js\": \"dc4d\",\n\t\"./hr\": \"4ba9\",\n\t\"./hr.js\": \"4ba9\",\n\t\"./hu\": \"5b14\",\n\t\"./hu.js\": \"5b14\",\n\t\"./hy-am\": \"d6b6\",\n\t\"./hy-am.js\": \"d6b6\",\n\t\"./id\": \"5038\",\n\t\"./id.js\": \"5038\",\n\t\"./is\": \"0558\",\n\t\"./is.js\": \"0558\",\n\t\"./it\": \"6e98\",\n\t\"./it-ch\": \"6f12\",\n\t\"./it-ch.js\": \"6f12\",\n\t\"./it.js\": \"6e98\",\n\t\"./ja\": \"079e\",\n\t\"./ja.js\": \"079e\",\n\t\"./jv\": \"b540\",\n\t\"./jv.js\": \"b540\",\n\t\"./ka\": \"201b\",\n\t\"./ka.js\": \"201b\",\n\t\"./kk\": \"6d79\",\n\t\"./kk.js\": \"6d79\",\n\t\"./km\": \"e81d\",\n\t\"./km.js\": \"e81d\",\n\t\"./kn\": \"3e92\",\n\t\"./kn.js\": \"3e92\",\n\t\"./ko\": \"22f8\",\n\t\"./ko.js\": \"22f8\",\n\t\"./ku\": \"2421\",\n\t\"./ku.js\": \"2421\",\n\t\"./ky\": \"9609\",\n\t\"./ky.js\": \"9609\",\n\t\"./lb\": \"440c\",\n\t\"./lb.js\": \"440c\",\n\t\"./lo\": \"b29d\",\n\t\"./lo.js\": \"b29d\",\n\t\"./lt\": \"26f9\",\n\t\"./lt.js\": \"26f9\",\n\t\"./lv\": \"b97c\",\n\t\"./lv.js\": \"b97c\",\n\t\"./me\": \"293c\",\n\t\"./me.js\": \"293c\",\n\t\"./mi\": \"688b\",\n\t\"./mi.js\": \"688b\",\n\t\"./mk\": \"6909\",\n\t\"./mk.js\": \"6909\",\n\t\"./ml\": \"02fb\",\n\t\"./ml.js\": \"02fb\",\n\t\"./mn\": \"958b\",\n\t\"./mn.js\": \"958b\",\n\t\"./mr\": \"39bd\",\n\t\"./mr.js\": \"39bd\",\n\t\"./ms\": \"ebe4\",\n\t\"./ms-my\": \"6403\",\n\t\"./ms-my.js\": \"6403\",\n\t\"./ms.js\": \"ebe4\",\n\t\"./mt\": \"1b45\",\n\t\"./mt.js\": \"1b45\",\n\t\"./my\": \"8689\",\n\t\"./my.js\": \"8689\",\n\t\"./nb\": \"6ce3\",\n\t\"./nb.js\": \"6ce3\",\n\t\"./ne\": \"3a39\",\n\t\"./ne.js\": \"3a39\",\n\t\"./nl\": \"facd\",\n\t\"./nl-be\": \"db29\",\n\t\"./nl-be.js\": \"db29\",\n\t\"./nl.js\": \"facd\",\n\t\"./nn\": \"b84c\",\n\t\"./nn.js\": \"b84c\",\n\t\"./pa-in\": \"f3ff\",\n\t\"./pa-in.js\": \"f3ff\",\n\t\"./pl\": \"8d57\",\n\t\"./pl.js\": \"8d57\",\n\t\"./pt\": \"f260\",\n\t\"./pt-br\": \"d2d4\",\n\t\"./pt-br.js\": \"d2d4\",\n\t\"./pt.js\": \"f260\",\n\t\"./ro\": \"972c\",\n\t\"./ro.js\": \"972c\",\n\t\"./ru\": \"957c\",\n\t\"./ru.js\": \"957c\",\n\t\"./sd\": \"6784\",\n\t\"./sd.js\": \"6784\",\n\t\"./se\": \"ffff\",\n\t\"./se.js\": \"ffff\",\n\t\"./si\": \"eda5\",\n\t\"./si.js\": \"eda5\",\n\t\"./sk\": \"7be6\",\n\t\"./sk.js\": \"7be6\",\n\t\"./sl\": \"8155\",\n\t\"./sl.js\": \"8155\",\n\t\"./sq\": \"c8f3\",\n\t\"./sq.js\": \"c8f3\",\n\t\"./sr\": \"cf1e\",\n\t\"./sr-cyrl\": \"13e9\",\n\t\"./sr-cyrl.js\": \"13e9\",\n\t\"./sr.js\": \"cf1e\",\n\t\"./ss\": \"52bd\",\n\t\"./ss.js\": \"52bd\",\n\t\"./sv\": \"5fbd\",\n\t\"./sv.js\": \"5fbd\",\n\t\"./sw\": \"74dc\",\n\t\"./sw.js\": \"74dc\",\n\t\"./ta\": \"3de5\",\n\t\"./ta.js\": \"3de5\",\n\t\"./te\": \"5cbb\",\n\t\"./te.js\": \"5cbb\",\n\t\"./tet\": \"576c\",\n\t\"./tet.js\": \"576c\",\n\t\"./tg\": \"3b1b\",\n\t\"./tg.js\": \"3b1b\",\n\t\"./th\": \"10e8\",\n\t\"./th.js\": \"10e8\",\n\t\"./tl-ph\": \"0f38\",\n\t\"./tl-ph.js\": \"0f38\",\n\t\"./tlh\": \"cf75\",\n\t\"./tlh.js\": \"cf75\",\n\t\"./tr\": \"0e81\",\n\t\"./tr.js\": \"0e81\",\n\t\"./tzl\": \"cf51\",\n\t\"./tzl.js\": \"cf51\",\n\t\"./tzm\": \"c109\",\n\t\"./tzm-latn\": \"b53d\",\n\t\"./tzm-latn.js\": \"b53d\",\n\t\"./tzm.js\": \"c109\",\n\t\"./ug-cn\": \"6117\",\n\t\"./ug-cn.js\": \"6117\",\n\t\"./uk\": \"ada2\",\n\t\"./uk.js\": \"ada2\",\n\t\"./ur\": \"5294\",\n\t\"./ur.js\": \"5294\",\n\t\"./uz\": \"2e8c\",\n\t\"./uz-latn\": \"010e\",\n\t\"./uz-latn.js\": \"010e\",\n\t\"./uz.js\": \"2e8c\",\n\t\"./vi\": \"2921\",\n\t\"./vi.js\": \"2921\",\n\t\"./x-pseudo\": \"fd7e\",\n\t\"./x-pseudo.js\": \"fd7e\",\n\t\"./yo\": \"7f33\",\n\t\"./yo.js\": \"7f33\",\n\t\"./zh-cn\": \"5c3a\",\n\t\"./zh-cn.js\": \"5c3a\",\n\t\"./zh-hk\": \"49ab\",\n\t\"./zh-hk.js\": \"49ab\",\n\t\"./zh-tw\": \"90ea\",\n\t\"./zh-tw.js\": \"90ea\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"4678\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('router-view')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div id=\"app\">\n <router-view/>\n </div>\n</template>\n<script>\nimport axios from \"axios\";\nimport Push from \"push.js\";\nexport default {\n created(){\n this.$store.dispatch('ON_GET_ME')\n },\n methods: {\n // app init\n appInit(){\n if(!this.adminInfo){\n setTimeout(()=> this.appInit(), 50)\n return\n }\n this.$store.dispatch('ON_GET_UPLOAD_TOKEN')\n this.$store.dispatch('ON_GET_PLATFORM_CONFIG')\n this.$store.dispatch('ON_GET_SYSTEM')\n this.$store.dispatch('ON_GET_COMPANY')\n this.$store.dispatch('ON_GET_UPLOADS_CONFIG')\n this.$store.dispatch('ON_GET_ROBOTS')\n this.$store.dispatch('ON_GET_CONTACTS')\n\n // 一分钟上报一次我的活动时间\n this.upLastActivity()\n\n // 获取会话表\n this.getContacts()\n\n // Mimc 初始化\n this.initMimc()\n\n },\n // 获取会话列表\n getContacts(){\n if(this.adminInfo){\n this.$store.dispatch('ON_GET_CONTACTS')\n if(this.seviceCurrentUser && this.$store.getters.contacts.length > 0){\n this.$store.getters.contacts.map(i => {\n if(i.from_account == this.seviceCurrentUser.from_account){\n this.$store.commit(\"onChangeSeviceCurrentUser\", i)\n }\n })\n }\n }\n },\n // 上报最后活动时间\n upLastActivity(){\n this.$store.dispatch('ON_RUN_LAST_ACTiIVITY')\n setTimeout(() => this.upLastActivity(), 1000*60)\n },\n // 初始化Mimc\n initMimc(){\n var self = this\n var adminInfo = this.$store.state.adminInfo\n if(!adminInfo){\n setTimeout(() => this.initMimc(), 1000)\n }else{\n self.$mimcInstance.init({\n type: 1,\n account_id: adminInfo.id\n }, (isSuccess) => {\n // 初始化完成\n if(isSuccess){\n // 监听登录状态\n this.$mimcInstance.addEventListener(\"statusChange\", (status) => {\n if(!status && self.$store.getters.adminInfo.online != 0){\n self.watchLogin()\n }\n })\n // 监听连接断开\n this.$mimcInstance.addEventListener(\"disconnect\", () => {\n console.log(\"链接断开!\")\n if(self.$store.getters.adminInfo.online != 0){\n self.watchLogin()\n }\n })\n self.watchLogin()\n }else{\n self.initMimc()\n }\n })\n }\n },\n // 更新用户状态\n changeUserOnlineStatus(online){\n // 更新状态\n axios.put('/admin/online/' + online)\n .then(() => {\n this.$store.dispatch('ON_GET_ME')\n if(online == 0){\n this.$message.info(\"当前状态为离线\")\n }\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n },\n // 监听用户是否有上线登录\n watchLogin(){\n try{\n var self = this\n if(self.$store.state.user != null) return;\n if(self.$store.getters.adminInfo.online == 1 || self.$store.getters.adminInfo.online == 2){\n self.$mimcInstance.login(()=>{\n self.changeUserOnlineStatus(self.$store.getters.adminInfo.online)\n self.$store.dispatch('ON_RUN_LAST_ACTiIVITY')\n self.$store.dispatch('ON_GET_CONTACTS')\n self.$store.commit(\"onChangeMimcUser\", self.$mimcInstance.user)\n })\n }else if(self.$store.getters.adminInfo.online != 0){\n setTimeout(() => self.watchLogin(), 1000)\n }\n }catch(err){\n setTimeout(() => this.watchLogin(), 1000)\n }\n },\n },\n mounted(){\n window.addEventListener(\"resize\", () => {\n this.$store.commit(\"onChangeToggleAside\", true)\n if(document.body.clientWidth < 1000){\n this.$store.commit(\"onChangeToggleAside\", false)\n }\n }, false)\n // 判断通知权限\n if(!Push.Permission.has()){\n Push.Permission.request(function(){}, function(){})\n }\n },\n computed: {\n adminInfo(){\n return this.$store.getters.adminInfo\n },\n seviceCurrentUser(){\n return this.$store.getters.seviceCurrentUser\n },\n messageRecord(){\n return this.$store.getters.messageRecord\n },\n isLogin(){\n return this.$store.getters.isLogin\n }\n },\n watch: {\n \"$route\"(){\n if(!/^\\/workbench(\\/\\d+)?$/i.test(this.$route.path)){\n // 监听消息\n this.$mimcInstance.addEventListener(\"receiveP2PMsg\", (message) => {\n var nowTime = parseInt((new Date().getTime() +\"\").substr(0, 10))\n message.timestamp = parseInt((message.timestamp +\"\").substr(0, 10))\n if(nowTime - message.timestamp >= 60) return\n // 处理用户列表\n if(message.biz_type == \"contacts\"){\n var contacts = JSON.parse(message.payload)\n // console.log(contacts)\n this.$store.commit('onChangeContacts', contacts)\n return\n }\n // 判断是否是握手消息\n if(message.biz_type == \"handshake\"){\n this.$mimcInstance.sendMessage(\"text\", message.from_account, this.adminInfo.auto_reply)\n return\n }\n var newMessageRecord = JSON.parse(JSON.stringify(this.messageRecord))\n newMessageRecord.list.push(message)\n this.$store.commit(\"onChangeMessageRecord\", newMessageRecord)\n\n // 推送消息\n if(message.biz_type == \"contacts\" || message.biz_type == \"pong\" || message.biz_type == \"welcome\" || message.biz_type == \"cancel\" || message.biz_type == \"handshake\" || message.biz_type == \"end\" || message.biz_type == \"timeout\") return\n if(!Push.Permission.has()) return\n Push.create(\"收到一条新消息\", {\n body: message.payload,\n icon: this.$store.state.pushIcon,\n timeout: 5000,\n onClick: () => {\n this.$router.push({ path: '/workbench?uid=' + message.from_account})\n window.focus();\n }\n });\n\n })\n }\n },\n isLogin(){\n console.log(\"当前是登录状态\")\n this.appInit()\n }\n \n }\n}\n</script>\n<style lang=\"stylus\">\n#app{\n display flex\n height 100vh\n}\n.el-tabs__content,.el-tab-pane{\n height 100%\n padding 0\n}\n.el-tabs__content{\n padding 0 !important\n}\nbutton{\n background-color #fff\n}\n.pswp{\n z-index 3000!important\n}\n</style>\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=1fa6f8e6&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var moment = require('moment');\n// eslint-disable-next-line no-undef\nvar Helps = {};\nHelps.install = function (Vue, options) {\n Vue.prototype.$myMethod = function(){\n console.log(options)\n }\n // 获取单个平台数据\n Vue.prototype.$getPlatformItem = function(index){\n var platformConfigItem\n var platformConfig = this.$store.getters.platformConfig\n for(let i = 0; i< platformConfig.length; i++){\n if(platformConfig[i].id == index){\n platformConfigItem = platformConfig[i]\n }\n }\n return platformConfigItem || {title: \"未知\"}\n }\n // 格式化日期\n Vue.prototype.$formatUnixDate = function(unix, format = \"YYYY-MM-DD HH:mm:ss\"){\n return moment(parseInt(unix + '000')).format(format)\n }\n // 格式化日期(相对日期)\n Vue.prototype.$formatFromNowDate = function(unix){\n if(moment().format(\"YYYYMMDD\") == moment(parseInt(unix + '000')).format(\"YYYYMMDD\")){\n return moment(parseInt(unix + '000')).format(\"HH:mm\")\n }\n return moment(parseInt(unix + '000')).format(\"YYYY-MM-DD HH:mm\")\n }\n Vue.prototype.$robotNickname = function(id){\n var nickname\n var robots = this.$store.getters.robots\n for(let i = 0; i< robots.length; i++){\n if(robots[i].id == id){\n nickname = robots[i].nickname\n }\n }\n return nickname\n }\n\n}\nexport default Helps;","import axios from \"axios\";\nimport { Message } from 'element-ui';\nvar MimcPlugin = {};\nMimcPlugin.install = function (Vue, options) {\n\n console.log(options)\n\n // 获取单个平台数据\n Vue.MimcInstance = Vue.prototype.$mimcInstance = {\n user: null,\n robot: null,\n fetchMIMCTokenResult: null,\n // 初始化\n init(request, callback){\n this.getRobot()\n this.fetchMIMCToken(request, callback)\n },\n _receiveP2PMsgCallback: null,\n _statusChangeCallback: null,\n _serverAckCallback: null,\n _disconnectCallback: null,\n // 获取token\n // request 登录参数\n // 登录回调 callback bool 是否成功\n fetchMIMCToken(request, callback){\n axios.post('/public/register', request)\n .then(response => {\n this.fetchMIMCTokenResult = response.data.data.token\n if(callback) callback(true)\n console.log(\"MIMC初始化成功\")\n })\n .catch((error)=>{\n if(callback) callback(false)\n Message.error(\"mimc初始化失败,请刷新重试,\" + error.response.data.message)\n })\n },\n // 获取机器人\n getRobot(){\n axios.get('/public/robot/1')\n .then(response => {\n this.robot = response.data.data\n })\n .catch((error)=>{\n Message.error(\"mimc初始化失败,请刷新重试\" + error.response.data.message)\n })\n },\n // pushMessage\n pushMessage(payload){\n axios.post('/public/message/push', {\n \"msgType\": \"NORMAL_MSG\",\n \"payload\": payload\n })\n .then(response => {\n console.log(response.data)\n if(response.data['code'] != 200){\n setTimeout(()=> this.pushMessage(payload), 300)\n }\n })\n .catch(()=>{\n setTimeout(()=> this.pushMessage(payload), 300)\n })\n },\n // 登录\n login(callback){\n try{\n var fetchMIMCTokenResult = this.fetchMIMCTokenResult\n if(!fetchMIMCTokenResult) return\n // eslint-disable-next-line no-undef\n this.user = new MIMCUser(fetchMIMCTokenResult.data.appId, fetchMIMCTokenResult.data.appAccount, \"666\");\n this.user.registerP2PMsgHandler((message)=>{\n var msg = JSON.parse(window.Base64.decode(message.getPayload()));\n if(this._receiveP2PMsgCallback) this._receiveP2PMsgCallback(msg)\n });\n this.user.registerFetchToken(() => {\n return fetchMIMCTokenResult;\n });\n this.user.registerStatusChange((bindResult, errType, errReason, errDesc)=>{\n if(this._statusChangeCallback) this._statusChangeCallback(bindResult, errType, errReason, errDesc)\n });\n this.user.registerServerAckHandler((packetId, sequence, timeStamp, errMsg)=>{\n if(this._serverAckCallback) this._serverAckCallback(packetId, sequence, timeStamp, errMsg)\n });\n this.user.registerDisconnHandler(() => {\n if(this._disconnectCallback) this._disconnectCallback()\n });\n this.user.login();\n window.mimcInstance = this\n if(callback) callback()\n console.log(\"MIMC登录成功\")\n }catch(e){\n console.log(e)\n console.log(\"MIMC登录失败\")\n // 重新尝试\n setTimeout(()=>{\n this.login()\n }, 1000)\n }\n },\n // 退出\n logout(){\n if(this.user){\n this.user.logout()\n this.user = null\n }\n },\n // 注册监听器\n addEventListener(type, callback){\n switch(type){\n case \"receiveP2PMsg\":\n this._receiveP2PMsgCallback = callback\n break\n case \"statusChange\":\n this._statusChangeCallback = callback\n break\n case \"serverAck\":\n this._serverAckCallback = callback\n break\n case \"disconnect\":\n this._disconnectCallback = callback\n break\n }\n },\n // 发送消息\n sendMessage(type, toAccount, payload = \"\", transferAccount = 0){\n if(!this.user){\n Message.error(\"服务异常,请刷新重试!\")\n return\n }\n const messageJson = {\n \"from_account\": parseInt(this.fetchMIMCTokenResult.data.appAccount),\n \"to_account\": parseInt(toAccount),\n \"biz_type\": type,\n \"version\": \"0\",\n \"timestamp\": parseInt((new Date().getTime() + \" \").substr(0, 10)),\n \"key\": new Date().getTime(),\n \"read\": 0,\n \"transfer_account\": parseInt(transferAccount),\n \"payload\": payload + ''\n }\n // console.log(\"发送消息\")\n // console.log(messageJson)\n const jsonBase64Msg = window.Base64.encode(JSON.stringify(messageJson))\n try {\n \n // 过滤不入库\n if(!(type == \"contacts\" || type == \"pong\" || type == \"welcome\" || type == \"handshake\")){\n // 发送给机器人入库\n // const intoMessageJson = {\n // \"biz_type\": \"into\",\n // \"payload\": jsonBase64Msg\n // }\n // const intoJsonBase64Msg = window.Base64.encode(JSON.stringify(intoMessageJson))\n // this.user.sendMessage(this.robot.id.toString(), intoJsonBase64Msg);\n\n // 消息入库\n this.pushMessage(window.Base64.encode(jsonBase64Msg))\n }\n\n setTimeout(()=>{\n // 发送给对方\n this.user.sendMessage(toAccount.toString(), jsonBase64Msg);\n },200)\n \n } catch (err) {\n console.log(\"sendMessage fail, err=\" + err);\n }\n return messageJson\n },\n // 创建本地消息\n createLocalMessage(type, toAccount, payload = \"\", transferAccount = 0){\n const messageJson = {\n \"from_account\": parseInt(this.fetchMIMCTokenResult.data.appAccount),\n \"to_account\": parseInt(toAccount),\n \"biz_type\": type,\n \"version\": \"0\",\n \"timestamp\": parseInt((new Date().getTime() + \" \").substr(0, 10)),\n \"key\": new Date().getTime(),\n \"read\": 0,\n \"transfer_account\": parseInt(transferAccount),\n \"payload\": payload + ''\n }\n return messageJson\n }\n \n\n }\n}\nexport default MimcPlugin;","export default {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY年MM月DD日',\n LLL: 'YYYY年MM月DD日Ah点mm分',\n LLLL: 'YYYY年MM月DD日ddddAh点mm分',\n l: 'YYYY-M-D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm'\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' ||\n meridiem === '上午') {\n return hour;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n } else {\n // '中午'\n return hour >= 11 ? hour : hour + 12;\n }\n },\n meridiem: function (hour, minute) {\n const hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天]LT',\n nextDay: '[明天]LT',\n nextWeek: '[下]ddddLT',\n lastDay: '[昨天]LT',\n lastWeek: '[上]ddddLT',\n sameElse: 'L'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|周)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '周';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s内',\n past: '%s前',\n s: '几秒',\n ss: '%d秒',\n m: '1分钟',\n mm: '%d分钟',\n h: '1小时',\n hh: '%d小时',\n d: '1天',\n dd: '%d天',\n M: '1个月',\n MM: '%d个月',\n y: '1年',\n yy: '%d年'\n },\n week: {\n // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n dow: 1, // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n}","import Vue from 'vue'\nimport ElementUI from 'element-ui'\nimport App from './App.vue'\nimport router from './router'\nimport store from './store'\nimport 'element-ui/lib/theme-chalk/index.css'\nimport preview from 'vue-photo-preview'\nimport 'vue-photo-preview/dist/skin.css'\nimport Helps from \"./plugins/help\"\nimport MimcPlugin from \"./plugins/mimc\"\nimport momentLocal from './resource/moment_locale'\nvar moment = require('moment');\nmoment.locale(\"zh-cn\", momentLocal)\n\nimport axios from 'axios'\n\naxios.defaults.baseURL = '/v1'\n\n// 添加请求拦截器\naxios.interceptors.request.use((config) => {\n var token = localStorage.getItem(\"Authorization\")\n config.headers['Authorization'] = token || \"\"\n return config;\n}, (error) => {\n return Promise.reject(error);\n});\n\n// 添加响应拦截器\naxios.interceptors.response.use((response) => {\n return response;\n}, (error) => {\n // 登录失效了\n if(error.response.status == 401) {\n localStorage.clear()\n store.commit(\"onChangeAdminInfo\", null)\n if(store.state.mimcUser) store.state.mimcUser.logout()\n router.push(\"/login\")\n }\n return Promise.reject(error);\n});\n\nvar options={\n fullscreenEl:false, //关闭全屏按钮\n}\nVue.use(preview, options)\nVue.use(ElementUI)\nVue.use(Helps)\nVue.use(MimcPlugin)\n\nVue.config.productionTip = false\nnew Vue({\n router,\n store,\n render: h => h(App)\n}).$mount('#app')\n","import mod from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=stylus&\"; export default mod; export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=stylus&\""],"sourceRoot":""}
\ No newline at end of file
(function(e){function t(t){for(var a,o,r=t[0],i=t[1],u=t[2],l=0,f=[];l<r.length;l++)o=r[l],Object.prototype.hasOwnProperty.call(s,o)&&s[o]&&f.push(s[o][0]),s[o]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);d&&d(t);while(f.length)f.shift()();return c.push.apply(c,u||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],a=!0,o=1;o<n.length;o++){var r=n[o];0!==s[r]&&(a=!1)}a&&(c.splice(t--,1),e=i(i.s=n[0]))}return e}var a={},o={app:0},s={app:0},c=[];function r(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-0673cf5f":"add337a2","chunk-08473d3a":"230bbeeb","chunk-1b20b679":"382e3755","chunk-343c8d41":"f0041881","chunk-081fd645":"cbf6b703","chunk-3a5ae4b9":"95fb80dc","chunk-43693859":"d666587e","chunk-4bc425fc":"0bbe4f9b","chunk-688d1b8e":"764bf305","chunk-cabbc79c":"8d69ea53","chunk-d086e898":"fd9639b1","chunk-4d213a0b":"fb158f44"}[e]+".js"}function i(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n={"chunk-0673cf5f":1,"chunk-08473d3a":1,"chunk-1b20b679":1,"chunk-081fd645":1,"chunk-3a5ae4b9":1,"chunk-43693859":1,"chunk-4bc425fc":1,"chunk-688d1b8e":1,"chunk-cabbc79c":1,"chunk-d086e898":1,"chunk-4d213a0b":1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=new Promise((function(t,n){for(var a="css/"+({}[e]||e)+"."+{"chunk-0673cf5f":"70fac712","chunk-08473d3a":"77daa9fe","chunk-1b20b679":"bbe54d80","chunk-343c8d41":"31d6cfe0","chunk-081fd645":"c5547932","chunk-3a5ae4b9":"36eb5b7d","chunk-43693859":"1243ef48","chunk-4bc425fc":"a028419f","chunk-688d1b8e":"fd85133d","chunk-cabbc79c":"036672e3","chunk-d086e898":"6a96c7a1","chunk-4d213a0b":"e2ea152d"}[e]+".css",s=i.p+a,c=document.getElementsByTagName("link"),r=0;r<c.length;r++){var u=c[r],l=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(l===a||l===s))return t()}var f=document.getElementsByTagName("style");for(r=0;r<f.length;r++){u=f[r],l=u.getAttribute("data-href");if(l===a||l===s)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var a=t&&t.target&&t.target.src||s,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=a,delete o[e],d.parentNode.removeChild(d),n(c)},d.href=s;var m=document.getElementsByTagName("head")[0];m.appendChild(d)})).then((function(){o[e]=0})));var a=s[e];if(0!==a)if(a)t.push(a[2]);else{var c=new Promise((function(t,n){a=s[e]=[t,n]}));t.push(a[2]=c);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=r(e);var f=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(d);var n=s[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",f.name="ChunkLoadError",f.type=a,f.request=o,n[1](f)}s[e]=void 0}};var d=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],l=u.push.bind(u);u.push=t,u=u.slice();for(var f=0;f<u.length;f++)t(u[f]);var d=l;c.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"41cb":function(e,t,n){"use strict";var a=n("2b0e"),o=n("8c4f");a["default"].use(o["a"]),t["a"]=new o["a"]({base:"",routes:[{path:"/",name:"home",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-d086e898")]).then(n.bind(null,"1e4b"))},redirect:"/index",children:[{path:"index",component:function(){return n.e("chunk-0673cf5f").then(n.bind(null,"7abe"))}},{path:"workbench",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-081fd645")]).then(n.bind(null,"29e5"))}},{path:"knowledge",component:function(){return n.e("chunk-1b20b679").then(n.bind(null,"7a26"))}},{path:"robot",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-4bc425fc")]).then(n.bind(null,"2157"))}},{path:"customer",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-688d1b8e")]).then(n.bind(null,"aedf"))}},{path:"users",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-43693859")]).then(n.bind(null,"4468"))}},{path:"system",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-3a5ae4b9")]).then(n.bind(null,"26b0"))}},{path:"chat_record",component:function(){return n.e("chunk-08473d3a").then(n.bind(null,"caae"))}},{path:"workorder",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-cabbc79c")]).then(n.bind(null,"df5f"))}}]},{path:"/login",name:"login",component:function(){return n.e("chunk-4d213a0b").then(n.bind(null,"bd01"))}},{path:"*",redirect:"/index"}]})},4360:function(e,t,n){"use strict";var a=n("2b0e"),o=n("2f62"),s=(n("57e7"),n("bc3a")),c=n.n(s),r=n("41cb"),i={ON_GET_ME:function(e){var t=location.pathname;c.a.get("/admin/me").then((function(t){e.commit("onIsLogin",!0),e.commit("onChangeAdminInfo",t.data.data),"/login"!=location.pathname&&-1==location.hash.indexOf("#/login")||r["a"].push({path:"/index"})})).catch((function(n){console.log(n.response),e.commit("onIsLogin",!1),"/login"!=t&&r["a"].push({path:"/login"})}))},ON_GET_UPLOAD_TOKEN:function(e){c.a.get("/public/secret").then((function(t){e.commit("onChangeUploadToken",t.data.data)}))},ON_GET_PLATFORM_CONFIG:function(e){c.a.get("/platform/list").then((function(t){e.commit("onChangePlatformConfig",t.data.data)}))},ON_GET_SYSTEM:function(e){c.a.get("/system").then((function(t){e.commit("onChangeSystemInfo",t.data.data),document.title=t.data.data.title}))},ON_GET_COMPANY:function(e){c.a.get("/public/company").then((function(t){e.commit("onChangeCompanyInfo",t.data.data)}))},ON_GET_UPLOADS_CONFIG:function(e){c.a.get("/uploads/config").then((function(t){e.commit("onChangeUploadsConfigs",t.data.data)}))},ON_GET_CONTACTS:function(e){c.a.get("/contact/list").then((function(t){e.commit("onChangeContacts",t.data.data)}))},ON_RUN_LAST_ACTiIVITY:function(){c.a.get("/public/activity/")},ON_GET_ROBOTS:function(e){var t=this;c.a.get("/robot/list").then((function(t){e.commit("onChangeRobos",t.data.data)})).catch((function(){t.loading=!1}))}},u={onChangeHeaserTitle:function(e,t){e.heaserTitle=t},onChangePlatformConfig:function(e,t){e.platformConfig=t},onChangeToggleAside:function(e,t){e.isShowAside=t},onChangeEditDialogFormVisible:function(e,t){e.editDialogFormVisible=t},onChangeEditPasswordDialogFormVisible:function(e,t){e.editPasswordDialogFormVisible=t},onChangeAdminInfo:function(e,t){e.adminInfo=t},onChangeUploadToken:function(e,t){e.uploadToken=t},onChangeSystemInfo:function(e,t){e.systemInfo=t},onChangeCompanyInfo:function(e,t){e.companyInfo=t},onChangeUploadsConfigs:function(e,t){e.uploadsConfigs=t},onChangeMimcUser:function(e,t){e.mimcUser=t},onChangeContacts:function(e,t){for(var n in e.contacts=t,t){var a=t[n];if(e.seviceCurrentUser&&a.from_account==e.seviceCurrentUser.from_account){e.seviceCurrentUser=a;break}}},onChangeSeviceCurrentUser:function(e,t){e.seviceCurrentUser=t},onChangeRobos:function(e,t){e.robots=t},onReset:function(e){e.seviceCurrentUser=null,e.contacts=[],e.mimcUser=null},onChangeMessageRecord:function(e,t){e.messageRecord=t},onIsLogin:function(e,t){e.isLogin=t}},l={adminInfo:function(e){return e.adminInfo||{}},isLogin:function(e){return e.isLogin},avatar:function(e){return e.adminInfo&&""!=e.adminInfo.avatar?e.adminInfo.avatar:""},uploadMod:function(e){return e.uploadToken.mode||-1},nickname:function(e){return e.adminInfo&&""!=e.adminInfo.nickname?e.adminInfo.nickname:"未设置昵称"},uploadToken:function(e){return e.uploadToken},platformConfig:function(e){return e.platformConfig},systemInfo:function(e){return e.systemInfo},companyInfo:function(e){return e.companyInfo},uploadsConfigs:function(e){return e.uploadsConfigs},contacts:function(e){return e.contacts||[]},seviceCurrentUser:function(e){return e.seviceCurrentUser||{}},robots:function(e){return e.robots||[]},messageRecord:function(e){return e.messageRecord||{list:[]}},readCount:function(e){for(var t=0,n=0;n<e.contacts.length;n++)t+=e.contacts[n].read;return t},workbenchBgColor:function(e){return e.workbenchBgColor}},f={adminInfo:null,heaserTitle:"首页",isShowAside:!0,editDialogFormVisible:!1,isLogin:!1,editPasswordDialogFormVisible:!1,uploadToken:null,platformConfig:[],systemInfo:{},companyInfo:{},uploadsConfigs:[],mimcUser:null,contacts:[],robots:[],seviceCurrentUser:null,messageRecord:{list:[]},avatar:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAD7tJREFUeAHtXV1sHMUdn9m7s50P59NxbBI7McH5IHz5A8g5OHFTJECUIlWFVkIFCdI+8dYHqOARBKjqG08tIIHEA7QvlCJAShPHxnYAO6aiKE0s5DZpcBJiFOqEOLZvp//f3q1zd7673b2dnZ21b6TT7u3O/L9+O/Of7+FsEYTx8fGa0xOTrVwYOwQT9GM7OGP1pFotY6JWMG5duXWlJ0xMMcaneOZK8aYozQVKc5LinBTcPNncuH6spaVlOurmIZ2iF44OjewilA7Q70cETAcp0SyEMGRqwjk3ifZpoj3CODtCv8P7kx0nZPJQQSsSAA8PD9ddmTEeZqZ5gIx+gAzToMI4BXicI4MdZoZxeEWV+V5nZ+fFAnG0eqQtwGNjY9UTF6Yeopz5OOPifiFYQifLcc5mmeAfUU5/q7G+9v3W1tZrOslny6IdwL0Do3dyYT5FOfUX5C3X2ILqfeWXyJDvCG683rO37XOdZNUG4P6h0Z5UynyOQL1XJwN5l4UfisWMF7uTbb3e08pPETrAvUPHH6DqzPNUFHfJVy88ilR0DwqDv9CTbP8wPCmorRAW8/6h4btTJn+VCdEZlgxK+HI+HDPE093Jzk+V8MtjohzgwcGv1s2I6ZeJ8UHKtcr55+mv5C/lZqojsteqeM2zXV27v1PCNMNEmYEBZt/Q6JNCmK9Q+3W9SiW14cXZJOfGM/uSbW8AdBVyKQH46GdfNrHZmbcJ5G4VSunOg8DtZ4mqx/bfdeuZoGUNHOC+geEHTcbeXLK5thiClJup6+2JfXs7PygWRcZzqd172QJRbo0f/WTk99QP/H4F3GzLZO7JTcE2lo3IVgViSHkUSA4eHPxi06xI/ZlAT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/gRxPpVVC3krZ9uiNGri6o9/UXiDjYMBgR4UduMwnk20kIT6hVCUnLv1NCMUux00g4VACoAVACoAVACoA//2Q==",workbenchBgColor:"#646b6f"};a["default"].use(o["a"]);t["a"]=new o["a"].Store({state:f,getters:l,mutations:u,actions:i})},4678:function(e,t,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-SG":"cdab","./en-SG.js":"cdab","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-nz":"6f50","./en-nz.js":"6f50","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-tw":"90ea","./zh-tw.js":"90ea"};function o(e){var t=s(e);return n(t)}function s(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=s,e.exports=o,o.id="4678"},"56d7":function(e,t,n){"use strict";n.r(t);n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),o=n("5c96"),s=n.n(o),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},r=[],i=(n("6d67"),n("bc3a")),u=n.n(i),l=n("b730"),f=n.n(l),d={created:function(){this.$store.dispatch("ON_GET_ME")},methods:{appInit:function(){var e=this;this.adminInfo?(this.$store.dispatch("ON_GET_UPLOAD_TOKEN"),this.$store.dispatch("ON_GET_PLATFORM_CONFIG"),this.$store.dispatch("ON_GET_SYSTEM"),this.$store.dispatch("ON_GET_COMPANY"),this.$store.dispatch("ON_GET_UPLOADS_CONFIG"),this.$store.dispatch("ON_GET_ROBOTS"),this.$store.dispatch("ON_GET_CONTACTS"),this.upLastActivity(),setInterval((function(){return e.getContacts()}),2e3),this.initMimc()):setTimeout((function(){return e.appInit()}),50)},getContacts:function(){var e=this;this.adminInfo&&(this.$store.dispatch("ON_GET_CONTACTS"),this.seviceCurrentUser&&this.$store.getters.contacts.length>0&&this.$store.getters.contacts.map((function(t){t.from_account==e.seviceCurrentUser.from_account&&e.$store.commit("onChangeSeviceCurrentUser",t)})))},upLastActivity:function(){var e=this;this.$store.dispatch("ON_RUN_LAST_ACTiIVITY"),setTimeout((function(){return e.upLastActivity()}),6e4)},initMimc:function(){var e=this,t=this,n=this.$store.state.adminInfo;n?t.$mimcInstance.init({type:1,account_id:n.id},(function(n){n?(e.$mimcInstance.addEventListener("statusChange",(function(e){e||0==t.$store.getters.adminInfo.online||t.watchLogin()})),e.$mimcInstance.addEventListener("disconnect",(function(){console.log("链接断开!"),0!=t.$store.getters.adminInfo.online&&t.watchLogin()})),t.watchLogin()):t.initMimc()})):setTimeout((function(){return e.initMimc()}),1e3)},changeUserOnlineStatus:function(e){var t=this;u.a.put("/admin/online/"+e).then((function(){t.$store.dispatch("ON_GET_ME"),0==e&&t.$message.info("当前状态为离线")})).catch((function(e){t.$message.error(e.response.data.message)}))},watchLogin:function(){var e=this;try{var t=this;if(null!=t.$store.state.user)return;1==t.$store.getters.adminInfo.online||2==t.$store.getters.adminInfo.online?t.$mimcInstance.login((function(){t.changeUserOnlineStatus(t.$store.getters.adminInfo.online),t.$store.dispatch("ON_RUN_LAST_ACTiIVITY"),t.$store.dispatch("ON_GET_CONTACTS"),t.$store.commit("onChangeMimcUser",t.$mimcInstance.user)})):0!=t.$store.getters.adminInfo.online&&setTimeout((function(){return t.watchLogin()}),1e3)}catch(n){setTimeout((function(){return e.watchLogin()}),1e3)}}},mounted:function(){var e=this;window.addEventListener("resize",(function(){e.$store.commit("onChangeToggleAside",!0),document.body.clientWidth<1e3&&e.$store.commit("onChangeToggleAside",!1)}),!1),f.a.Permission.has()||f.a.Permission.request((function(){}),(function(){}))},computed:{adminInfo:function(){return this.$store.getters.adminInfo},seviceCurrentUser:function(){return this.$store.getters.seviceCurrentUser},messageRecord:function(){return this.$store.getters.messageRecord},isLogin:function(){return this.$store.getters.isLogin}},watch:{$route:function(){var e=this;/^\/workbench(\/\d+)?$/i.test(this.$route.path)||this.$mimcInstance.addEventListener("receiveP2PMsg",(function(t){var n=parseInt(((new Date).getTime()+"").substr(0,10));if(t.timestamp=parseInt((t.timestamp+"").substr(0,10)),!(n-t.timestamp>=60))if("contacts"!=t.biz_type)if("handshake"!=t.biz_type){var a=JSON.parse(JSON.stringify(e.messageRecord));a.list.push(t),e.$store.commit("onChangeMessageRecord",a),"contacts"!=t.biz_type&&"pong"!=t.biz_type&&"welcome"!=t.biz_type&&"cancel"!=t.biz_type&&"handshake"!=t.biz_type&&"end"!=t.biz_type&&"timeout"!=t.biz_type&&f.a.Permission.has()&&f.a.create("收到一条新消息",{body:t.payload,icon:e.$store.state.pushIcon,timeout:5e3,onClick:function(){e.$router.push({path:"/workbench?uid="+t.from_account}),window.focus()}})}else e.$mimcInstance.sendMessage("text",t.from_account,e.adminInfo.auto_reply);else{var o=JSON.parse(t.payload);e.$store.commit("onChangeContacts",o)}}))},isLogin:function(){console.log("当前是登录状态"),this.appInit()}}},m=d,b=(n("7faf"),n("2877")),h=Object(b["a"])(m,c,r,!1,null,null,null),p=h.exports,A=n("41cb"),k=n("4360"),y=(n("0fae"),n("d1d4")),g=n.n(y),j=(n("394c"),n("c1df")),T={install:function(e,t){e.prototype.$myMethod=function(){console.log(t)},e.prototype.$getPlatformItem=function(e){for(var t,n=this.$store.getters.platformConfig,a=0;a<n.length;a++)n[a].id==e&&(t=n[a]);return t||{title:"未知"}},e.prototype.$formatUnixDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return j(parseInt(e+"000")).format(t)},e.prototype.$formatDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return j(parseInt(e+"000")).format(t)},e.prototype.$formatFromNowDate=function(e){return j().format("YYYYMMDD")==j(parseInt(e+"000")).format("YYYYMMDD")?j(parseInt(e+"000")).format("HH:mm"):j(parseInt(e+"000")).format("YYYY-MM-DD HH:mm")},e.prototype.$robotNickname=function(e){for(var t,n=this.$store.getters.robots,a=0;a<n.length;a++)n[a].id==e&&(t=n[a].nickname);return t}}},U=T,C=(n("6b54"),n("87b3"),{install:function(e,t){console.log(t),e.MimcInstance=e.prototype.$mimcInstance={user:null,robot:null,fetchMIMCTokenResult:null,init:function(e,t){this.getRobot(),this.fetchMIMCToken(e,t)},_receiveP2PMsgCallback:null,_statusChangeCallback:null,_serverAckCallback:null,_disconnectCallback:null,fetchMIMCToken:function(e,t){var n=this;u.a.post("/public/register",e).then((function(e){n.fetchMIMCTokenResult=e.data.data.token,t&&t(!0),console.log("MIMC初始化成功")})).catch((function(e){t&&t(!1),o["Message"].error("mimc初始化失败,请刷新重试,"+e.response.data.message)}))},getRobot:function(){var e=this;u.a.get("/public/robot/1").then((function(t){e.robot=t.data.data})).catch((function(e){o["Message"].error("mimc初始化失败,请刷新重试"+e.response.data.message)}))},pushMessage:function(e){var t=this;u.a.post("/public/message/push",{msgType:"NORMAL_MSG",payload:e}).then((function(n){console.log(n.data),200!=n.data["code"]&&setTimeout((function(){return t.pushMessage(e)}),300)})).catch((function(){setTimeout((function(){return t.pushMessage(e)}),300)}))},login:function(e){var t=this;try{var n=this.fetchMIMCTokenResult;if(!n)return;this.user=new MIMCUser(n.data.appId,n.data.appAccount,"666"),this.user.registerP2PMsgHandler((function(e){var n=JSON.parse(window.Base64.decode(e.getPayload()));t._receiveP2PMsgCallback&&t._receiveP2PMsgCallback(n)})),this.user.registerFetchToken((function(){return n})),this.user.registerStatusChange((function(e,n,a,o){t._statusChangeCallback&&t._statusChangeCallback(e,n,a,o)})),this.user.registerServerAckHandler((function(e,n,a,o){t._serverAckCallback&&t._serverAckCallback(e,n,a,o)})),this.user.registerDisconnHandler((function(){t._disconnectCallback&&t._disconnectCallback()})),this.user.login(),window.mimcInstance=this,e&&e(),console.log("MIMC登录成功")}catch(a){console.log(a),console.log("MIMC登录失败"),setTimeout((function(){t.login()}),1e3)}},logout:function(){this.user&&(this.user.logout(),this.user=null)},addEventListener:function(e,t){switch(e){case"receiveP2PMsg":this._receiveP2PMsgCallback=t;break;case"statusChange":this._statusChangeCallback=t;break;case"serverAck":this._serverAckCallback=t;break;case"disconnect":this._disconnectCallback=t;break}},sendMessage:function(e,t){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(this.user){var c={from_account:parseInt(this.fetchMIMCTokenResult.data.appAccount),to_account:parseInt(t),biz_type:e,version:"0",timestamp:parseInt(((new Date).getTime()+" ").substr(0,10)),key:(new Date).getTime(),read:0,transfer_account:parseInt(s),payload:a+""},r=window.Base64.encode(JSON.stringify(c));try{"contacts"!=e&&"pong"!=e&&"welcome"!=e&&"handshake"!=e&&this.pushMessage(window.Base64.encode(r)),setTimeout((function(){n.user.sendMessage(t.toString(),r)}),200)}catch(i){console.log("sendMessage fail, err="+i)}return c}o["Message"].error("服务异常,请刷新重试!")},createLocalMessage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o={from_account:parseInt(this.fetchMIMCTokenResult.data.appAccount),to_account:parseInt(t),biz_type:e,version:"0",timestamp:parseInt(((new Date).getTime()+" ").substr(0,10)),key:(new Date).getTime(),read:0,transfer_account:parseInt(a),payload:n+""};return o}}}}),v=C,O=(n("28a5"),{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY年MM月DD日",LLL:"YYYY年MM月DD日Ah点mm分",LLLL:"YYYY年MM月DD日ddddAh点mm分",l:"YYYY-M-D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d秒",m:"1分钟",mm:"%d分钟",h:"1小时",hh:"%d小时",d:"1天",dd:"%d天",M:"1个月",MM:"%d个月",y:"1年",yy:"%d年"},week:{dow:1,doy:4}}),I=n("c1df");I.locale("zh-cn",O),u.a.defaults.baseURL="/api",u.a.interceptors.request.use((function(e){var t=localStorage.getItem("Authorization");return e.headers["Authorization"]=t||"",e}),(function(e){return Promise.reject(e)})),u.a.interceptors.response.use((function(e){return e}),(function(e){return 401==e.response.status&&(localStorage.clear(),k["a"].commit("onChangeAdminInfo",null),k["a"].state.mimcUser&&k["a"].state.mimcUser.logout(),A["a"].push("/login")),Promise.reject(e)}));var L={fullscreenEl:!1};a["default"].use(g.a,L),a["default"].use(s.a),a["default"].use(U),a["default"].use(v),a["default"].config.productionTip=!1,new a["default"]({router:A["a"],store:k["a"],render:function(e){return e(p)}}).$mount("#app")},"7faf":function(e,t,n){"use strict";var a=n("8fba"),o=n.n(a);o.a},"8fba":function(e,t,n){}});
//# sourceMappingURL=app.bb3d4191.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/router.js","webpack:///./src/store/actions.js","webpack:///./src/store/mutations.js","webpack:///./src/store/getters.js","webpack:///./src/store/state.js","webpack:///./src/store/index.js","webpack:///./node_modules/moment/locale sync ^\\.\\/.*$","webpack:///./src/App.vue?f042","webpack:///src/App.vue","webpack:///./src/App.vue?2e55","webpack:///./src/App.vue?bff9","webpack:///./src/plugins/help.js","webpack:///./src/plugins/mimc.js","webpack:///./src/resource/moment_locale.js","webpack:///./src/main.js","webpack:///./src/App.vue?2c4a"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","jsonpScriptSrc","p","exports","module","l","e","promises","cssChunks","Promise","resolve","reject","href","fullhref","existingLinkTags","document","getElementsByTagName","tag","dataHref","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","code","parentNode","removeChild","head","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","error","clearTimeout","chunk","errorType","realSrc","message","name","undefined","setTimeout","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice","Vue","use","Router","base","process","routes","path","component","redirect","children","ON_GET_ME","context","pathname","location","axios","response","commit","hash","indexOf","router","catch","log","ON_GET_UPLOAD_TOKEN","ON_GET_PLATFORM_CONFIG","ON_GET_SYSTEM","title","ON_GET_COMPANY","ON_GET_UPLOADS_CONFIG","ON_GET_CONTACTS","ON_RUN_LAST_ACTiIVITY","ON_GET_ROBOTS","loading","onChangeHeaserTitle","state","heaserTitle","onChangePlatformConfig","platformConfig","onChangeToggleAside","isShow","isShowAside","onChangeEditDialogFormVisible","editDialogFormVisible","onChangeEditPasswordDialogFormVisible","editPasswordDialogFormVisible","onChangeAdminInfo","adminInfo","onChangeUploadToken","uploadToken","onChangeSystemInfo","systemInfo","onChangeCompanyInfo","companyInfo","onChangeUploadsConfigs","uploadsConfigs","onChangeMimcUser","mimcUser","onChangeContacts","contacts","index","contact","seviceCurrentUser","from_account","onChangeSeviceCurrentUser","onChangeRobos","robots","onReset","onChangeMessageRecord","messageRecord","onIsLogin","isLogin","avatar","uploadMod","nickname","list","readCount","count","read","workbenchBgColor","pushIcon","Vuex","Store","getters","mutations","actions","map","webpackContext","req","id","webpackContextResolve","keys","_vm","this","_h","$createElement","_c","_self","attrs","staticRenderFns","created","$store","dispatch","methods","appInit","upLastActivity","setInterval","initMimc","getContacts","changeUserOnlineStatus","watchLogin","self","$mimcInstance","login","online","user","mounted","addEventListener","computed","watch","nowTime","parseInt","Date","getTime","timestamp","newMessageRecord","JSON","parse","stringify","payload","moment","require","Helps","options","$myMethod","$getPlatformItem","platformConfigItem","$formatUnixDate","unix","format","$formatDate","$formatFromNowDate","$robotNickname","MimcPlugin","MimcInstance","robot","fetchMIMCTokenResult","init","callback","getRobot","fetchMIMCToken","_receiveP2PMsgCallback","_statusChangeCallback","_serverAckCallback","_disconnectCallback","post","token","Message","pushMessage","MIMCUser","appId","appAccount","registerP2PMsgHandler","msg","Base64","decode","getPayload","registerFetchToken","registerStatusChange","bindResult","errType","errReason","errDesc","registerServerAckHandler","packetId","sequence","timeStamp","errMsg","registerDisconnHandler","mimcInstance","logout","sendMessage","toAccount","transferAccount","messageJson","substr","jsonBase64Msg","encode","toString","createLocalMessage","months","split","monthsShort","weekdays","weekdaysShort","weekdaysMin","longDateFormat","LT","LTS","L","LL","LLL","LLLL","ll","lll","llll","meridiemParse","meridiemHour","hour","meridiem","minute","hm","calendar","sameDay","nextDay","nextWeek","lastDay","lastWeek","sameElse","dayOfMonthOrdinalParse","ordinal","number","period","relativeTime","future","past","ss","mm","h","hh","dd","M","MM","y","yy","week","dow","doy","locale","momentLocal","defaults","baseURL","interceptors","config","localStorage","getItem","headers","status","clear","store","fullscreenEl","preview","ElementUI","productionTip","render","App","$mount"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAG/Be,GAAqBA,EAAoBhB,GAE5C,MAAMO,EAASC,OACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,G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Q,iBAEjC,OADAF,EAAOG,QAAQ,iBAAmB1F,GAAS,GACpCuF,KACN,SAACvR,GACF,OAAOtC,QAAQE,OAAOoC,MAIxBoD,IAAMkO,aAAajO,SAASd,KAAI,SAACc,GAC/B,OAAOA,KACN,SAACrD,GAQF,OAN4B,KAAzBA,EAAMqD,SAASsO,SAChBH,aAAaI,QACbC,OAAMvO,OAAO,oBAAqB,MAC/BuO,OAAMtN,MAAMsB,UAAUgM,OAAMtN,MAAMsB,SAAS2H,SAC9C/J,OAAOxH,KAAK,WAEPyB,QAAQE,OAAOoC,MAGxB,IAAIyK,EAAQ,CACVqH,cAAa,GAEfxP,aAAIC,IAAIwP,IAAStH,GACjBnI,aAAIC,IAAIyP,KACR1P,aAAIC,IAAIiI,GACRlI,aAAIC,IAAI4I,GAER7I,aAAIiP,OAAOU,eAAgB,EAC3B,IAAI3P,aAAI,CACNmB,cACAoO,aACAK,OAAQ,SAAA1B,GAAC,OAAIA,EAAE2B,MACdC,OAAO,S,oCCtDV,yBAAqf,EAAG,G","file":"js/app.bb3d4191.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t\"app\": 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"js/\" + ({}[chunkId]||chunkId) + \".\" + {\"chunk-0673cf5f\":\"add337a2\",\"chunk-08473d3a\":\"230bbeeb\",\"chunk-1b20b679\":\"382e3755\",\"chunk-343c8d41\":\"f0041881\",\"chunk-081fd645\":\"cbf6b703\",\"chunk-3a5ae4b9\":\"95fb80dc\",\"chunk-43693859\":\"d666587e\",\"chunk-4bc425fc\":\"0bbe4f9b\",\"chunk-688d1b8e\":\"764bf305\",\"chunk-cabbc79c\":\"8d69ea53\",\"chunk-d086e898\":\"fd9639b1\",\"chunk-4d213a0b\":\"fb158f44\"}[chunkId] + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"chunk-0673cf5f\":1,\"chunk-08473d3a\":1,\"chunk-1b20b679\":1,\"chunk-081fd645\":1,\"chunk-3a5ae4b9\":1,\"chunk-43693859\":1,\"chunk-4bc425fc\":1,\"chunk-688d1b8e\":1,\"chunk-cabbc79c\":1,\"chunk-d086e898\":1,\"chunk-4d213a0b\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"css/\" + ({}[chunkId]||chunkId) + \".\" + {\"chunk-0673cf5f\":\"70fac712\",\"chunk-08473d3a\":\"77daa9fe\",\"chunk-1b20b679\":\"bbe54d80\",\"chunk-343c8d41\":\"31d6cfe0\",\"chunk-081fd645\":\"c5547932\",\"chunk-3a5ae4b9\":\"36eb5b7d\",\"chunk-43693859\":\"1243ef48\",\"chunk-4bc425fc\":\"a028419f\",\"chunk-688d1b8e\":\"fd85133d\",\"chunk-cabbc79c\":\"036672e3\",\"chunk-d086e898\":\"6a96c7a1\",\"chunk-4d213a0b\":\"e2ea152d\"}[chunkId] + \".css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import Vue from 'vue'\nimport Router from 'vue-router'\n\nVue.use(Router)\n\nexport default new Router({\n // mode: 'history',\n base: process.env.BASE_URL,\n routes: [\n {\n path: '/',\n name: 'home',\n component: () => import('./views/index.vue'),\n redirect: \"/index\",\n children: [\n {\n path: 'index',\n component: () => import('./views/home/index.vue'),\n },\n {\n path: 'workbench',\n component: () => import('./views/workbench/index.vue'),\n },\n {\n path: 'knowledge',\n component: () => import('./views/knowledge/index.vue'),\n },\n {\n path: 'robot',\n component: () => import('./views/robot/index.vue'),\n },\n {\n path: 'customer',\n component: () => import('./views/customer/index.vue'),\n },\n {\n path: 'users',\n component: () => import('./views/users/index.vue'),\n },\n {\n path: 'system',\n component: () => import('./views/system/index.vue'),\n },\n {\n path: 'chat_record',\n component: () => import('./views/record/index.vue')\n },\n {\n path: 'workorder',\n component: () => import('./views/workorder/index.vue')\n }\n ]\n },\n {\n path: '/login',\n name: 'login',\n component: () => import('./views/auth/login.vue')\n },\n {path:'*',redirect: \"/index\"},\n ]\n})\n","import axios from 'axios'\nimport router from '../router'\nexport default {\n // 获取用户信息\n ON_GET_ME(context){\n var pathname = location.pathname\n axios.get('/admin/me')\n .then(response => {\n context.commit(\"onIsLogin\", true)\n context.commit(\"onChangeAdminInfo\", response.data.data)\n if(location.pathname == '/login' || location.hash.indexOf(\"#/login\") != -1){\n router.push({ path: '/index'})\n }\n })\n .catch(error => {\n console.log(error.response)\n context.commit(\"onIsLogin\", false)\n if(pathname != '/login'){\n router.push({ path: '/login'})\n }\n });\n },\n // 获取上传配置\n ON_GET_UPLOAD_TOKEN(context){\n axios.get('/public/secret')\n .then(response => {\n context.commit('onChangeUploadToken', response.data.data)\n })\n },\n // 获取平台配置数据\n ON_GET_PLATFORM_CONFIG(context){\n axios.get('/platform/list')\n .then(response => {\n context.commit('onChangePlatformConfig', response.data.data)\n })\n },\n // 获取systemInfo\n ON_GET_SYSTEM(context){\n axios.get('/system')\n .then(response => {\n context.commit('onChangeSystemInfo', response.data.data)\n document.title = response.data.data.title\n })\n },\n // 获取companyInfo\n ON_GET_COMPANY(context){\n axios.get('/public/company')\n .then(response => {\n context.commit('onChangeCompanyInfo', response.data.data)\n })\n },\n // 获取uploads/config\n ON_GET_UPLOADS_CONFIG(context){\n axios.get('/uploads/config')\n .then(response => {\n context.commit('onChangeUploadsConfigs', response.data.data)\n })\n },\n // 获取会话列表\n ON_GET_CONTACTS(context){\n axios.get('/contact/list')\n .then(response => {\n context.commit('onChangeContacts', response.data.data)\n })\n },\n // 一分钟上报一次我的活动\n ON_RUN_LAST_ACTiIVITY(){\n axios.get('/public/activity/')\n },\n // 获取机器人列表\n ON_GET_ROBOTS(context){\n axios.get('/robot/list')\n .then(response => {\n context.commit('onChangeRobos', response.data.data)\n })\n .catch(() => {\n this.loading = false\n });\n }\n}","export default {\n // 更新标题\n onChangeHeaserTitle(state, title){\n state.heaserTitle = title\n },\n // 更新平台配置数据\n onChangePlatformConfig(state, platformConfig){\n state.platformConfig = platformConfig\n },\n // 展开隐藏\n onChangeToggleAside(state, isShow){\n state.isShowAside = isShow\n },\n // 更新个人资料modal状态\n onChangeEditDialogFormVisible(state, isShow){\n state.editDialogFormVisible = isShow\n },\n // 更新个人密码modal状态\n onChangeEditPasswordDialogFormVisible(state, isShow){\n state.editPasswordDialogFormVisible = isShow\n },\n // 更新个人资料\n onChangeAdminInfo(state, adminInfo){\n state.adminInfo = adminInfo\n },\n // 更新上传token\n onChangeUploadToken(state, uploadToken){\n state.uploadToken = uploadToken\n },\n // 更新systemInfo\n onChangeSystemInfo(state, systemInfo){\n state.systemInfo = systemInfo\n },\n // 更新companyInfo\n onChangeCompanyInfo(state, companyInfo){\n state.companyInfo = companyInfo\n },\n // 更新uploadsConfigs\n onChangeUploadsConfigs(state, uploadsConfigs){\n state.uploadsConfigs = uploadsConfigs\n },\n // 更新mimcUser\n onChangeMimcUser(state, mimcUser){\n state.mimcUser = mimcUser\n },\n // 更新contacts\n onChangeContacts(state, contacts){\n state.contacts = contacts\n for(let index in contacts){\n var contact = contacts[index]\n if(state.seviceCurrentUser && contact.from_account == state.seviceCurrentUser.from_account){\n state.seviceCurrentUser = contact\n break\n }\n }\n },\n // 更新当前窗口服务谁\n onChangeSeviceCurrentUser(state, seviceCurrentUser){\n state.seviceCurrentUser = seviceCurrentUser\n },\n // 更新机器人列表\n onChangeRobos(state, robots){\n state.robots = robots\n },\n // 重置某些值\n onReset(state){\n state.seviceCurrentUser = null\n state.contacts = []\n state.mimcUser = null\n },\n // 更新聊天记录\n onChangeMessageRecord(state, messageRecord){\n state.messageRecord = messageRecord\n },\n // 是否是登陆状态\n onIsLogin(state, isLogin){\n state.isLogin = isLogin\n }\n}","export default {\n // 获取个人信息\n adminInfo(state){\n return state.adminInfo || {}\n },\n // 是否是登录状态\n isLogin(state){\n return state.isLogin\n },\n // 获取头像\n avatar(state){\n if(state.adminInfo && state.adminInfo.avatar != \"\"){\n return state.adminInfo.avatar\n }else{\n return ''\n }\n },\n // 获取上传mode\n uploadMod(state){\n return state.uploadToken.mode || -1\n }, \n // 获取昵称\n nickname(state){\n if(state.adminInfo && state.adminInfo.nickname != \"\"){\n return state.adminInfo.nickname\n }else{\n return '未设置昵称'\n }\n },\n // 获取上传配置文件\n uploadToken(state){\n return state.uploadToken\n },\n // 获取平台配置数据\n platformConfig(state){\n return state.platformConfig\n },\n // 获取systemInfo\n systemInfo(state){\n return state.systemInfo\n },\n // 获取companyInfo\n companyInfo(state){\n return state.companyInfo\n },\n // 获取uploadsConfigs\n uploadsConfigs(state){\n return state.uploadsConfigs\n },\n // 获取会话列表\n contacts(state){\n return state.contacts|| []\n },\n // 获取当前窗口服务谁\n seviceCurrentUser(state){\n return state.seviceCurrentUser || {}\n },\n // 获取机器人\n robots(state){\n return state.robots || []\n },\n // 聊天信息\n messageRecord(state){\n return state.messageRecord || {list:[]}\n },\n // 新消息总数\n readCount(state){\n var count = 0\n for(let i =0; i<state.contacts.length; i++) {\n count = count + state.contacts[i].read\n }\n return count\n },\n // 工作台背景颜色\n workbenchBgColor(state){\n return state.workbenchBgColor\n },\n}","export default {\n adminInfo: null, // 个人信息\n heaserTitle: \"首页\", // header标题\n isShowAside: true, // 控制左侧栏显示隐藏\n editDialogFormVisible: false, // 控制修改个人资料modal\n isLogin: false, // 是否已登录状态\n editPasswordDialogFormVisible: false, // 控制修改密码modal\n uploadToken: null, // 上传签名数据\n platformConfig: [], // 平台数据\n systemInfo: {}, // 系统信息\n companyInfo: {}, // 公司信息\n uploadsConfigs: [], // 可配置上传参数\n mimcUser: null, // mimc用户对象\n contacts: [], // 会话列表\n robots: [], // 机器人列表\n seviceCurrentUser: null,// 当前窗口服务谁\n messageRecord: { // 当前聊天面板聊天消息记录\n list: []\n },\n avatar: \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAD7tJREFUeAHtXV1sHMUdn9m7s50P59NxbBI7McH5IHz5A8g5OHFTJECUIlWFVkIFCdI+8dYHqOARBKjqG08tIIHEA7QvlCJAShPHxnYAO6aiKE0s5DZpcBJiFOqEOLZvp//f3q1zd7673b2dnZ21b6TT7u3O/L9+O/Of7+FsEYTx8fGa0xOTrVwYOwQT9GM7OGP1pFotY6JWMG5duXWlJ0xMMcaneOZK8a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K5ctE/dVzR81aePyco9J9UYeXw0Z+qvo/LwM4y+FyuJd8LIRlx1X9lShdCvwrHsmtqnIhYvSzn78Wyp+tEdUxABSDgFc6UAVcqQeArlQAFA5HhoFGqchUAaH3HHTj8Tk8rJTGx0VyW8eaWkk2/EeSfSaitvhWvUyenHnN9EabtXonxRJ3I6FDgRj2FG3mcdHzJ9dYuTyrl0h0XmbWNxaXWf5GqwYEODGbiw2UR47Qs202kJSB5hWU229Wa8YpLRD9IKKgBUAKgBUAKgBUAKgBUAKgBUAKgBqRFYkNKafbQ60rgptYCknzg0JtdUNlFSWjKhlulW25pK4oXj3T2sm7d/wACr/IRV6rkbYdO5m38RTPqltZUMl0h3CwSYT7ExHYCS0v1Kun81aFfKwf1LQy7ODsX0vUrk3ZO7IpPi4t8pHNTafEH5NVW45tL+4oz4++P2siXoE9o2divNkc9ba0/OKnVsH2aInTNd0znLblvcV6jS74+Y3ZLyPW4U102ajOuE8gltSvmFI7Yru0SQpm+yZJRdmbsl28DEySDyUpBbT616RUU82qPeRYhg3S7RJ/G9Gt1ySDLcjwUHmFKLq/4UcPzVTs5WC+lNl6vh5v6noXHD9F9txFBzIuO5JwfVUfCa/gRxPpVVC3krZ9uiNGri6o9/UXiDjYMBgR4UduMwnk20kIT6hVCUnLv1NCMUux00g4VACoAVACoAVACoA//2Q==\",\n workbenchBgColor: \"#646b6f\" // 工作台背景颜色\n}","import Vue from 'vue'\nimport Vuex from 'vuex'\nimport actions from './actions'\nimport mutations from './mutations'\nimport getters from './getters'\nimport state from './state'\nVue.use(Vuex)\nexport default new Vuex.Store({\n state: state,\n getters: getters,\n mutations: mutations,\n actions: actions\n})","var map = {\n\t\"./af\": \"2bfb\",\n\t\"./af.js\": \"2bfb\",\n\t\"./ar\": \"8e73\",\n\t\"./ar-dz\": \"a356\",\n\t\"./ar-dz.js\": \"a356\",\n\t\"./ar-kw\": \"423e\",\n\t\"./ar-kw.js\": \"423e\",\n\t\"./ar-ly\": \"1cfd\",\n\t\"./ar-ly.js\": \"1cfd\",\n\t\"./ar-ma\": \"0a84\",\n\t\"./ar-ma.js\": \"0a84\",\n\t\"./ar-sa\": \"8230\",\n\t\"./ar-sa.js\": \"8230\",\n\t\"./ar-tn\": \"6d83\",\n\t\"./ar-tn.js\": \"6d83\",\n\t\"./ar.js\": \"8e73\",\n\t\"./az\": \"485c\",\n\t\"./az.js\": \"485c\",\n\t\"./be\": \"1fc1\",\n\t\"./be.js\": \"1fc1\",\n\t\"./bg\": \"84aa\",\n\t\"./bg.js\": \"84aa\",\n\t\"./bm\": \"a7fa\",\n\t\"./bm.js\": \"a7fa\",\n\t\"./bn\": \"9043\",\n\t\"./bn.js\": \"9043\",\n\t\"./bo\": \"d26a\",\n\t\"./bo.js\": \"d26a\",\n\t\"./br\": \"6887\",\n\t\"./br.js\": \"6887\",\n\t\"./bs\": \"2554\",\n\t\"./bs.js\": \"2554\",\n\t\"./ca\": \"d716\",\n\t\"./ca.js\": \"d716\",\n\t\"./cs\": \"3c0d\",\n\t\"./cs.js\": \"3c0d\",\n\t\"./cv\": \"03ec\",\n\t\"./cv.js\": \"03ec\",\n\t\"./cy\": \"9797\",\n\t\"./cy.js\": \"9797\",\n\t\"./da\": \"0f14\",\n\t\"./da.js\": \"0f14\",\n\t\"./de\": \"b469\",\n\t\"./de-at\": \"b3eb\",\n\t\"./de-at.js\": \"b3eb\",\n\t\"./de-ch\": \"bb71\",\n\t\"./de-ch.js\": \"bb71\",\n\t\"./de.js\": \"b469\",\n\t\"./dv\": \"598a\",\n\t\"./dv.js\": \"598a\",\n\t\"./el\": \"8d47\",\n\t\"./el.js\": \"8d47\",\n\t\"./en-SG\": \"cdab\",\n\t\"./en-SG.js\": \"cdab\",\n\t\"./en-au\": \"0e6b\",\n\t\"./en-au.js\": \"0e6b\",\n\t\"./en-ca\": \"3886\",\n\t\"./en-ca.js\": \"3886\",\n\t\"./en-gb\": \"39a6\",\n\t\"./en-gb.js\": \"39a6\",\n\t\"./en-ie\": \"e1d3\",\n\t\"./en-ie.js\": \"e1d3\",\n\t\"./en-il\": \"7333\",\n\t\"./en-il.js\": \"7333\",\n\t\"./en-nz\": \"6f50\",\n\t\"./en-nz.js\": \"6f50\",\n\t\"./eo\": \"65db\",\n\t\"./eo.js\": \"65db\",\n\t\"./es\": \"898b\",\n\t\"./es-do\": \"0a3c\",\n\t\"./es-do.js\": \"0a3c\",\n\t\"./es-us\": \"55c9\",\n\t\"./es-us.js\": \"55c9\",\n\t\"./es.js\": \"898b\",\n\t\"./et\": \"ec18\",\n\t\"./et.js\": \"ec18\",\n\t\"./eu\": \"0ff2\",\n\t\"./eu.js\": \"0ff2\",\n\t\"./fa\": \"8df4\",\n\t\"./fa.js\": \"8df4\",\n\t\"./fi\": \"81e9\",\n\t\"./fi.js\": \"81e9\",\n\t\"./fo\": \"0721\",\n\t\"./fo.js\": \"0721\",\n\t\"./fr\": \"9f26\",\n\t\"./fr-ca\": \"d9f8\",\n\t\"./fr-ca.js\": \"d9f8\",\n\t\"./fr-ch\": \"0e49\",\n\t\"./fr-ch.js\": \"0e49\",\n\t\"./fr.js\": \"9f26\",\n\t\"./fy\": \"7118\",\n\t\"./fy.js\": \"7118\",\n\t\"./ga\": \"5120\",\n\t\"./ga.js\": \"5120\",\n\t\"./gd\": \"f6b4\",\n\t\"./gd.js\": \"f6b4\",\n\t\"./gl\": \"8840\",\n\t\"./gl.js\": \"8840\",\n\t\"./gom-latn\": \"0caa\",\n\t\"./gom-latn.js\": \"0caa\",\n\t\"./gu\": \"e0c5\",\n\t\"./gu.js\": \"e0c5\",\n\t\"./he\": \"c7aa\",\n\t\"./he.js\": \"c7aa\",\n\t\"./hi\": \"dc4d\",\n\t\"./hi.js\": \"dc4d\",\n\t\"./hr\": \"4ba9\",\n\t\"./hr.js\": \"4ba9\",\n\t\"./hu\": \"5b14\",\n\t\"./hu.js\": \"5b14\",\n\t\"./hy-am\": \"d6b6\",\n\t\"./hy-am.js\": \"d6b6\",\n\t\"./id\": \"5038\",\n\t\"./id.js\": \"5038\",\n\t\"./is\": \"0558\",\n\t\"./is.js\": \"0558\",\n\t\"./it\": \"6e98\",\n\t\"./it-ch\": \"6f12\",\n\t\"./it-ch.js\": \"6f12\",\n\t\"./it.js\": \"6e98\",\n\t\"./ja\": \"079e\",\n\t\"./ja.js\": \"079e\",\n\t\"./jv\": \"b540\",\n\t\"./jv.js\": \"b540\",\n\t\"./ka\": \"201b\",\n\t\"./ka.js\": \"201b\",\n\t\"./kk\": \"6d79\",\n\t\"./kk.js\": \"6d79\",\n\t\"./km\": \"e81d\",\n\t\"./km.js\": \"e81d\",\n\t\"./kn\": \"3e92\",\n\t\"./kn.js\": \"3e92\",\n\t\"./ko\": \"22f8\",\n\t\"./ko.js\": \"22f8\",\n\t\"./ku\": \"2421\",\n\t\"./ku.js\": \"2421\",\n\t\"./ky\": \"9609\",\n\t\"./ky.js\": \"9609\",\n\t\"./lb\": \"440c\",\n\t\"./lb.js\": \"440c\",\n\t\"./lo\": \"b29d\",\n\t\"./lo.js\": \"b29d\",\n\t\"./lt\": \"26f9\",\n\t\"./lt.js\": \"26f9\",\n\t\"./lv\": \"b97c\",\n\t\"./lv.js\": \"b97c\",\n\t\"./me\": \"293c\",\n\t\"./me.js\": \"293c\",\n\t\"./mi\": \"688b\",\n\t\"./mi.js\": \"688b\",\n\t\"./mk\": \"6909\",\n\t\"./mk.js\": \"6909\",\n\t\"./ml\": \"02fb\",\n\t\"./ml.js\": \"02fb\",\n\t\"./mn\": \"958b\",\n\t\"./mn.js\": \"958b\",\n\t\"./mr\": \"39bd\",\n\t\"./mr.js\": \"39bd\",\n\t\"./ms\": \"ebe4\",\n\t\"./ms-my\": \"6403\",\n\t\"./ms-my.js\": \"6403\",\n\t\"./ms.js\": \"ebe4\",\n\t\"./mt\": \"1b45\",\n\t\"./mt.js\": \"1b45\",\n\t\"./my\": \"8689\",\n\t\"./my.js\": \"8689\",\n\t\"./nb\": \"6ce3\",\n\t\"./nb.js\": \"6ce3\",\n\t\"./ne\": \"3a39\",\n\t\"./ne.js\": \"3a39\",\n\t\"./nl\": \"facd\",\n\t\"./nl-be\": \"db29\",\n\t\"./nl-be.js\": \"db29\",\n\t\"./nl.js\": \"facd\",\n\t\"./nn\": \"b84c\",\n\t\"./nn.js\": \"b84c\",\n\t\"./pa-in\": \"f3ff\",\n\t\"./pa-in.js\": \"f3ff\",\n\t\"./pl\": \"8d57\",\n\t\"./pl.js\": \"8d57\",\n\t\"./pt\": \"f260\",\n\t\"./pt-br\": \"d2d4\",\n\t\"./pt-br.js\": \"d2d4\",\n\t\"./pt.js\": \"f260\",\n\t\"./ro\": \"972c\",\n\t\"./ro.js\": \"972c\",\n\t\"./ru\": \"957c\",\n\t\"./ru.js\": \"957c\",\n\t\"./sd\": \"6784\",\n\t\"./sd.js\": \"6784\",\n\t\"./se\": \"ffff\",\n\t\"./se.js\": \"ffff\",\n\t\"./si\": \"eda5\",\n\t\"./si.js\": \"eda5\",\n\t\"./sk\": \"7be6\",\n\t\"./sk.js\": \"7be6\",\n\t\"./sl\": \"8155\",\n\t\"./sl.js\": \"8155\",\n\t\"./sq\": \"c8f3\",\n\t\"./sq.js\": \"c8f3\",\n\t\"./sr\": \"cf1e\",\n\t\"./sr-cyrl\": \"13e9\",\n\t\"./sr-cyrl.js\": \"13e9\",\n\t\"./sr.js\": \"cf1e\",\n\t\"./ss\": \"52bd\",\n\t\"./ss.js\": \"52bd\",\n\t\"./sv\": \"5fbd\",\n\t\"./sv.js\": \"5fbd\",\n\t\"./sw\": \"74dc\",\n\t\"./sw.js\": \"74dc\",\n\t\"./ta\": \"3de5\",\n\t\"./ta.js\": \"3de5\",\n\t\"./te\": \"5cbb\",\n\t\"./te.js\": \"5cbb\",\n\t\"./tet\": \"576c\",\n\t\"./tet.js\": \"576c\",\n\t\"./tg\": \"3b1b\",\n\t\"./tg.js\": \"3b1b\",\n\t\"./th\": \"10e8\",\n\t\"./th.js\": \"10e8\",\n\t\"./tl-ph\": \"0f38\",\n\t\"./tl-ph.js\": \"0f38\",\n\t\"./tlh\": \"cf75\",\n\t\"./tlh.js\": \"cf75\",\n\t\"./tr\": \"0e81\",\n\t\"./tr.js\": \"0e81\",\n\t\"./tzl\": \"cf51\",\n\t\"./tzl.js\": \"cf51\",\n\t\"./tzm\": \"c109\",\n\t\"./tzm-latn\": \"b53d\",\n\t\"./tzm-latn.js\": \"b53d\",\n\t\"./tzm.js\": \"c109\",\n\t\"./ug-cn\": \"6117\",\n\t\"./ug-cn.js\": \"6117\",\n\t\"./uk\": \"ada2\",\n\t\"./uk.js\": \"ada2\",\n\t\"./ur\": \"5294\",\n\t\"./ur.js\": \"5294\",\n\t\"./uz\": \"2e8c\",\n\t\"./uz-latn\": \"010e\",\n\t\"./uz-latn.js\": \"010e\",\n\t\"./uz.js\": \"2e8c\",\n\t\"./vi\": \"2921\",\n\t\"./vi.js\": \"2921\",\n\t\"./x-pseudo\": \"fd7e\",\n\t\"./x-pseudo.js\": \"fd7e\",\n\t\"./yo\": \"7f33\",\n\t\"./yo.js\": \"7f33\",\n\t\"./zh-cn\": \"5c3a\",\n\t\"./zh-cn.js\": \"5c3a\",\n\t\"./zh-hk\": \"49ab\",\n\t\"./zh-hk.js\": \"49ab\",\n\t\"./zh-tw\": \"90ea\",\n\t\"./zh-tw.js\": \"90ea\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"4678\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('router-view')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div id=\"app\">\n <router-view/>\n </div>\n</template>\n<script>\nimport axios from \"axios\";\nimport Push from \"push.js\";\nexport default {\n created(){\n this.$store.dispatch('ON_GET_ME')\n },\n methods: {\n // app init\n appInit(){\n if(!this.adminInfo){\n setTimeout(()=> this.appInit(), 50)\n return\n }\n this.$store.dispatch('ON_GET_UPLOAD_TOKEN')\n this.$store.dispatch('ON_GET_PLATFORM_CONFIG')\n this.$store.dispatch('ON_GET_SYSTEM')\n this.$store.dispatch('ON_GET_COMPANY')\n this.$store.dispatch('ON_GET_UPLOADS_CONFIG')\n this.$store.dispatch('ON_GET_ROBOTS')\n this.$store.dispatch('ON_GET_CONTACTS')\n\n // 一分钟上报一次我的活动时间\n this.upLastActivity()\n\n // 获取会话表\n setInterval(()=>this.getContacts(), 2000)\n\n // Mimc 初始化\n this.initMimc()\n\n },\n // 获取会话列表\n getContacts(){\n if(this.adminInfo){\n this.$store.dispatch('ON_GET_CONTACTS')\n if(this.seviceCurrentUser && this.$store.getters.contacts.length > 0){\n this.$store.getters.contacts.map(i => {\n if(i.from_account == this.seviceCurrentUser.from_account){\n this.$store.commit(\"onChangeSeviceCurrentUser\", i)\n }\n })\n }\n }\n },\n // 上报最后活动时间\n upLastActivity(){\n this.$store.dispatch('ON_RUN_LAST_ACTiIVITY')\n setTimeout(() => this.upLastActivity(), 1000*60)\n },\n // 初始化Mimc\n initMimc(){\n var self = this\n var adminInfo = this.$store.state.adminInfo\n if(!adminInfo){\n setTimeout(() => this.initMimc(), 1000)\n }else{\n self.$mimcInstance.init({\n type: 1,\n account_id: adminInfo.id\n }, (isSuccess) => {\n // 初始化完成\n if(isSuccess){\n // 监听登录状态\n this.$mimcInstance.addEventListener(\"statusChange\", (status) => {\n if(!status && self.$store.getters.adminInfo.online != 0){\n self.watchLogin()\n }\n })\n // 监听连接断开\n this.$mimcInstance.addEventListener(\"disconnect\", () => {\n console.log(\"链接断开!\")\n if(self.$store.getters.adminInfo.online != 0){\n self.watchLogin()\n }\n })\n self.watchLogin()\n }else{\n self.initMimc()\n }\n })\n }\n },\n // 更新用户状态\n changeUserOnlineStatus(online){\n // 更新状态\n axios.put('/admin/online/' + online)\n .then(() => {\n this.$store.dispatch('ON_GET_ME')\n if(online == 0){\n this.$message.info(\"当前状态为离线\")\n }\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n },\n // 监听用户是否有上线登录\n watchLogin(){\n try{\n var self = this\n if(self.$store.state.user != null) return;\n if(self.$store.getters.adminInfo.online == 1 || self.$store.getters.adminInfo.online == 2){\n self.$mimcInstance.login(()=>{\n self.changeUserOnlineStatus(self.$store.getters.adminInfo.online)\n self.$store.dispatch('ON_RUN_LAST_ACTiIVITY')\n self.$store.dispatch('ON_GET_CONTACTS')\n self.$store.commit(\"onChangeMimcUser\", self.$mimcInstance.user)\n })\n }else if(self.$store.getters.adminInfo.online != 0){\n setTimeout(() => self.watchLogin(), 1000)\n }\n }catch(err){\n setTimeout(() => this.watchLogin(), 1000)\n }\n },\n },\n mounted(){\n window.addEventListener(\"resize\", () => {\n this.$store.commit(\"onChangeToggleAside\", true)\n if(document.body.clientWidth < 1000){\n this.$store.commit(\"onChangeToggleAside\", false)\n }\n }, false)\n // 判断通知权限\n if(!Push.Permission.has()){\n Push.Permission.request(function(){}, function(){})\n }\n },\n computed: {\n adminInfo(){\n return this.$store.getters.adminInfo\n },\n seviceCurrentUser(){\n return this.$store.getters.seviceCurrentUser\n },\n messageRecord(){\n return this.$store.getters.messageRecord\n },\n isLogin(){\n return this.$store.getters.isLogin\n }\n },\n watch: {\n \"$route\"(){\n if(!/^\\/workbench(\\/\\d+)?$/i.test(this.$route.path)){\n // 监听消息\n this.$mimcInstance.addEventListener(\"receiveP2PMsg\", (message) => {\n var nowTime = parseInt((new Date().getTime() +\"\").substr(0, 10))\n message.timestamp = parseInt((message.timestamp +\"\").substr(0, 10))\n if(nowTime - message.timestamp >= 60) return\n // 处理用户列表\n if(message.biz_type == \"contacts\"){\n var contacts = JSON.parse(message.payload)\n // console.log(contacts)\n this.$store.commit('onChangeContacts', contacts)\n return\n }\n // 判断是否是握手消息\n if(message.biz_type == \"handshake\"){\n this.$mimcInstance.sendMessage(\"text\", message.from_account, this.adminInfo.auto_reply)\n return\n }\n var newMessageRecord = JSON.parse(JSON.stringify(this.messageRecord))\n newMessageRecord.list.push(message)\n this.$store.commit(\"onChangeMessageRecord\", newMessageRecord)\n\n // 推送消息\n if(message.biz_type == \"contacts\" || message.biz_type == \"pong\" || message.biz_type == \"welcome\" || message.biz_type == \"cancel\" || message.biz_type == \"handshake\" || message.biz_type == \"end\" || message.biz_type == \"timeout\") return\n if(!Push.Permission.has()) return\n Push.create(\"收到一条新消息\", {\n body: message.payload,\n icon: this.$store.state.pushIcon,\n timeout: 5000,\n onClick: () => {\n this.$router.push({ path: '/workbench?uid=' + message.from_account})\n window.focus();\n }\n });\n\n })\n }\n },\n isLogin(){\n console.log(\"当前是登录状态\")\n this.appInit()\n }\n \n }\n}\n</script>\n<style lang=\"stylus\">\n#app{\n display flex\n height 100vh\n}\n.el-tabs__content,.el-tab-pane{\n height 100%\n padding 0\n}\n.el-tabs__content{\n padding 0 !important\n}\nbutton{\n background-color #fff\n}\n.pswp{\n z-index 3000!important\n}\n</style>\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=677dd412&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var moment = require('moment');\n// eslint-disable-next-line no-undef\nvar Helps = {};\nHelps.install = function (Vue, options) {\n Vue.prototype.$myMethod = function(){\n console.log(options)\n }\n // 获取单个平台数据\n Vue.prototype.$getPlatformItem = function(index){\n var platformConfigItem\n var platformConfig = this.$store.getters.platformConfig\n for(let i = 0; i< platformConfig.length; i++){\n if(platformConfig[i].id == index){\n platformConfigItem = platformConfig[i]\n }\n }\n return platformConfigItem || {title: \"未知\"}\n }\n // 格式化日期\n Vue.prototype.$formatUnixDate = function(unix, format = \"YYYY-MM-DD HH:mm:ss\"){\n return moment(parseInt(unix + '000')).format(format)\n }\n // 格式化日期(相对日期)\n Vue.prototype.$formatDate = function (unix, format = \"YYYY-MM-DD HH:mm:ss\") {\n return moment(parseInt(unix + '000')).format(format)\n }\n // 格式化日期(相对日期)\n Vue.prototype.$formatFromNowDate = function(unix){\n if(moment().format(\"YYYYMMDD\") == moment(parseInt(unix + '000')).format(\"YYYYMMDD\")){\n return moment(parseInt(unix + '000')).format(\"HH:mm\")\n }\n return moment(parseInt(unix + '000')).format(\"YYYY-MM-DD HH:mm\")\n }\n Vue.prototype.$robotNickname = function(id){\n var nickname\n var robots = this.$store.getters.robots\n for(let i = 0; i< robots.length; i++){\n if(robots[i].id == id){\n nickname = robots[i].nickname\n }\n }\n return nickname\n }\n\n}\nexport default Helps;","import axios from \"axios\";\nimport { Message } from 'element-ui';\nvar MimcPlugin = {};\nMimcPlugin.install = function (Vue, options) {\n\n console.log(options)\n\n // 获取单个平台数据\n Vue.MimcInstance = Vue.prototype.$mimcInstance = {\n user: null,\n robot: null,\n fetchMIMCTokenResult: null,\n // 初始化\n init(request, callback){\n this.getRobot()\n this.fetchMIMCToken(request, callback)\n },\n _receiveP2PMsgCallback: null,\n _statusChangeCallback: null,\n _serverAckCallback: null,\n _disconnectCallback: null,\n // 获取token\n // request 登录参数\n // 登录回调 callback bool 是否成功\n fetchMIMCToken(request, callback){\n axios.post('/public/register', request)\n .then(response => {\n this.fetchMIMCTokenResult = response.data.data.token\n if(callback) callback(true)\n console.log(\"MIMC初始化成功\")\n })\n .catch((error)=>{\n if(callback) callback(false)\n Message.error(\"mimc初始化失败,请刷新重试,\" + error.response.data.message)\n })\n },\n // 获取机器人\n getRobot(){\n axios.get('/public/robot/1')\n .then(response => {\n this.robot = response.data.data\n })\n .catch((error)=>{\n Message.error(\"mimc初始化失败,请刷新重试\" + error.response.data.message)\n })\n },\n // pushMessage\n pushMessage(payload){\n axios.post('/public/message/push', {\n \"msgType\": \"NORMAL_MSG\",\n \"payload\": payload\n })\n .then(response => {\n console.log(response.data)\n if(response.data['code'] != 200){\n setTimeout(()=> this.pushMessage(payload), 300)\n }\n })\n .catch(()=>{\n setTimeout(()=> this.pushMessage(payload), 300)\n })\n },\n // 登录\n login(callback){\n try{\n var fetchMIMCTokenResult = this.fetchMIMCTokenResult\n if(!fetchMIMCTokenResult) return\n // eslint-disable-next-line no-undef\n this.user = new MIMCUser(fetchMIMCTokenResult.data.appId, fetchMIMCTokenResult.data.appAccount, \"666\");\n this.user.registerP2PMsgHandler((message)=>{\n var msg = JSON.parse(window.Base64.decode(message.getPayload()));\n if(this._receiveP2PMsgCallback) this._receiveP2PMsgCallback(msg)\n });\n this.user.registerFetchToken(() => {\n return fetchMIMCTokenResult;\n });\n this.user.registerStatusChange((bindResult, errType, errReason, errDesc)=>{\n if(this._statusChangeCallback) this._statusChangeCallback(bindResult, errType, errReason, errDesc)\n });\n this.user.registerServerAckHandler((packetId, sequence, timeStamp, errMsg)=>{\n if(this._serverAckCallback) this._serverAckCallback(packetId, sequence, timeStamp, errMsg)\n });\n this.user.registerDisconnHandler(() => {\n if(this._disconnectCallback) this._disconnectCallback()\n });\n this.user.login();\n window.mimcInstance = this\n if(callback) callback()\n console.log(\"MIMC登录成功\")\n }catch(e){\n console.log(e)\n console.log(\"MIMC登录失败\")\n // 重新尝试\n setTimeout(()=>{\n this.login()\n }, 1000)\n }\n },\n // 退出\n logout(){\n if(this.user){\n this.user.logout()\n this.user = null\n }\n },\n // 注册监听器\n addEventListener(type, callback){\n switch(type){\n case \"receiveP2PMsg\":\n this._receiveP2PMsgCallback = callback\n break\n case \"statusChange\":\n this._statusChangeCallback = callback\n break\n case \"serverAck\":\n this._serverAckCallback = callback\n break\n case \"disconnect\":\n this._disconnectCallback = callback\n break\n }\n },\n // 发送消息\n sendMessage(type, toAccount, payload = \"\", transferAccount = 0){\n if(!this.user){\n Message.error(\"服务异常,请刷新重试!\")\n return\n }\n const messageJson = {\n \"from_account\": parseInt(this.fetchMIMCTokenResult.data.appAccount),\n \"to_account\": parseInt(toAccount),\n \"biz_type\": type,\n \"version\": \"0\",\n \"timestamp\": parseInt((new Date().getTime() + \" \").substr(0, 10)),\n \"key\": new Date().getTime(),\n \"read\": 0,\n \"transfer_account\": parseInt(transferAccount),\n \"payload\": payload + ''\n }\n // console.log(\"发送消息\")\n // console.log(messageJson)\n const jsonBase64Msg = window.Base64.encode(JSON.stringify(messageJson))\n try {\n \n // 过滤不入库\n if(!(type == \"contacts\" || type == \"pong\" || type == \"welcome\" || type == \"handshake\")){\n // 发送给机器人入库\n // const intoMessageJson = {\n // \"biz_type\": \"into\",\n // \"payload\": jsonBase64Msg\n // }\n // const intoJsonBase64Msg = window.Base64.encode(JSON.stringify(intoMessageJson))\n // this.user.sendMessage(this.robot.id.toString(), intoJsonBase64Msg);\n\n // 消息入库\n this.pushMessage(window.Base64.encode(jsonBase64Msg))\n }\n\n setTimeout(()=>{\n // 发送给对方\n this.user.sendMessage(toAccount.toString(), jsonBase64Msg);\n },200)\n \n } catch (err) {\n console.log(\"sendMessage fail, err=\" + err);\n }\n return messageJson\n },\n // 创建本地消息\n createLocalMessage(type, toAccount, payload = \"\", transferAccount = 0){\n const messageJson = {\n \"from_account\": parseInt(this.fetchMIMCTokenResult.data.appAccount),\n \"to_account\": parseInt(toAccount),\n \"biz_type\": type,\n \"version\": \"0\",\n \"timestamp\": parseInt((new Date().getTime() + \" \").substr(0, 10)),\n \"key\": new Date().getTime(),\n \"read\": 0,\n \"transfer_account\": parseInt(transferAccount),\n \"payload\": payload + ''\n }\n return messageJson\n }\n \n\n }\n}\nexport default MimcPlugin;","export default {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY年MM月DD日',\n LLL: 'YYYY年MM月DD日Ah点mm分',\n LLLL: 'YYYY年MM月DD日ddddAh点mm分',\n l: 'YYYY-M-D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm'\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' ||\n meridiem === '上午') {\n return hour;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n } else {\n // '中午'\n return hour >= 11 ? hour : hour + 12;\n }\n },\n meridiem: function (hour, minute) {\n const hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天]LT',\n nextDay: '[明天]LT',\n nextWeek: '[下]ddddLT',\n lastDay: '[昨天]LT',\n lastWeek: '[上]ddddLT',\n sameElse: 'L'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|周)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '周';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s内',\n past: '%s前',\n s: '几秒',\n ss: '%d秒',\n m: '1分钟',\n mm: '%d分钟',\n h: '1小时',\n hh: '%d小时',\n d: '1天',\n dd: '%d天',\n M: '1个月',\n MM: '%d个月',\n y: '1年',\n yy: '%d年'\n },\n week: {\n // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n dow: 1, // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n }\n}","import Vue from 'vue'\nimport ElementUI from 'element-ui'\nimport App from './App.vue'\nimport router from './router'\nimport store from './store'\nimport 'element-ui/lib/theme-chalk/index.css'\nimport preview from 'vue-photo-preview'\nimport 'vue-photo-preview/dist/skin.css'\nimport Helps from \"./plugins/help\"\nimport MimcPlugin from \"./plugins/mimc\"\nimport momentLocal from './resource/moment_locale'\nvar moment = require('moment');\nmoment.locale(\"zh-cn\", momentLocal)\n\nimport axios from 'axios'\n\naxios.defaults.baseURL = '/api'\n\n// 添加请求拦截器\naxios.interceptors.request.use((config) => {\n var token = localStorage.getItem(\"Authorization\")\n config.headers['Authorization'] = token || \"\"\n return config;\n}, (error) => {\n return Promise.reject(error);\n});\n\n// 添加响应拦截器\naxios.interceptors.response.use((response) => {\n return response;\n}, (error) => {\n // 登录失效了\n if(error.response.status == 401) {\n localStorage.clear()\n store.commit(\"onChangeAdminInfo\", null)\n if(store.state.mimcUser) store.state.mimcUser.logout()\n router.push(\"/login\")\n }\n return Promise.reject(error);\n});\n\nvar options={\n fullscreenEl:false, //关闭全屏按钮\n}\nVue.use(preview, options)\nVue.use(ElementUI)\nVue.use(Helps)\nVue.use(MimcPlugin)\n\nVue.config.productionTip = false\nnew Vue({\n router,\n store,\n render: h => h(App)\n}).$mount('#app')\n","import mod from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=stylus&\"; export default mod; export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=stylus&\""],"sourceRoot":""}
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-081fd645"],{"0b10":function(e,t,i){},"11e9":function(e,t,i){var s=i("52a7"),n=i("4630"),o=i("6821"),a=i("6a99"),r=i("69a8"),c=i("c69a"),l=Object.getOwnPropertyDescriptor;t.f=i("9e1e")?l:function(e,t){if(e=o(e),t=a(t,!0),c)try{return l(e,t)}catch(i){}if(r(e,t))return n(!s.f.call(e,t),e[t])}},1668:function(e,t,i){"use strict";var s=i("361d"),n=i.n(s);n.a},1826:function(e,t,i){"use strict";var s=i("fa4e"),n=i.n(s);n.a},"1c01":function(e,t,i){var s=i("5ca1");s(s.S+s.F*!i("9e1e"),"Object",{defineProperty:i("86cc").f})},"297c":function(e,t,i){"use strict";var s=i("0b10"),n=i.n(s);n.a},"29e5":function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mini-im-workbench"},[i("div",{staticClass:"mini-im-session-list"},[i("div",{staticClass:"title"},[i("el-row",{attrs:{type:"flex",justify:"space-between",gutter:20}},[i("el-col",{attrs:{span:16}},[i("span",[i("i",{staticClass:"el-icon-s-custom"}),e._v("\n 会话列表 ( "+e._s(e.contacts.length)+"人 )\n ")]),i("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},attrs:{title:"清空列表"},on:{click:e.clearContact}})]),i("el-col",{attrs:{span:9}},[i("el-popover",{attrs:{placement:"bottom",width:"100"}},[i("div",{staticClass:"mini-im-online-setting"},[1!=e.adminInfo.online?i("div",{staticClass:"item",on:{click:function(){return e.online(1)}}},[i("i",{staticClass:"el-icon-circle-check",staticStyle:{color:"rgb(135, 208, 104)"}}),e._v("\n 我要上线\n ")]):e._e(),0!=e.adminInfo.online?i("div",{staticClass:"item",on:{click:function(){return e.online(0)}}},[i("i",{staticClass:"el-icon-switch-button",staticStyle:{color:"#ccc"}}),e._v("\n 我要下线\n ")]):e._e(),2!=e.adminInfo.online?i("div",{staticClass:"item",on:{click:function(){return e.online(2)}}},[i("i",{staticClass:"el-icon-remove-outline",staticStyle:{color:"#e6a23c"}}),e._v("\n 繁忙状态\n ")]):e._e()]),0==e.adminInfo.online?i("el-button",{attrs:{slot:"reference",size:"mini"},slot:"reference"},[i("i",{staticClass:"el-icon-switch-button"}),i("em",[e._v("离 线 ")]),i("i",{staticClass:"el-icon-arrow-right el-icon--right"})]):1==e.adminInfo.online?i("el-button",{attrs:{slot:"reference",size:"mini"},slot:"reference"},[i("span",{staticStyle:{color:"rgb(135, 208, 104)"}},[i("i",{staticClass:"el-icon-circle-check"}),i("em",[e._v("在 线")]),i("i",{staticClass:"el-icon-arrow-right el-icon--right"})])]):i("el-button",{attrs:{slot:"reference",size:"mini"},slot:"reference"},[i("span",{staticStyle:{color:"#e6a23c"}},[i("i",{staticClass:"el-icon-circle-check"}),i("em",[e._v("繁 忙")]),i("i",{staticClass:"el-icon-arrow-right el-icon--right"})])])],1)],1)],1)],1),i("div",{staticClass:"mini-im-session-content"},[i("div",{staticClass:"mini-im-flex"},[e.contacts.length<=0?i("div",{staticClass:"mini-im-no-data"},[e._v("暂无会话数据")]):e._e(),e._l(e.contacts,(function(t,s){return i("ContactComponent",{key:s,class:{"mini-im-chat-item-active":e.seviceCurrentUser.from_account==t.from_account},attrs:{deleteContact:e.deleteContact,clickItem:e.selectUser,item:t}})}))],2)])]),e.$store.getters.seviceCurrentUser.id?i("div",{staticClass:"mini-im-chat-view"},[i("div",{staticClass:"mini-im-chat-view-content-header"},[i("div",{staticClass:"mini-im-header-user-box"},[i("el-avatar",{staticClass:"mini-im-avatar",attrs:{size:35}},[""!=e.seviceCurrentUser.avatar?i("img",{attrs:{src:e.seviceCurrentUser.avatar}}):[e._v("访")]],2),i("div",{staticClass:"mini-im-header-user-info"},[i("div",[e._v("\n "+e._s(e.seviceCurrentUser.nickname)+"\n "),1==e.seviceCurrentUser.online?i("span",{staticStyle:{color:"rgb(135, 208, 104)"}},[e._v("● 在线")]):i("span",[e._v("● 离线")]),e.isInputPongIng?[i("span",{staticClass:"input-pong"},[e._v(e._s(e.inputPongIngString)+" "),i("i",{staticClass:"el-icon-edit"})])]:e._e()],2),i("span",[e._v("用户来至:"+e._s(e.$getPlatformItem(e.seviceCurrentUser.platform).title)+"客户端,所在地:"+e._s(e.seviceCurrentUser.address||"未知"))])])],1),i("el-row",{staticClass:"mini-im-buttons"},[i("el-popover",{attrs:{placement:"bottom",width:"200",trigger:"click"}},[i("div",{staticClass:"mini-im-customer-list"},[i("div",{staticClass:"mini-im-customer-title"},[e._v("请选择转接的客服 ("+e._s(e.filterAdmins.length)+"人在线)")]),e._l(e.filterAdmins,(function(t){return i("div",{key:t.id,staticClass:"mini-im-customer-item",on:{click:function(){return e.transferCustomer(t)}}},[i("el-avatar",{staticClass:"mini-im-avatar",attrs:{size:30}},[i("img",{attrs:{src:t.avatar}})]),i("span",[e._v(e._s(t.nickname||t.username))])],1)})),0==e.filterAdmins.length?i("div",{staticClass:"mini-im-customer-item",staticStyle:{background:"none",border:"0"}},[i("span",[e._v("当前没有其他客服在线")])]):e._e()],2),i("el-button",{directives:[{name:"show",rawName:"v-show",value:0==e.seviceCurrentUser.is_session_end&&0!=e.adminInfo.online,expression:"seviceCurrentUser.is_session_end == 0 && adminInfo.online != 0"}],attrs:{slot:"reference",icon:"el-icon-refresh",size:"small"},on:{click:e.getAdmins},slot:"reference"},[e._v("\n 转接客服\n ")])],1),0==e.seviceCurrentUser.is_session_end&&0!=e.adminInfo.online?i("el-button",{attrs:{icon:"el-icon-close",size:"small"},on:{click:e.closeSession}},[e._v("结束会话")]):e._e()],1)],1),i("div",{ref:"miniImChatViewBontentBody",staticClass:"mini-im-chat-view-content-body"},[i("div",{staticClass:"mini-im-chat-view-content"},[i("div",{directives:[{name:"show",rawName:"v-show",value:""!=e.advanceText.trim(),expression:"advanceText.trim() != ''"}],staticClass:"advance"},[i("div",[e._v("正在输入:")]),i("span",[e._v("\n "+e._s(e.advanceText)+"\n "),e.isInputPongIng?[i("span",{staticClass:"input-pong"},[e._v(e._s(e.inputPongIngString.replace("对方正在输入",""))+" "),i("i",{staticClass:"el-icon-edit"})])]:e._e()],2)]),i("div",{ref:"chatBody",staticClass:"mini-im-chat-body",attrs:{id:"chatBody"}},[i("ChatWindowComponent",{attrs:{onLoadMor:e.onLoadMorMessage,isMessageEnd:e.isMessageEnd,onCancelMessage:e.onCancelMessage,messages:e.messageRecord.list,loading:e.getMessageRecordLoading}})],1),i("div",{staticClass:"mini-im-chat-input"},[i("div",{staticClass:"mini-im-chat-input-bar"},[i("el-row",[i("EmojiComponent",{attrs:{clickEmoji:e.clickEmoji}}),i("span",{staticClass:"mini-im-button",attrs:{title:"选择图片"}},[e._v("\n 🌁\n "),i("input",{attrs:{onClick:"this.value = null",type:"file",accept:"image/*"},on:{change:e.sendPhotoMessageEvent}})])],1),i("el-row",[i("el-popover",{attrs:{placement:"top-start",width:"350",trigger:"hover"}},[i("div",{staticClass:"mini-im-shortcut"},[i("div",{staticClass:"mini-im-shortcut-head"},[i("span",[i("i",{staticClass:"el-icon-tickets"}),e._v("快捷语回复列表")]),i("div",[i("button",{attrs:{title:"添加"},on:{click:function(t){e.createShortcutDialogFormVisible=!0}}},[i("i",{staticClass:"el-icon-plus"})]),i("button",{attrs:{title:"编辑"},on:{click:function(t){e.shortcutEditVisible=!e.shortcutEditVisible}}},[i("i",{staticClass:"el-icon-edit"})])])]),i("div",{staticClass:"mini-im-shortcut-body"},[i("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{clearable:"",type:"text",placeholder:"请输入关键词",autocomplete:"off"},model:{value:e.shortcutKey,callback:function(t){e.shortcutKey=t},expression:"shortcutKey"}}),0==e.filterShortcuts.length?i("div",{staticClass:"mini-im-shortcut-item",staticStyle:{background:"none"}},[i("span",{staticStyle:{"text-align":"center","margin-top":"20px"}},[e._v("暂无快捷语")])]):e._e(),e._l(e.filterShortcuts,(function(t){return i("div",{key:t.id,staticClass:"mini-im-shortcut-item",attrs:{title:t.content}},[i("span",{domProps:{innerHTML:e._s(t.title.replace(/\n/g,"<br>"))},on:{"!click":function(i){return function(){return e.checkShortcut(t.content)}()}}}),i("button",{directives:[{name:"show",rawName:"v-show",value:e.shortcutEditVisible,expression:"shortcutEditVisible"}],attrs:{title:"修改"},on:{"!click":function(i){return function(){return e.editShortcut(t)}()}}},[i("i",{staticClass:"el-icon-edit"})]),i("button",{directives:[{name:"show",rawName:"v-show",value:e.shortcutEditVisible,expression:"shortcutEditVisible"}],attrs:{title:"删除"},on:{"!click":function(i){return function(){return e.deleteShortcut(t)}()}}},[i("i",{staticClass:"el-icon-delete"})])])}))],2)]),i("button",{staticClass:"mini-im-button",attrs:{slot:"reference"},slot:"reference"},[i("i",{staticClass:"el-icon-tickets",staticStyle:{"font-size":"15px"}}),i("span",{staticStyle:{"font-size":"14px"}},[e._v(" 快捷语")])])])],1)],1),i("div",{staticClass:"mini-im-chat-input-edit",on:{keyup:[function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.keyUpEvent(t)},function(t){return!t.type.indexOf("key")&&13!==t.keyCode&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.shiftKey?e.enterShift(t):null},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.sendMessage(t)}]}},[i("el-input",{ref:"chatValueDom",staticClass:"mini-im-chat-text-input",attrs:{type:"textarea",rows:"3",resize:"none",autosize:!1,disabled:1==e.seviceCurrentUser.is_session_end||0==e.adminInfo.online,maxlength:"200","show-word-limit":"",placeholder:1==e.seviceCurrentUser.is_session_end?"当前会话已结束":"请输入内容"},model:{value:e.chatValue,callback:function(t){e.chatValue=t},expression:"chatValue"}})],1)])]),i("div",{staticClass:"mini-im-chat-view-user"},[i("el-tabs",{attrs:{type:"border-card"}},[i("el-tab-pane",{attrs:{label:"用户信息"}},[i("UserInfoComponent")],1)],1)],1)])]):i("div",{staticClass:"mini-im-chat-view no-window"},[e._m(0),i("span",[e._v("当前无对话")]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.chatWindowLoading,expression:"chatWindowLoading"}],staticClass:"mini-im-right-window-loading"},[i("i",{staticClass:"el-icon-loading"}),i("span",[e._v("数据加载中...")])])]),i("CreateShortcutComponent",{attrs:{complete:e.getShortcuts,dialogFormVisible:e.createShortcutDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.createShortcutDialogFormVisible=t},"update:dialog-form-visible":function(t){e.createShortcutDialogFormVisible=t}}}),i("EditShortcutComponent",{attrs:{formData:e.editShortcutItem,complete:e.getShortcuts,dialogFormVisible:e.editShortcutDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.editShortcutDialogFormVisible=t},"update:dialog-form-visible":function(t){e.editShortcutDialogFormVisible=t}}})],1)},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("i",{staticClass:"el-icon-service"})])}],o=(i("1c01"),i("58b2"),i("8e6e"),i("f3e2"),i("ac6a"),i("456d"),i("c5f6"),i("4917"),i("a481"),i("6d67"),i("57e7"),i("d25f"),i("4f37"),i("bd86")),a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"}},[i("div",{staticClass:"emoji-box"},e._l(e.emojis,(function(t,s){return i("span",{key:s,on:{click:function(i){return e.clickEmoji(t)}}},[e._v(e._s(t))])})),0),i("button",{staticClass:"mini-im-button",staticStyle:{"font-size":"20px"},attrs:{slot:"reference",title:"选择表情"},slot:"reference"},[e._v("😊")])])},r=[],c=i("eef3"),l={name:"mini-im-emoji",data:function(){return{emojis:c.emojiData}},props:{clickEmoji:Function}},u=l,m=(i("1826"),i("2877")),d=Object(m["a"])(u,a,r,!1,null,"3d019866",null),f=d.exports,h=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mini-im-chat-item"},[i("span",{staticClass:"delete_contact",attrs:{title:"删除该记录"},on:{"!click":function(t){return e.deleteContact(e.item)}}},[i("i",{staticClass:"el-icon-close"})]),i("el-avatar",{staticClass:"mini-im-avatar",on:{click:function(t){return e.clickItem(e.item)}}},[""!=e.item.avatar?i("img",{attrs:{src:e.item.avatar}}):[e._v("访")]],2),i("div",{staticClass:"mini-im-message-box",on:{click:function(t){return e.clickItem(e.item)}}},[i("div",{staticClass:"mini-im-user-date"},[i("div",{staticClass:"mini-im-nickname"},[i("span",{staticClass:"mini-im-online-status",class:{success:1==e.item.online}},[e._v("●")]),e._v(" "+e._s(e.item.nickname)+"\n ")]),i("div",{staticClass:"mini-im-date"},[e._v("\n "+e._s(e.$formatFromNowDate(e.item.contact_create_at))+"\n ")])]),i("div",{staticClass:"mini-im-message-badge"},["text"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v(e._s(e.item.last_message))]):e._e(),"photo"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("收到图片文件")]):e._e(),"video"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("收到视频文件")]):e._e(),"end"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("会话结束")]):e._e(),"cancel"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("对方撤回了一条消息")]):e._e(),"timeout"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("会话超时,结束对话")]):e._e(),"transfer"==e.item.last_message_type||"handshake"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("客服转接...")]):e._e(),e.item.read>0?i("div",{staticClass:"mini-im-badge"},[e._v(e._s(e.item.read))]):e._e()])])],1)},v=[],g={name:"mini-im-contact",data:function(){return{}},props:{item:Object,clickItem:Function,deleteContact:Function}},p=g,_=(i("297c"),Object(m["a"])(p,h,v,!1,null,"595d9a46",null)),b=_.exports,C=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mini-im-username-component-box"},[i("div",{staticClass:"mini-im-username-component"},[i("button",{attrs:{title:"编辑用户信息"},on:{click:function(t){e.isUserReadonly=!e.isUserReadonly}}},[i("i",{staticClass:"el-icon-edit"})])]),i("el-form",{ref:"form",class:{"form-item-readonly":e.isUserReadonly},attrs:{"label-width":"80px"}},[i("el-form-item",{staticClass:"form-item",attrs:{label:"用户昵称"}},[i("el-input",{attrs:{placeholder:"游客",readonly:e.isUserReadonly,type:"text"},model:{value:e.form.nickname,callback:function(t){e.$set(e.form,"nickname",t)},expression:"form.nickname"}})],1),i("el-form-item",{staticClass:"form-item",attrs:{label:"所在地区"}},[i("el-input",{attrs:{readonly:e.isUserReadonly,placeholder:"无",type:"text"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1),i("el-form-item",{staticClass:"form-item",attrs:{label:"联系方式"}},[i("el-input",{attrs:{readonly:e.isUserReadonly,placeholder:"无联系方式",type:"text"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),i("el-form-item",{staticClass:"form-item no-border",attrs:{label:"所在平台"}},[i("el-input",{attrs:{readonly:"",value:e.$getPlatformItem(e.user.platform).title,resize:"none",type:"text"}})],1),i("el-form-item",{staticClass:"form-item no-border",attrs:{label:"创建时间"}},[i("el-input",{attrs:{readonly:"",value:e.$formatUnixDate(e.user.create_at,"YYYY/MM/DD"),resize:"none",type:"text"}})],1),i("el-form-item",{staticClass:"form-item",attrs:{label:"备注信息"}},[i("el-input",{attrs:{rows:"4",readonly:e.isUserReadonly,placeholder:"无备注",resize:"none",type:"textarea"},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1),e.isUserReadonly?e._e():i("el-row",{attrs:{type:"flex",justify:"center"}},[i("el-button",{on:{click:function(t){e.isUserReadonly=!0}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")])],1),e.isUserReadonly?e._e():i("div",{staticStyle:{"text-align":"center","font-size":"12px",color:"#666","margin-top":"15px"}},[e._v("当前为编辑模式")])],1)],1)},y=[],w=i("bc3a"),S=i.n(w),k={name:"mini-im-user-info",data:function(){return{form:{id:"",nickname:"",address:"",phone:"",remarks:""},isUserReadonly:!0}},computed:{user:function(){return this.$store.getters.seviceCurrentUser||{}}},methods:{save:function(){var e=this;S.a.put("/user",this.form).then((function(){e.isUserReadonly=!0})).catch((function(t){e.$message.error(t.response.data.message)}))}},watch:{user:function(e){e.id!=this.form.id&&(this.isUserReadonly=!0),(this.isUserReadonly||e.id!=this.form.id)&&(this.form=this.user)}}},x=k,$=(i("2b0b"),Object(m["a"])(x,C,y,!1,null,null,null)),I=$.exports,M=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{width:"600px",title:"添加快捷语","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[i("el-form",{attrs:{model:e.form}},[i("el-form-item",{attrs:{label:"标题","label-width":e.formLabelWidth}},[i("el-input",{attrs:{maxlength:"50","show-word-limit":"",type:"text",placeholder:"请输入标题",autocomplete:"off"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),i("el-form-item",{attrs:{label:"内容","label-width":e.formLabelWidth}},[i("el-input",{attrs:{rows:"8",resize:"none",autosize:!1,maxlength:"200","show-word-limit":"",type:"textarea",placeholder:"请输入快捷语",autocomplete:"off"},model:{value:e.form.content,callback:function(t){e.$set(e.form,"content",t)},expression:"form.content"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)},U=[],E={name:"mini-im-create-shortcuts",data:function(){return{form:{content:"",title:""},formLabelWidth:"40px"}},props:{dialogFormVisible:Boolean,complete:Function},mounted:function(){},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},save:function(){var e=this;if(""!=this.form.title.trim()&&""!=this.form.content.trim()){var t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});S.a.post("/shortcut",this.form).then((function(i){try{console.log(i),t.close(),e.$message.success("添加成功"),e.closeModal(),e.complete(),e.form={content:"",title:""}}catch(s){console.log(s)}})).catch((function(i){t.close(),e.$message.error(i.response.data.message)}))}}}},T=E,O=Object(m["a"])(T,M,U,!1,null,"ae51b748",null),R=O.exports,P=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{width:"600px",title:"编辑快捷语","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[i("el-form",{attrs:{model:e.form}},[i("el-form-item",{attrs:{label:"标题","label-width":e.formLabelWidth}},[i("el-input",{attrs:{maxlength:"50","show-word-limit":"",type:"text",placeholder:"请输入标题",autocomplete:"off"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),i("el-form-item",{attrs:{label:"内容","label-width":e.formLabelWidth}},[i("el-input",{attrs:{rows:"8",resize:"none",autosize:!1,maxlength:"200","show-word-limit":"",type:"textarea",placeholder:"请输入快捷语",autocomplete:"off"},model:{value:e.form.content,callback:function(t){e.$set(e.form,"content",t)},expression:"form.content"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)},L=[],V={name:"mini-im-edit-shortcuts",data:function(){return{form:{content:"",title:""},formLabelWidth:"40px"}},props:{dialogFormVisible:Boolean,complete:Function,formData:Object},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},save:function(){var e=this;if(""!=this.form.title.trim()&&""!=this.form.content.trim()){var t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});S.a.put("/shortcut",this.form).then((function(i){try{console.log(i),t.close(),e.$message.success("添加成功"),e.closeModal(),e.complete()}catch(s){console.log(s)}})).catch((function(i){t.close(),e.$message.error(i.response.data.message)}))}}},watch:{formData:function(){this.form=Object.assign({},this.form,this.formData)}}},N=V,F=Object(m["a"])(N,P,L,!1,null,"3714045a",null),z=F.exports,j=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mini-im-chat-list"},[i("div",{staticClass:"mini-im-chat-message-box"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"loading"},[i("i",{staticClass:"el-icon-loading"}),i("span",[e._v("消息加载中...")])]),i("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isMessageEnd,expression:"isMessageEnd"}],attrs:{type:"text",disabled:"",icon:"el-icon-refresh-right"}},[e._v("无更多聊天记录...")]),e.isMessageEnd||e.loading?e._e():i("el-button",{attrs:{type:"text",icon:"el-icon-refresh"},on:{click:e.onLoadMor}},[e._v("点击加载更多聊天记录")])],1),i("div",{staticClass:"mini-im-chat-message-box"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.messages.length<=0&&!e.loading,expression:"messages.length <= 0 && !loading"}],staticClass:"loading"},[i("i",{staticClass:"el-icon-time"}),i("span",[e._v("暂无聊天记录...")])])]),e._l(e.messages,(function(t,s){return i("div",{key:s,staticClass:"mini-im-chat-message-box",class:{self:t.from_account!=e.seviceCurrentUser.id}},["text"==t.biz_type||"photo"==t.biz_type||"knowledge"==t.biz_type||"knowledge_list"==t.biz_type?[i("div",{staticClass:"user-date"},[t.from_account==e.adminInfo.id?i("span",[e._v("\n "+e._s(e.adminInfo.nickname||e.adminInfo.username)+"\n ")]):t.from_account==e.seviceCurrentUser.from_account?i("span",[e._v("\n "+e._s(e.seviceCurrentUser.nickname)+"\n ")]):i("span",[i("span",{staticStyle:{"font-size":"12px",color:"#666"}},[e._v("(机器人)")]),e._v(e._s(e.$robotNickname(t.from_account))+"\n ")]),i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"text"==t.biz_type?[i("div",{staticClass:"text"},[t.from_account==e.adminInfo.id&&t.isShowCancel?i("div",{staticClass:"cancel-btn",attrs:{title:"撤回本条消息"},on:{click:function(){return e.onCancelMessage(t.key)}}},[e._v("\n 撤回\n ")]):e._e(),i("span",{domProps:{innerHTML:e._s(t.payload.replace(/\n/gi,"<br />"))}})])]:e._e(),"photo"==t.biz_type?[i("div",{staticClass:"photo"},[t.percent&&100!=t.percent?i("div",{staticClass:"loading"},[i("i",{staticClass:"el-icon-loading"}),i("span",[e._v(e._s(t.percent)+"%")])]):e._e(),t.from_account==e.adminInfo.id&&t.isShowCancel?i("div",{staticClass:"cancel-btn",attrs:{title:"撤回本条消息"},on:{click:function(){return e.onCancelMessage(t.key)}}},[e._v("\n 撤回\n ")]):e._e(),i("div",{staticClass:"img-content"},[i("img",{attrs:{src:t.payload,preview:"1"}})])])]:e._e(),"transfer"==t.biz_type?[i("div",{staticClass:"system"},[i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))]),i("span",[e._v(e._s(t.payload))])])]:e._e(),"end"==t.biz_type?[i("div",{staticClass:"system"},[i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))]),t.to_account!=e.adminInfo.id?i("span",[e._v("你结束了会话")]):i("span",[e._v("对方结束了会话")]),i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"timeout"==t.biz_type?[i("div",{staticClass:"system"},[i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))]),i("span",[e._v(e._s(t.payload))])])]:e._e(),"cancel"==t.biz_type?[i("div",{staticClass:"system"},[i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))]),t.from_account==e.adminInfo.id?i("span",[e._v("您撤回了一条消息")]):i("span",[e._v("对方撤回了一条消息")])])]:e._e(),"knowledge"==t.biz_type?[i("div",{staticClass:"knowledge"},[i("div",{staticClass:"content"},[i("div",{staticClass:"title"},[e._v("以下是否是您关心的相关问题呢?")]),e._l(JSON.parse(t.payload),(function(t,s){return i("div",{key:s,staticClass:"item"},[e._v("\n "+e._s(s+1)+"."+e._s(t.title)+"\n ")])}))],2)])]:e._e()],2)}))],2)},D=[],A={name:"mini-im-contact",data:function(){return{}},computed:{seviceCurrentUser:function(){return this.$store.getters.seviceCurrentUser||{}},adminInfo:function(){return this.$store.getters.adminInfo||{}}},props:{loading:Boolean,onCancelMessage:Function,messages:Array,onLoadMor:Function,isMessageEnd:Boolean},watch:{messages:function(){var e=this;setTimeout((function(){e.$previewRefresh()}),1e3)}}},B=A,G=(i("1668"),Object(m["a"])(B,j,D,!1,null,"719a88be",null)),K=G.exports,W=i("fb21"),H=i("b730"),J=i.n(H),Y=i("2f62");function q(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function X(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?q(Object(i),!0).forEach((function(t){Object(o["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):q(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Q={name:"workbench",components:{EmojiComponent:f,ContactComponent:b,UserInfoComponent:I,ChatWindowComponent:K,CreateShortcutComponent:R,EditShortcutComponent:z},data:function(){return{chatValue:"",advanceText:"",admins:[],shortcuts:[],shortcutKey:"",createShortcutDialogFormVisible:!1,editShortcutDialogFormVisible:!1,editShortcutItem:null,shortcutEditVisible:!1,getMessageRecordLoading:!0,chatWindowLoading:!1,currentSessionIsEnd:!1,getMessageRecordPageSize:20,isInputPongIng:!1,isSendPong:!1,inputPongIngString:"对方正在输入...",isPush:!1,isMessageEnd:!1,mousemoveTimerout:null}},computed:X({filterShortcuts:function(){var e=this.shortcutKey.trim();return""!=e?this.shortcuts.filter((function(t){return-1!=t.title.indexOf(e)})):this.shortcuts},filterAdmins:function(){var e=this;return this.admins.filter((function(t){return t.id!=e.adminInfo.id&&(1==t.online||2==t.online)}))}},Object(Y["b"])(["contacts","adminInfo","seviceCurrentUser","messageRecord"])),mounted:function(){var e=this;document.ondblclick=function(){e.shortcutEditVisible=!1},this.init(),document.addEventListener("mousemove",this.onMousemoveEvent,!1),document.addEventListener("paste",this.inputPaste,!1)},beforeDestroy:function(){document.removeEventListener("mousemove",this.onMousemoveEvent,!1),document.removeEventListener("paste",this.inputPaste,!1),this.changeCurrentUser()},methods:{init:function(){var e=this;if(!this.adminInfo)return this.$store.dispatch("ON_GET_ME"),void setTimeout((function(){return e.init()}),100);this.getShortcuts(),this.chatWindowLoading=!0,setTimeout((function(){e.chatWindowLoading=!1}),1500),setTimeout((function(){var t,i=e.$store.getters.seviceCurrentUser.id||e.$route.query.uid;(e.changeCurrentUser(i||0),i)&&(e.contacts.map((function(e){e.from_account==i&&(t=e)})),history.replaceState(null,null,location.href.replace(/uid=\d+/i,"uid="+i)),e.$store.commit("onChangeSeviceCurrentUser",t),t&&e.selectUser(t),e.getMessageRecord(),e.scrollIntoBottom())}),1e3),this.$mimcInstance.addEventListener("statusChange",(function(t){1==e.adminInfo.online?e.$message.success("您当前状态为在线"):2==e.adminInfo.online&&e.$message.warning("您当前状态为繁忙"),t||e.$store.dispatch("ON_GET_ME").then((function(){0!=e.adminInfo.online&&e.init()}))})),this.$mimcInstance.addEventListener("receiveP2PMsg",this.receiveP2PMsg),this.$mimcInstance.addEventListener("disconnect",(function(){console.log("链接断开!");var t=e.adminInfo;0!=t.online?(e.adminInfo=null,e.init()):(t.online=0,e.$store.commit("onChangeAdminInfo",t))}))},onMousemoveEvent:function(){var e=this;this.$refs.miniImChatViewBontentBody&&(this.$refs.miniImChatViewBontentBody.style.height=document.body.clientHeight-155+"px"),this.isPush=!1,this.mousemoveTimerout&&clearTimeout(this.mousemoveTimerout),this.mousemoveTimerout=setTimeout((function(){e.isPush=!0}),3e4)},enterShift:function(e){"Enter"!=e.code&&(this.chatValue=this.chatValue+"\n")},scrollIntoBottom:function(){try{setTimeout((function(){var e=document.getElementById("chatBody");if(e){var t=e.clientHeight,i=e.scrollHeight;e.scrollTop=i-t}}),50)}catch(e){console.log(e)}},deleteContact:function(e){var t=this;e&&e.cid&&S.a.delete("/contact/"+e.cid).then((function(){t.$message.success("删除成功"),t.$store.dispatch("ON_GET_CONTACTS"),t.seviceCurrentUser.id==e.id&&(t.changeCurrentUser(),t.$store.commit("onChangeSeviceCurrentUser",null))})).catch((function(e){t.$message.error(e.response.data.message)}))},clearContact:function(){var e=this;this.$confirm("您确定要清空列表吗? ","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){S.a.delete("/contact/clear").then((function(){e.$message.success("清空成功"),e.$store.dispatch("ON_GET_CONTACTS"),e.changeCurrentUser(),e.$store.commit("onChangeSeviceCurrentUser",null)})).catch((function(t){e.$message.error(t.response.data.message)}))}))},clickEmoji:function(e){0!=this.adminInfo.online?1!=this.seviceCurrentUser.is_session_end?(this.chatValue=this.chatValue+e,this.$refs.chatValueDom.focus()):this.$message.info("当前会话已结束!"):this.$message.info("您当前为离线状态!")},checkShortcut:function(e){0!=this.adminInfo.online?1!=this.seviceCurrentUser.is_session_end?(this.shortcutKey="",this.chatValue=e,this.$refs.chatValueDom.focus()):this.$message.info("当前会话已结束!"):this.$message.info("您当前为离线状态!")},getShortcuts:function(){var e=this;S.a.get("/shortcut/list").then((function(t){e.shortcuts=t.data.data})).catch((function(t){e.$message.error(t.response.data.message)}))},editShortcut:function(e){this.editShortcutItem=e,this.editShortcutDialogFormVisible=!0},getAdmins:function(){var e=this;S.a.post("/admin/list",{page_on:1,page_size:1e4,online:3}).then((function(t){e.loading=!1,e.admins=t.data.data.list})).catch((function(t){e.$message.error(t.response.data.message)}))},deleteShortcut:function(e){var t=this;this.$confirm("您确定要删除该快捷语吗?","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){S.a.delete("/shortcut/"+e.id).then((function(){t.$message.success("删除成功"),t.getShortcuts()})).catch((function(e){t.$message.error(e.response.data.message)}))}))},onCancelMessage:function(e){var t=this.$mimcInstance.sendMessage("cancel",this.seviceCurrentUser.from_account,e);this.messageRecord.list.push(t),this.removeMessage(this.adminInfo.id,e),this.qiniuObservable&&this.qiniuObservable.unsubscribe()},transferCustomer:function(e){var t=this;this.$confirm("您确定将该客户转接给 "+(e.nickname||e.username)+" 吗?","温馨提示!",{confirmButtonText:"转接",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){S.a.post("/contact/transfer",{to_account:e.id,user_account:t.seviceCurrentUser.from_account}).then((function(){var e=t.seviceCurrentUser;e.is_session_end=1,t.$store.commit("onChangeSeviceCurrentUser",e)})).catch((function(e){t.$message.error(e.response.data.message)}))}))},closeSession:function(){var e=this;this.$confirm("您确定结束当前会话吗?强制结束可能会被客户投诉!","温馨提示!",{confirmButtonText:"结束",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){var t=e.$mimcInstance.sendMessage("end",e.seviceCurrentUser.from_account,"");e.messageRecord.list.push(t);var i=e.seviceCurrentUser;i.is_session_end=1,e.$store.commit("onChangeSeviceCurrentUser",i)}))},changeUserOnlineStatus:function(e){var t=this;S.a.put("/admin/online/"+e).then((function(){t.$store.dispatch("ON_GET_ME"),0==e&&t.$message.info("当前状态为离线")})).catch((function(e){t.$message.error(e.response.data.message)}))},online:function(e){var t=this;t.adminInfo.online!=e&&t.$confirm("您确定"+(0==e?"下线":1==e?"上线":"设置繁忙")+"吗!","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){0==e?(t.$mimcInstance.logout(),t.changeUserOnlineStatus(e),t.$store.commit("onChangeMimcUser",null)):t.$mimcInstance.login((function(){t.changeUserOnlineStatus(e),t.$store.dispatch("ON_RUN_LAST_ACTiIVITY"),t.$store.dispatch("ON_GET_CONTACTS"),t.$store.commit("onChangeMimcUser",t.$mimcInstance.user)}))}))},receiveP2PMsg:function(e){var t=this;console.log(e);var i=parseInt(((new Date).getTime()+"").substr(0,10));if(e.timestamp=parseInt((e.timestamp+"").substr(0,10)),(e.from_account!=this.adminInfo.id||"pong"!=e.biz_type)&&"into"!=e.biz_type){if(e.from_account==this.adminInfo.id&&this.seviceCurrentUser.from_account==e.to_account)return this.messageRecord.list.push(e),"cancel"==e.biz_type&&this.removeMessage(e.from_account,e.payload),this.scrollIntoBottom(),void this.$previewRefresh();if("text"==e.biz_type&&e.from_account==this.seviceCurrentUser.from_account&&(this.advanceText=""),"contacts"!=e.biz_type){if(!(i-e.timestamp>=60))if("cancel"==e.biz_type&&this.removeMessage(e.from_account,e.payload),"handshake"!=e.biz_type){if("pong"==e.biz_type&&e.from_account==this.seviceCurrentUser.from_account)return this.advanceText=e.payload,void this.inputPongIng();if("contacts"!=e.biz_type&&"pong"!=e.biz_type&&"welcome"!=e.biz_type&&"cancel"!=e.biz_type&&"handshake"!=e.biz_type&&"end"!=e.biz_type&&"timeout"!=e.biz_type&&this.isPush&&J.a.Permission.has()&&J.a.create("收到一条新消息",{body:e.payload,icon:this.$store.state.pushIcon,timeout:5e3,onClick:function(){t.$router.push({path:"/workbench?uid="+e.from_account}),window.focus(),setTimeout((function(){return t.getMessageRecord()}),1e3)}}),e.from_account==this.seviceCurrentUser.from_account){if("end"==e.biz_type){var s=this.seviceCurrentUser;s.is_session_end=1,this.$store.commit("onChangeSeviceCurrentUser",s),this.advanceText=""}this.messageRecord.list.push(e);var n=JSON.stringify(this.messageRecord);this.$store.commit("onChangeMessageRecord",JSON.parse(n)),this.scrollIntoBottom(),this.$previewRefresh()}}else setTimeout((function(){t.$mimcInstance.sendMessage("text",e.from_account,t.adminInfo.auto_reply),void 0!=t.seviceCurrentUser&&null!=t.seviceCurrentUser&&setTimeout((function(){return t.getMessageRecord()}),1e3)}),500)}else{var o=JSON.parse(e.payload);this.$store.commit("onChangeContacts",o)}}},changeCurrentUser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;"{}"!=JSON.stringify(this.adminInfo)&&S.a.get("/admin/current/user/"+e)},sendMessage:function(){if(0!=this.adminInfo.online){if(1!=this.seviceCurrentUser.is_session_end)if(1!=this.seviceCurrentUser.is_session_end){var e=this.chatValue.trim();if(""!=e){this.shortcutEditVisible=!1,this.scrollIntoBottom();var t=this.$mimcInstance.sendMessage("text",this.seviceCurrentUser.from_account,this.chatValue.trim("\n"));t.isShowCancel=!0,setTimeout((function(){return t.isShowCancel=!1}),1e4),this.messageRecord.list.push(t),this.chatValue=""}else this.chatValue=""}else this.$message.info("当前会话已结束!")}else this.$message.info("您当前为离线状态!")},sendPhotoMessageEvent:function(e){var t=e.target,i=t.files[0];this.sendPhotoMessage(i)},sendPhotoMessage:function(e){if(0!=this.adminInfo.online)if(1!=this.seviceCurrentUser.is_session_end){var t=new FileReader;t.readAsDataURL(e);var i,s=this;t.onload=function(){i=s.$mimcInstance.createLocalMessage("photo",s.seviceCurrentUser.from_account,this.result),i["percent"]=0,i.isShowCancel=!0,s.messageRecord.list.push(i),setTimeout((function(){return i.isShowCancel=!1}),1e4),s.$previewRefresh(),s.scrollIntoBottom(),Object(W["a"])({file:e,progress:function(e){i.percent=e},success:function(e){i.percent=100;var t=s.$store.getters.uploadToken.host+"/"+e;s.$mimcInstance.sendMessage("photo",s.seviceCurrentUser.from_account,t)},error:function(e){i.percent=0,s.$message.error(e.message)}})}}else this.$message.info("当前会话已结束!");else this.$message.info("您当前为离线状态!")},selectUser:function(e){var t=location.href,i=t.indexOf("#");t=t.substr(0,-1!=i?i:t.length),history.replaceState(null,null,t+"#/workbench?uid="+e.from_account),this.isMessageEnd=!1,this.seviceCurrentUser.from_account!=e.from_account&&(this.messageRecord.list=[],this.$store.commit("onChangeSeviceCurrentUser",e),this.changeCurrentUser(e.from_account)),this.timestamp=void 0,this.getMessageRecord(),this.advanceText=""},getMessageRecord:function(e){var t=this;this.getMessageRecordLoading=!0,void 0==e&&(e=0);var i=parseInt(this.seviceCurrentUser.from_account);i&&S.a.post("/message/list",{timestamp:e,page_size:this.getMessageRecordPageSize,account:i}).then((function(i){t.getMessageRecordLoading=!1,i.data.data.list.length<t.getMessageRecordPageSize&&(t.isMessageEnd=!0),0==t.messageRecord.list.length||0==e?(t.$store.commit("onChangeMessageRecord",i.data.data),t.scrollIntoBottom()):(i.data.data.list=i.data.data.list.concat(t.messageRecord.list),t.$store.commit("onChangeMessageRecord",i.data.data)),setTimeout((function(){return t.$previewRefresh()}),1e3),t.$store.dispatch("ON_GET_CONTACTS")})).catch((function(){t.getMessageRecordLoading=!1}))},onLoadMorMessage:function(){this.getMessageRecordLoading||(this.messageRecord.list.length>=this.messageRecord.total||this.messageRecord.total<=this.getMessageRecordPageSize?this.isMessageEnd=!0:(this.getMessageRecord(this.messageRecord.list[0].timestamp),setTimeout((function(){var e=document.getElementById("chatBody");e.scrollTop=500}),50)))},inputPongIng:function(){var e=this;this.isInputPongIng||(this.isInputPongIng=!0,setTimeout((function(){e.inputPongIngString="对方正在输入."}),500),setTimeout((function(){e.inputPongIngString="对方正在输入.."}),1500),setTimeout((function(){e.inputPongIngString="对方正在输入...",e.isInputPongIng=!1}),3e3))},keyUpEvent:function(){var e=this;this.isSendPong||(this.isSendPong=!0,setTimeout((function(){return e.isSendPong=!1}),500),this.$mimcInstance.sendMessage("pong",this.seviceCurrentUser.from_account,""))},removeMessage:function(e,t){for(var i=[],s=this.messageRecord.list,n=0;n<s.length;n++)s[n].key==t&&s[n].from_account==e||i.push(s[n]);this.messageRecord.list=i,this.$store.commit("onChangeMessageRecord",this.messageRecord)},inputPaste:function(e){if(this.seviceCurrentUser.id&&1!=this.seviceCurrentUser.is_session_end){var t=this,i=e.clipboardData,s=window.navigator.userAgent;if(e.clipboardData&&e.clipboardData.items&&!(i.items&&2===i.items.length&&"string"===i.items[0].kind&&"file"===i.items[1].kind&&i.types&&2===i.types.length&&"text/plain"===i.types[0]&&"Files"===i.types[1]&&s.match(/Macintosh/i)&&Number(s.match(/Chrome\/(\d{2})/i)[1])<49))for(var n=0;n<i.items.length;n++){var o=i.items[n];if("file"==o.kind){var a=o.getAsFile();if(0===a.size)return;var r=new FileReader;r.readAsDataURL(a),r.onload=function(){var e=this.result;t.$alert('<img preview="1" style="width:100%;max-height: 500px;" src="'+e+'" />',"检测到图片是否要发送?",{dangerouslyUseHTMLString:!0,showCancelButton:!0,confirmButtonText:"发送"}).then((function(){t.sendPhotoMessage(a)})),t.$previewRefresh()}}}}}},watch:{messageRecord:function(){this.$previewRefresh()}}},Z=Q,ee=(i("674a"),Object(m["a"])(Z,s,n,!1,null,"81d8c19a",null));t["default"]=ee.exports},"2b0b":function(e,t,i){"use strict";var s=i("752b"),n=i.n(s);n.a},"361d":function(e,t,i){},"454f":function(e,t,i){i("46a7");var s=i("584a").Object;e.exports=function(e,t,i){return s.defineProperty(e,t,i)}},"456d":function(e,t,i){var s=i("4bf8"),n=i("0d58");i("5eda")("keys",(function(){return function(e){return n(s(e))}}))},"46a7":function(e,t,i){var s=i("63b6");s(s.S+s.F*!i("8e60"),"Object",{defineProperty:i("d9f6").f})},4917:function(e,t,i){"use strict";var s=i("cb7c"),n=i("9def"),o=i("0390"),a=i("5f1b");i("214f")("match",1,(function(e,t,i,r){return[function(i){var s=e(this),n=void 0==i?void 0:i[t];return void 0!==n?n.call(i,s):new RegExp(i)[t](String(s))},function(e){var t=r(i,e,this);if(t.done)return t.value;var c=s(e),l=String(this);if(!c.global)return a(c,l);var u=c.unicode;c.lastIndex=0;var m,d=[],f=0;while(null!==(m=a(c,l))){var h=String(m[0]);d[f]=h,""===h&&(c.lastIndex=o(l,n(c.lastIndex),u)),f++}return 0===f?null:d}]}))},"4f37":function(e,t,i){"use strict";i("aa77")("trim",(function(e){return function(){return e(this,3)}}))},"58b2":function(e,t,i){var s=i("5ca1");s(s.S+s.F*!i("9e1e"),"Object",{defineProperties:i("1495")})},"5dbc":function(e,t,i){var s=i("d3f4"),n=i("8b97").set;e.exports=function(e,t,i){var o,a=t.constructor;return a!==i&&"function"==typeof a&&(o=a.prototype)!==i.prototype&&s(o)&&n&&n(e,o),e}},"5eda":function(e,t,i){var s=i("5ca1"),n=i("8378"),o=i("79e5");e.exports=function(e,t){var i=(n.Object||{})[e]||Object[e],a={};a[e]=t(i),s(s.S+s.F*o((function(){i(1)})),"Object",a)}},"661d":function(e,t,i){},"674a":function(e,t,i){"use strict";var s=i("661d"),n=i.n(s);n.a},"752b":function(e,t,i){},"85f2":function(e,t,i){e.exports=i("454f")},"8b97":function(e,t,i){var s=i("d3f4"),n=i("cb7c"),o=function(e,t){if(n(e),!s(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,s){try{s=i("9b43")(Function.call,i("11e9").f(Object.prototype,"__proto__").set,2),s(e,[]),t=!(e instanceof Array)}catch(n){t=!0}return function(e,i){return o(e,i),t?e.__proto__=i:s(e,i),e}}({},!1):void 0),check:o}},"8e6e":function(e,t,i){var s=i("5ca1"),n=i("990b"),o=i("6821"),a=i("11e9"),r=i("f1ae");s(s.S,"Object",{getOwnPropertyDescriptors:function(e){var t,i,s=o(e),c=a.f,l=n(s),u={},m=0;while(l.length>m)i=c(s,t=l[m++]),void 0!==i&&r(u,t,i);return u}})},9093:function(e,t,i){var s=i("ce10"),n=i("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},"990b":function(e,t,i){var s=i("9093"),n=i("2621"),o=i("cb7c"),a=i("7726").Reflect;e.exports=a&&a.ownKeys||function(e){var t=s.f(o(e)),i=n.f;return i?t.concat(i(e)):t}},a481:function(e,t,i){"use strict";var s=i("cb7c"),n=i("4bf8"),o=i("9def"),a=i("4588"),r=i("0390"),c=i("5f1b"),l=Math.max,u=Math.min,m=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,h=function(e){return void 0===e?e:String(e)};i("214f")("replace",2,(function(e,t,i,v){return[function(s,n){var o=e(this),a=void 0==s?void 0:s[t];return void 0!==a?a.call(s,o,n):i.call(String(o),s,n)},function(e,t){var n=v(i,e,this,t);if(n.done)return n.value;var m=s(e),d=String(this),f="function"===typeof t;f||(t=String(t));var p=m.global;if(p){var _=m.unicode;m.lastIndex=0}var b=[];while(1){var C=c(m,d);if(null===C)break;if(b.push(C),!p)break;var y=String(C[0]);""===y&&(m.lastIndex=r(d,o(m.lastIndex),_))}for(var w="",S=0,k=0;k<b.length;k++){C=b[k];for(var x=String(C[0]),$=l(u(a(C.index),d.length),0),I=[],M=1;M<C.length;M++)I.push(h(C[M]));var U=C.groups;if(f){var E=[x].concat(I,$,d);void 0!==U&&E.push(U);var T=String(t.apply(void 0,E))}else T=g(x,d,$,I,U,t);$>=S&&(w+=d.slice(S,$)+T,S=$+x.length)}return w+d.slice(S)}];function g(e,t,s,o,a,r){var c=s+e.length,l=o.length,u=f;return void 0!==a&&(a=n(a),u=d),i.call(r,u,(function(i,n){var r;switch(n.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,s);case"'":return t.slice(c);case"<":r=a[n.slice(1,-1)];break;default:var u=+n;if(0===u)return i;if(u>l){var d=m(u/10);return 0===d?i:d<=l?void 0===o[d-1]?n.charAt(1):o[d-1]+n.charAt(1):i}r=o[u-1]}return void 0===r?"":r}))}}))},aa77:function(e,t,i){var s=i("5ca1"),n=i("be13"),o=i("79e5"),a=i("fdef"),r="["+a+"]",c="​…",l=RegExp("^"+r+r+"*"),u=RegExp(r+r+"*$"),m=function(e,t,i){var n={},r=o((function(){return!!a[e]()||c[e]()!=c})),l=n[e]=r?t(d):a[e];i&&(n[i]=l),s(s.P+s.F*r,"String",n)},d=m.trim=function(e,t){return e=String(n(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(u,"")),e};e.exports=m},ac6a:function(e,t,i){for(var s=i("cadf"),n=i("0d58"),o=i("2aba"),a=i("7726"),r=i("32e9"),c=i("84f2"),l=i("2b4c"),u=l("iterator"),m=l("toStringTag"),d=c.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=n(f),v=0;v<h.length;v++){var g,p=h[v],_=f[p],b=a[p],C=b&&b.prototype;if(C&&(C[u]||r(C,u,d),C[m]||r(C,m,p),c[p]=d,_))for(g in s)C[g]||o(C,g,s[g],!0)}},bd86:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var s=i("85f2"),n=i.n(s);function o(e,t,i){return t in e?n()(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},c5f6:function(e,t,i){"use strict";var s=i("7726"),n=i("69a8"),o=i("2d95"),a=i("5dbc"),r=i("6a99"),c=i("79e5"),l=i("9093").f,u=i("11e9").f,m=i("86cc").f,d=i("aa77").trim,f="Number",h=s[f],v=h,g=h.prototype,p=o(i("2aeb")(g))==f,_="trim"in String.prototype,b=function(e){var t=r(e,!1);if("string"==typeof t&&t.length>2){t=_?t.trim():d(t,3);var i,s,n,o=t.charCodeAt(0);if(43===o||45===o){if(i=t.charCodeAt(2),88===i||120===i)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:s=2,n=49;break;case 79:case 111:s=8,n=55;break;default:return+t}for(var a,c=t.slice(2),l=0,u=c.length;l<u;l++)if(a=c.charCodeAt(l),a<48||a>n)return NaN;return parseInt(c,s)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,i=this;return i instanceof h&&(p?c((function(){g.valueOf.call(i)})):o(i)!=f)?a(new v(b(t)),i,h):b(t)};for(var C,y=i("9e1e")?l(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;y.length>w;w++)n(v,C=y[w])&&!n(h,C)&&m(h,C,u(v,C));h.prototype=g,g.constructor=h,i("2aba")(s,f,h)}},d25f:function(e,t,i){"use strict";var s=i("5ca1"),n=i("0a49")(2);s(s.P+s.F*!i("2f21")([].filter,!0),"Array",{filter:function(e){return n(this,e,arguments[1])}})},eef3:function(e,t){var i=["😀","😁","😂","🤣","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","🙂","🤗","🤩","🤔","🤨","😐","😑","😶","🙄","😏","😣","😥","😮","🤐","😯","😪","😫","😴","😌","😛","😜","😝","🤤","😒","😓","😔","😕","🙃","🤑","😲","🙁","😖","😞","😟","😤","😢","😭","😦","😧","😨","😩","🤯","😬","😰","😱","😳","🤪","😵","😡","😠","🤬","😷","🤒","🤕","🤢","🤮","🤧","😇","🤠","🤡","🤥","🤫","🤭","🧐","🤓","😈","👿","👹","👺","💀","👻","👽","🤖","💩","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🤲","👐","🙌","👏","🤝","👍","👎","👊","✊","🤛","🤜","🤞","✌️","🤟","🤘","👌","👈","👉","👆","👇","☝️","✋","🤚","🖐","🖖","👋","🤙","💪","🖕","✍️","🙏"];t.emojiData=i},f1ae:function(e,t,i){"use strict";var s=i("86cc"),n=i("4630");e.exports=function(e,t,i){t in e?s.f(e,t,n(0,i)):e[t]=i}},f3e2:function(e,t,i){"use strict";var s=i("5ca1"),n=i("0a49")(0),o=i("2f21")([].forEach,!0);s(s.P+s.F*!o,"Array",{forEach:function(e){return n(this,e,arguments[1])}})},fa4e:function(e,t,i){},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
//# sourceMappingURL=chunk-081fd645.cbf6b703.js.map
\ No newline at end of file
This diff could not be displayed because it is too large.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08473d3a"],{"78ce":function(e,t,s){var a=s("5ca1");a(a.S,"Date",{now:function(){return(new Date).getTime()}})},c2a3:function(e,t,s){},caae:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"record-page"},[s("div",{staticClass:"record-mini-im-head"},[s("span",[s("i",{staticClass:"el-icon-time"}),s("span",{attrs:{slot:"title"},slot:"title"},[e._v("服务记录")])])]),s("el-divider"),s("div",{staticClass:"search"},[s("el-row",{attrs:{gutter:20}},[s("el-col",{staticStyle:{width:"120px"}},[s("el-form",{ref:"form",attrs:{"label-width":"120px"}},[s("el-form-item",{attrs:{label:1==e.adminInfo.root?"按客服:":"按日期:"}})],1)],1),1==e.adminInfo.root?s("el-col",{attrs:{span:3}},[s("el-select",{attrs:{placeholder:"请选择客服"},on:{change:e.refreshRecord},model:{value:e.selectCustomerId,callback:function(t){e.selectCustomerId=t},expression:"selectCustomerId"}},e._l(e.customerData,(function(e){return s("el-option",{key:e.id,attrs:{label:e.nickname,value:e.id}})})),1)],1):e._e(),s("el-col",{attrs:{span:5.5}},[s("el-date-picker",{attrs:{align:"right",type:"date",placeholder:"选择日期","picker-options":e.pickerOptions},on:{change:e.refreshRecord},model:{value:e.selectDate,callback:function(t){e.selectDate=t},expression:"selectDate"}})],1),s("el-col",{attrs:{span:5.5}},[s("el-checkbox",{attrs:{label:"去重目标客户",border:""},on:{change:e.refreshRecord},model:{value:e.isDeWeighting,callback:function(t){e.isDeWeighting=t},expression:"isDeWeighting"}})],1),s("el-col",{attrs:{span:5.5}},[s("el-checkbox",{attrs:{label:"只显示未接待客户",border:""},on:{change:e.refreshRecord},model:{value:e.isReception,callback:function(t){e.isReception=t},expression:"isReception"}})],1)],1)],1),s("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.list}},[s("el-table-column",{attrs:{type:"index",index:e.indexMethod,label:"#序号",width:"60"}}),s("el-table-column",{attrs:{prop:"service_account",label:"接待客服"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("span",[e._v(e._s(e.serviceNickname(t.row.service_account)))])]}}])}),s("el-table-column",{attrs:{prop:"nickname",label:"目标客户"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-tag",{attrs:{type:"success"}},[e._v(e._s(t.row.nickname))])]}}])}),s("el-table-column",{attrs:{prop:"is_reception",label:"是否已接待"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-tag",{directives:[{name:"show",rawName:"v-show",value:0==t.row.is_reception,expression:"scope.row.is_reception == 0"}],attrs:{type:"danger"}},[e._v("未接待")]),s("el-tag",{directives:[{name:"show",rawName:"v-show",value:1==t.row.is_reception,expression:"scope.row.is_reception == 1"}],attrs:{type:"success"}},[e._v("已接待")])]}}])}),s("el-table-column",{attrs:{prop:"transfer_account",label:"满意度"}},[[s("span",[e._v("-----")])]],2),s("el-table-column",{attrs:{prop:"platform",label:"客户端平台"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-tag",[e._v(e._s(e.$getPlatformItem(t.row.platform).title))])]}}])}),s("el-table-column",{attrs:{prop:"create_at",label:"服务时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$formatUnixDate(t.row.create_at,"YYYY/MM/DD HH:mm:ss"))+"\n ")]}}])}),s("el-table-column",{attrs:{prop:"operating",align:"center",label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-button",{attrs:{size:"mini"},on:{click:function(s){return e.openModal(t)}}},[e._v("聊天记录")])]}}])})],1),s("el-row",{staticStyle:{"margin-top":"20px"},attrs:{type:"flex",justify:"space-between"}},[s("span",{staticStyle:{color:"#666","font-size":"14px"}},[e._v("共找到"+e._s(e.tableData.total)+"条数据")]),s("el-pagination",{attrs:{background:"",layout:"sizes, prev, pager, next","current-page":e.tableData.page_on,"page-sizes":[5,10,15,20],total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),s("el-dialog",{attrs:{visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[s("div",{staticClass:"dialog-title",attrs:{slot:"title"},slot:"title"},[s("div",{staticStyle:{color:"#666"}},[s("span",{staticStyle:{color:"#e6a23c"}},[e._v(e._s(e.serviceNickname(e.selectUser.service_account)))]),e._v("\n 与\n "),s("span",{staticStyle:{color:"#67c23a"}},[e._v(e._s(e.selectUser.nickname))]),e._v("\n 的聊天记录\n ")])]),s("div",{ref:"chatBody",staticClass:"record-modal-chat-box",attrs:{id:"chatBody"}},[s("ChatsComponent",{attrs:{isMessageEnd:e.isMessageEnd,seviceId:e.selectCustomerId+"",seviceNickname:e.serviceNickname(e.selectUser.service_account),messages:e.messageRecord.list,userId:e.selectUser.user_account,userNickname:e.selectUser.nickname,onLoadMor:e.onLoadMor,loading:e.getMessageRecordLoading}})],1)])],1)},i=[],n=(s("78ce"),s("bc3a")),o=s.n(n),c=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"mini-im-chat-list"},[s("div",{staticClass:"mini-im-chat-message-box"},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"loading"},[s("i",{staticClass:"el-icon-loading"}),s("span",[e._v("消息加载中...")])]),s("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isMessageEnd,expression:"isMessageEnd"}],attrs:{type:"text",disabled:"",icon:"el-icon-refresh-right"}},[e._v("无更多聊天记录...")]),e.isMessageEnd||e.loading?e._e():s("el-button",{attrs:{type:"text",icon:"el-icon-refresh"},on:{click:e.onLoadMor}},[e._v("点击加载更多聊天记录")])],1),s("div",{staticClass:"mini-im-chat-message-box"},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.messages.length<=0&&!e.loading,expression:"messages.length <= 0 && !loading"}],staticClass:"loading"},[s("i",{staticClass:"el-icon-time"}),s("span",[e._v("暂无聊天记录...")])])]),e._l(e.messages,(function(t,a){return s("div",{key:a,staticClass:"mini-im-chat-message-box",class:{self:t.from_account!=e.userId}},["text"==t.biz_type||"photo"==t.biz_type||"knowledge"==t.biz_type||"knowledge_list"==t.biz_type?[s("div",{staticClass:"user-date"},[t.from_account==e.seviceId?s("span",[e._v("\n "+e._s(e.seviceNickname)+"\n ")]):t.from_account==e.userId?s("span",[e._v("\n "+e._s(e.userNickname)+"\n ")]):s("span",[s("span",{staticStyle:{"font-size":"12px",color:"#666"}},[e._v("(机器人)")]),e._v(e._s(e.$robotNickname(t.from_account))+"\n ")]),s("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"text"==t.biz_type?[s("div",{staticClass:"text"},[s("span",{domProps:{innerHTML:e._s(t.payload.replace(/\n/gi,"<br />"))}})])]:e._e(),"photo"==t.biz_type?[s("div",{staticClass:"photo"},[t.percent&&100!=t.percent?s("div",{staticClass:"loading"},[s("i",{staticClass:"el-icon-loading"}),s("span",[e._v(e._s(t.percent)+"%")])]):e._e(),s("div",{staticClass:"img-content"},[s("img",{attrs:{src:t.payload,preview:"1"}})])])]:e._e(),"transfer"==t.biz_type?[s("div",{staticClass:"system"},[s("span",[e._v(e._s(t.payload))]),s("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"end"==t.biz_type?[s("div",{staticClass:"system"},[t.to_account!=e.adminInfo.id?s("span",[e._v("你结束了会话")]):s("span",[e._v("对方结束了会话")]),s("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"timeout"==t.biz_type?[s("div",{staticClass:"system"},[s("span",[e._v("用户长时间无应答,会话结束")]),s("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"cancel"==t.biz_type?[s("div",{staticClass:"system"},[t.from_account==e.adminInfo.id?s("span",[e._v("您撤回了一条消息")]):s("span",[e._v("对方撤回了一条消息")]),s("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"knowledge"==t.biz_type?[s("div",{staticClass:"knowledge"},[s("div",{staticClass:"content"},[s("div",{staticClass:"title"},[e._v("以下是否是您关心的相关问题呢?")]),e._l(JSON.parse(t.payload),(function(t,a){return s("div",{key:a,staticClass:"item"},[e._v("\n "+e._s(a+1)+"."+e._s(t.title)+"\n ")])}))],2)])]:e._e()],2)}))],2)},r=[],l={name:"mini-im-contact",data:function(){return{}},computed:{seviceCurrentUser:function(){return this.$store.getters.seviceCurrentUser||{}},adminInfo:function(){return this.$store.getters.adminInfo||{}}},props:{loading:Boolean,isMessageEnd:Boolean,messages:Array,userId:String,userNickname:String,seviceId:String,seviceNickname:String,onLoadMor:Function},watch:{messages:function(){var e=this;setTimeout((function(){e.$previewRefresh()}),1e3)}}},d=l,m=(s("e775"),s("2877")),g=Object(m["a"])(d,c,r,!1,null,"3d81ef40",null),u=g.exports,p=s("c1df"),h={name:"robot",components:{ChatsComponent:u},data:function(){return{loading:!0,isDeWeighting:!1,isReception:!1,selectDate:Date.now(),tableData:{list:[],page_on:1,page_size:10,cid:0,total:0,is_de_weighting:!1,date:""},customerData:[],selectCustomerId:null,selectUser:{},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()},shortcuts:[{text:"今天",onClick:function(e){e.$emit("pick",new Date)}},{text:"昨天",onClick:function(e){var t=new Date;t.setTime(t.getTime()-864e5),e.$emit("pick",t)}},{text:"一周前",onClick:function(e){var t=new Date;t.setTime(t.getTime()-6048e5),e.$emit("pick",t)}}]},isMessageEnd:!1,getMessageRecordLoading:!1,getMessageRecordPageSize:20,dialogFormVisible:!1,messageRecord:{list:[]}}},computed:{platformConfig:function(){return this.$store.getters.platformConfig},adminInfo:function(){return this.$store.getters.adminInfo}},created:function(){this.getAdmins()},mounted:function(){var e=this;setTimeout((function(){e.selectCustomerId=e.adminInfo.id,e.getRecord(1)}),1e3)},methods:{indexMethod:function(e){return(this.tableData.page_on-1)*this.tableData.page_size+e+1},handleSizeChange:function(e){this.tableData.page_size=e,this.getRecord()},handleCurrentChange:function(e){this.tableData.page_on=e,this.getRecord()},serviceNickname:function(e){for(var t="",s=0;s<this.customerData.length;s++)if(this.customerData[s].id==e){t=this.customerData[s].nickname;break}return t},getAdmins:function(){var e=this;o.a.post("/admin/list",{page_on:1,page_size:100,online:3}).then((function(t){e.customerData=t.data.data.list})).catch((function(t){e.$message.error(t.response.data.message)}))},getRecord:function(e){var t=this;this.loading=!0,e&&(this.tableData.page_on=e);var s=this.tableData,a=s.page_on,i=s.page_size;o.a.post("/services_statistical/list",{page_on:a,page_size:i,cid:this.selectCustomerId,date:p(this.selectDate).format("YYYY-MM-DD"),is_de_weighting:this.isDeWeighting,is_reception:this.isReception}).then((function(e){t.loading=!1,t.tableData=e.data.data})).catch((function(e){t.loading=!1,t.$message.error(e.response.data.message)}))},refreshRecord:function(){this.getRecord()},openModal:function(e){this.selectUser=e.row,this.isMessageEnd=!1,this.dialogFormVisible=!0,this.messageRecord={list:[]},this.getMessageRecord()},getMessageRecord:function(e){var t=this;this.getMessageRecordLoading=!0,void 0==e&&(e=0),o.a.post("/message/list",{timestamp:e,page_size:this.getMessageRecordPageSize,service:parseInt(this.selectCustomerId),account:parseInt(this.selectUser.user_account)}).then((function(s){t.getMessageRecordLoading=!1,s.data.data.list.length<t.getMessageRecordPageSize&&(t.isMessageEnd=!0),0==t.messageRecord.list.length||0==e?(t.messageRecord=s.data.data,t.scrollIntoBottom()):(s.data.data.list=s.data.data.list.concat(t.messageRecord.list),t.messageRecord=s.data.data),setTimeout((function(){return t.$previewRefresh()}),500)})).catch((function(e){console.log(e),t.getMessageRecordLoading=!1}))},onLoadMor:function(){this.getMessageRecordLoading||(this.messageRecord.list.length>=this.messageRecord.total||this.messageRecord.total<=this.getMessageRecordPageSize?this.isMessageEnd=!0:(this.getMessageRecord(this.messageRecord.list[0].timestamp),setTimeout((function(){var e=document.getElementById("chatBody");e.scrollTop=500}),50)))},scrollIntoBottom:function(){try{setTimeout((function(){var e=document.getElementById("chatBody");if(e){var t=e.clientHeight,s=e.scrollHeight;e.scrollTop=s-t}}),50)}catch(e){console.log(e)}}}},_=h,f=(s("fc7d"),Object(m["a"])(_,a,i,!1,null,null,null));t["default"]=f.exports},e6a4:function(e,t,s){},e775:function(e,t,s){"use strict";var a=s("c2a3"),i=s.n(a);i.a},fc7d:function(e,t,s){"use strict";var a=s("e6a4"),i=s.n(a);i.a}}]);
//# sourceMappingURL=chunk-08473d3a.230bbeeb.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es6.date.now.js","webpack:///./src/views/record/index.vue?d47e","webpack:///./src/views/record/chats.vue?5755","webpack:///src/views/record/chats.vue","webpack:///./src/views/record/chats.vue?b9d8","webpack:///./src/views/record/chats.vue","webpack:///src/views/record/index.vue","webpack:///./src/views/record/index.vue?622e","webpack:///./src/views/record/index.vue?6f57","webpack:///./src/views/record/chats.vue?52e1","webpack:///./src/views/record/index.vue?6aa3"],"names":["$export","S","now","Date","getTime","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","staticStyle","ref","adminInfo","root","on","refreshRecord","model","value","callback","$$v","selectCustomerId","expression","_l","item","key","id","nickname","_e","pickerOptions","selectDate","isDeWeighting","isReception","directives","name","rawName","tableData","list","indexMethod","scopedSlots","_u","fn","scope","_s","serviceNickname","row","service_account","is_reception","$getPlatformItem","platform","title","$formatUnixDate","create_at","$event","openModal","total","page_on","handleSizeChange","handleCurrentChange","dialogFormVisible","selectUser","isMessageEnd","messageRecord","user_account","onLoadMor","getMessageRecordLoading","staticRenderFns","loading","messages","length","index","class","from_account","userId","biz_type","seviceId","seviceNickname","userNickname","$robotNickname","$formatFromNowDate","timestamp","domProps","payload","replace","percent","to_account","JSON","parse","data","computed","seviceCurrentUser","$store","getters","props","Boolean","Array","String","Function","watch","component","moment","components","ChatsComponent","page_size","cid","is_de_weighting","date","customerData","disabledDate","time","shortcuts","text","onClick","picker","$emit","setTime","getMessageRecordPageSize","platformConfig","created","getAdmins","mounted","setTimeout","methods","val","getRecord","i","format","getMessageRecord","parseInt","response","concat","console","log","error","chatBody","document","getElementById","scrollTop","scroll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,WACjDyC,YAAW,WACT,IAAIa,EAAWC,SAASC,eAAe,YACvCF,EAASG,UAAY,MAC7B,OAGIC,iBArHJ,WAsHM,IACEjB,YAAW,WACT,IAAIa,EAAWC,SAASC,eAAe,YACvC,GAAV,EAAU,CACA,IAAIG,EAASL,EAASM,aAClBC,EAAeP,EAASO,aAC5BP,EAASG,UAAYI,EAA/B,KACA,IACA,SACQV,QAAQC,IAAIU,OClV6W,ICQ7X,G,UAAY,eACd,EACA9I,EACAkE,GACA,EACA,KACA,KACA,OAIa,e,kECnBf,yBAAyjB,EAAG,G,kCCA5jB,yBAAiiB,EAAG","file":"js/chunk-08473d3a.230bbeeb.js","sourcesContent":["// 20.3.3.1 / 15.9.4.4 Date.now()\nvar $export = require('./_export');\n\n$export($export.S, 'Date', { now: function () { return new Date().getTime(); } });\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"record-page\"},[_c('div',{staticClass:\"record-mini-im-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-time\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"服务记录\")])])]),_c('el-divider'),_c('div',{staticClass:\"search\"},[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{staticStyle:{\"width\":\"120px\"}},[_c('el-form',{ref:\"form\",attrs:{\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":_vm.adminInfo.root == 1 ? '按客服:' : '按日期:'}})],1)],1),(_vm.adminInfo.root == 1)?_c('el-col',{attrs:{\"span\":3}},[_c('el-select',{attrs:{\"placeholder\":\"请选择客服\"},on:{\"change\":_vm.refreshRecord},model:{value:(_vm.selectCustomerId),callback:function ($$v) {_vm.selectCustomerId=$$v},expression:\"selectCustomerId\"}},_vm._l((_vm.customerData),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.nickname,\"value\":item.id}})}),1)],1):_vm._e(),_c('el-col',{attrs:{\"span\":5.5}},[_c('el-date-picker',{attrs:{\"align\":\"right\",\"type\":\"date\",\"placeholder\":\"选择日期\",\"picker-options\":_vm.pickerOptions},on:{\"change\":_vm.refreshRecord},model:{value:(_vm.selectDate),callback:function ($$v) {_vm.selectDate=$$v},expression:\"selectDate\"}})],1),_c('el-col',{attrs:{\"span\":5.5}},[_c('el-checkbox',{attrs:{\"label\":\"去重目标客户\",\"border\":\"\"},on:{\"change\":_vm.refreshRecord},model:{value:(_vm.isDeWeighting),callback:function ($$v) {_vm.isDeWeighting=$$v},expression:\"isDeWeighting\"}})],1),_c('el-col',{attrs:{\"span\":5.5}},[_c('el-checkbox',{attrs:{\"label\":\"只显示未接待客户\",\"border\":\"\"},on:{\"change\":_vm.refreshRecord},model:{value:(_vm.isReception),callback:function ($$v) {_vm.isReception=$$v},expression:\"isReception\"}})],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"label\":\"#序号\",\"width\":\"60\"}}),_c('el-table-column',{attrs:{\"prop\":\"service_account\",\"label\":\"接待客服\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm.serviceNickname(scope.row.service_account)))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"nickname\",\"label\":\"目标客户\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(_vm._s(scope.row.nickname))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"is_reception\",\"label\":\"是否已接待\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{directives:[{name:\"show\",rawName:\"v-show\",value:(scope.row.is_reception == 0),expression:\"scope.row.is_reception == 0\"}],attrs:{\"type\":\"danger\"}},[_vm._v(\"未接待\")]),_c('el-tag',{directives:[{name:\"show\",rawName:\"v-show\",value:(scope.row.is_reception == 1),expression:\"scope.row.is_reception == 1\"}],attrs:{\"type\":\"success\"}},[_vm._v(\"已接待\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"transfer_account\",\"label\":\"满意度\"}},[[_c('span',[_vm._v(\"-----\")])]],2),_c('el-table-column',{attrs:{\"prop\":\"platform\",\"label\":\"客户端平台\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',[_vm._v(_vm._s(_vm.$getPlatformItem(scope.row.platform).title))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"服务时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD HH:mm:ss\"))+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"label\":\"操作\",\"width\":\"150\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.openModal(scope)}}},[_vm._v(\"聊天记录\")])]}}])})],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('el-dialog',{attrs:{\"visible\":_vm.dialogFormVisible},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('div',{staticClass:\"dialog-title\",attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('div',{staticStyle:{\"color\":\"#666\"}},[_c('span',{staticStyle:{\"color\":\"#e6a23c\"}},[_vm._v(_vm._s(_vm.serviceNickname(_vm.selectUser.service_account)))]),_vm._v(\"\\n 与\\n \"),_c('span',{staticStyle:{\"color\":\"#67c23a\"}},[_vm._v(_vm._s(_vm.selectUser.nickname))]),_vm._v(\"\\n 的聊天记录\\n \")])]),_c('div',{ref:\"chatBody\",staticClass:\"record-modal-chat-box\",attrs:{\"id\":\"chatBody\"}},[_c('ChatsComponent',{attrs:{\"isMessageEnd\":_vm.isMessageEnd,\"seviceId\":_vm.selectCustomerId+'',\"seviceNickname\":_vm.serviceNickname(_vm.selectUser.service_account),\"messages\":_vm.messageRecord.list,\"userId\":_vm.selectUser.user_account,\"userNickname\":_vm.selectUser.nickname,\"onLoadMor\":_vm.onLoadMor,\"loading\":_vm.getMessageRecordLoading}})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mini-im-chat-list\"},[_c('div',{staticClass:\"mini-im-chat-message-box\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"loading\"},[_c('i',{staticClass:\"el-icon-loading\"}),_c('span',[_vm._v(\"消息加载中...\")])]),_c('el-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isMessageEnd),expression:\"isMessageEnd\"}],attrs:{\"type\":\"text\",\"disabled\":\"\",\"icon\":\"el-icon-refresh-right\"}},[_vm._v(\"无更多聊天记录...\")]),(!_vm.isMessageEnd && !_vm.loading)?_c('el-button',{attrs:{\"type\":\"text\",\"icon\":\"el-icon-refresh\"},on:{\"click\":_vm.onLoadMor}},[_vm._v(\"点击加载更多聊天记录\")]):_vm._e()],1),_c('div',{staticClass:\"mini-im-chat-message-box\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.messages.length <= 0 && !_vm.loading),expression:\"messages.length <= 0 && !loading\"}],staticClass:\"loading\"},[_c('i',{staticClass:\"el-icon-time\"}),_c('span',[_vm._v(\"暂无聊天记录...\")])])]),_vm._l((_vm.messages),function(item,index){return _c('div',{key:index,staticClass:\"mini-im-chat-message-box\",class:{'self': item.from_account != _vm.userId}},[(item.biz_type == 'text' || item.biz_type == 'photo' || item.biz_type == 'knowledge' || item.biz_type == 'knowledge_list')?[_c('div',{staticClass:\"user-date\"},[(item.from_account == _vm.seviceId)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.seviceNickname)+\"\\n \")]):(item.from_account == _vm.userId)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.userNickname)+\"\\n \")]):_c('span',[_c('span',{staticStyle:{\"font-size\":\"12px\",\"color\":\"#666\"}},[_vm._v(\"(机器人)\")]),_vm._v(_vm._s(_vm.$robotNickname(item.from_account))+\"\\n \")]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'text')?[_c('div',{staticClass:\"text\"},[_c('span',{domProps:{\"innerHTML\":_vm._s(item.payload.replace(/\\n/ig, '<br />'))}})])]:_vm._e(),(item.biz_type == 'photo')?[_c('div',{staticClass:\"photo\"},[(item.percent && item.percent != 100)?_c('div',{staticClass:\"loading\"},[_c('i',{staticClass:\"el-icon-loading\"}),_c('span',[_vm._v(_vm._s(item.percent)+\"%\")])]):_vm._e(),_c('div',{staticClass:\"img-content\"},[_c('img',{attrs:{\"src\":item.payload,\"preview\":\"1\"}})])])]:_vm._e(),(item.biz_type == 'transfer')?[_c('div',{staticClass:\"system\"},[_c('span',[_vm._v(_vm._s(item.payload))]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'end')?[_c('div',{staticClass:\"system\"},[(item.to_account != _vm.adminInfo.id)?_c('span',[_vm._v(\"你结束了会话\")]):_c('span',[_vm._v(\"对方结束了会话\")]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'timeout')?[_c('div',{staticClass:\"system\"},[_c('span',[_vm._v(\"用户长时间无应答,会话结束\")]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'cancel')?[_c('div',{staticClass:\"system\"},[(item.from_account == _vm.adminInfo.id)?_c('span',[_vm._v(\"您撤回了一条消息\")]):_c('span',[_vm._v(\"对方撤回了一条消息\")]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'knowledge')?[_c('div',{staticClass:\"knowledge\"},[_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"以下是否是您关心的相关问题呢?\")]),_vm._l((JSON.parse(item.payload)),function(item,index){return _c('div',{key:index,staticClass:\"item\"},[_vm._v(\"\\n \"+_vm._s(index+1)+\".\"+_vm._s(item.title)+\"\\n \")])})],2)])]:_vm._e()],2)})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"mini-im-chat-list\">\n\n <div class=\"mini-im-chat-message-box\">\n <div class=\"loading\" v-show=\"loading\">\n <i class=\"el-icon-loading\"></i><span>消息加载中...</span>\n </div>\n <el-button v-show=\"isMessageEnd\" type=\"text\" disabled icon=\"el-icon-refresh-right\">无更多聊天记录...</el-button>\n <el-button v-if=\"!isMessageEnd && !loading\" type=\"text\" @click=\"onLoadMor\" icon=\"el-icon-refresh\">点击加载更多聊天记录</el-button>\n </div>\n\n <div class=\"mini-im-chat-message-box\">\n <div class=\"loading\" v-show=\"messages.length <= 0 && !loading\">\n <i class=\"el-icon-time\"></i><span>暂无聊天记录...</span>\n </div>\n </div>\n\n <div class=\"mini-im-chat-message-box\" :class=\"{'self': item.from_account != userId}\" v-for=\"(item, index) in messages\" :key=\"index\">\n\n <!-- 用户信息 -->\n <template v-if=\"item.biz_type == 'text' || item.biz_type == 'photo' || item.biz_type == 'knowledge' || item.biz_type == 'knowledge_list'\">\n <div class=\"user-date\">\n <span v-if=\"item.from_account == seviceId\">\n {{seviceNickname}}\n </span>\n <span v-else-if=\"item.from_account == userId\">\n {{userNickname}}\n </span>\n <span v-else>\n <span style=\"font-size:12px;color: #666;\">(机器人)</span>{{$robotNickname(item.from_account)}}\n </span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 文本消息 -->\n <template v-if=\"item.biz_type == 'text'\">\n <div class=\"text\">\n <span v-html=\"item.payload.replace(/\\n/ig, '<br />')\"></span>\n </div>\n </template>\n\n <!-- 图片 -->\n <template v-if=\"item.biz_type == 'photo'\">\n <div class=\"photo\">\n <div class=\"loading\" v-if=\"item.percent && item.percent != 100\">\n <i class=\"el-icon-loading\"></i>\n <span>{{item.percent}}%</span>\n </div>\n <div class=\"img-content\">\n <img :src=\"item.payload\" preview=\"1\" />\n </div>\n </div>\n </template>\n\n <!-- 转接 -->\n <template v-if=\"item.biz_type == 'transfer'\">\n <div class=\"system\">\n <span>{{item.payload}}</span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 结束聊天 -->\n <template v-if=\"item.biz_type == 'end'\">\n <div class=\"system\">\n <span v-if=\"item.to_account != adminInfo.id\">你结束了会话</span>\n <span v-else>对方结束了会话</span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 聊天超时 -->\n <template v-if=\"item.biz_type == 'timeout'\">\n <div class=\"system\">\n <span>用户长时间无应答,会话结束</span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 撤回消息 -->\n <template v-if=\"item.biz_type == 'cancel'\">\n <div class=\"system\">\n <span v-if=\"item.from_account == adminInfo.id\">您撤回了一条消息</span>\n <span v-else>对方撤回了一条消息</span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 知识库列表 -->\n <template v-if=\"item.biz_type == 'knowledge'\">\n <div class=\"knowledge\">\n <div class=\"content\">\n <div class=\"title\">以下是否是您关心的相关问题呢?</div>\n <div class=\"item\" :key=\"index\" v-for=\"(item, index) in JSON.parse(item.payload)\">\n {{index+1}}.{{item.title}}\n </div>\n </div>\n </div>\n </template>\n\n </div>\n\n </div>\n</template>\n<script>\nexport default {\n name: \"mini-im-contact\",\n data() {\n return {};\n },\n computed: {\n seviceCurrentUser(){\n return this.$store.getters.seviceCurrentUser || {}\n },\n adminInfo(){\n return this.$store.getters.adminInfo || {}\n }\n },\n props: {\n loading: Boolean,\n isMessageEnd: Boolean,\n messages: Array,\n userId: String,\n userNickname: String,\n seviceId: String,\n seviceNickname: String,\n onLoadMor: Function\n },\n watch:{\n messages(){\n setTimeout(()=>{\n this.$previewRefresh()\n }, 1000)\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-chat-list {\n display: flex;\n flex-direction: column;\n\n .mini-im-chat-message-box {\n width: 100%;\n display: flex;\n flex-direction: column;\n margin-bottom: 15px;\n\n .user-date {\n display: flex;\n align-items: center;\n color: #999;\n font-size: 14px;\n\n span {\n color: #666;\n font-weight: 500;\n font-size: 14px;\n padding: 0 5px;\n }\n\n em {\n font-style: normal;\n font-size 12px\n }\n }\n\n .loading{\n color #666\n display: flex;\n margin-top: 5px;\n align-items center\n align-content center\n justify-content center\n span{\n margin-left 5px\n font-size 13px\n }\n }\n\n .text {\n display: flex;\n margin-top: 5px;\n\n span {\n max-width: 40%;\n display: inline;\n padding: 5px 10px;\n border-radius: 5px;\n background-color: #eef4f9;\n font-size: 14px;\n color: #666;\n }\n }\n\n .photo {\n display: flex;\n margin-top: 5px;\n\n .loading{\n align-self flex-end\n padding 0 5px\n span{\n background none !important\n color: #999 !important\n }\n }\n\n .img-content{\n border-radius: 5px;\n width: 200px;\n overflow hidden\n }\n\n img {\n cursor: pointer;\n width: 100%;\n height 100%\n display: inline;\n }\n }\n\n .knowledge {\n display: flex;\n margin-top: 5px;\n justify-content: flex-end;\n\n .content {\n display: flex;\n flex-direction: column;\n padding: 5px;\n border-radius: 5px;\n color: #666;\n text-align: left;\n background-color: #eef4f9;\n\n .title {\n font-size: 13px;\n font-weight: 500;\n }\n\n .item {\n font-size: 13px;\n line-height: 22px;\n }\n }\n }\n\n .system {\n display: flex;\n margin-top: 5px;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n em{\n margin-top: 5px;\n font-size: 12px;\n color: #999;\n }\n span {\n font-size: 12px;\n max-width: 50%;\n min-width: 100px;\n display: inline;\n padding: 3px 20px;\n border-radius: 5px;\n text-align: center;\n background-color: #f2f2f2;\n color: #999;\n }\n }\n\n &.self {\n text-align: right;\n\n .user-date {\n display: flex;\n justify-content: flex-end;\n\n span {\n order: -2;\n }\n\n em {\n order: -3;\n }\n }\n\n .text, .photo {\n justify-content: flex-end;\n align-items flex-end\n .cancel-btn{\n color #26a2ff\n font-size 12px\n margin-right 5px\n cursor pointer\n }\n span {\n background-color: rgba(33, 150, 243, 0.72);\n color: #fff;\n text-align left\n }\n }\n\n .knowledge>.content {\n background-color: rgba(33, 150, 243, 0.72);\n color: #fff;\n }\n }\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chats.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chats.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./chats.vue?vue&type=template&id=3d81ef40&scoped=true&\"\nimport script from \"./chats.vue?vue&type=script&lang=js&\"\nexport * from \"./chats.vue?vue&type=script&lang=js&\"\nimport style0 from \"./chats.vue?vue&type=style&index=0&id=3d81ef40&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3d81ef40\",\n null\n \n)\n\nexport default component.exports","<template>\n <div class=\"record-page\">\n <div class=\"record-mini-im-head\">\n <span>\n <i class=\"el-icon-time\"></i>\n <span slot=\"title\">服务记录</span>\n </span>\n </div>\n <el-divider />\n <div class=\"search\">\n <el-row :gutter=\"20\">\n <el-col style=\"width: 120px\">\n <el-form ref=\"form\" label-width=\"120px\">\n <el-form-item :label=\"adminInfo.root == 1 ? '按客服:' : '按日期:'\"></el-form-item>\n </el-form>\n </el-col>\n <el-col v-if=\"adminInfo.root == 1\" :span=\"3\">\n <el-select v-model=\"selectCustomerId\" @change=\"refreshRecord\" placeholder=\"请选择客服\">\n <el-option\n v-for=\"item in customerData\"\n :key=\"item.id\"\n :label=\"item.nickname\"\n :value=\"item.id\"\n ></el-option>\n </el-select>\n </el-col>\n <el-col :span=\"5.5\">\n <el-date-picker\n v-model=\"selectDate\"\n align=\"right\"\n type=\"date\"\n @change=\"refreshRecord\"\n placeholder=\"选择日期\"\n :picker-options=\"pickerOptions\">\n </el-date-picker>\n </el-col>\n <el-col :span=\"5.5\">\n <el-checkbox v-model=\"isDeWeighting\" label=\"去重目标客户\" @change=\"refreshRecord\" border></el-checkbox>\n </el-col>\n <el-col :span=\"5.5\">\n <el-checkbox v-model=\"isReception\" label=\"只显示未接待客户\" @change=\"refreshRecord\" border></el-checkbox>\n </el-col>\n </el-row>\n </div>\n <el-table :data=\"tableData.list\" v-loading=\"loading\" style=\"width: 100%\">\n <el-table-column\n type=\"index\"\n :index=\"indexMethod\"\n label=\"#序号\"\n width=\"60\">\n </el-table-column>\n <el-table-column prop=\"service_account\" label=\"接待客服\">\n <template slot-scope=\"scope\">\n <span>{{serviceNickname(scope.row.service_account)}}</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"nickname\" label=\"目标客户\">\n <template slot-scope=\"scope\">\n <el-tag type=\"success\">{{scope.row.nickname}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"is_reception\" label=\"是否已接待\">\n <template slot-scope=\"scope\">\n <el-tag v-show=\"scope.row.is_reception == 0\" type=\"danger\">未接待</el-tag>\n <el-tag v-show=\"scope.row.is_reception == 1\" type=\"success\">已接待</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"transfer_account\" label=\"满意度\">\n <template>\n <span>-----</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"platform\" label=\"客户端平台\">\n <template slot-scope=\"scope\">\n <el-tag>{{$getPlatformItem(scope.row.platform).title}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"create_at\" label=\"服务时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD HH:mm:ss\")}}\n </template>\n </el-table-column>\n <el-table-column prop=\"operating\" align=\"center\" label=\"操作\" width=\"150\">\n <template slot-scope=\"scope\">\n <el-button size=\"mini\" @click=\"openModal(scope)\">聊天记录</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\">\n </el-pagination>\n </el-row>\n\n\n <!-- 聊天数据模态框 -->\n <el-dialog :visible.sync=\"dialogFormVisible\">\n <div slot=\"title\" class=\"dialog-title\">\n <div style=\"color: #666\">\n <span style=\"color: #e6a23c\">{{serviceNickname(selectUser.service_account)}}</span>\n 与\n <span style=\"color: #67c23a\">{{selectUser.nickname}}</span>\n 的聊天记录\n </div>\n </div>\n <div class=\"record-modal-chat-box\" ref=\"chatBody\" id=\"chatBody\">\n <ChatsComponent\n :isMessageEnd=\"isMessageEnd\"\n :seviceId=\"selectCustomerId+''\"\n :seviceNickname=\"serviceNickname(selectUser.service_account)\"\n :messages=\"messageRecord.list\"\n :userId=\"selectUser.user_account\"\n :userNickname=\"selectUser.nickname\"\n :onLoadMor=\"onLoadMor\"\n :loading=\"getMessageRecordLoading\"/>\n </div>\n </el-dialog>\n\n\n </div>\n</template>\n\n<script>\nimport axios from 'axios'\nvar moment = require('moment');\nimport ChatsComponent from \"./chats\"\nexport default {\n name: \"robot\",\n components:{\n ChatsComponent\n },\n data() {\n return {\n loading: true,\n isDeWeighting: false,\n isReception: false,\n selectDate: Date.now(),\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n cid: 0,\n total: 0,\n is_de_weighting: false,\n date: \"\",\n },\n customerData: [],\n selectCustomerId: null,\n selectUser: {},\n pickerOptions: {\n disabledDate(time) {\n return time.getTime() > Date.now();\n },\n shortcuts: [{\n text: '今天',\n onClick(picker) {\n picker.$emit('pick', new Date());\n }\n }, {\n text: '昨天',\n onClick(picker) {\n const date = new Date();\n date.setTime(date.getTime() - 3600 * 1000 * 24);\n picker.$emit('pick', date);\n }\n }, {\n text: '一周前',\n onClick(picker) {\n const date = new Date();\n date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);\n picker.$emit('pick', date);\n }\n }]\n },\n isMessageEnd: false,\n\n // 模态框数据\n getMessageRecordLoading: false,\n getMessageRecordPageSize: 20,\n dialogFormVisible: false,\n messageRecord: {\n list: []\n }\n\n\n };\n },\n computed: {\n platformConfig(){\n return this.$store.getters.platformConfig\n },\n adminInfo(){\n return this.$store.getters.adminInfo\n }\n },\n created() {\n this.getAdmins()\n },\n mounted(){\n setTimeout(() =>{\n this.selectCustomerId = this.adminInfo.id\n this.getRecord(1)\n }, 1000)\n },\n methods: {\n // 行号\n indexMethod(index) {\n return (this.tableData.page_on - 1) * this.tableData.page_size + index +1;\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val\n this.getRecord()\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val\n this.getRecord()\n },\n // 获取客服昵称\n serviceNickname(id){\n let nickname = \"\"\n for(let i =0; i< this.customerData.length; i++){\n if(this.customerData[i].id == id){\n nickname = this.customerData[i].nickname\n break\n }\n }\n return nickname\n },\n // 获取数据\n getAdmins(){\n axios.post('/admin/list', {page_on: 1, page_size: 100, \"online\": 3})\n .then(response => {\n this.customerData = response.data.data.list\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n },\n // 获取数据\n getRecord(index){\n this.loading = true\n if(index) this.tableData.page_on = index\n const {page_on, page_size} = this.tableData\n axios.post('/services_statistical/list', {\n page_on,\n page_size,\n cid: this.selectCustomerId,\n date: moment(this.selectDate).format(\"YYYY-MM-DD\"),\n is_de_weighting: this.isDeWeighting,\n is_reception: this.isReception\n })\n .then(response => {\n this.loading = false\n this.tableData = response.data.data\n })\n .catch(error => {\n this.loading = false\n this.$message.error(error.response.data.message)\n });\n },\n // 刷新记录\n refreshRecord(){\n this.getRecord()\n },\n // 打开模态框\n openModal(scope){\n this.selectUser = scope.row\n this.isMessageEnd = false\n this.dialogFormVisible = true\n this.messageRecord = {\n list: []\n }\n this.getMessageRecord()\n },\n // 获取聊天记录\n getMessageRecord(timestamp){\n this.getMessageRecordLoading = true\n if(timestamp == undefined){\n timestamp = 0\n }\n axios.post('/message/list', {\n \"timestamp\": timestamp,\n \"page_size\": this.getMessageRecordPageSize,\n \"service\": parseInt(this.selectCustomerId),\n \"account\": parseInt(this.selectUser.user_account)\n })\n .then(response => {\n this.getMessageRecordLoading = false\n if(response.data.data.list.length < this.getMessageRecordPageSize){\n this.isMessageEnd = true\n }\n if(this.messageRecord.list.length == 0 || timestamp == 0){\n this.messageRecord = response.data.data\n this.scrollIntoBottom()\n }else{\n response.data.data.list = response.data.data.list.concat(this.messageRecord.list)\n this.messageRecord = response.data.data\n }\n setTimeout(()=>this.$previewRefresh(), 500)\n })\n .catch(error => {\n console.log(error)\n this.getMessageRecordLoading = false\n });\n },\n // 加载更多数据\n onLoadMor(){\n if(this.getMessageRecordLoading) return\n if(this.messageRecord.list.length >= this.messageRecord.total || this.messageRecord.total <= this.getMessageRecordPageSize){\n this.isMessageEnd = true\n return\n }\n this.getMessageRecord(this.messageRecord.list[0].timestamp)\n setTimeout(()=>{\n var chatBody = document.getElementById(\"chatBody\")\n chatBody.scrollTop = 500\n }, 50)\n },\n // 滚动条置底\n scrollIntoBottom(){\n try{\n setTimeout(()=>{\n var chatBody = document.getElementById(\"chatBody\")\n if(!chatBody) return\n var height = chatBody.clientHeight\n var scrollHeight = chatBody.scrollHeight\n chatBody.scrollTop = scrollHeight-height\n }, 50)\n }catch(e){\n console.log(e)\n }\n },\n }\n};\n</script>\n<style lang=\"stylus\">\n .record-page .record-mini-im-head {\n height: 30px;\n display: flex;\n align-items: center;\n font-size: 20px;\n justify-content: space-between;\n color: #666;\n\n i {\n margin-right: 5px;\n }\n }\n .record-page .record-modal-chat-box{\n height 600px;\n padding 0 20px\n overflow hidden\n overflow-y auto\n }\n .record-page .el-dialog__body{\n padding: 0px;\n border-top: 1px solid #f7f7f7\n }\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=2ff5d0b8&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chats.vue?vue&type=style&index=0&id=3d81ef40&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chats.vue?vue&type=style&index=0&id=3d81ef40&scoped=true&lang=stylus&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&lang=stylus&\""],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08473d3a"],{"78ce":function(e,t,s){var a=s("5ca1");a(a.S,"Date",{now:function(){return(new Date).getTime()}})},c2a3:function(e,t,s){},caae:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"record-page"},[s("div",{staticClass:"record-mini-im-head"},[s("span",[s("i",{staticClass:"el-icon-time"}),s("span",{attrs:{slot:"title"},slot:"title"},[e._v("服务记录")])])]),s("el-divider"),s("div",{staticClass:"search"},[s("el-row",{attrs:{gutter:20}},[s("el-col",{staticStyle:{width:"120px"}},[s("el-form",{ref:"form",attrs:{"label-width":"120px"}},[s("el-form-item",{attrs:{label:1==e.adminInfo.root?"按客服:":"按日期:"}})],1)],1),1==e.adminInfo.root?s("el-col",{attrs:{span:3}},[s("el-select",{attrs:{placeholder:"请选择客服"},on:{change:e.refreshRecord},model:{value:e.selectCustomerId,callback:function(t){e.selectCustomerId=t},expression:"selectCustomerId"}},e._l(e.customerData,(function(e){return s("el-option",{key:e.id,attrs:{label:e.nickname,value:e.id}})})),1)],1):e._e(),s("el-col",{attrs:{span:5.5}},[s("el-date-picker",{attrs:{align:"right",type:"date",placeholder:"选择日期","picker-options":e.pickerOptions},on:{change:e.refreshRecord},model:{value:e.selectDate,callback:function(t){e.selectDate=t},expression:"selectDate"}})],1),s("el-col",{attrs:{span:5.5}},[s("el-checkbox",{attrs:{label:"去重目标客户",border:""},on:{change:e.refreshRecord},model:{value:e.isDeWeighting,callback:function(t){e.isDeWeighting=t},expression:"isDeWeighting"}})],1),s("el-col",{attrs:{span:5.5}},[s("el-checkbox",{attrs:{label:"只显示未接待客户",border:""},on:{change:e.refreshRecord},model:{value:e.isReception,callback:function(t){e.isReception=t},expression:"isReception"}})],1)],1)],1),s("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.list}},[s("el-table-column",{attrs:{type:"index",index:e.indexMethod,width:"60"}}),s("el-table-column",{attrs:{prop:"service_account",label:"接待客服"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("span",[e._v(e._s(e.serviceNickname(t.row.service_account)))])]}}])}),s("el-table-column",{attrs:{prop:"nickname",label:"目标客户"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-tag",{attrs:{type:"success"}},[e._v(e._s(t.row.nickname))])]}}])}),s("el-table-column",{attrs:{prop:"is_reception",label:"是否已接待"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-tag",{directives:[{name:"show",rawName:"v-show",value:0==t.row.is_reception,expression:"scope.row.is_reception == 0"}],attrs:{type:"danger"}},[e._v("未接待")]),s("el-tag",{directives:[{name:"show",rawName:"v-show",value:1==t.row.is_reception,expression:"scope.row.is_reception == 1"}],attrs:{type:"success"}},[e._v("已接待")])]}}])}),s("el-table-column",{attrs:{prop:"transfer_account",label:"满意度"}},[[s("span",[e._v("-----")])]],2),s("el-table-column",{attrs:{prop:"platform",label:"客户端平台"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-tag",[e._v(e._s(e.$getPlatformItem(t.row.platform).title))])]}}])}),s("el-table-column",{attrs:{prop:"create_at",label:"服务时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$formatUnixDate(t.row.create_at,"YYYY/MM/DD HH:mm:ss"))+"\n ")]}}])}),s("el-table-column",{attrs:{prop:"operating",align:"center",label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-button",{attrs:{size:"mini"},on:{click:function(s){return e.openModal(t)}}},[e._v("聊天记录")])]}}])})],1),s("el-row",{staticStyle:{"margin-top":"20px"},attrs:{type:"flex",justify:"space-between"}},[s("span",{staticStyle:{color:"#666","font-size":"14px"}},[e._v("共找到"+e._s(e.tableData.total)+"条数据")]),s("el-pagination",{attrs:{background:"",layout:"sizes, prev, pager, next","current-page":e.tableData.page_on,"page-sizes":[5,10,15,20],total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),s("el-dialog",{attrs:{visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[s("div",{staticClass:"dialog-title",attrs:{slot:"title"},slot:"title"},[s("div",{staticStyle:{color:"#666"}},[s("span",{staticStyle:{color:"#e6a23c"}},[e._v(e._s(e.serviceNickname(e.selectUser.service_account)))]),e._v("\n 与\n "),s("span",{staticStyle:{color:"#67c23a"}},[e._v(e._s(e.selectUser.nickname))]),e._v("\n 的聊天记录\n ")])]),s("div",{ref:"chatBody",staticClass:"record-modal-chat-box",attrs:{id:"chatBody"}},[s("ChatsComponent",{attrs:{isMessageEnd:e.isMessageEnd,seviceId:e.selectCustomerId+"",seviceNickname:e.serviceNickname(e.selectUser.service_account),messages:e.messageRecord.list,userId:e.selectUser.user_account,userNickname:e.selectUser.nickname,onLoadMor:e.onLoadMor,loading:e.getMessageRecordLoading}})],1)])],1)},i=[],n=(s("78ce"),s("bc3a")),o=s.n(n),c=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"mini-im-chat-list"},[s("div",{staticClass:"mini-im-chat-message-box"},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"loading"},[s("i",{staticClass:"el-icon-loading"}),s("span",[e._v("消息加载中...")])]),s("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isMessageEnd,expression:"isMessageEnd"}],attrs:{type:"text",disabled:"",icon:"el-icon-refresh-right"}},[e._v("无更多聊天记录...")]),e.isMessageEnd||e.loading?e._e():s("el-button",{attrs:{type:"text",icon:"el-icon-refresh"},on:{click:e.onLoadMor}},[e._v("点击加载更多聊天记录")])],1),s("div",{staticClass:"mini-im-chat-message-box"},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.messages.length<=0&&!e.loading,expression:"messages.length <= 0 && !loading"}],staticClass:"loading"},[s("i",{staticClass:"el-icon-time"}),s("span",[e._v("暂无聊天记录...")])])]),e._l(e.messages,(function(t,a){return s("div",{key:a,staticClass:"mini-im-chat-message-box",class:{self:t.from_account!=e.userId}},["text"==t.biz_type||"photo"==t.biz_type||"knowledge"==t.biz_type||"knowledge_list"==t.biz_type?[s("div",{staticClass:"user-date"},[t.from_account==e.seviceId?s("span",[e._v("\n "+e._s(e.seviceNickname)+"\n ")]):t.from_account==e.userId?s("span",[e._v("\n "+e._s(e.userNickname)+"\n ")]):s("span",[s("span",{staticStyle:{"font-size":"12px",color:"#666"}},[e._v("(机器人)")]),e._v(e._s(e.$robotNickname(t.from_account))+"\n ")]),s("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"text"==t.biz_type?[s("div",{staticClass:"text"},[s("span",{domProps:{innerHTML:e._s(t.payload.replace(/\n/gi,"<br />"))}})])]:e._e(),"photo"==t.biz_type?[s("div",{staticClass:"photo"},[t.percent&&100!=t.percent?s("div",{staticClass:"loading"},[s("i",{staticClass:"el-icon-loading"}),s("span",[e._v(e._s(t.percent)+"%")])]):e._e(),s("div",{staticClass:"img-content"},[s("img",{attrs:{src:t.payload,preview:"1"}})])])]:e._e(),"transfer"==t.biz_type?[s("div",{staticClass:"system"},[s("span",[e._v(e._s(t.payload))]),s("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"end"==t.biz_type?[s("div",{staticClass:"system"},[t.to_account!=e.adminInfo.id?s("span",[e._v("你结束了会话")]):s("span",[e._v("对方结束了会话")]),s("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"timeout"==t.biz_type?[s("div",{staticClass:"system"},[s("span",[e._v("用户长时间无应答,会话结束")]),s("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"cancel"==t.biz_type?[s("div",{staticClass:"system"},[t.from_account==e.adminInfo.id?s("span",[e._v("您撤回了一条消息")]):s("span",[e._v("对方撤回了一条消息")]),s("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"knowledge"==t.biz_type?[s("div",{staticClass:"knowledge"},[s("div",{staticClass:"content"},[s("div",{staticClass:"title"},[e._v("以下是否是您关心的相关问题呢?")]),e._l(JSON.parse(t.payload),(function(t,a){return s("div",{key:a,staticClass:"item"},[e._v("\n "+e._s(a+1)+"."+e._s(t.title)+"\n ")])}))],2)])]:e._e()],2)}))],2)},r=[],l={name:"mini-im-contact",data:function(){return{}},computed:{seviceCurrentUser:function(){return this.$store.getters.seviceCurrentUser||{}},adminInfo:function(){return this.$store.getters.adminInfo||{}}},props:{loading:Boolean,isMessageEnd:Boolean,messages:Array,userId:String,userNickname:String,seviceId:String,seviceNickname:String,onLoadMor:Function},watch:{messages:function(){var e=this;setTimeout((function(){e.$previewRefresh()}),1e3)}}},d=l,m=(s("e775"),s("2877")),g=Object(m["a"])(d,c,r,!1,null,"3d81ef40",null),u=g.exports,p=s("c1df"),h={name:"robot",components:{ChatsComponent:u},data:function(){return{loading:!0,isDeWeighting:!1,isReception:!1,selectDate:Date.now(),tableData:{list:[],page_on:1,page_size:10,cid:0,total:0,is_de_weighting:!1,date:""},customerData:[],selectCustomerId:null,selectUser:{},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()},shortcuts:[{text:"今天",onClick:function(e){e.$emit("pick",new Date)}},{text:"昨天",onClick:function(e){var t=new Date;t.setTime(t.getTime()-864e5),e.$emit("pick",t)}},{text:"一周前",onClick:function(e){var t=new Date;t.setTime(t.getTime()-6048e5),e.$emit("pick",t)}}]},isMessageEnd:!1,getMessageRecordLoading:!1,getMessageRecordPageSize:20,dialogFormVisible:!1,messageRecord:{list:[]}}},computed:{platformConfig:function(){return this.$store.getters.platformConfig},adminInfo:function(){return this.$store.getters.adminInfo}},created:function(){this.getAdmins()},mounted:function(){var e=this;setTimeout((function(){e.selectCustomerId=e.adminInfo.id,e.getRecord(1)}),1e3)},methods:{indexMethod:function(e){return(this.tableData.page_on-1)*this.tableData.page_size+e+1},handleSizeChange:function(e){this.tableData.page_size=e,this.getRecord()},handleCurrentChange:function(e){this.tableData.page_on=e,this.getRecord()},serviceNickname:function(e){for(var t="",s=0;s<this.customerData.length;s++)if(this.customerData[s].id==e){t=this.customerData[s].nickname;break}return t},getAdmins:function(){var e=this;o.a.post("/admin/list",{page_on:1,page_size:100,online:3}).then((function(t){e.customerData=t.data.data.list})).catch((function(t){e.$message.error(t.response.data.message)}))},getRecord:function(e){var t=this;this.loading=!0,e&&(this.tableData.page_on=e);var s=this.tableData,a=s.page_on,i=s.page_size;o.a.post("/services_statistical/list",{page_on:a,page_size:i,cid:this.selectCustomerId,date:p(this.selectDate).format("YYYY-MM-DD"),is_de_weighting:this.isDeWeighting,is_reception:this.isReception}).then((function(e){t.loading=!1,t.tableData=e.data.data})).catch((function(e){t.loading=!1,t.$message.error(e.response.data.message)}))},refreshRecord:function(){this.getRecord()},openModal:function(e){this.selectUser=e.row,this.isMessageEnd=!1,this.dialogFormVisible=!0,this.messageRecord={list:[]},this.getMessageRecord()},getMessageRecord:function(e){var t=this;this.getMessageRecordLoading=!0,void 0==e&&(e=0),o.a.post("/message/list",{timestamp:e,page_size:this.getMessageRecordPageSize,service:parseInt(this.selectCustomerId),account:parseInt(this.selectUser.user_account)}).then((function(s){t.getMessageRecordLoading=!1,s.data.data.list.length<t.getMessageRecordPageSize&&(t.isMessageEnd=!0),0==t.messageRecord.list.length||0==e?(t.messageRecord=s.data.data,t.scrollIntoBottom()):(s.data.data.list=s.data.data.list.concat(t.messageRecord.list),t.messageRecord=s.data.data),setTimeout((function(){return t.$previewRefresh()}),500)})).catch((function(e){console.log(e),t.getMessageRecordLoading=!1}))},onLoadMor:function(){this.getMessageRecordLoading||(this.messageRecord.list.length>=this.messageRecord.total||this.messageRecord.total<=this.getMessageRecordPageSize?this.isMessageEnd=!0:(this.getMessageRecord(this.messageRecord.list[0].timestamp),setTimeout((function(){var e=document.getElementById("chatBody");e.scrollTop=500}),50)))},scrollIntoBottom:function(){try{setTimeout((function(){var e=document.getElementById("chatBody");if(e){var t=e.clientHeight,s=e.scrollHeight;e.scrollTop=s-t}}),50)}catch(e){console.log(e)}}}},_=h,f=(s("fc7d"),Object(m["a"])(_,a,i,!1,null,null,null));t["default"]=f.exports},e6a4:function(e,t,s){},e775:function(e,t,s){"use strict";var a=s("c2a3"),i=s.n(a);i.a},fc7d:function(e,t,s){"use strict";var a=s("e6a4"),i=s.n(a);i.a}}]);
//# sourceMappingURL=chunk-08473d3a.b8ea5cf2.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es6.date.now.js","webpack:///./src/views/record/index.vue?ae5a","webpack:///./src/views/record/chats.vue?5755","webpack:///src/views/record/chats.vue","webpack:///./src/views/record/chats.vue?b9d8","webpack:///./src/views/record/chats.vue","webpack:///src/views/record/index.vue","webpack:///./src/views/record/index.vue?622e","webpack:///./src/views/record/index.vue","webpack:///./src/views/record/chats.vue?52e1","webpack:///./src/views/record/index.vue?6aa3"],"names":["$export","S","now","Date","getTime","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","staticStyle","ref","adminInfo","root","on","refreshRecord","model","value","callback","$$v","selectCustomerId","expression","_l","item","key","id","nickname","_e","pickerOptions","selectDate","isDeWeighting","isReception","directives","name","rawName","tableData","list","indexMethod","scopedSlots","_u","fn","scope","_s","serviceNickname","row","service_account","is_reception","$getPlatformItem","platform","title","$formatUnixDate","create_at","$event","openModal","total","page_on","handleSizeChange","handleCurrentChange","dialogFormVisible","selectUser","isMessageEnd","messageRecord","user_account","onLoadMor","getMessageRecordLoading","staticRenderFns","loading","messages","length","index","class","from_account","userId","biz_type","seviceId","seviceNickname","userNickname","$robotNickname","$formatFromNowDate","timestamp","domProps","payload","replace","percent","to_account","JSON","parse","data","computed","seviceCurrentUser","$store","getters","props","Boolean","Array","String","Function","watch","component","moment","components","ChatsComponent","page_size","cid","is_de_weighting","date","customerData","disabledDate","time","shortcuts","text","onClick","picker","$emit","setTime","getMessageRecordPageSize","platformConfig","created","getAdmins","mounted","setTimeout","methods","val","getRecord","i","format","getMessageRecord","parseInt","response","concat","console","log","error","chatBody","document","getElementById","scrollTop","scrollIntoBottom","height","clientHeight","scrollHeight","e"],"mappings":"qGACA,IAAIA,EAAU,EAAQ,QAEtBA,EAAQA,EAAQC,EAAG,OAAQ,CAAEC,IAAK,WAAc,OAAO,IAAIC,MAAOC,c,gECHlE,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACE,YAAY,uBAAuB,CAACF,EAAG,OAAO,CAACA,EAAG,IAAI,CAACE,YAAY,iBAAiBF,EAAG,OAAO,CAACG,MAAM,CAAC,KAAO,SAASC,KAAK,SAAS,CAACR,EAAIS,GAAG,cAAcL,EAAG,cAAcA,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,SAAS,CAACG,MAAM,CAAC,OAAS,KAAK,CAACH,EAAG,SAAS,CAACM,YAAY,CAAC,MAAQ,UAAU,CAACN,EAAG,UAAU,CAACO,IAAI,OAAOJ,MAAM,CAAC,cAAc,UAAU,CAACH,E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AERnC,KAAK6H,oBAGPA,iBAzEJ,SAyEA,cACM7H,KAAK+D,yBAA0B,OACrC,OACQe,EAAY,GAEd,EAAN,wBACQ,UAAaA,EACb,UAAa9E,KAAKkH,yBAClB,QAAWY,SAAS9H,KAAKmB,kBACzB,QAAW2G,SAAS9H,KAAK0D,WAAWG,gBAE5C,kBACQ,EAAR,2BACA,qDACU,EAAV,iBAEA,sCACU,EAAV,0BACU,EAAV,qBAEUkE,EAASzC,KAAKA,KAAKnD,KAAO4F,EAASzC,KAAKA,KAAKnD,KAAK6F,OAAO,EAAnE,oBACU,EAAV,2BAEQT,YAAW,WAAnB,qCAEA,mBACQU,QAAQC,IAAIC,GACZ,EAAR,+BAIIrE,UAxGJ,WAyGA,+BACA,kHACQ9D,KAAK2D,cAAe,GAGtB3D,KAAK6H,iBAAiB7H,KAAK4D,cAAczB,KAAK,GAAG2C,WACjDyC,YAAW,WACT,IAAIa,EAAWC,SAASC,eAAe,YACvCF,EAASG,UAAY,MAC7B,OAGIC,iBArHJ,WAsHM,IACEjB,YAAW,WACT,IAAIa,EAAWC,SAASC,eAAe,YACvC,GAAV,EAAU,CACA,IAAIG,EAASL,EAASM,aAClBC,EAAeP,EAASO,aAC5BP,EAASG,UAAYI,EAA/B,KACA,IACA,SACQV,QAAQC,IAAIU,OCjV6W,ICQ7X,G,UAAY,eACd,EACA9I,EACAkE,GACA,EACA,KACA,KACA,OAIa,e,kECnBf,yBAAyjB,EAAG,G,kCCA5jB,yBAAiiB,EAAG","file":"js/chunk-08473d3a.b8ea5cf2.js","sourcesContent":["// 20.3.3.1 / 15.9.4.4 Date.now()\nvar $export = require('./_export');\n\n$export($export.S, 'Date', { now: function () { return new Date().getTime(); } });\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"record-page\"},[_c('div',{staticClass:\"record-mini-im-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-time\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"服务记录\")])])]),_c('el-divider'),_c('div',{staticClass:\"search\"},[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{staticStyle:{\"width\":\"120px\"}},[_c('el-form',{ref:\"form\",attrs:{\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":_vm.adminInfo.root == 1 ? '按客服:' : '按日期:'}})],1)],1),(_vm.adminInfo.root == 1)?_c('el-col',{attrs:{\"span\":3}},[_c('el-select',{attrs:{\"placeholder\":\"请选择客服\"},on:{\"change\":_vm.refreshRecord},model:{value:(_vm.selectCustomerId),callback:function ($$v) {_vm.selectCustomerId=$$v},expression:\"selectCustomerId\"}},_vm._l((_vm.customerData),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.nickname,\"value\":item.id}})}),1)],1):_vm._e(),_c('el-col',{attrs:{\"span\":5.5}},[_c('el-date-picker',{attrs:{\"align\":\"right\",\"type\":\"date\",\"placeholder\":\"选择日期\",\"picker-options\":_vm.pickerOptions},on:{\"change\":_vm.refreshRecord},model:{value:(_vm.selectDate),callback:function ($$v) {_vm.selectDate=$$v},expression:\"selectDate\"}})],1),_c('el-col',{attrs:{\"span\":5.5}},[_c('el-checkbox',{attrs:{\"label\":\"去重目标客户\",\"border\":\"\"},on:{\"change\":_vm.refreshRecord},model:{value:(_vm.isDeWeighting),callback:function ($$v) {_vm.isDeWeighting=$$v},expression:\"isDeWeighting\"}})],1),_c('el-col',{attrs:{\"span\":5.5}},[_c('el-checkbox',{attrs:{\"label\":\"只显示未接待客户\",\"border\":\"\"},on:{\"change\":_vm.refreshRecord},model:{value:(_vm.isReception),callback:function ($$v) {_vm.isReception=$$v},expression:\"isReception\"}})],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"width\":\"60\"}}),_c('el-table-column',{attrs:{\"prop\":\"service_account\",\"label\":\"接待客服\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm.serviceNickname(scope.row.service_account)))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"nickname\",\"label\":\"目标客户\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(_vm._s(scope.row.nickname))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"is_reception\",\"label\":\"是否已接待\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{directives:[{name:\"show\",rawName:\"v-show\",value:(scope.row.is_reception == 0),expression:\"scope.row.is_reception == 0\"}],attrs:{\"type\":\"danger\"}},[_vm._v(\"未接待\")]),_c('el-tag',{directives:[{name:\"show\",rawName:\"v-show\",value:(scope.row.is_reception == 1),expression:\"scope.row.is_reception == 1\"}],attrs:{\"type\":\"success\"}},[_vm._v(\"已接待\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"transfer_account\",\"label\":\"满意度\"}},[[_c('span',[_vm._v(\"-----\")])]],2),_c('el-table-column',{attrs:{\"prop\":\"platform\",\"label\":\"客户端平台\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',[_vm._v(_vm._s(_vm.$getPlatformItem(scope.row.platform).title))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"服务时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD HH:mm:ss\"))+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"label\":\"操作\",\"width\":\"150\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.openModal(scope)}}},[_vm._v(\"聊天记录\")])]}}])})],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('el-dialog',{attrs:{\"visible\":_vm.dialogFormVisible},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('div',{staticClass:\"dialog-title\",attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('div',{staticStyle:{\"color\":\"#666\"}},[_c('span',{staticStyle:{\"color\":\"#e6a23c\"}},[_vm._v(_vm._s(_vm.serviceNickname(_vm.selectUser.service_account)))]),_vm._v(\"\\n 与\\n \"),_c('span',{staticStyle:{\"color\":\"#67c23a\"}},[_vm._v(_vm._s(_vm.selectUser.nickname))]),_vm._v(\"\\n 的聊天记录\\n \")])]),_c('div',{ref:\"chatBody\",staticClass:\"record-modal-chat-box\",attrs:{\"id\":\"chatBody\"}},[_c('ChatsComponent',{attrs:{\"isMessageEnd\":_vm.isMessageEnd,\"seviceId\":_vm.selectCustomerId+'',\"seviceNickname\":_vm.serviceNickname(_vm.selectUser.service_account),\"messages\":_vm.messageRecord.list,\"userId\":_vm.selectUser.user_account,\"userNickname\":_vm.selectUser.nickname,\"onLoadMor\":_vm.onLoadMor,\"loading\":_vm.getMessageRecordLoading}})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mini-im-chat-list\"},[_c('div',{staticClass:\"mini-im-chat-message-box\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"loading\"},[_c('i',{staticClass:\"el-icon-loading\"}),_c('span',[_vm._v(\"消息加载中...\")])]),_c('el-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isMessageEnd),expression:\"isMessageEnd\"}],attrs:{\"type\":\"text\",\"disabled\":\"\",\"icon\":\"el-icon-refresh-right\"}},[_vm._v(\"无更多聊天记录...\")]),(!_vm.isMessageEnd && !_vm.loading)?_c('el-button',{attrs:{\"type\":\"text\",\"icon\":\"el-icon-refresh\"},on:{\"click\":_vm.onLoadMor}},[_vm._v(\"点击加载更多聊天记录\")]):_vm._e()],1),_c('div',{staticClass:\"mini-im-chat-message-box\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.messages.length <= 0 && !_vm.loading),expression:\"messages.length <= 0 && !loading\"}],staticClass:\"loading\"},[_c('i',{staticClass:\"el-icon-time\"}),_c('span',[_vm._v(\"暂无聊天记录...\")])])]),_vm._l((_vm.messages),function(item,index){return _c('div',{key:index,staticClass:\"mini-im-chat-message-box\",class:{'self': item.from_account != _vm.userId}},[(item.biz_type == 'text' || item.biz_type == 'photo' || item.biz_type == 'knowledge' || item.biz_type == 'knowledge_list')?[_c('div',{staticClass:\"user-date\"},[(item.from_account == _vm.seviceId)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.seviceNickname)+\"\\n \")]):(item.from_account == _vm.userId)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.userNickname)+\"\\n \")]):_c('span',[_c('span',{staticStyle:{\"font-size\":\"12px\",\"color\":\"#666\"}},[_vm._v(\"(机器人)\")]),_vm._v(_vm._s(_vm.$robotNickname(item.from_account))+\"\\n \")]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'text')?[_c('div',{staticClass:\"text\"},[_c('span',{domProps:{\"innerHTML\":_vm._s(item.payload.replace(/\\n/ig, '<br />'))}})])]:_vm._e(),(item.biz_type == 'photo')?[_c('div',{staticClass:\"photo\"},[(item.percent && item.percent != 100)?_c('div',{staticClass:\"loading\"},[_c('i',{staticClass:\"el-icon-loading\"}),_c('span',[_vm._v(_vm._s(item.percent)+\"%\")])]):_vm._e(),_c('div',{staticClass:\"img-content\"},[_c('img',{attrs:{\"src\":item.payload,\"preview\":\"1\"}})])])]:_vm._e(),(item.biz_type == 'transfer')?[_c('div',{staticClass:\"system\"},[_c('span',[_vm._v(_vm._s(item.payload))]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'end')?[_c('div',{staticClass:\"system\"},[(item.to_account != _vm.adminInfo.id)?_c('span',[_vm._v(\"你结束了会话\")]):_c('span',[_vm._v(\"对方结束了会话\")]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'timeout')?[_c('div',{staticClass:\"system\"},[_c('span',[_vm._v(\"用户长时间无应答,会话结束\")]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'cancel')?[_c('div',{staticClass:\"system\"},[(item.from_account == _vm.adminInfo.id)?_c('span',[_vm._v(\"您撤回了一条消息\")]):_c('span',[_vm._v(\"对方撤回了一条消息\")]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'knowledge')?[_c('div',{staticClass:\"knowledge\"},[_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"以下是否是您关心的相关问题呢?\")]),_vm._l((JSON.parse(item.payload)),function(item,index){return _c('div',{key:index,staticClass:\"item\"},[_vm._v(\"\\n \"+_vm._s(index+1)+\".\"+_vm._s(item.title)+\"\\n \")])})],2)])]:_vm._e()],2)})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"mini-im-chat-list\">\n\n <div class=\"mini-im-chat-message-box\">\n <div class=\"loading\" v-show=\"loading\">\n <i class=\"el-icon-loading\"></i><span>消息加载中...</span>\n </div>\n <el-button v-show=\"isMessageEnd\" type=\"text\" disabled icon=\"el-icon-refresh-right\">无更多聊天记录...</el-button>\n <el-button v-if=\"!isMessageEnd && !loading\" type=\"text\" @click=\"onLoadMor\" icon=\"el-icon-refresh\">点击加载更多聊天记录</el-button>\n </div>\n\n <div class=\"mini-im-chat-message-box\">\n <div class=\"loading\" v-show=\"messages.length <= 0 && !loading\">\n <i class=\"el-icon-time\"></i><span>暂无聊天记录...</span>\n </div>\n </div>\n\n <div class=\"mini-im-chat-message-box\" :class=\"{'self': item.from_account != userId}\" v-for=\"(item, index) in messages\" :key=\"index\">\n\n <!-- 用户信息 -->\n <template v-if=\"item.biz_type == 'text' || item.biz_type == 'photo' || item.biz_type == 'knowledge' || item.biz_type == 'knowledge_list'\">\n <div class=\"user-date\">\n <span v-if=\"item.from_account == seviceId\">\n {{seviceNickname}}\n </span>\n <span v-else-if=\"item.from_account == userId\">\n {{userNickname}}\n </span>\n <span v-else>\n <span style=\"font-size:12px;color: #666;\">(机器人)</span>{{$robotNickname(item.from_account)}}\n </span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 文本消息 -->\n <template v-if=\"item.biz_type == 'text'\">\n <div class=\"text\">\n <span v-html=\"item.payload.replace(/\\n/ig, '<br />')\"></span>\n </div>\n </template>\n\n <!-- 图片 -->\n <template v-if=\"item.biz_type == 'photo'\">\n <div class=\"photo\">\n <div class=\"loading\" v-if=\"item.percent && item.percent != 100\">\n <i class=\"el-icon-loading\"></i>\n <span>{{item.percent}}%</span>\n </div>\n <div class=\"img-content\">\n <img :src=\"item.payload\" preview=\"1\" />\n </div>\n </div>\n </template>\n\n <!-- 转接 -->\n <template v-if=\"item.biz_type == 'transfer'\">\n <div class=\"system\">\n <span>{{item.payload}}</span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 结束聊天 -->\n <template v-if=\"item.biz_type == 'end'\">\n <div class=\"system\">\n <span v-if=\"item.to_account != adminInfo.id\">你结束了会话</span>\n <span v-else>对方结束了会话</span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 聊天超时 -->\n <template v-if=\"item.biz_type == 'timeout'\">\n <div class=\"system\">\n <span>用户长时间无应答,会话结束</span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 撤回消息 -->\n <template v-if=\"item.biz_type == 'cancel'\">\n <div class=\"system\">\n <span v-if=\"item.from_account == adminInfo.id\">您撤回了一条消息</span>\n <span v-else>对方撤回了一条消息</span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 知识库列表 -->\n <template v-if=\"item.biz_type == 'knowledge'\">\n <div class=\"knowledge\">\n <div class=\"content\">\n <div class=\"title\">以下是否是您关心的相关问题呢?</div>\n <div class=\"item\" :key=\"index\" v-for=\"(item, index) in JSON.parse(item.payload)\">\n {{index+1}}.{{item.title}}\n </div>\n </div>\n </div>\n </template>\n\n </div>\n\n </div>\n</template>\n<script>\nexport default {\n name: \"mini-im-contact\",\n data() {\n return {};\n },\n computed: {\n seviceCurrentUser(){\n return this.$store.getters.seviceCurrentUser || {}\n },\n adminInfo(){\n return this.$store.getters.adminInfo || {}\n }\n },\n props: {\n loading: Boolean,\n isMessageEnd: Boolean,\n messages: Array,\n userId: String,\n userNickname: String,\n seviceId: String,\n seviceNickname: String,\n onLoadMor: Function\n },\n watch:{\n messages(){\n setTimeout(()=>{\n this.$previewRefresh()\n }, 1000)\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-chat-list {\n display: flex;\n flex-direction: column;\n\n .mini-im-chat-message-box {\n width: 100%;\n display: flex;\n flex-direction: column;\n margin-bottom: 15px;\n\n .user-date {\n display: flex;\n align-items: center;\n color: #999;\n font-size: 14px;\n\n span {\n color: #666;\n font-weight: 500;\n font-size: 14px;\n padding: 0 5px;\n }\n\n em {\n font-style: normal;\n font-size 12px\n }\n }\n\n .loading{\n color #666\n display: flex;\n margin-top: 5px;\n align-items center\n align-content center\n justify-content center\n span{\n margin-left 5px\n font-size 13px\n }\n }\n\n .text {\n display: flex;\n margin-top: 5px;\n\n span {\n max-width: 40%;\n display: inline;\n padding: 5px 10px;\n border-radius: 5px;\n background-color: #eef4f9;\n font-size: 14px;\n color: #666;\n }\n }\n\n .photo {\n display: flex;\n margin-top: 5px;\n\n .loading{\n align-self flex-end\n padding 0 5px\n span{\n background none !important\n color: #999 !important\n }\n }\n\n .img-content{\n border-radius: 5px;\n width: 200px;\n overflow hidden\n }\n\n img {\n cursor: pointer;\n width: 100%;\n height 100%\n display: inline;\n }\n }\n\n .knowledge {\n display: flex;\n margin-top: 5px;\n justify-content: flex-end;\n\n .content {\n display: flex;\n flex-direction: column;\n padding: 5px;\n border-radius: 5px;\n color: #666;\n text-align: left;\n background-color: #eef4f9;\n\n .title {\n font-size: 13px;\n font-weight: 500;\n }\n\n .item {\n font-size: 13px;\n line-height: 22px;\n }\n }\n }\n\n .system {\n display: flex;\n margin-top: 5px;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n em{\n margin-top: 5px;\n font-size: 12px;\n color: #999;\n }\n span {\n font-size: 12px;\n max-width: 50%;\n min-width: 100px;\n display: inline;\n padding: 3px 20px;\n border-radius: 5px;\n text-align: center;\n background-color: #f2f2f2;\n color: #999;\n }\n }\n\n &.self {\n text-align: right;\n\n .user-date {\n display: flex;\n justify-content: flex-end;\n\n span {\n order: -2;\n }\n\n em {\n order: -3;\n }\n }\n\n .text, .photo {\n justify-content: flex-end;\n align-items flex-end\n .cancel-btn{\n color #26a2ff\n font-size 12px\n margin-right 5px\n cursor pointer\n }\n span {\n background-color: rgba(33, 150, 243, 0.72);\n color: #fff;\n text-align left\n }\n }\n\n .knowledge>.content {\n background-color: rgba(33, 150, 243, 0.72);\n color: #fff;\n }\n }\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chats.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chats.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./chats.vue?vue&type=template&id=3d81ef40&scoped=true&\"\nimport script from \"./chats.vue?vue&type=script&lang=js&\"\nexport * from \"./chats.vue?vue&type=script&lang=js&\"\nimport style0 from \"./chats.vue?vue&type=style&index=0&id=3d81ef40&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3d81ef40\",\n null\n \n)\n\nexport default component.exports","<template>\n <div class=\"record-page\">\n <div class=\"record-mini-im-head\">\n <span>\n <i class=\"el-icon-time\"></i>\n <span slot=\"title\">服务记录</span>\n </span>\n </div>\n <el-divider />\n <div class=\"search\">\n <el-row :gutter=\"20\">\n <el-col style=\"width: 120px\">\n <el-form ref=\"form\" label-width=\"120px\">\n <el-form-item :label=\"adminInfo.root == 1 ? '按客服:' : '按日期:'\"></el-form-item>\n </el-form>\n </el-col>\n <el-col v-if=\"adminInfo.root == 1\" :span=\"3\">\n <el-select v-model=\"selectCustomerId\" @change=\"refreshRecord\" placeholder=\"请选择客服\">\n <el-option\n v-for=\"item in customerData\"\n :key=\"item.id\"\n :label=\"item.nickname\"\n :value=\"item.id\"\n ></el-option>\n </el-select>\n </el-col>\n <el-col :span=\"5.5\">\n <el-date-picker\n v-model=\"selectDate\"\n align=\"right\"\n type=\"date\"\n @change=\"refreshRecord\"\n placeholder=\"选择日期\"\n :picker-options=\"pickerOptions\">\n </el-date-picker>\n </el-col>\n <el-col :span=\"5.5\">\n <el-checkbox v-model=\"isDeWeighting\" label=\"去重目标客户\" @change=\"refreshRecord\" border></el-checkbox>\n </el-col>\n <el-col :span=\"5.5\">\n <el-checkbox v-model=\"isReception\" label=\"只显示未接待客户\" @change=\"refreshRecord\" border></el-checkbox>\n </el-col>\n </el-row>\n </div>\n <el-table :data=\"tableData.list\" v-loading=\"loading\" style=\"width: 100%\">\n <el-table-column\n type=\"index\"\n :index=\"indexMethod\"\n width=\"60\">\n </el-table-column>\n <el-table-column prop=\"service_account\" label=\"接待客服\">\n <template slot-scope=\"scope\">\n <span>{{serviceNickname(scope.row.service_account)}}</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"nickname\" label=\"目标客户\">\n <template slot-scope=\"scope\">\n <el-tag type=\"success\">{{scope.row.nickname}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"is_reception\" label=\"是否已接待\">\n <template slot-scope=\"scope\">\n <el-tag v-show=\"scope.row.is_reception == 0\" type=\"danger\">未接待</el-tag>\n <el-tag v-show=\"scope.row.is_reception == 1\" type=\"success\">已接待</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"transfer_account\" label=\"满意度\">\n <template>\n <span>-----</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"platform\" label=\"客户端平台\">\n <template slot-scope=\"scope\">\n <el-tag>{{$getPlatformItem(scope.row.platform).title}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"create_at\" label=\"服务时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD HH:mm:ss\")}}\n </template>\n </el-table-column>\n <el-table-column prop=\"operating\" align=\"center\" label=\"操作\" width=\"150\">\n <template slot-scope=\"scope\">\n <el-button size=\"mini\" @click=\"openModal(scope)\">聊天记录</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\">\n </el-pagination>\n </el-row>\n\n\n <!-- 聊天数据模态框 -->\n <el-dialog :visible.sync=\"dialogFormVisible\">\n <div slot=\"title\" class=\"dialog-title\">\n <div style=\"color: #666\">\n <span style=\"color: #e6a23c\">{{serviceNickname(selectUser.service_account)}}</span>\n 与\n <span style=\"color: #67c23a\">{{selectUser.nickname}}</span>\n 的聊天记录\n </div>\n </div>\n <div class=\"record-modal-chat-box\" ref=\"chatBody\" id=\"chatBody\">\n <ChatsComponent\n :isMessageEnd=\"isMessageEnd\"\n :seviceId=\"selectCustomerId+''\"\n :seviceNickname=\"serviceNickname(selectUser.service_account)\"\n :messages=\"messageRecord.list\"\n :userId=\"selectUser.user_account\"\n :userNickname=\"selectUser.nickname\"\n :onLoadMor=\"onLoadMor\"\n :loading=\"getMessageRecordLoading\"/>\n </div>\n </el-dialog>\n\n\n </div>\n</template>\n\n<script>\nimport axios from 'axios'\nvar moment = require('moment');\nimport ChatsComponent from \"./chats\"\nexport default {\n name: \"robot\",\n components:{\n ChatsComponent\n },\n data() {\n return {\n loading: true,\n isDeWeighting: false,\n isReception: false,\n selectDate: Date.now(),\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n cid: 0,\n total: 0,\n is_de_weighting: false,\n date: \"\",\n },\n customerData: [],\n selectCustomerId: null,\n selectUser: {},\n pickerOptions: {\n disabledDate(time) {\n return time.getTime() > Date.now();\n },\n shortcuts: [{\n text: '今天',\n onClick(picker) {\n picker.$emit('pick', new Date());\n }\n }, {\n text: '昨天',\n onClick(picker) {\n const date = new Date();\n date.setTime(date.getTime() - 3600 * 1000 * 24);\n picker.$emit('pick', date);\n }\n }, {\n text: '一周前',\n onClick(picker) {\n const date = new Date();\n date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);\n picker.$emit('pick', date);\n }\n }]\n },\n isMessageEnd: false,\n\n // 模态框数据\n getMessageRecordLoading: false,\n getMessageRecordPageSize: 20,\n dialogFormVisible: false,\n messageRecord: {\n list: []\n }\n\n\n };\n },\n computed: {\n platformConfig(){\n return this.$store.getters.platformConfig\n },\n adminInfo(){\n return this.$store.getters.adminInfo\n }\n },\n created() {\n this.getAdmins()\n },\n mounted(){\n setTimeout(() =>{\n this.selectCustomerId = this.adminInfo.id\n this.getRecord(1)\n }, 1000)\n },\n methods: {\n // 行号\n indexMethod(index) {\n return (this.tableData.page_on - 1) * this.tableData.page_size + index +1;\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val\n this.getRecord()\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val\n this.getRecord()\n },\n // 获取客服昵称\n serviceNickname(id){\n let nickname = \"\"\n for(let i =0; i< this.customerData.length; i++){\n if(this.customerData[i].id == id){\n nickname = this.customerData[i].nickname\n break\n }\n }\n return nickname\n },\n // 获取数据\n getAdmins(){\n axios.post('/admin/list', {page_on: 1, page_size: 100, \"online\": 3})\n .then(response => {\n this.customerData = response.data.data.list\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n },\n // 获取数据\n getRecord(index){\n this.loading = true\n if(index) this.tableData.page_on = index\n const {page_on, page_size} = this.tableData\n axios.post('/services_statistical/list', {\n page_on,\n page_size,\n cid: this.selectCustomerId,\n date: moment(this.selectDate).format(\"YYYY-MM-DD\"),\n is_de_weighting: this.isDeWeighting,\n is_reception: this.isReception\n })\n .then(response => {\n this.loading = false\n this.tableData = response.data.data\n })\n .catch(error => {\n this.loading = false\n this.$message.error(error.response.data.message)\n });\n },\n // 刷新记录\n refreshRecord(){\n this.getRecord()\n },\n // 打开模态框\n openModal(scope){\n this.selectUser = scope.row\n this.isMessageEnd = false\n this.dialogFormVisible = true\n this.messageRecord = {\n list: []\n }\n this.getMessageRecord()\n },\n // 获取聊天记录\n getMessageRecord(timestamp){\n this.getMessageRecordLoading = true\n if(timestamp == undefined){\n timestamp = 0\n }\n axios.post('/message/list', {\n \"timestamp\": timestamp,\n \"page_size\": this.getMessageRecordPageSize,\n \"service\": parseInt(this.selectCustomerId),\n \"account\": parseInt(this.selectUser.user_account)\n })\n .then(response => {\n this.getMessageRecordLoading = false\n if(response.data.data.list.length < this.getMessageRecordPageSize){\n this.isMessageEnd = true\n }\n if(this.messageRecord.list.length == 0 || timestamp == 0){\n this.messageRecord = response.data.data\n this.scrollIntoBottom()\n }else{\n response.data.data.list = response.data.data.list.concat(this.messageRecord.list)\n this.messageRecord = response.data.data\n }\n setTimeout(()=>this.$previewRefresh(), 500)\n })\n .catch(error => {\n console.log(error)\n this.getMessageRecordLoading = false\n });\n },\n // 加载更多数据\n onLoadMor(){\n if(this.getMessageRecordLoading) return\n if(this.messageRecord.list.length >= this.messageRecord.total || this.messageRecord.total <= this.getMessageRecordPageSize){\n this.isMessageEnd = true\n return\n }\n this.getMessageRecord(this.messageRecord.list[0].timestamp)\n setTimeout(()=>{\n var chatBody = document.getElementById(\"chatBody\")\n chatBody.scrollTop = 500\n }, 50)\n },\n // 滚动条置底\n scrollIntoBottom(){\n try{\n setTimeout(()=>{\n var chatBody = document.getElementById(\"chatBody\")\n if(!chatBody) return\n var height = chatBody.clientHeight\n var scrollHeight = chatBody.scrollHeight\n chatBody.scrollTop = scrollHeight-height\n }, 50)\n }catch(e){\n console.log(e)\n }\n },\n }\n};\n</script>\n<style lang=\"stylus\">\n .record-page .record-mini-im-head {\n height: 30px;\n display: flex;\n align-items: center;\n font-size: 20px;\n justify-content: space-between;\n color: #666;\n\n i {\n margin-right: 5px;\n }\n }\n .record-page .record-modal-chat-box{\n height 600px;\n padding 0 20px\n overflow hidden\n overflow-y auto\n }\n .record-page .el-dialog__body{\n padding: 0px;\n border-top: 1px solid #f7f7f7\n }\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=03a23014&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chats.vue?vue&type=style&index=0&id=3d81ef40&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chats.vue?vue&type=style&index=0&id=3d81ef40&scoped=true&lang=stylus&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&lang=stylus&\""],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1b20b679"],{"32f9":function(t,e,i){"use strict";var o=i("45d6"),a=i.n(o);a.a},"45d6":function(t,e,i){},5817:function(t,e,i){},"682a":function(t,e,i){"use strict";var o=i("5817"),a=i.n(o);a.a},"6fdd":function(t,e,i){"use strict";var o=i("af44"),a=i.n(o);a.a},"7a26":function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"me-head"},[i("span",[i("i",{staticClass:"el-icon-reading"}),i("span",{attrs:{slot:"title"},slot:"title"},[t._v("知识库管理")])]),i("el-button-group",[t._l(t.total,(function(e){return[i("el-button",{key:e.id,class:{"el-button--primary":e.id+""==t.tableData.platform+""},attrs:{size:"small"},on:{click:function(i){return t.onTogglePlatform(e.id)}}},[t._v(t._s(e.title)+" ( "+t._s(e.count)+" )")])]}))],2),i("el-col",{attrs:{span:5}},[i("el-input",{attrs:{placeholder:"请输入关键词","prefix-icon":"el-icon-search",clearable:""},on:{change:t.onRefresh},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1),i("el-button",{attrs:{size:"mini"},on:{click:function(e){t.createDialogFormVisible=!0}}},[t._v("添 加")])],1),i("el-divider"),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.list}},[i("el-table-column",{attrs:{type:"index",index:t.indexMethod,width:"60",label:"#序号"}}),i("el-table-column",{attrs:{prop:"title",label:"主标题"}}),i("el-table-column",{attrs:{prop:"sub_title",label:"子标题"},scopedSlots:t._u([{key:"default",fn:function(e){return[""!=e.row.sub_title?i("div",t._l(e.row.sub_title.split("|"),(function(e,o){return i("div",{key:o,staticStyle:{"font-size":"13px"}},[t._v(t._s(o+1)+"."+t._s(e))])})),0):i("div",[t._v("-----")])]}}])}),i("el-table-column",{attrs:{prop:"content",label:"内容"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.content.split("\n"),(function(e,o){return i("div",{key:o,staticStyle:{"font-size":"13px"}},[t._v(t._s(e))])}))}}])}),i("el-table-column",{attrs:{prop:"platform",align:"center",label:"匹配平台"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-tag",[t._v(t._s(t.$getPlatformItem(e.row.platform).title))])]}}])}),i("el-table-column",{attrs:{prop:"create_at",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t.$formatUnixDate(e.row.create_at,"YYYY/MM/DD")))]}}])}),i("el-table-column",{attrs:{prop:"operating",align:"center",width:"150",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{size:"mini"},on:{click:function(i){return t.edit(e.row)}}},[t._v("编 辑")]),i("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(i){return t.deleteKnowledge(e.row)}}},[t._v("删 除")])]}}])})],1),i("el-row",{staticStyle:{"margin-top":"20px"},attrs:{type:"flex",justify:"space-between"}},[i("span",{staticStyle:{color:"#666","font-size":"14px"}},[t._v("共找到"+t._s(t.tableData.total)+"条数据")]),i("el-pagination",{attrs:{background:"",layout:"sizes, prev, pager, next","current-page":t.tableData.page_on,"page-sizes":[5,10,15,20],total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),i("CreateDialog",{attrs:{complete:t.onRefresh,dialogFormVisible:t.createDialogFormVisible},on:{"update:dialogFormVisible":function(e){t.createDialogFormVisible=e},"update:dialog-form-visible":function(e){t.createDialogFormVisible=e}}}),i("EditDialog",{attrs:{formData:t.editItem,complete:t.onRefresh,dialogFormVisible:t.editDialogFormVisible},on:{"update:dialogFormVisible":function(e){t.editDialogFormVisible=e},"update:dialog-form-visible":function(e){t.editDialogFormVisible=e}}})],1)},a=[],l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{width:"600px",title:"添加新的知识","show-close":!1,visible:t.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[i("el-form",{attrs:{model:t.form}},[i("el-form-item",{attrs:{label:"主标题","label-width":t.formLabelWidth}},[i("el-input",{attrs:{placeholder:"请输入主标题",autocomplete:"off"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}})],1),i("el-form-item",{attrs:{label:"子标题","label-width":t.formLabelWidth}},[t._l(t.dynamicTags,(function(e){return i("el-tag",{key:e,attrs:{closable:"","disable-transitions":!1},on:{close:function(i){return t.handleDel(e)}}},[t._v(t._s(e))])})),t.inputVisible?i("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:t.handleInputConfirm},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputConfirm(e)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}):i("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:t.showInput}},[t._v("+ 新增")])],2),i("el-form-item",{attrs:{label:"内容","label-width":t.formLabelWidth}},[i("el-input",{attrs:{rows:"5",type:"textarea",autocomplete:"off"},model:{value:t.form.content,callback:function(e){t.$set(t.form,"content",e)},expression:"form.content"}})],1),i("el-form-item",{attrs:{label:"匹配平台","label-width":t.formLabelWidth}},[i("el-select",{attrs:{placeholder:"请选择匹配平台"},model:{value:t.form.platform,callback:function(e){t.$set(t.form,"platform",e)},expression:"form.platform"}},t._l(t.$store.getters.platformConfig,(function(t,e){return i("el-option",{key:e,attrs:{label:t.title,value:t.id}})})),1)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.closeModal}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)},n=[],s=(i("57e7"),i("bc3a")),r=i.n(s),c={name:"mini-im-create-knowledge",data:function(){return{dynamicTags:[],inputVisible:!1,inputValue:"",form:{uid:"",platform:1,title:"",sub_title:"",content:""},formLabelWidth:"80px"}},props:{dialogFormVisible:Boolean,complete:Function},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},handleDel:function(t){this.dynamicTags.splice(this.dynamicTags.indexOf(t),1)},showInput:function(){var t=this;this.inputVisible=!0,this.$nextTick((function(){t.$refs.saveTagInput.$refs.input.focus()}))},handleInputConfirm:function(){var t=this.inputValue;t&&this.dynamicTags.push(t),this.inputVisible=!1,this.inputValue="",console.log(this.dynamicTags.join("|"))},save:function(){var t=this,e=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});this.form.uid=this.$store.state.adminInfo.id,this.form.sub_title=this.dynamicTags.join("|"),r.a.post("/knowledge",this.form).then((function(i){try{console.log(i),e.close(),t.$message.success("添加成功"),t.closeModal(),t.resize(),t.complete(1)}catch(o){console.log(o)}})).catch((function(i){e.close(),t.$message.error(i.response.data.message)}))},resize:function(){this.dynamicTags=[],this.form={uid:"",platform:1,title:"",sub_title:"",content:""}}}},u=c,f=(i("6fdd"),i("2877")),d=Object(f["a"])(u,l,n,!1,null,"015f50bf",null),m=d.exports,p=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{width:"600px",title:"编辑的知识","show-close":!1,visible:t.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[i("el-form",{attrs:{model:t.form}},[i("el-form-item",{attrs:{label:"主标题","label-width":t.formLabelWidth}},[i("el-input",{attrs:{placeholder:"请输入主标题",autocomplete:"off"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}})],1),i("el-form-item",{attrs:{label:"子标题","label-width":t.formLabelWidth}},[t._l(t.dynamicTags,(function(e){return i("el-tag",{key:e,attrs:{closable:"","disable-transitions":!1},on:{close:function(i){return t.handleDel(e)}}},[t._v("\n "+t._s(e)+"\n ")])})),t.inputVisible?i("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:t.handleInputConfirm},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputConfirm(e)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}):i("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:t.showInput}},[t._v("+ 新增子标题")])],2),i("el-form-item",{attrs:{label:"内容","label-width":t.formLabelWidth}},[i("el-input",{attrs:{rows:"5",type:"textarea",autocomplete:"off"},model:{value:t.form.content,callback:function(e){t.$set(t.form,"content",e)},expression:"form.content"}})],1),i("el-form-item",{attrs:{label:"匹配平台","label-width":t.formLabelWidth}},[i("el-select",{attrs:{placeholder:"请选择匹配平台"},model:{value:t.form.platform,callback:function(e){t.$set(t.form,"platform",e)},expression:"form.platform"}},t._l(t.platformConfig,(function(t,e){return i("el-option",{key:e,attrs:{label:t.title,value:t.id}})})),1)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.closeModal}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)},g=[],h=(i("28a5"),{name:"mini-im-create-knowledge",data:function(){return{dynamicTags:[],inputVisible:!1,inputValue:"",form:{uid:"",platform:1,title:"",sub_title:"",content:""},platformConfig:[],formLabelWidth:"80px"}},props:{dialogFormVisible:Boolean,complete:Function,formData:Object},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},handleDel:function(t){this.dynamicTags.splice(this.dynamicTags.indexOf(t),1)},showInput:function(){var t=this;this.inputVisible=!0,this.$nextTick((function(){t.$refs.saveTagInput.$refs.input.focus()}))},handleInputConfirm:function(){var t=this.inputValue;t&&this.dynamicTags.push(t),this.inputVisible=!1,this.inputValue=""},save:function(){var t=this,e=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});this.form.uid=this.$store.state.adminInfo.id,this.form.sub_title=this.dynamicTags.join("|"),r.a.put("/knowledge",this.form).then((function(i){try{console.log(i),e.close(),t.$message.success("修改成功"),t.closeModal(),t.resize(),t.complete(1)}catch(o){console.log(o)}})).catch((function(i){e.close(),t.$message.error(i.response.data.message)}))},resize:function(){this.dynamicTags=[],this.form={uid:"",platform:1,title:"",sub_title:"",content:""}}},watch:{formData:function(){this.platformConfig=this.$store.getters.platformConfig,this.form=Object.assign({},this.form,this.formData),""!=this.formData.sub_title&&(this.dynamicTags=this.formData.sub_title.split("|"))}}}),b=h,v=(i("682a"),Object(f["a"])(b,p,g,!1,null,"7b12f7d6",null)),_=v.exports,k={name:"knowledge",components:{CreateDialog:m,EditDialog:_},data:function(){return{keyword:"",tableData:{list:[],page_on:1,page_size:10,total:0,keyword:"",platform:1},total:[],createDialogFormVisible:!1,editDialogFormVisible:!1,loading:!0,editItem:null}},computed:{platformConfig:function(){return this.$store.state.platformConfig||[]}},created:function(){var t=this;setTimeout((function(){t.getKnowledgeList(),t.getTotal()}),500)},methods:{onRefresh:function(){this.getTotal(),this.getKnowledgeList()},indexMethod:function(t){return(this.tableData.page_on-1)*this.tableData.page_size+t+1},deleteKnowledge:function(t){var e=this;this.$confirm("您确定要删除该知识库吗? 删除后不可恢复!","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){r.a.delete("/knowledge/"+t.id).then((function(t){console.log(t.data),e.$message.success("删除成功"),e.getKnowledgeList(1)})).catch((function(t){e.$message.error(t.response.data.message)}))}))},onTogglePlatform:function(t){this.tableData.platform=parseInt(t),this.getKnowledgeList(1)},edit:function(t){this.editItem=t,this.editDialogFormVisible=!0},handleSizeChange:function(t){this.tableData.page_size=t,this.getKnowledgeList()},handleCurrentChange:function(t){this.tableData.page_on=t,this.getKnowledgeList()},getKnowledgeList:function(t){var e=this;t&&(this.tableData.page_on=t);var i=this.tableData,o=i.page_on,a=i.page_size,l=i.platform,n=this.keyword;r.a.post("/knowledge/list",{page_on:o,page_size:a,platform:l,keyword:n}).then((function(t){e.loading=!1,e.tableData=t.data.data})).catch((function(t){e.loading=!1,e.$message.error(t.response.data.message)}))},getTotal:function(){var t=this;r.a.get("/knowledge/total").then((function(e){t.total=e.data.data}))}}},w=k,y=(i("32f9"),Object(f["a"])(w,o,a,!1,null,"22f8e0fa",null));e["default"]=y.exports},af44:function(t,e,i){}}]);
//# sourceMappingURL=chunk-1b20b679.382e3755.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/knowledge/index.vue?2566","webpack:///./src/views/knowledge/edit.vue?212d","webpack:///./src/views/knowledge/create.vue?79ac","webpack:///./src/views/knowledge/index.vue?5774","webpack:///./src/views/knowledge/create.vue?e5d1","webpack:///src/views/knowledge/create.vue","webpack:///./src/views/knowledge/create.vue?c80e","webpack:///./src/views/knowledge/create.vue","webpack:///./src/views/knowledge/edit.vue?ef0c","webpack:///src/views/knowledge/edit.vue","webpack:///./src/views/knowledge/edit.vue?8aad","webpack:///./src/views/knowledge/edit.vue","webpack:///src/views/knowledge/index.vue","webpack:///./src/views/knowledge/index.vue?43e7","webpack:///./src/views/knowledge/index.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","_l","item","key","id","class","tableData","platform","on","$event","onTogglePlatform","_s","title","count","onRefresh","model","value","callback","$$v","keyword","expression","createDialogFormVisible","directives","name","rawName","staticStyle","list","indexMethod","scopedSlots","_u","fn","scope","row","sub_title","split","content","index","$getPlatformItem","$formatUnixDate","create_at","edit","deleteKnowledge","total","page_on","handleSizeChange","handleCurrentChange","editItem","editDialogFormVisible","staticRenderFns","dialogFormVisible","form","formLabelWidth","$set","tag","handleDel","ref","handleInputConfirm","nativeOn","type","indexOf","_k","keyCode","inputValue","showInput","$store","getters","closeModal","save","data","dynamicTags","inputVisible","uid","props","Boolean","complete","Function","methods","$emit","splice","$nextTick","push","console","log","join","lock","text","spinner","background","state","adminInfo","resize","component","platformConfig","formData","Object","response","loading","close","e","watch","assign","components","CreateDialog","EditDialog","page_size","computed","created","setTimeout","getTotal","getKnowledgeList","$confirm","confirmButtonText","cancelButtonText","center","parseInt","pid","val"],"mappings":"kHAAA,yBAAyjB,EAAG,G,oFCA5jB,yBAAwjB,EAAG,G,oCCA3jB,yBAA0jB,EAAG,G,2CCA7jB,IAAIA,EAAS,WAAa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QAAUyE,EACzB5H,KAAKqH,oBAGPA,iBApDJ,SAoDA,cACUzE,IAAO5C,KAAKc,UAAUqC,QAAUP,GAD1C,MAEA,iBAFA,EAEA,UAFA,EAEA,YAFA,EAEA,SACA,eACM,EAAN,EACA,wBAAQ,QAAR,EAAQ,UAAR,EAAQ,SAAR,EAAQ,QAAR,IACA,kBACQ,EAAR,WACQ,EAAR,yBAEA,mBACQ,EAAR,WACQ,EAAR,4CAIIwE,SApEJ,WAoEA,WACM,EAAN,4CACQ,EAAR,wBClMiY,ICQ7X,G,UAAY,eACd,EACAtH,EACA0D,GACA,EACA,KACA,WACA,OAIa,e","file":"js/chunk-1b20b679.382e3755.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=22f8e0fa&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=22f8e0fa&lang=stylus&scoped=true&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=7b12f7d6&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=7b12f7d6&scoped=true&lang=stylus&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=style&index=0&id=015f50bf&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=style&index=0&id=015f50bf&scoped=true&lang=stylus&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"me-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-reading\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"知识库管理\")])]),_c('el-button-group',[_vm._l((_vm.total),function(item){return [_c('el-button',{key:item.id,class:{'el-button--primary': item.id + '' == _vm.tableData.platform + ''},attrs:{\"size\":\"small\"},on:{\"click\":function($event){return _vm.onTogglePlatform(item.id)}}},[_vm._v(_vm._s(item.title)+\" ( \"+_vm._s(item.count)+\" )\")])]})],2),_c('el-col',{attrs:{\"span\":5}},[_c('el-input',{attrs:{\"placeholder\":\"请输入关键词\",\"prefix-icon\":\"el-icon-search\",\"clearable\":\"\"},on:{\"change\":_vm.onRefresh},model:{value:(_vm.keyword),callback:function ($$v) {_vm.keyword=$$v},expression:\"keyword\"}})],1),_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.createDialogFormVisible = true}}},[_vm._v(\"添 加\")])],1),_c('el-divider'),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"width\":\"60\",\"label\":\"#序号\"}}),_c('el-table-column',{attrs:{\"prop\":\"title\",\"label\":\"主标题\"}}),_c('el-table-column',{attrs:{\"prop\":\"sub_title\",\"label\":\"子标题\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.sub_title != '')?_c('div',_vm._l((scope.row.sub_title.split('|')),function(item,key){return _c('div',{key:key,staticStyle:{\"font-size\":\"13px\"}},[_vm._v(_vm._s(key+1)+\".\"+_vm._s(item))])}),0):_c('div',[_vm._v(\"-----\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"content\",\"label\":\"内容\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return _vm._l((scope.row.content.split('\\n')),function(item,index){return _c('div',{key:index,staticStyle:{\"font-size\":\"13px\"}},[_vm._v(_vm._s(item))])})}}])}),_c('el-table-column',{attrs:{\"prop\":\"platform\",\"align\":\"center\",\"label\":\"匹配平台\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',[_vm._v(_vm._s(_vm.$getPlatformItem(scope.row.platform).title))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"创建时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")))]}}])}),_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"width\":\"150\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编 辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteKnowledge(scope.row)}}},[_vm._v(\"删 除\")])]}}])})],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('CreateDialog',{attrs:{\"complete\":_vm.onRefresh,\"dialogFormVisible\":_vm.createDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.createDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.createDialogFormVisible=$event}}}),_c('EditDialog',{attrs:{\"formData\":_vm.editItem,\"complete\":_vm.onRefresh,\"dialogFormVisible\":_vm.editDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.editDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.editDialogFormVisible=$event}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"添加新的知识\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"主标题\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入主标题\",\"autocomplete\":\"off\"},model:{value:(_vm.form.title),callback:function ($$v) {_vm.$set(_vm.form, \"title\", $$v)},expression:\"form.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"子标题\",\"label-width\":_vm.formLabelWidth}},[_vm._l((_vm.dynamicTags),function(tag){return _c('el-tag',{key:tag,attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleDel(tag)}}},[_vm._v(_vm._s(tag))])}),(_vm.inputVisible)?_c('el-input',{ref:\"saveTagInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm($event)}},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:\"inputValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":_vm.showInput}},[_vm._v(\"+ 新增\")])],2),_c('el-form-item',{attrs:{\"label\":\"内容\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"rows\":\"5\",\"type\":\"textarea\",\"autocomplete\":\"off\"},model:{value:(_vm.form.content),callback:function ($$v) {_vm.$set(_vm.form, \"content\", $$v)},expression:\"form.content\"}})],1),_c('el-form-item',{attrs:{\"label\":\"匹配平台\",\"label-width\":_vm.formLabelWidth}},[_c('el-select',{attrs:{\"placeholder\":\"请选择匹配平台\"},model:{value:(_vm.form.platform),callback:function ($$v) {_vm.$set(_vm.form, \"platform\", $$v)},expression:\"form.platform\"}},_vm._l((_vm.$store.getters.platformConfig),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.title,\"value\":item.id}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog\n width=\"600px\"\n title=\"添加新的知识\"\n :show-close=\"false\"\n :visible.sync=\"dialogFormVisible\"\n :close-on-click-modal=\"false\"\n >\n <el-form :model=\"form\">\n <el-form-item label=\"主标题\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.title\" placeholder=\"请输入主标题\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"子标题\" :label-width=\"formLabelWidth\">\n <el-tag\n :key=\"tag\"\n v-for=\"tag in dynamicTags\"\n closable\n :disable-transitions=\"false\"\n @close=\"handleDel(tag)\"\n >{{tag}}</el-tag>\n <el-input\n class=\"input-new-tag\"\n v-if=\"inputVisible\"\n v-model=\"inputValue\"\n ref=\"saveTagInput\"\n size=\"small\"\n @keyup.enter.native=\"handleInputConfirm\"\n @blur=\"handleInputConfirm\"\n ></el-input>\n <el-button v-else class=\"button-new-tag\" size=\"small\" @click=\"showInput\">+ 新增</el-button>\n </el-form-item>\n <el-form-item label=\"内容\" :label-width=\"formLabelWidth\">\n <el-input rows=\"5\" type=\"textarea\" v-model=\"form.content\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"匹配平台\" :label-width=\"formLabelWidth\">\n <el-select v-model=\"form.platform\" placeholder=\"请选择匹配平台\">\n <el-option\n :label=\"item.title\"\n :value=\"item.id\"\n :key=\"index\"\n v-for=\"(item, index) in $store.getters.platformConfig\"\n ></el-option>\n </el-select>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from \"axios\";\nexport default {\n name: \"mini-im-create-knowledge\",\n data() {\n return {\n dynamicTags: [],\n inputVisible: false,\n inputValue: \"\",\n form: {\n uid: \"\",\n platform: 1,\n title: \"\",\n sub_title: \"\",\n content: \"\"\n },\n formLabelWidth: \"80px\"\n };\n },\n props: {\n dialogFormVisible: Boolean,\n complete: Function\n },\n methods: {\n // 关闭\n closeModal() {\n this.$emit(\"update:dialogFormVisible\", false);\n },\n // 删除标签\n handleDel(tag) {\n this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);\n },\n // 显示子标题输入框\n showInput() {\n this.inputVisible = true;\n this.$nextTick(() => {\n this.$refs.saveTagInput.$refs.input.focus();\n });\n },\n // 标签确定\n handleInputConfirm() {\n let inputValue = this.inputValue;\n if (inputValue) {\n this.dynamicTags.push(inputValue);\n }\n this.inputVisible = false;\n this.inputValue = \"\";\n console.log(this.dynamicTags.join(\"|\"));\n },\n // 保存\n save() {\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n this.form.uid = this.$store.state.adminInfo.id;\n this.form.sub_title = this.dynamicTags.join(\"|\");\n axios\n .post(\"/knowledge\", this.form)\n .then(response => {\n try {\n console.log(response);\n loading.close();\n this.$message.success(\"添加成功\");\n this.closeModal();\n this.resize();\n this.complete(1);\n } catch (e) {\n console.log(e);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n resize() {\n this.dynamicTags = [];\n this.form = {\n uid: \"\",\n platform: 1,\n title: \"\",\n sub_title: \"\",\n content: \"\"\n };\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.el-tag + .el-tag {\n margin-left: 10px;\n}\n\n.button-new-tag {\n margin-left: 10px;\n height: 32px;\n line-height: 30px;\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.input-new-tag {\n width: 150px;\n margin-left: 10px;\n vertical-align: bottom;\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create.vue?vue&type=template&id=015f50bf&scoped=true&\"\nimport script from \"./create.vue?vue&type=script&lang=js&\"\nexport * from \"./create.vue?vue&type=script&lang=js&\"\nimport style0 from \"./create.vue?vue&type=style&index=0&id=015f50bf&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"015f50bf\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"编辑的知识\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"主标题\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入主标题\",\"autocomplete\":\"off\"},model:{value:(_vm.form.title),callback:function ($$v) {_vm.$set(_vm.form, \"title\", $$v)},expression:\"form.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"子标题\",\"label-width\":_vm.formLabelWidth}},[_vm._l((_vm.dynamicTags),function(tag){return _c('el-tag',{key:tag,attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleDel(tag)}}},[_vm._v(\"\\n \"+_vm._s(tag)+\"\\n \")])}),(_vm.inputVisible)?_c('el-input',{ref:\"saveTagInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm($event)}},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:\"inputValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":_vm.showInput}},[_vm._v(\"+ 新增子标题\")])],2),_c('el-form-item',{attrs:{\"label\":\"内容\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"rows\":\"5\",\"type\":\"textarea\",\"autocomplete\":\"off\"},model:{value:(_vm.form.content),callback:function ($$v) {_vm.$set(_vm.form, \"content\", $$v)},expression:\"form.content\"}})],1),_c('el-form-item',{attrs:{\"label\":\"匹配平台\",\"label-width\":_vm.formLabelWidth}},[_c('el-select',{attrs:{\"placeholder\":\"请选择匹配平台\"},model:{value:(_vm.form.platform),callback:function ($$v) {_vm.$set(_vm.form, \"platform\", $$v)},expression:\"form.platform\"}},_vm._l((_vm.platformConfig),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.title,\"value\":item.id}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog width=\"600px\" title=\"编辑的知识\" :show-close=\"false\" :visible.sync=\"dialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"主标题\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.title\" placeholder=\"请输入主标题\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"子标题\" :label-width=\"formLabelWidth\">\n <el-tag\n :key=\"tag\"\n v-for=\"tag in dynamicTags\"\n closable\n :disable-transitions=\"false\"\n @close=\"handleDel(tag)\">\n {{tag}}\n </el-tag>\n <el-input\n class=\"input-new-tag\"\n v-if=\"inputVisible\"\n v-model=\"inputValue\"\n ref=\"saveTagInput\"\n size=\"small\"\n @keyup.enter.native=\"handleInputConfirm\"\n @blur=\"handleInputConfirm\"\n >\n </el-input>\n <el-button v-else class=\"button-new-tag\" size=\"small\" @click=\"showInput\">+ 新增子标题</el-button>\n </el-form-item>\n <el-form-item label=\"内容\" :label-width=\"formLabelWidth\">\n <el-input rows=\"5\" type=\"textarea\" v-model=\"form.content\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"匹配平台\" :label-width=\"formLabelWidth\">\n <el-select v-model=\"form.platform\" placeholder=\"请选择匹配平台\">\n <el-option :label=\"item.title\" :value=\"item.id\" :key=\"index\" v-for=\"(item, index) in platformConfig\"></el-option>\n </el-select>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nexport default {\n name: 'mini-im-create-knowledge',\n data(){\n return {\n dynamicTags: [],\n inputVisible: false,\n inputValue: '',\n form: {\n uid: \"\",\n platform: 1,\n title: '',\n sub_title: '',\n content: '',\n },\n platformConfig: [],\n formLabelWidth: \"80px\"\n }\n },\n props:{\n dialogFormVisible: Boolean,\n complete: Function,\n formData: Object\n },\n methods: {\n // 关闭\n closeModal(){\n this.$emit('update:dialogFormVisible', false);\n },\n // 删除标签\n handleDel(tag) {\n this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);\n },\n // 显示子标题输入框\n showInput() {\n this.inputVisible = true;\n this.$nextTick(() => {\n this.$refs.saveTagInput.$refs.input.focus();\n });\n },\n // 确定\n handleInputConfirm() {\n let inputValue = this.inputValue;\n if (inputValue) {\n this.dynamicTags.push(inputValue);\n }\n this.inputVisible = false;\n this.inputValue = '';\n },\n // 保存\n save(){\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: '保存中...',\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.5)'\n });\n this.form.uid = this.$store.state.adminInfo.id\n this.form.sub_title = this.dynamicTags.join(\"|\")\n axios.put('/knowledge', this.form)\n .then(response => {\n try{\n console.log(response)\n loading.close();\n this.$message.success(\"修改成功\")\n this.closeModal()\n this.resize()\n this.complete(1)\n }catch(e){\n console.log(e)\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message)\n });\n\n },\n resize(){\n this.dynamicTags = []\n this.form = {\n uid: \"\",\n platform: 1,\n title: '',\n sub_title: '',\n content: '',\n };\n }\n },\n watch:{\n formData(){\n this.platformConfig = this.$store.getters.platformConfig\n this.form = Object.assign({},this.form, this.formData)\n if(this.formData.sub_title != \"\") this.dynamicTags = this.formData.sub_title.split(\"|\")\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n .el-tag + .el-tag {\n margin-left: 10px;\n }\n .button-new-tag {\n margin-left: 10px;\n height: 32px;\n line-height: 30px;\n padding-top: 0;\n padding-bottom: 0;\n }\n .input-new-tag {\n width: 150px;\n margin-left: 10px;\n vertical-align: bottom;\n }\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=7b12f7d6&scoped=true&\"\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=7b12f7d6&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7b12f7d6\",\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div class=\"me-head\">\n <span>\n <i class=\"el-icon-reading\"></i>\n <span slot=\"title\">知识库管理</span>\n </span>\n <el-button-group>\n <template v-for=\"item in total\">\n <el-button\n :class=\"{'el-button--primary': item.id + '' == tableData.platform + ''}\"\n @click=\"onTogglePlatform(item.id)\"\n :key=\"item.id\"\n size=\"small\"\n >{{item.title}} ( {{item.count}} )</el-button>\n </template>\n </el-button-group>\n <el-col :span=\"5\">\n <el-input\n @change=\"onRefresh\"\n placeholder=\"请输入关键词\"\n prefix-icon=\"el-icon-search\"\n v-model=\"keyword\"\n clearable\n ></el-input>\n </el-col>\n <el-button @click=\"createDialogFormVisible = true\" size=\"mini\">添 加</el-button>\n </div>\n <el-divider />\n <el-table :data=\"tableData.list\" style=\"width: 100%\" v-loading=\"loading\">\n <el-table-column type=\"index\" :index=\"indexMethod\" width=\"60\" label=\"#序号\"></el-table-column>\n <el-table-column prop=\"title\" label=\"主标题\"></el-table-column>\n <el-table-column prop=\"sub_title\" label=\"子标题\">\n <template slot-scope=\"scope\">\n <div v-if=\"scope.row.sub_title != ''\">\n <div\n style=\"font-size: 13px;\"\n :key=\"key\"\n v-for=\"(item, key) in scope.row.sub_title.split('|')\"\n >{{key+1}}.{{item}}</div>\n </div>\n <div v-else>-----</div>\n </template>\n </el-table-column>\n <el-table-column prop=\"content\" label=\"内容\">\n <template slot-scope=\"scope\">\n <div style=\"font-size: 13px;\" :key=\"index\" v-for=\"(item, index) in scope.row.content.split('\\n')\">{{item}}</div>\n </template>\n </el-table-column>\n <el-table-column prop=\"platform\" align=\"center\" label=\"匹配平台\">\n <template slot-scope=\"scope\">\n <el-tag>{{$getPlatformItem(scope.row.platform).title}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"create_at\" label=\"创建时间\">\n <template slot-scope=\"scope\">{{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}</template>\n </el-table-column>\n <el-table-column prop=\"operating\" align=\"center\" width=\"150\" label=\"操作\">\n <template slot-scope=\"scope\">\n <el-button size=\"mini\" @click=\"edit(scope.row)\">编 辑</el-button>\n <el-button size=\"mini\" type=\"danger\" @click=\"deleteKnowledge(scope.row)\">删 除</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\"\n ></el-pagination>\n </el-row>\n <CreateDialog :complete=\"onRefresh\" :dialogFormVisible.sync=\"createDialogFormVisible\" />\n <EditDialog\n :formData=\"editItem\"\n :complete=\"onRefresh\"\n :dialogFormVisible.sync=\"editDialogFormVisible\"\n />\n </div>\n</template>\n\n<script>\nimport CreateDialog from \"./create\";\nimport EditDialog from \"./edit\";\nimport axios from \"axios\";\nexport default {\n name: \"knowledge\",\n components: {\n CreateDialog,\n EditDialog\n },\n data() {\n return {\n keyword: \"\",\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n total: 0,\n keyword: \"\",\n platform: 1\n },\n total: [],\n createDialogFormVisible: false,\n editDialogFormVisible: false,\n loading: true,\n editItem: null\n };\n },\n computed: {\n platformConfig() {\n return this.$store.state.platformConfig || [];\n }\n },\n created() {\n setTimeout(() => {\n this.getKnowledgeList();\n this.getTotal();\n }, 500);\n },\n methods: {\n onRefresh() {\n this.getTotal();\n this.getKnowledgeList();\n },\n // 行号\n indexMethod(index) {\n return (\n (this.tableData.page_on - 1) * this.tableData.page_size + index + 1\n );\n },\n // 删除\n deleteKnowledge(item) {\n this.$confirm(\"您确定要删除该知识库吗? 删除后不可恢复!\", \"温馨提示!\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n center: true,\n type: \"warning\"\n }).then(() => {\n axios\n .delete(\"/knowledge/\" + item.id)\n .then(response => {\n console.log(response.data);\n this.$message.success(\"删除成功\");\n this.getKnowledgeList(1);\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n });\n },\n // 切换显示平台\n onTogglePlatform(pid) {\n this.tableData.platform = parseInt(pid);\n this.getKnowledgeList(1);\n },\n // 编辑\n edit(item) {\n this.editItem = item;\n this.editDialogFormVisible = true;\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val;\n this.getKnowledgeList();\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val;\n this.getKnowledgeList();\n },\n // 获取数据\n getKnowledgeList(index) {\n if (index) this.tableData.page_on = index;\n const { page_on, page_size, platform } = this.tableData;\n const keyword = this.keyword;\n axios\n .post(\"/knowledge/list\", { page_on, page_size, platform, keyword })\n .then(response => {\n this.loading = false;\n this.tableData = response.data.data;\n })\n .catch(error => {\n this.loading = false;\n this.$message.error(error.response.data.message);\n });\n },\n // 获取统计数据\n getTotal() {\n axios.get(\"/knowledge/total\").then(response => {\n this.total = response.data.data;\n });\n }\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n.me-head {\n height: 30px;\n display: flex;\n align-items: center;\n font-size: 20px;\n justify-content: space-between;\n color: #666;\n\n i {\n margin-right: 5px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=22f8e0fa&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=22f8e0fa&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"22f8e0fa\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-43693859"],{4468:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"mini-im-head"},[a("span",[a("i",{staticClass:"el-icon-user"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("用户管理")])])]),a("el-divider"),a("div",{staticClass:"search"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{staticStyle:{width:"120px"}},[a("el-form",{ref:"form",attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"按条件查找:"}})],1)],1),a("el-col",{attrs:{span:3}},[a("el-select",{attrs:{placeholder:"请选择平台"},model:{value:e.tableData.platform,callback:function(t){e.$set(e.tableData,"platform",t)},expression:"tableData.platform"}},e._l(e.platformConfig,(function(e){return a("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})})),1)],1),a("el-col",{attrs:{span:4}},[a("el-input",{attrs:{placeholder:"请输入关键词","prefix-icon":"el-icon-search",clearable:""},model:{value:e.tableData.keyword,callback:function(t){e.$set(e.tableData,"keyword",t)},expression:"tableData.keyword"}})],1),a("el-col",{attrs:{span:6.5}},[a("el-date-picker",{attrs:{type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.selectDate,callback:function(t){e.selectDate=t},expression:"selectDate"}})],1),a("el-col",{attrs:{span:3}},[a("el-button",{on:{click:e.search}},[e._v("查 找")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.list}},[a("el-table-column",{attrs:{type:"index",index:e.indexMethod,label:"#序号",width:"60"}}),a("el-table-column",{attrs:{prop:"avatar",label:"头像",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-avatar",{attrs:{size:40,src:t.row.avatar||e.$store.state.avatar}})]}}])}),a("el-table-column",{attrs:{prop:"nickname",label:"用户昵称"},scopedSlots:e._u([{key:"default",fn:function(t){return[""!=t.row.nickname?a("span",[e._v(e._s(t.row.nickname))]):a("span",[e._v("------")])]}}])}),a("el-table-column",{attrs:{prop:"uid",label:"业务平台ID"},scopedSlots:e._u([{key:"default",fn:function(t){return[""!=t.row.uid?a("span",[e._v(e._s(t.row.uid))]):a("span",[e._v("------")])]}}])}),a("el-table-column",{attrs:{prop:"address",label:"所在地区"},scopedSlots:e._u([{key:"default",fn:function(t){return[""!=t.row.address?a("span",[e._v(e._s(t.row.address))]):a("span",[e._v("------")])]}}])}),a("el-table-column",{attrs:{prop:"phone",label:"联系方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[""!=t.row.phone?a("span",[e._v(e._s(t.row.phone))]):a("span",[e._v("------")])]}}])}),a("el-table-column",{attrs:{prop:"online",align:"center",label:"在线状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.online?a("el-tag",{attrs:{type:"success"}},[e._v("在线")]):e._e(),0==t.row.online?a("el-tag",{attrs:{type:"info"}},[e._v("离线")]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"platform",align:"center",label:"服务平台"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",[e._v(e._s(e.$getPlatformItem(t.row.platform).title))])]}}])}),a("el-table-column",{attrs:{prop:"remarks",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.remarks||"------")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"create_at",label:"注册时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$formatUnixDate(t.row.create_at,"YYYY/MM/DD"))+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"operating",align:"center",label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini"},on:{click:function(a){return e.edit(t.row)}}},[e._v("编 辑")]),1==e.$store.getters.adminInfo.root?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return e.deleteUser(t.row)}}},[e._v("删 除")]):e._e()]}}])})],1),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{type:"flex",justify:"space-between"}},[a("span",{staticStyle:{color:"#666","font-size":"14px"}},[e._v("共找到"+e._s(e.tableData.total)+"条数据")]),a("el-pagination",{attrs:{background:"",layout:"sizes, prev, pager, next","current-page":e.tableData.page_on,"page-sizes":[5,10,15,20],total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),a("EditDialog",{attrs:{complete:e.getUsers,formData:e.editItem,dialogFormVisible:e.editDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.editDialogFormVisible=t},"update:dialog-form-visible":function(t){e.editDialogFormVisible=t}}})],1)},l=[],s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"编辑用户","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{attrs:{model:e.form}},[a("el-form-item",{attrs:{label:"头像","label-width":e.formLabelWidth}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"mini-im-file-button",attrs:{title:"点击上传图片"}},[a("el-avatar",{attrs:{size:50,src:e.form.avatar||e.$store.state.avatar}}),a("input",{attrs:{onClick:"this.value = null",type:"file",accept:"image/*"},on:{change:e.changeFile}}),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isUploading,expression:"isUploading"}],staticClass:"mini-im-file-percent"},[a("span",[e._v(e._s(e.uploadPercent))])])],1)]),a("el-col",{attrs:{span:6}})],1)],1),a("el-form-item",{attrs:{label:"用户昵称","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入用户昵称",autocomplete:"off"},model:{value:e.form.nickname,callback:function(t){e.$set(e.form,"nickname",t)},expression:"form.nickname"}})],1),a("el-form-item",{attrs:{label:"所在地区","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入所在地区",autocomplete:"off"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1),a("el-form-item",{attrs:{label:"联系方式","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入联系方式",autocomplete:"off"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),a("el-form-item",{attrs:{label:"备注","label-width":e.formLabelWidth}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入备注",autocomplete:"off"},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)},n=[],r=a("bc3a"),i=a.n(r),c=a("fb21"),d={name:"mini-im-edit-user",data:function(){return{form:{id:"",avatar:"",phone:"",address:"",nickname:"",remarks:""},formLabelWidth:"120px",isUploading:!1,uploadPercent:""}},props:{dialogFormVisible:Boolean,complete:Function,formData:Object},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},changeFile:function(e){var t=this,a=e.target.files[0];Object(c["a"])({file:a,progress:function(e){t.isUploading=!0,t.uploadPercent=e+"%"},success:function(e){t.isUploading=!1,t.uploadPercent="",t.$message.success("上传成功");var a=t.$store.getters.uploadToken.host+"/"+e;t.form.avatar=a},error:function(e){t.isUploading=!1,t.uploadPercent="",t.$message.error(e.message)}})},save:function(){var e=this,t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});i.a.put("/user",this.form).then((function(a){try{console.log(a),t.close(),e.$message.success("修改成功"),e.closeModal(),e.complete()}catch(o){console.log(o)}})).catch((function(a){t.close(),e.$message.error(a.response.data.message)}))}},watch:{formData:function(){this.form=Object.assign({},this.form,this.formData)}}},u=d,p=(a("b3fc"),a("2877")),f=Object(p["a"])(u,s,n,!1,null,"6bfc8d44",null),m=f.exports,b=a("c1df"),g={name:"robot",components:{EditDialog:m},data:function(){return{loading:!0,selectDate:[],tableData:{list:[],page_on:1,page_size:10,keyword:"",total:0,platform:1,date_start:"",date_end:""},editItem:{},editDialogFormVisible:!1}},computed:{platformConfig:function(){return this.$store.getters.platformConfig}},created:function(){var e=this;setTimeout((function(){return e.getUsers(1)}),500)},methods:{indexMethod:function(e){return(this.tableData.page_on-1)*this.tableData.page_size+e+1},edit:function(e){this.editItem=e,this.editDialogFormVisible=!0},deleteUser:function(e){var t=this;this.$confirm("您确定要删除该用户吗? 删除后不可恢复!","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){i.a.delete("/user/"+e.id).then((function(e){console.log(e.data),t.$message.success("删除成功"),t.getUsers(1)})).catch((function(e){t.$message.error(e.response.data.message)}))}))},handleSizeChange:function(e){this.tableData.page_size=e,this.getUsers()},handleCurrentChange:function(e){this.tableData.page_on=e,this.getUsers()},search:function(){2==this.selectDate.length?(this.tableData.date_start=b(this.selectDate[0]).format("YYYY-MM-DD"),this.tableData.date_end=b(this.selectDate[1]).format("YYYY-MM-DD")):(this.tableData.date_start="",this.tableData.date_end=""),this.getUsers(1)},getUsers:function(e){var t=this;e&&(this.tableData.page_on=e);var a=this.tableData,o=a.page_on,l=a.page_size,s=a.keyword,n=a.date_start,r=a.date_end,c=a.platform;i.a.post("/user/list",{page_on:o,page_size:l,keyword:s,date_start:n,date_end:r,platform:c}).then((function(e){t.loading=!1,t.tableData=e.data.data})).catch((function(e){t.loading=!1,t.$message.error(e.response.data.message)}))}}},h=g,_=(a("ae04"),Object(p["a"])(h,o,l,!1,null,"3a13145a",null));t["default"]=_.exports},8904:function(e,t,a){},"978f":function(e,t,a){},ae04:function(e,t,a){"use strict";var o=a("978f"),l=a.n(o);l.a},b3fc:function(e,t,a){"use strict";var o=a("8904"),l=a.n(o);l.a}}]);
//# sourceMappingURL=chunk-43693859.d666587e.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/users/index.vue?fb95","webpack:///./src/views/users/edit.vue?fca4","webpack:///src/views/users/edit.vue","webpack:///./src/views/users/edit.vue?2db2","webpack:///./src/views/users/edit.vue","webpack:///src/views/users/index.vue","webpack:///./src/views/users/index.vue?6c0d","webpack:///./src/views/users/index.vue","webpack:///./src/views/users/index.vue?24a9","webpack:///./src/views/users/edit.vue?3e06"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","staticStyle","ref","model","value","tableData","callback","$$v","$set","expression","_l","item","key","id","title","selectDate","on","search","directives","name","rawName","list","indexMethod","scopedSlots","_u","fn","scope","row","avatar","$store","state","nickname","_s","uid","address","phone","online","_e","$getPlatformItem","platform","remarks","$formatUnixDate","create_at","$event","edit","getters","adminInfo","root","deleteUser","total","page_on","handleSizeChange","handleCurrentChange","getUsers","editItem","editDialogFormVisible","staticRenderFns","dialogFormVisible","form","formLabelWidth","changeFile","uploadPercent","closeModal","save","data","isUploading","props","Boolean","complete","Function","formData","Object","methods","$emit","fileData","file","target","files","lock","text","spinner","background","watch","assign","component","moment","components","EditDialog","loading","page_size","keyword","date_start","date_end","computed","platformConfig","created","setTimeout","index","$confirm","confirmButtonText","cancelButtonText","center","type","val","format"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,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DA,cACA,8BADA,MAEA,iBAFA,EAEA,UAFA,EAEA,YAFA,EAEA,UAFA,EAEA,aAFA,EAEA,WAFA,EAEA,SACM,EAAN,0FACA,kBACQ,EAAR,WACQ,EAAR,yBAEA,mBACQ,EAAR,WACQ,EAAR,8CC7NiY,ICQ7X,G,UAAY,eACd,EACA/D,EACAkE,GACA,EACA,KACA,WACA,OAIa,e,2FCnBf,yBAAyjB,EAAG,G,kCCA5jB,yBAAwjB,EAAG","file":"js/chunk-43693859.d666587e.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"mini-im-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-user\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"用户管理\")])])]),_c('el-divider'),_c('div',{staticClass:\"search\"},[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{staticStyle:{\"width\":\"120px\"}},[_c('el-form',{ref:\"form\",attrs:{\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":\"按条件查找:\"}})],1)],1),_c('el-col',{attrs:{\"span\":3}},[_c('el-select',{attrs:{\"placeholder\":\"请选择平台\"},model:{value:(_vm.tableData.platform),callback:function ($$v) {_vm.$set(_vm.tableData, \"platform\", $$v)},expression:\"tableData.platform\"}},_vm._l((_vm.platformConfig),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.title,\"value\":item.id}})}),1)],1),_c('el-col',{attrs:{\"span\":4}},[_c('el-input',{attrs:{\"placeholder\":\"请输入关键词\",\"prefix-icon\":\"el-icon-search\",\"clearable\":\"\"},model:{value:(_vm.tableData.keyword),callback:function ($$v) {_vm.$set(_vm.tableData, \"keyword\", $$v)},expression:\"tableData.keyword\"}})],1),_c('el-col',{attrs:{\"span\":6.5}},[_c('el-date-picker',{attrs:{\"type\":\"daterange\",\"align\":\"right\",\"unlink-panels\":\"\",\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\"},model:{value:(_vm.selectDate),callback:function ($$v) {_vm.selectDate=$$v},expression:\"selectDate\"}})],1),_c('el-col',{attrs:{\"span\":3}},[_c('el-button',{on:{\"click\":_vm.search}},[_vm._v(\"查 找\")])],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"label\":\"#序号\",\"width\":\"60\"}}),_c('el-table-column',{attrs:{\"prop\":\"avatar\",\"label\":\"头像\",\"width\":\"80\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-avatar',{attrs:{\"size\":40,\"src\":scope.row.avatar || _vm.$store.state.avatar}})]}}])}),_c('el-table-column',{attrs:{\"prop\":\"nickname\",\"label\":\"用户昵称\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.nickname != '')?_c('span',[_vm._v(_vm._s(scope.row.nickname))]):_c('span',[_vm._v(\"------\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"uid\",\"label\":\"业务平台ID\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.uid != '')?_c('span',[_vm._v(_vm._s(scope.row.uid))]):_c('span',[_vm._v(\"------\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"address\",\"label\":\"所在地区\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.address != '')?_c('span',[_vm._v(_vm._s(scope.row.address))]):_c('span',[_vm._v(\"------\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"phone\",\"label\":\"联系方式\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.phone != '')?_c('span',[_vm._v(_vm._s(scope.row.phone))]):_c('span',[_vm._v(\"------\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"online\",\"align\":\"center\",\"label\":\"在线状态\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.online == 1)?_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(\"在线\")]):_vm._e(),(scope.row.online == 0)?_c('el-tag',{attrs:{\"type\":\"info\"}},[_vm._v(\"离线\")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"platform\",\"align\":\"center\",\"label\":\"服务平台\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',[_vm._v(_vm._s(_vm.$getPlatformItem(scope.row.platform).title))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"remarks\",\"label\":\"备注\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(scope.row.remarks || '------')+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"注册时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\"))+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"label\":\"操作\",\"width\":\"150\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编 辑\")]),(_vm.$store.getters.adminInfo.root == 1)?_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteUser(scope.row)}}},[_vm._v(\"删 除\")]):_vm._e()]}}])})],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('EditDialog',{attrs:{\"complete\":_vm.getUsers,\"formData\":_vm.editItem,\"dialogFormVisible\":_vm.editDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.editDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.editDialogFormVisible=$event}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"title\":\"编辑用户\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"头像\",\"label-width\":_vm.formLabelWidth}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('el-avatar',{attrs:{\"size\":50,\"src\":_vm.form.avatar || _vm.$store.state.avatar}}),_c('input',{attrs:{\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.changeFile}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploading),expression:\"isUploading\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadPercent))])])],1)]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"用户昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入用户昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"所在地区\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入所在地区\",\"autocomplete\":\"off\"},model:{value:(_vm.form.address),callback:function ($$v) {_vm.$set(_vm.form, \"address\", $$v)},expression:\"form.address\"}})],1),_c('el-form-item',{attrs:{\"label\":\"联系方式\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入联系方式\",\"autocomplete\":\"off\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"备注\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"placeholder\":\"请输入备注\",\"autocomplete\":\"off\"},model:{value:(_vm.form.remarks),callback:function ($$v) {_vm.$set(_vm.form, \"remarks\", $$v)},expression:\"form.remarks\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog\n title=\"编辑用户\"\n :show-close=\"false\"\n :visible.sync=\"dialogFormVisible\"\n :close-on-click-modal=\"false\"\n >\n <el-form :model=\"form\">\n <el-form-item label=\"头像\" :label-width=\"formLabelWidth\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <el-avatar\n :size=\"50\"\n :src=\"form.avatar || $store.state.avatar\"\n ></el-avatar>\n <input onClick=\"this.value = null\" @change=\"changeFile\" type=\"file\" accept=\"image/*\" />\n <div v-show=\"isUploading\" class=\"mini-im-file-percent\">\n <span>{{uploadPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\"></el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"用户昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入用户昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"所在地区\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.address\" placeholder=\"请输入所在地区\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"联系方式\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.phone\" placeholder=\"请输入联系方式\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"备注\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.remarks\" type=\"textarea\" placeholder=\"请输入备注\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nimport upload from '../../common/upload'\nexport default {\n name: \"mini-im-edit-user\",\n data() {\n return {\n form: {\n id: \"\",\n avatar: \"\",\n phone: \"\",\n address: \"\",\n nickname: \"\",\n remarks: \"\"\n },\n formLabelWidth: \"120px\",\n isUploading: false,\n uploadPercent: \"\"\n };\n },\n props: {\n dialogFormVisible: Boolean,\n complete: Function,\n formData: Object\n },\n methods: {\n // 关闭\n closeModal() {\n this.$emit(\"update:dialogFormVisible\", false);\n },\n // 上传\n changeFile(file) {\n\n var fileData = file.target.files[0];\n upload({\n file: fileData,\n progress: (percent) => {\n this.isUploading = true;\n this.uploadPercent = percent + \"%\";\n },\n success: (url) => {\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.success(\"上传成功\");\n var imgUrl = this.$store.getters.uploadToken.host + \"/\" + url\n this.form.avatar = imgUrl;\n },\n error: (err)=>{\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.error(err.message);\n }\n });\n\n\n },\n // 保存\n save(){\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n axios\n .put(\"/user\", this.form)\n .then(response => {\n try {\n console.log(response);\n loading.close();\n this.$message.success(\"修改成功\");\n this.closeModal();\n this.complete();\n } catch (e) {\n console.log(e);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n },\n watch:{\n formData(){\n this.form = Object.assign({},this.form, this.formData)\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-file-button {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: relative;\n overflow: hidden;\n\n input {\n font-size: 100px;\n position: absolute;\n top: 0px;\n left: 0px;\n cursor: pointer;\n opacity 0\n }\n\n cursor: pointer;\n\n .mini-im-file-percent {\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n color: #fff;\n font-size: 12px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=6bfc8d44&scoped=true&\"\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=6bfc8d44&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6bfc8d44\",\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div class=\"mini-im-head\">\n <span>\n <i class=\"el-icon-user\"></i>\n <span slot=\"title\">用户管理</span>\n </span>\n </div>\n <el-divider />\n <div class=\"search\">\n <el-row :gutter=\"20\">\n <el-col style=\"width: 120px\">\n <el-form ref=\"form\" label-width=\"120px\">\n <el-form-item label=\"按条件查找:\"></el-form-item>\n </el-form>\n </el-col>\n <el-col :span=\"3\">\n <el-select v-model=\"tableData.platform\" placeholder=\"请选择平台\">\n <el-option\n v-for=\"item in platformConfig\"\n :key=\"item.id\"\n :label=\"item.title\"\n :value=\"item.id\"\n ></el-option>\n </el-select>\n </el-col>\n <el-col :span=\"4\">\n <el-input placeholder=\"请输入关键词\" prefix-icon=\"el-icon-search\" v-model=\"tableData.keyword\" clearable></el-input>\n </el-col>\n <el-col :span=\"6.5\">\n <el-date-picker\n v-model=\"selectDate\"\n type=\"daterange\"\n align=\"right\"\n unlink-panels\n range-separator=\"至\"\n start-placeholder=\"开始日期\"\n end-placeholder=\"结束日期\"\n ></el-date-picker>\n </el-col>\n <el-col :span=\"3\">\n <el-button @click=\"search\">查 找</el-button>\n </el-col>\n </el-row>\n </div>\n <el-table :data=\"tableData.list\" v-loading=\"loading\" style=\"width: 100%\">\n <el-table-column\n type=\"index\"\n :index=\"indexMethod\"\n label=\"#序号\"\n width=\"60\">\n </el-table-column>\n <el-table-column prop=\"avatar\" label=\"头像\" width=\"80\">\n <template slot-scope=\"scope\">\n <el-avatar :size=\"40\" :src=\"scope.row.avatar || $store.state.avatar\"></el-avatar>\n </template>\n </el-table-column>\n <el-table-column prop=\"nickname\" label=\"用户昵称\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.nickname != ''\">{{scope.row.nickname}}</span>\n <span v-else>------</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"uid\" label=\"业务平台ID\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.uid != ''\">{{scope.row.uid}}</span>\n <span v-else>------</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"address\" label=\"所在地区\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.address != ''\">{{scope.row.address}}</span>\n <span v-else>------</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"phone\" label=\"联系方式\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.phone != ''\">{{scope.row.phone}}</span>\n <span v-else>------</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"online\" align=\"center\" label=\"在线状态\">\n <template slot-scope=\"scope\">\n <el-tag type=\"success\" v-if=\"scope.row.online == 1\">在线</el-tag>\n <el-tag type=\"info\" v-if=\"scope.row.online == 0\">离线</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"platform\" align=\"center\" label=\"服务平台\">\n <template slot-scope=\"scope\">\n <el-tag>{{$getPlatformItem(scope.row.platform).title}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"remarks\" label=\"备注\">\n <template slot-scope=\"scope\">\n {{scope.row.remarks || '------'}}\n </template>\n </el-table-column>\n <el-table-column prop=\"create_at\" label=\"注册时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}\n </template>\n </el-table-column>\n <el-table-column prop=\"operating\" align=\"center\" label=\"操作\" width=\"150\">\n <template slot-scope=\"scope\">\n <el-button size=\"mini\" @click=\"edit(scope.row)\">编 辑</el-button>\n <el-button v-if=\"$store.getters.adminInfo.root == 1\" size=\"mini\" type=\"danger\" @click=\"deleteUser(scope.row)\">删 除</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\">\n </el-pagination>\n </el-row>\n <EditDialog :complete=\"getUsers\" :formData=\"editItem\" :dialogFormVisible.sync=\"editDialogFormVisible\" />\n </div>\n</template>\n\n<script>\nimport EditDialog from \"./edit\";\nimport axios from 'axios'\nvar moment = require('moment');\nexport default {\n name: \"robot\",\n components: {\n EditDialog\n },\n data() {\n return {\n loading: true,\n selectDate: [],\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n keyword: \"\",\n total: 0,\n platform: 1,\n date_start: \"\",\n date_end: \"\",\n },\n editItem: {},\n editDialogFormVisible: false,\n };\n },\n computed: {\n platformConfig(){\n return this.$store.getters.platformConfig\n }\n },\n created() {\n setTimeout(()=> this.getUsers(1), 500)\n },\n methods: {\n // 行号\n indexMethod(index) {\n return (this.tableData.page_on - 1) * this.tableData.page_size + index +1;\n },\n // 编辑\n edit(item){\n this.editItem = item\n this.editDialogFormVisible = true\n },\n // 删除\n deleteUser(item) {\n this.$confirm('您确定要删除该用户吗? 删除后不可恢复!', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => {\n axios.delete('/user/' + item.id)\n .then(response => {\n console.log(response.data)\n this.$message.success(\"删除成功\")\n this.getUsers(1)\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n })\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val\n this.getUsers()\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val\n this.getUsers()\n },\n // 查询\n search(){\n if(this.selectDate.length == 2){\n this.tableData.date_start = moment(this.selectDate[0]).format(\"YYYY-MM-DD\")\n this.tableData.date_end = moment(this.selectDate[1]).format(\"YYYY-MM-DD\")\n }else{\n this.tableData.date_start = \"\"\n this.tableData.date_end = \"\"\n }\n this.getUsers(1)\n },\n // 获取数据\n getUsers(index){\n if(index) this.tableData.page_on = index\n const {page_on, page_size, keyword, date_start, date_end, platform} = this.tableData\n axios.post('/user/list', {page_on, page_size, keyword, date_start, date_end, platform})\n .then(response => {\n this.loading = false\n this.tableData = response.data.data\n })\n .catch(error => {\n this.loading = false\n this.$message.error(error.response.data.message)\n });\n },\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n.mini-im-head {\n height: 30px;\n display: flex;\n align-items: center;\n font-size: 20px;\n justify-content: space-between;\n color: #666;\n\n i {\n margin-right: 5px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=3a13145a&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=3a13145a&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3a13145a\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=3a13145a&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=3a13145a&lang=stylus&scoped=true&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=6bfc8d44&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=6bfc8d44&scoped=true&lang=stylus&\""],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-44f6e77d"],{"0b10":function(e,t,i){},"11e9":function(e,t,i){var s=i("52a7"),n=i("4630"),o=i("6821"),a=i("6a99"),r=i("69a8"),c=i("c69a"),l=Object.getOwnPropertyDescriptor;t.f=i("9e1e")?l:function(e,t){if(e=o(e),t=a(t,!0),c)try{return l(e,t)}catch(i){}if(r(e,t))return n(!s.f.call(e,t),e[t])}},1826:function(e,t,i){"use strict";var s=i("fa4e"),n=i.n(s);n.a},"1c01":function(e,t,i){var s=i("5ca1");s(s.S+s.F*!i("9e1e"),"Object",{defineProperty:i("86cc").f})},"297c":function(e,t,i){"use strict";var s=i("0b10"),n=i.n(s);n.a},"29e5":function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mini-im-workbench"},[i("div",{staticClass:"mini-im-session-list"},[i("div",{staticClass:"title"},[i("el-row",{attrs:{type:"flex",justify:"space-between",gutter:20}},[i("el-col",{attrs:{span:16}},[i("span",[i("i",{staticClass:"el-icon-s-custom"}),e._v("\n 会话列表 ( "+e._s(e.contacts.length)+"人 )\n ")]),i("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},attrs:{title:"清空列表"},on:{click:e.clearContact}})]),i("el-col",{attrs:{span:9}},[i("el-popover",{attrs:{placement:"bottom",width:"100"}},[i("div",{staticClass:"mini-im-online-setting"},[1!=e.adminInfo.online?i("div",{staticClass:"item",on:{click:function(){return e.online(1)}}},[i("i",{staticClass:"el-icon-circle-check",staticStyle:{color:"rgb(135, 208, 104)"}}),e._v("\n 我要上线\n ")]):e._e(),0!=e.adminInfo.online?i("div",{staticClass:"item",on:{click:function(){return e.online(0)}}},[i("i",{staticClass:"el-icon-switch-button",staticStyle:{color:"#ccc"}}),e._v("\n 我要下线\n ")]):e._e(),2!=e.adminInfo.online?i("div",{staticClass:"item",on:{click:function(){return e.online(2)}}},[i("i",{staticClass:"el-icon-remove-outline",staticStyle:{color:"#e6a23c"}}),e._v("\n 繁忙状态\n ")]):e._e()]),0==e.adminInfo.online?i("el-button",{attrs:{slot:"reference",size:"mini"},slot:"reference"},[i("i",{staticClass:"el-icon-switch-button"}),i("em",[e._v("离 线 ")]),i("i",{staticClass:"el-icon-arrow-right el-icon--right"})]):1==e.adminInfo.online?i("el-button",{attrs:{slot:"reference",size:"mini"},slot:"reference"},[i("span",{staticStyle:{color:"rgb(135, 208, 104)"}},[i("i",{staticClass:"el-icon-circle-check"}),i("em",[e._v("在 线")]),i("i",{staticClass:"el-icon-arrow-right el-icon--right"})])]):i("el-button",{attrs:{slot:"reference",size:"mini"},slot:"reference"},[i("span",{staticStyle:{color:"#e6a23c"}},[i("i",{staticClass:"el-icon-circle-check"}),i("em",[e._v("繁 忙")]),i("i",{staticClass:"el-icon-arrow-right el-icon--right"})])])],1)],1)],1)],1),i("div",{staticClass:"mini-im-session-content"},[i("div",{staticClass:"mini-im-flex"},[e.contacts.length<=0?i("div",{staticClass:"mini-im-no-data"},[e._v("暂无会话数据")]):e._e(),e._l(e.contacts,(function(t,s){return i("ContactComponent",{key:s,class:{"mini-im-chat-item-active":e.seviceCurrentUser.from_account==t.from_account},attrs:{deleteContact:e.deleteContact,clickItem:e.selectUser,item:t}})}))],2)])]),e.$store.getters.seviceCurrentUser.id?i("div",{staticClass:"mini-im-chat-view"},[i("div",{staticClass:"mini-im-chat-view-content-header"},[i("div",{staticClass:"mini-im-header-user-box"},[i("el-avatar",{staticClass:"mini-im-avatar",attrs:{size:35}},[""!=e.seviceCurrentUser.avatar?i("img",{attrs:{src:e.seviceCurrentUser.avatar}}):[e._v("访")]],2),i("div",{staticClass:"mini-im-header-user-info"},[i("div",[e._v("\n "+e._s(e.seviceCurrentUser.nickname)+"\n "),1==e.seviceCurrentUser.online?i("span",{staticStyle:{color:"rgb(135, 208, 104)"}},[e._v("● 在线")]):i("span",[e._v("● 离线")]),e.isInputPongIng?[i("span",{staticClass:"input-pong"},[e._v(e._s(e.inputPongIngString)+" "),i("i",{staticClass:"el-icon-edit"})])]:e._e()],2),i("span",[e._v("用户来至:"+e._s(e.$getPlatformItem(e.seviceCurrentUser.platform).title)+"客户端,所在地:"+e._s(e.seviceCurrentUser.address||"未知"))])])],1),i("el-row",{staticClass:"mini-im-buttons"},[i("el-popover",{attrs:{placement:"bottom",width:"200",trigger:"click"}},[i("div",{staticClass:"mini-im-customer-list"},[i("div",{staticClass:"mini-im-customer-title"},[e._v("请选择转接的客服 ("+e._s(e.filterAdmins.length)+"人在线)")]),e._l(e.filterAdmins,(function(t){return i("div",{key:t.id,staticClass:"mini-im-customer-item",on:{click:function(){return e.transferCustomer(t)}}},[i("el-avatar",{staticClass:"mini-im-avatar",attrs:{size:30}},[i("img",{attrs:{src:t.avatar}})]),i("span",[e._v(e._s(t.nickname||t.username))])],1)})),0==e.filterAdmins.length?i("div",{staticClass:"mini-im-customer-item",staticStyle:{background:"none",border:"0"}},[i("span",[e._v("当前没有其他客服在线")])]):e._e()],2),i("el-button",{directives:[{name:"show",rawName:"v-show",value:0==e.seviceCurrentUser.is_session_end&&0!=e.adminInfo.online,expression:"seviceCurrentUser.is_session_end == 0 && adminInfo.online != 0"}],attrs:{slot:"reference",icon:"el-icon-refresh",size:"small"},on:{click:e.getAdmins},slot:"reference"},[e._v("\n 转接客服\n ")])],1),0==e.seviceCurrentUser.is_session_end&&0!=e.adminInfo.online?i("el-button",{attrs:{icon:"el-icon-close",size:"small"},on:{click:e.closeSession}},[e._v("结束会话")]):e._e()],1)],1),i("div",{ref:"miniImChatViewBontentBody",staticClass:"mini-im-chat-view-content-body"},[i("div",{staticClass:"mini-im-chat-view-content"},[i("div",{directives:[{name:"show",rawName:"v-show",value:""!=e.advanceText.trim(),expression:"advanceText.trim() != ''"}],staticClass:"advance"},[i("div",[e._v("正在输入:")]),i("span",[e._v("\n "+e._s(e.advanceText)+"\n "),e.isInputPongIng?[i("span",{staticClass:"input-pong"},[e._v(e._s(e.inputPongIngString.replace("对方正在输入",""))+" "),i("i",{staticClass:"el-icon-edit"})])]:e._e()],2)]),i("div",{ref:"chatBody",staticClass:"mini-im-chat-body",attrs:{id:"chatBody"}},[i("ChatWindowComponent",{attrs:{onLoadMor:e.onLoadMorMessage,isMessageEnd:e.isMessageEnd,onCancelMessage:e.onCancelMessage,messages:e.messageRecord.list,loading:e.getMessageRecordLoading}})],1),i("div",{staticClass:"mini-im-chat-input"},[i("div",{staticClass:"mini-im-chat-input-bar"},[i("el-row",[i("EmojiComponent",{attrs:{clickEmoji:e.clickEmoji}}),i("span",{staticClass:"mini-im-button",attrs:{title:"选择图片"}},[e._v("\n 🌁\n "),i("input",{attrs:{onClick:"this.value = null",type:"file",accept:"image/*"},on:{change:e.sendPhotoMessageEvent}})])],1),i("el-row",[i("el-popover",{attrs:{placement:"top-start",width:"350",trigger:"hover"}},[i("div",{staticClass:"mini-im-shortcut"},[i("div",{staticClass:"mini-im-shortcut-head"},[i("span",[i("i",{staticClass:"el-icon-tickets"}),e._v("快捷语回复列表")]),i("div",[i("button",{attrs:{title:"添加"},on:{click:function(t){e.createShortcutDialogFormVisible=!0}}},[i("i",{staticClass:"el-icon-plus"})]),i("button",{attrs:{title:"编辑"},on:{click:function(t){e.shortcutEditVisible=!e.shortcutEditVisible}}},[i("i",{staticClass:"el-icon-edit"})])])]),i("div",{staticClass:"mini-im-shortcut-body"},[i("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{clearable:"",type:"text",placeholder:"请输入关键词",autocomplete:"off"},model:{value:e.shortcutKey,callback:function(t){e.shortcutKey=t},expression:"shortcutKey"}}),0==e.filterShortcuts.length?i("div",{staticClass:"mini-im-shortcut-item",staticStyle:{background:"none"}},[i("span",{staticStyle:{"text-align":"center","margin-top":"20px"}},[e._v("暂无快捷语")])]):e._e(),e._l(e.filterShortcuts,(function(t){return i("div",{key:t.id,staticClass:"mini-im-shortcut-item",attrs:{title:t.content}},[i("span",{domProps:{innerHTML:e._s(t.title.replace(/\n/g,"<br>"))},on:{"!click":function(i){return function(){return e.checkShortcut(t.content)}()}}}),i("button",{directives:[{name:"show",rawName:"v-show",value:e.shortcutEditVisible,expression:"shortcutEditVisible"}],attrs:{title:"修改"},on:{"!click":function(i){return function(){return e.editShortcut(t)}()}}},[i("i",{staticClass:"el-icon-edit"})]),i("button",{directives:[{name:"show",rawName:"v-show",value:e.shortcutEditVisible,expression:"shortcutEditVisible"}],attrs:{title:"删除"},on:{"!click":function(i){return function(){return e.deleteShortcut(t)}()}}},[i("i",{staticClass:"el-icon-delete"})])])}))],2)]),i("button",{staticClass:"mini-im-button",attrs:{slot:"reference"},slot:"reference"},[i("i",{staticClass:"el-icon-tickets",staticStyle:{"font-size":"15px"}}),i("span",{staticStyle:{"font-size":"14px"}},[e._v(" 快捷语")])])])],1)],1),i("div",{staticClass:"mini-im-chat-input-edit",on:{keyup:[function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.keyUpEvent(t)},function(t){return!t.type.indexOf("key")&&13!==t.keyCode&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.shiftKey?e.enterShift(t):null},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.sendMessage(t)}]}},[i("el-input",{ref:"chatValueDom",staticClass:"mini-im-chat-text-input",attrs:{type:"textarea",rows:"3",resize:"none",autosize:!1,disabled:1==e.seviceCurrentUser.is_session_end||0==e.adminInfo.online,maxlength:"200","show-word-limit":"",placeholder:1==e.seviceCurrentUser.is_session_end?"当前会话已结束":"请输入内容"},model:{value:e.chatValue,callback:function(t){e.chatValue=t},expression:"chatValue"}})],1)])]),i("div",{staticClass:"mini-im-chat-view-user"},[i("el-tabs",{attrs:{type:"border-card"}},[i("el-tab-pane",{attrs:{label:"用户信息"}},[i("UserInfoComponent")],1)],1)],1)])]):i("div",{staticClass:"mini-im-chat-view no-window"},[e._m(0),i("span",[e._v("当前无对话")]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.chatWindowLoading,expression:"chatWindowLoading"}],staticClass:"mini-im-right-window-loading"},[i("i",{staticClass:"el-icon-loading"}),i("span",[e._v("数据加载中...")])])]),i("CreateShortcutComponent",{attrs:{complete:e.getShortcuts,dialogFormVisible:e.createShortcutDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.createShortcutDialogFormVisible=t},"update:dialog-form-visible":function(t){e.createShortcutDialogFormVisible=t}}}),i("EditShortcutComponent",{attrs:{formData:e.editShortcutItem,complete:e.getShortcuts,dialogFormVisible:e.editShortcutDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.editShortcutDialogFormVisible=t},"update:dialog-form-visible":function(t){e.editShortcutDialogFormVisible=t}}})],1)},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("i",{staticClass:"el-icon-service"})])}],o=(i("1c01"),i("58b2"),i("8e6e"),i("f3e2"),i("ac6a"),i("456d"),i("c5f6"),i("4917"),i("a481"),i("6d67"),i("57e7"),i("d25f"),i("4f37"),i("85f2")),a=i.n(o);function r(e,t,i){return t in e?a()(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var c=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"}},[i("div",{staticClass:"emoji-box"},e._l(e.emojis,(function(t,s){return i("span",{key:s,on:{click:function(i){return e.clickEmoji(t)}}},[e._v(e._s(t))])})),0),i("button",{staticClass:"mini-im-button",staticStyle:{"font-size":"20px"},attrs:{slot:"reference",title:"选择表情"},slot:"reference"},[e._v("😊")])])},l=[],u=i("eef3"),m={name:"mini-im-emoji",data:function(){return{emojis:u.emojiData}},props:{clickEmoji:Function}},d=m,f=(i("1826"),i("2877")),h=Object(f["a"])(d,c,l,!1,null,"3d019866",null),v=h.exports,g=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mini-im-chat-item"},[i("span",{staticClass:"delete_contact",attrs:{title:"删除该记录"},on:{"!click":function(t){return e.deleteContact(e.item)}}},[i("i",{staticClass:"el-icon-close"})]),i("el-avatar",{staticClass:"mini-im-avatar",on:{click:function(t){return e.clickItem(e.item)}}},[""!=e.item.avatar?i("img",{attrs:{src:e.item.avatar}}):[e._v("访")]],2),i("div",{staticClass:"mini-im-message-box",on:{click:function(t){return e.clickItem(e.item)}}},[i("div",{staticClass:"mini-im-user-date"},[i("div",{staticClass:"mini-im-nickname"},[i("span",{staticClass:"mini-im-online-status",class:{success:1==e.item.online}},[e._v("●")]),e._v(" "+e._s(e.item.nickname)+"\n ")]),i("div",{staticClass:"mini-im-date"},[e._v("\n "+e._s(e.$formatFromNowDate(e.item.contact_create_at))+"\n ")])]),i("div",{staticClass:"mini-im-message-badge"},["text"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v(e._s(e.item.last_message))]):e._e(),"photo"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("收到图片文件")]):e._e(),"video"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("收到视频文件")]):e._e(),"end"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("会话结束")]):e._e(),"cancel"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("对方撤回了一条消息")]):e._e(),"timeout"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("会话超时,结束对话")]):e._e(),"transfer"==e.item.last_message_type||"handshake"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("客服转接...")]):e._e(),e.item.read>0?i("div",{staticClass:"mini-im-badge"},[e._v(e._s(e.item.read))]):e._e()])])],1)},p=[],_={name:"mini-im-contact",data:function(){return{}},props:{item:Object,clickItem:Function,deleteContact:Function}},b=_,C=(i("297c"),Object(f["a"])(b,g,p,!1,null,"595d9a46",null)),y=C.exports,w=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mini-im-username-component-box"},[i("div",{staticClass:"mini-im-username-component"},[i("button",{attrs:{title:"编辑用户信息"},on:{click:function(t){e.isUserReadonly=!e.isUserReadonly}}},[i("i",{staticClass:"el-icon-edit"})])]),i("el-form",{ref:"form",class:{"form-item-readonly":e.isUserReadonly},attrs:{"label-width":"80px"}},[i("el-form-item",{staticClass:"form-item",attrs:{label:"用户昵称"}},[i("el-input",{attrs:{placeholder:"游客",readonly:e.isUserReadonly,type:"text"},model:{value:e.form.nickname,callback:function(t){e.$set(e.form,"nickname",t)},expression:"form.nickname"}})],1),i("el-form-item",{staticClass:"form-item",attrs:{label:"所在地区"}},[i("el-input",{attrs:{readonly:e.isUserReadonly,placeholder:"无",type:"text"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1),i("el-form-item",{staticClass:"form-item",attrs:{label:"联系方式"}},[i("el-input",{attrs:{readonly:e.isUserReadonly,placeholder:"无联系方式",type:"text"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),i("el-form-item",{staticClass:"form-item no-border",attrs:{label:"所在平台"}},[i("el-input",{attrs:{readonly:"",value:e.$getPlatformItem(e.user.platform).title,resize:"none",type:"text"}})],1),i("el-form-item",{staticClass:"form-item no-border",attrs:{label:"创建时间"}},[i("el-input",{attrs:{readonly:"",value:e.$formatUnixDate(e.user.create_at,"YYYY/MM/DD"),resize:"none",type:"text"}})],1),i("el-form-item",{staticClass:"form-item",attrs:{label:"备注信息"}},[i("el-input",{attrs:{rows:"4",readonly:e.isUserReadonly,placeholder:"无备注",resize:"none",type:"textarea"},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1),e.isUserReadonly?e._e():i("el-row",{attrs:{type:"flex",justify:"center"}},[i("el-button",{on:{click:function(t){e.isUserReadonly=!0}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")])],1),e.isUserReadonly?e._e():i("div",{staticStyle:{"text-align":"center","font-size":"12px",color:"#666","margin-top":"15px"}},[e._v("当前为编辑模式")])],1)],1)},S=[],k=i("bc3a"),x=i.n(k),$={name:"mini-im-user-info",data:function(){return{form:{id:"",nickname:"",address:"",phone:"",remarks:""},isUserReadonly:!0}},computed:{user:function(){return this.$store.getters.seviceCurrentUser||{}}},methods:{save:function(){var e=this;x.a.put("/user",this.form).then((function(){e.isUserReadonly=!0})).catch((function(t){e.$message.error(t.response.data.message)}))}},watch:{user:function(e){e.id!=this.form.id&&(this.isUserReadonly=!0),(this.isUserReadonly||e.id!=this.form.id)&&(this.form=this.user)}}},I=$,M=(i("2b0b"),Object(f["a"])(I,w,S,!1,null,null,null)),U=M.exports,E=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{width:"600px",title:"添加快捷语","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[i("el-form",{attrs:{model:e.form}},[i("el-form-item",{attrs:{label:"标题","label-width":e.formLabelWidth}},[i("el-input",{attrs:{maxlength:"50","show-word-limit":"",type:"text",placeholder:"请输入标题",autocomplete:"off"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),i("el-form-item",{attrs:{label:"内容","label-width":e.formLabelWidth}},[i("el-input",{attrs:{rows:"8",resize:"none",autosize:!1,maxlength:"200","show-word-limit":"",type:"textarea",placeholder:"请输入快捷语",autocomplete:"off"},model:{value:e.form.content,callback:function(t){e.$set(e.form,"content",t)},expression:"form.content"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)},T=[],O={name:"mini-im-create-shortcuts",data:function(){return{form:{content:"",title:""},formLabelWidth:"40px"}},props:{dialogFormVisible:Boolean,complete:Function},mounted:function(){},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},save:function(){var e=this;if(""!=this.form.title.trim()&&""!=this.form.content.trim()){var t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});x.a.post("/shortcut",this.form).then((function(i){try{console.log(i),t.close(),e.$message.success("添加成功"),e.closeModal(),e.complete(),e.form={content:"",title:""}}catch(s){console.log(s)}})).catch((function(i){t.close(),e.$message.error(i.response.data.message)}))}}}},R=O,P=Object(f["a"])(R,E,T,!1,null,"ae51b748",null),L=P.exports,V=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{width:"600px",title:"编辑快捷语","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[i("el-form",{attrs:{model:e.form}},[i("el-form-item",{attrs:{label:"标题","label-width":e.formLabelWidth}},[i("el-input",{attrs:{maxlength:"50","show-word-limit":"",type:"text",placeholder:"请输入标题",autocomplete:"off"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),i("el-form-item",{attrs:{label:"内容","label-width":e.formLabelWidth}},[i("el-input",{attrs:{rows:"8",resize:"none",autosize:!1,maxlength:"200","show-word-limit":"",type:"textarea",placeholder:"请输入快捷语",autocomplete:"off"},model:{value:e.form.content,callback:function(t){e.$set(e.form,"content",t)},expression:"form.content"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)},N=[],F={name:"mini-im-edit-shortcuts",data:function(){return{form:{content:"",title:""},formLabelWidth:"40px"}},props:{dialogFormVisible:Boolean,complete:Function,formData:Object},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},save:function(){var e=this;if(""!=this.form.title.trim()&&""!=this.form.content.trim()){var t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});x.a.put("/shortcut",this.form).then((function(i){try{console.log(i),t.close(),e.$message.success("添加成功"),e.closeModal(),e.complete()}catch(s){console.log(s)}})).catch((function(i){t.close(),e.$message.error(i.response.data.message)}))}}},watch:{formData:function(){this.form=Object.assign({},this.form,this.formData)}}},z=F,j=Object(f["a"])(z,V,N,!1,null,"3714045a",null),D=j.exports,A=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mini-im-chat-list"},[i("div",{staticClass:"mini-im-chat-message-box"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"loading"},[i("i",{staticClass:"el-icon-loading"}),i("span",[e._v("消息加载中...")])]),i("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isMessageEnd,expression:"isMessageEnd"}],attrs:{type:"text",disabled:"",icon:"el-icon-refresh-right"}},[e._v("无更多聊天记录...")]),e.isMessageEnd||e.loading?e._e():i("el-button",{attrs:{type:"text",icon:"el-icon-refresh"},on:{click:e.onLoadMor}},[e._v("点击加载更多聊天记录")])],1),i("div",{staticClass:"mini-im-chat-message-box"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.messages.length<=0&&!e.loading,expression:"messages.length <= 0 && !loading"}],staticClass:"loading"},[i("i",{staticClass:"el-icon-time"}),i("span",[e._v("暂无聊天记录...")])])]),e._l(e.messages,(function(t,s){return i("div",{key:s,staticClass:"mini-im-chat-message-box",class:{self:t.from_account!=e.seviceCurrentUser.id}},["text"==t.biz_type||"photo"==t.biz_type||"knowledge"==t.biz_type||"knowledge_list"==t.biz_type?[i("div",{staticClass:"user-date"},[t.from_account==e.adminInfo.id?i("span",[e._v("\n "+e._s(e.adminInfo.nickname||e.adminInfo.username)+"\n ")]):t.from_account==e.seviceCurrentUser.from_account?i("span",[e._v("\n "+e._s(e.seviceCurrentUser.nickname)+"\n ")]):i("span",[i("span",{staticStyle:{"font-size":"12px",color:"#666"}},[e._v("(机器人)")]),e._v(e._s(e.$robotNickname(t.from_account))+"\n ")]),i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"text"==t.biz_type?[i("div",{staticClass:"text"},[t.from_account==e.adminInfo.id&&t.isShowCancel?i("div",{staticClass:"cancel-btn",attrs:{title:"撤回本条消息"},on:{click:function(){return e.onCancelMessage(t.key)}}},[e._v("\n 撤回\n ")]):e._e(),i("span",{domProps:{innerHTML:e._s(t.payload.replace(/\n/gi,"<br />"))}})])]:e._e(),"photo"==t.biz_type?[i("div",{staticClass:"photo"},[t.percent&&100!=t.percent?i("div",{staticClass:"loading"},[i("i",{staticClass:"el-icon-loading"}),i("span",[e._v(e._s(t.percent)+"%")])]):e._e(),t.from_account==e.adminInfo.id&&t.isShowCancel?i("div",{staticClass:"cancel-btn",attrs:{title:"撤回本条消息"},on:{click:function(){return e.onCancelMessage(t.key)}}},[e._v("\n 撤回\n ")]):e._e(),i("div",{staticClass:"img-content"},[i("img",{attrs:{src:t.payload,preview:"1"}})])])]:e._e(),"transfer"==t.biz_type?[i("div",{staticClass:"system"},[i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))]),i("span",[e._v(e._s(t.payload))])])]:e._e(),"end"==t.biz_type?[i("div",{staticClass:"system"},[i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))]),t.to_account!=e.adminInfo.id?i("span",[e._v("你结束了会话")]):i("span",[e._v("对方结束了会话")]),i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"timeout"==t.biz_type?[i("div",{staticClass:"system"},[i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))]),i("span",[e._v(e._s(t.payload))])])]:e._e(),"cancel"==t.biz_type?[i("div",{staticClass:"system"},[i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))]),t.from_account==e.adminInfo.id?i("span",[e._v("您撤回了一条消息")]):i("span",[e._v("对方撤回了一条消息")])])]:e._e(),"knowledge"==t.biz_type?[i("div",{staticClass:"knowledge"},[i("div",{staticClass:"content"},[i("div",{staticClass:"title"},[e._v("以下是否是您关心的相关问题呢?")]),e._l(JSON.parse(t.payload),(function(t,s){return i("div",{key:s,staticClass:"item"},[e._v("\n "+e._s(s+1)+"."+e._s(t.title)+"\n ")])}))],2)])]:e._e()],2)}))],2)},B=[],G={name:"mini-im-contact",data:function(){return{}},computed:{seviceCurrentUser:function(){return this.$store.getters.seviceCurrentUser||{}},adminInfo:function(){return this.$store.getters.adminInfo||{}}},props:{loading:Boolean,onCancelMessage:Function,messages:Array,onLoadMor:Function,isMessageEnd:Boolean},watch:{messages:function(){var e=this;setTimeout((function(){e.$previewRefresh()}),1e3)}}},K=G,W=(i("f069"),Object(f["a"])(K,A,B,!1,null,"1390f214",null)),H=W.exports,J=i("fb21"),Y=i("b730"),q=i.n(Y),X=i("2f62");function Q(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function Z(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(i),!0).forEach((function(t){r(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Q(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var ee={name:"workbench",components:{EmojiComponent:v,ContactComponent:y,UserInfoComponent:U,ChatWindowComponent:H,CreateShortcutComponent:L,EditShortcutComponent:D},data:function(){return{chatValue:"",advanceText:"",admins:[],shortcuts:[],shortcutKey:"",createShortcutDialogFormVisible:!1,editShortcutDialogFormVisible:!1,editShortcutItem:null,shortcutEditVisible:!1,getMessageRecordLoading:!0,chatWindowLoading:!1,currentSessionIsEnd:!1,getMessageRecordPageSize:20,isInputPongIng:!1,isSendPong:!1,inputPongIngString:"对方正在输入...",isPush:!1,isMessageEnd:!1,mousemoveTimerout:null}},computed:Z({filterShortcuts:function(){var e=this.shortcutKey.trim();return""!=e?this.shortcuts.filter((function(t){return-1!=t.title.indexOf(e)})):this.shortcuts},filterAdmins:function(){var e=this;return this.admins.filter((function(t){return t.id!=e.adminInfo.id&&(1==t.online||2==t.online)}))}},Object(X["b"])(["contacts","adminInfo","seviceCurrentUser","messageRecord"])),mounted:function(){var e=this;document.ondblclick=function(){e.shortcutEditVisible=!1},this.init(),document.addEventListener("mousemove",this.onMousemoveEvent,!1),document.addEventListener("paste",this.inputPaste,!1)},beforeDestroy:function(){document.removeEventListener("mousemove",this.onMousemoveEvent,!1),document.removeEventListener("paste",this.inputPaste,!1),this.changeCurrentUser()},methods:{init:function(){var e=this;if(!this.adminInfo)return this.$store.dispatch("ON_GET_ME"),void setTimeout((function(){return e.init()}),100);this.getShortcuts(),this.chatWindowLoading=!0,setTimeout((function(){e.chatWindowLoading=!1}),1500),setTimeout((function(){var t,i=e.$store.getters.seviceCurrentUser.id||e.$route.query.uid;(e.changeCurrentUser(i||0),i)&&(e.contacts.map((function(e){e.from_account==i&&(t=e)})),history.replaceState(null,null,location.href.replace(/uid=\d+/i,"uid="+i)),e.$store.commit("onChangeSeviceCurrentUser",t),t&&e.selectUser(t),e.getMessageRecord(),e.scrollIntoBottom())}),1e3),this.$mimcInstance.addEventListener("statusChange",(function(t){1==e.adminInfo.online?e.$message.success("您当前状态为在线"):2==e.adminInfo.online&&e.$message.warning("您当前状态为繁忙"),t||e.$store.dispatch("ON_GET_ME").then((function(){0!=e.adminInfo.online&&e.init()}))})),this.$mimcInstance.addEventListener("receiveP2PMsg",this.receiveP2PMsg),this.$mimcInstance.addEventListener("disconnect",(function(){console.log("链接断开!");var t=e.adminInfo;0!=t.online?(e.adminInfo=null,e.init()):(t.online=0,e.$store.commit("onChangeAdminInfo",t))}))},onMousemoveEvent:function(){var e=this;this.$refs.miniImChatViewBontentBody&&(this.$refs.miniImChatViewBontentBody.style.height=document.body.clientHeight-155+"px"),this.isPush=!1,this.mousemoveTimerout&&clearTimeout(this.mousemoveTimerout),this.mousemoveTimerout=setTimeout((function(){e.isPush=!0}),3e4)},enterShift:function(e){"Enter"!=e.code&&(this.chatValue=this.chatValue+"\n")},scrollIntoBottom:function(){try{setTimeout((function(){var e=document.getElementById("chatBody");if(e){var t=e.clientHeight,i=e.scrollHeight;e.scrollTop=i-t}}),50)}catch(e){console.log(e)}},deleteContact:function(e){var t=this;e&&e.cid&&x.a.delete("/contact/"+e.cid).then((function(){t.$message.success("删除成功"),t.$store.dispatch("ON_GET_CONTACTS"),t.seviceCurrentUser.id==e.id&&(t.changeCurrentUser(),t.$store.commit("onChangeSeviceCurrentUser",null))})).catch((function(e){t.$message.error(e.response.data.message)}))},clearContact:function(){var e=this;this.$confirm("您确定要清空列表吗? ","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){x.a.delete("/contact/clear").then((function(){e.$message.success("清空成功"),e.$store.dispatch("ON_GET_CONTACTS"),e.changeCurrentUser(),e.$store.commit("onChangeSeviceCurrentUser",null)})).catch((function(t){e.$message.error(t.response.data.message)}))}))},clickEmoji:function(e){0!=this.adminInfo.online?1!=this.seviceCurrentUser.is_session_end?(this.chatValue=this.chatValue+e,this.$refs.chatValueDom.focus()):this.$message.info("当前会话已结束!"):this.$message.info("您当前为离线状态!")},checkShortcut:function(e){0!=this.adminInfo.online?1!=this.seviceCurrentUser.is_session_end?(this.shortcutKey="",this.chatValue=e,this.$refs.chatValueDom.focus()):this.$message.info("当前会话已结束!"):this.$message.info("您当前为离线状态!")},getShortcuts:function(){var e=this;x.a.get("/shortcut/list").then((function(t){e.shortcuts=t.data.data})).catch((function(t){e.$message.error(t.response.data.message)}))},editShortcut:function(e){this.editShortcutItem=e,this.editShortcutDialogFormVisible=!0},getAdmins:function(){var e=this;x.a.post("/admin/list",{page_on:1,page_size:1e4,online:3}).then((function(t){e.loading=!1,e.admins=t.data.data.list})).catch((function(t){e.$message.error(t.response.data.message)}))},deleteShortcut:function(e){var t=this;this.$confirm("您确定要删除该快捷语吗?","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){x.a.delete("/shortcut/"+e.id).then((function(){t.$message.success("删除成功"),t.getShortcuts()})).catch((function(e){t.$message.error(e.response.data.message)}))}))},onCancelMessage:function(e){var t=this.$mimcInstance.sendMessage("cancel",this.seviceCurrentUser.from_account,e);this.messageRecord.list.push(t),this.removeMessage(this.adminInfo.id,e),this.qiniuObservable&&this.qiniuObservable.unsubscribe()},transferCustomer:function(e){var t=this;this.$confirm("您确定将该客户转接给 "+(e.nickname||e.username)+" 吗?","温馨提示!",{confirmButtonText:"转接",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){x.a.post("/contact/transfer",{to_account:e.id,user_account:t.seviceCurrentUser.from_account}).then((function(){var e=t.seviceCurrentUser;e.is_session_end=1,t.$store.commit("onChangeSeviceCurrentUser",e)})).catch((function(e){t.$message.error(e.response.data.message)}))}))},closeSession:function(){var e=this;this.$confirm("您确定结束当前会话吗?强制结束可能会被客户投诉!","温馨提示!",{confirmButtonText:"结束",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){var t=e.$mimcInstance.sendMessage("end",e.seviceCurrentUser.from_account,"");e.messageRecord.list.push(t);var i=e.seviceCurrentUser;i.is_session_end=1,e.$store.commit("onChangeSeviceCurrentUser",i)}))},changeUserOnlineStatus:function(e){var t=this;x.a.put("/admin/online/"+e).then((function(){t.$store.dispatch("ON_GET_ME"),0==e&&t.$message.info("当前状态为离线")})).catch((function(e){t.$message.error(e.response.data.message)}))},online:function(e){var t=this;t.adminInfo.online!=e&&t.$confirm("您确定"+(0==e?"下线":1==e?"上线":"设置繁忙")+"吗!","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){0==e?(t.$mimcInstance.logout(),t.changeUserOnlineStatus(e),t.$store.commit("onChangeMimcUser",null)):t.$mimcInstance.login((function(){t.changeUserOnlineStatus(e),t.$store.dispatch("ON_RUN_LAST_ACTiIVITY"),t.$store.dispatch("ON_GET_CONTACTS"),t.$store.commit("onChangeMimcUser",t.$mimcInstance.user)}))}))},receiveP2PMsg:function(e){var t=this;console.log(e);var i=parseInt(((new Date).getTime()+"").substr(0,10));if(e.timestamp=parseInt((e.timestamp+"").substr(0,10)),(e.from_account!=this.adminInfo.id||"pong"!=e.biz_type)&&"into"!=e.biz_type){if(e.from_account==this.adminInfo.id&&this.seviceCurrentUser.from_account==e.to_account)return this.messageRecord.list.push(e),"cancel"==e.biz_type&&this.removeMessage(e.from_account,e.payload),this.scrollIntoBottom(),void this.$previewRefresh();if("text"==e.biz_type&&e.from_account==this.seviceCurrentUser.from_account&&(this.advanceText=""),"contacts"!=e.biz_type){if(!(i-e.timestamp>=60))if("cancel"==e.biz_type&&this.removeMessage(e.from_account,e.payload),"handshake"!=e.biz_type){if("pong"==e.biz_type&&e.from_account==this.seviceCurrentUser.from_account)return this.advanceText=e.payload,void this.inputPongIng();if("contacts"!=e.biz_type&&"pong"!=e.biz_type&&"welcome"!=e.biz_type&&"cancel"!=e.biz_type&&"handshake"!=e.biz_type&&"end"!=e.biz_type&&"timeout"!=e.biz_type&&this.isPush&&q.a.Permission.has()&&q.a.create("收到一条新消息",{body:e.payload,icon:this.$store.state.pushIcon,timeout:5e3,onClick:function(){t.$router.push({path:"/workbench?uid="+e.from_account}),window.focus(),setTimeout((function(){return t.getMessageRecord()}),1e3)}}),e.from_account==this.seviceCurrentUser.from_account){if("end"==e.biz_type){var s=this.seviceCurrentUser;s.is_session_end=1,this.$store.commit("onChangeSeviceCurrentUser",s),this.advanceText=""}this.messageRecord.list.push(e);var n=JSON.stringify(this.messageRecord);this.$store.commit("onChangeMessageRecord",JSON.parse(n)),this.scrollIntoBottom(),this.$previewRefresh()}}else setTimeout((function(){t.$mimcInstance.sendMessage("text",e.from_account,t.adminInfo.auto_reply),void 0!=t.seviceCurrentUser&&null!=t.seviceCurrentUser&&setTimeout((function(){return t.getMessageRecord()}),1e3)}),500)}else{var o=JSON.parse(e.payload);this.$store.commit("onChangeContacts",o)}}},changeCurrentUser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;"{}"!=JSON.stringify(this.adminInfo)&&x.a.get("/admin/current/user/"+e)},sendMessage:function(){if(0!=this.adminInfo.online){if(1!=this.seviceCurrentUser.is_session_end)if(1!=this.seviceCurrentUser.is_session_end){var e=this.chatValue.trim();if(""!=e){this.shortcutEditVisible=!1,this.scrollIntoBottom();var t=this.$mimcInstance.sendMessage("text",this.seviceCurrentUser.from_account,this.chatValue.trim("\n"));t.isShowCancel=!0,setTimeout((function(){return t.isShowCancel=!1}),1e4),this.messageRecord.list.push(t),this.chatValue=""}else this.chatValue=""}else this.$message.info("当前会话已结束!")}else this.$message.info("您当前为离线状态!")},sendPhotoMessageEvent:function(e){var t=e.target,i=t.files[0];this.sendPhotoMessage(i)},sendPhotoMessage:function(e){if(0!=this.adminInfo.online)if(1!=this.seviceCurrentUser.is_session_end){var t=new FileReader;t.readAsDataURL(e);var i,s=this;t.onload=function(){i=s.$mimcInstance.createLocalMessage("photo",s.seviceCurrentUser.from_account,this.result),i["percent"]=0,i.isShowCancel=!0,s.messageRecord.list.push(i),setTimeout((function(){return i.isShowCancel=!1}),1e4),s.$previewRefresh(),s.scrollIntoBottom(),Object(J["a"])({file:e,progress:function(e){i.percent=e},success:function(e){i.percent=100;var t=s.$store.getters.uploadToken.host+"/"+e;s.$mimcInstance.sendMessage("photo",s.seviceCurrentUser.from_account,t)},error:function(e){i.percent=0,s.$message.error(e.message)}})}}else this.$message.info("当前会话已结束!");else this.$message.info("您当前为离线状态!")},selectUser:function(e){var t=location.href,i=t.indexOf("#");t=t.substr(0,-1!=i?i:t.length),history.replaceState(null,null,t+"#/workbench?uid="+e.from_account),this.isMessageEnd=!1,this.seviceCurrentUser.from_account!=e.from_account&&(this.messageRecord.list=[],this.$store.commit("onChangeSeviceCurrentUser",e),this.changeCurrentUser(e.from_account)),this.timestamp=void 0,this.getMessageRecord(),this.advanceText=""},getMessageRecord:function(e){var t=this;this.getMessageRecordLoading=!0,void 0==e&&(e=0);var i=parseInt(this.seviceCurrentUser.from_account);i&&x.a.post("/message/list",{timestamp:e,page_size:this.getMessageRecordPageSize,account:i}).then((function(i){t.getMessageRecordLoading=!1,i.data.data.list.length<t.getMessageRecordPageSize&&(t.isMessageEnd=!0),0==t.messageRecord.list.length||0==e?(t.$store.commit("onChangeMessageRecord",i.data.data),t.scrollIntoBottom()):(i.data.data.list=i.data.data.list.concat(t.messageRecord.list),t.$store.commit("onChangeMessageRecord",i.data.data)),setTimeout((function(){return t.$previewRefresh()}),1e3),t.$store.dispatch("ON_GET_CONTACTS")})).catch((function(){t.getMessageRecordLoading=!1}))},onLoadMorMessage:function(){this.getMessageRecordLoading||(this.messageRecord.list.length>=this.messageRecord.total||this.messageRecord.total<=this.getMessageRecordPageSize?this.isMessageEnd=!0:(this.getMessageRecord(this.messageRecord.list[0].timestamp),setTimeout((function(){var e=document.getElementById("chatBody");e.scrollTop=500}),50)))},inputPongIng:function(){var e=this;this.isInputPongIng||(this.isInputPongIng=!0,setTimeout((function(){e.inputPongIngString="对方正在输入."}),500),setTimeout((function(){e.inputPongIngString="对方正在输入.."}),1500),setTimeout((function(){e.inputPongIngString="对方正在输入...",e.isInputPongIng=!1}),3e3))},keyUpEvent:function(){var e=this;this.isSendPong||(this.isSendPong=!0,setTimeout((function(){return e.isSendPong=!1}),500),this.$mimcInstance.sendMessage("pong",this.seviceCurrentUser.from_account,""))},removeMessage:function(e,t){for(var i=[],s=this.messageRecord.list,n=0;n<s.length;n++)s[n].key==t&&s[n].from_account==e||i.push(s[n]);this.messageRecord.list=i,this.$store.commit("onChangeMessageRecord",this.messageRecord)},inputPaste:function(e){if(this.seviceCurrentUser.id&&1!=this.seviceCurrentUser.is_session_end){var t=this,i=e.clipboardData,s=window.navigator.userAgent;if(e.clipboardData&&e.clipboardData.items&&!(i.items&&2===i.items.length&&"string"===i.items[0].kind&&"file"===i.items[1].kind&&i.types&&2===i.types.length&&"text/plain"===i.types[0]&&"Files"===i.types[1]&&s.match(/Macintosh/i)&&Number(s.match(/Chrome\/(\d{2})/i)[1])<49))for(var n=0;n<i.items.length;n++){var o=i.items[n];if("file"==o.kind){var a=o.getAsFile();if(0===a.size)return;var r=new FileReader;r.readAsDataURL(a),r.onload=function(){var e=this.result;t.$alert('<img preview="1" style="width:100%;max-height: 500px;" src="'+e+'" />',"检测到图片是否要发送?",{dangerouslyUseHTMLString:!0,showCancelButton:!0,confirmButtonText:"发送"}).then((function(){t.sendPhotoMessage(a)})),t.$previewRefresh()}}}}}},watch:{messageRecord:function(){this.$previewRefresh()}}},te=ee,ie=(i("674a"),Object(f["a"])(te,s,n,!1,null,"81d8c19a",null));t["default"]=ie.exports},"2b0b":function(e,t,i){"use strict";var s=i("752b"),n=i.n(s);n.a},"454f":function(e,t,i){i("46a7");var s=i("584a").Object;e.exports=function(e,t,i){return s.defineProperty(e,t,i)}},"456d":function(e,t,i){var s=i("4bf8"),n=i("0d58");i("5eda")("keys",(function(){return function(e){return n(s(e))}}))},"46a7":function(e,t,i){var s=i("63b6");s(s.S+s.F*!i("8e60"),"Object",{defineProperty:i("d9f6").f})},4917:function(e,t,i){"use strict";var s=i("cb7c"),n=i("9def"),o=i("0390"),a=i("5f1b");i("214f")("match",1,(function(e,t,i,r){return[function(i){var s=e(this),n=void 0==i?void 0:i[t];return void 0!==n?n.call(i,s):new RegExp(i)[t](String(s))},function(e){var t=r(i,e,this);if(t.done)return t.value;var c=s(e),l=String(this);if(!c.global)return a(c,l);var u=c.unicode;c.lastIndex=0;var m,d=[],f=0;while(null!==(m=a(c,l))){var h=String(m[0]);d[f]=h,""===h&&(c.lastIndex=o(l,n(c.lastIndex),u)),f++}return 0===f?null:d}]}))},"4f37":function(e,t,i){"use strict";i("aa77")("trim",(function(e){return function(){return e(this,3)}}))},"58b2":function(e,t,i){var s=i("5ca1");s(s.S+s.F*!i("9e1e"),"Object",{defineProperties:i("1495")})},"5dbc":function(e,t,i){var s=i("d3f4"),n=i("8b97").set;e.exports=function(e,t,i){var o,a=t.constructor;return a!==i&&"function"==typeof a&&(o=a.prototype)!==i.prototype&&s(o)&&n&&n(e,o),e}},"5eda":function(e,t,i){var s=i("5ca1"),n=i("8378"),o=i("79e5");e.exports=function(e,t){var i=(n.Object||{})[e]||Object[e],a={};a[e]=t(i),s(s.S+s.F*o((function(){i(1)})),"Object",a)}},"661d":function(e,t,i){},"674a":function(e,t,i){"use strict";var s=i("661d"),n=i.n(s);n.a},"752b":function(e,t,i){},"85f2":function(e,t,i){e.exports=i("454f")},8753:function(e,t,i){},"8b97":function(e,t,i){var s=i("d3f4"),n=i("cb7c"),o=function(e,t){if(n(e),!s(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,s){try{s=i("9b43")(Function.call,i("11e9").f(Object.prototype,"__proto__").set,2),s(e,[]),t=!(e instanceof Array)}catch(n){t=!0}return function(e,i){return o(e,i),t?e.__proto__=i:s(e,i),e}}({},!1):void 0),check:o}},"8e6e":function(e,t,i){var s=i("5ca1"),n=i("990b"),o=i("6821"),a=i("11e9"),r=i("f1ae");s(s.S,"Object",{getOwnPropertyDescriptors:function(e){var t,i,s=o(e),c=a.f,l=n(s),u={},m=0;while(l.length>m)i=c(s,t=l[m++]),void 0!==i&&r(u,t,i);return u}})},9093:function(e,t,i){var s=i("ce10"),n=i("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},"990b":function(e,t,i){var s=i("9093"),n=i("2621"),o=i("cb7c"),a=i("7726").Reflect;e.exports=a&&a.ownKeys||function(e){var t=s.f(o(e)),i=n.f;return i?t.concat(i(e)):t}},a481:function(e,t,i){"use strict";var s=i("cb7c"),n=i("4bf8"),o=i("9def"),a=i("4588"),r=i("0390"),c=i("5f1b"),l=Math.max,u=Math.min,m=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,h=function(e){return void 0===e?e:String(e)};i("214f")("replace",2,(function(e,t,i,v){return[function(s,n){var o=e(this),a=void 0==s?void 0:s[t];return void 0!==a?a.call(s,o,n):i.call(String(o),s,n)},function(e,t){var n=v(i,e,this,t);if(n.done)return n.value;var m=s(e),d=String(this),f="function"===typeof t;f||(t=String(t));var p=m.global;if(p){var _=m.unicode;m.lastIndex=0}var b=[];while(1){var C=c(m,d);if(null===C)break;if(b.push(C),!p)break;var y=String(C[0]);""===y&&(m.lastIndex=r(d,o(m.lastIndex),_))}for(var w="",S=0,k=0;k<b.length;k++){C=b[k];for(var x=String(C[0]),$=l(u(a(C.index),d.length),0),I=[],M=1;M<C.length;M++)I.push(h(C[M]));var U=C.groups;if(f){var E=[x].concat(I,$,d);void 0!==U&&E.push(U);var T=String(t.apply(void 0,E))}else T=g(x,d,$,I,U,t);$>=S&&(w+=d.slice(S,$)+T,S=$+x.length)}return w+d.slice(S)}];function g(e,t,s,o,a,r){var c=s+e.length,l=o.length,u=f;return void 0!==a&&(a=n(a),u=d),i.call(r,u,(function(i,n){var r;switch(n.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,s);case"'":return t.slice(c);case"<":r=a[n.slice(1,-1)];break;default:var u=+n;if(0===u)return i;if(u>l){var d=m(u/10);return 0===d?i:d<=l?void 0===o[d-1]?n.charAt(1):o[d-1]+n.charAt(1):i}r=o[u-1]}return void 0===r?"":r}))}}))},aa77:function(e,t,i){var s=i("5ca1"),n=i("be13"),o=i("79e5"),a=i("fdef"),r="["+a+"]",c="​…",l=RegExp("^"+r+r+"*"),u=RegExp(r+r+"*$"),m=function(e,t,i){var n={},r=o((function(){return!!a[e]()||c[e]()!=c})),l=n[e]=r?t(d):a[e];i&&(n[i]=l),s(s.P+s.F*r,"String",n)},d=m.trim=function(e,t){return e=String(n(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(u,"")),e};e.exports=m},ac6a:function(e,t,i){for(var s=i("cadf"),n=i("0d58"),o=i("2aba"),a=i("7726"),r=i("32e9"),c=i("84f2"),l=i("2b4c"),u=l("iterator"),m=l("toStringTag"),d=c.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=n(f),v=0;v<h.length;v++){var g,p=h[v],_=f[p],b=a[p],C=b&&b.prototype;if(C&&(C[u]||r(C,u,d),C[m]||r(C,m,p),c[p]=d,_))for(g in s)C[g]||o(C,g,s[g],!0)}},c5f6:function(e,t,i){"use strict";var s=i("7726"),n=i("69a8"),o=i("2d95"),a=i("5dbc"),r=i("6a99"),c=i("79e5"),l=i("9093").f,u=i("11e9").f,m=i("86cc").f,d=i("aa77").trim,f="Number",h=s[f],v=h,g=h.prototype,p=o(i("2aeb")(g))==f,_="trim"in String.prototype,b=function(e){var t=r(e,!1);if("string"==typeof t&&t.length>2){t=_?t.trim():d(t,3);var i,s,n,o=t.charCodeAt(0);if(43===o||45===o){if(i=t.charCodeAt(2),88===i||120===i)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:s=2,n=49;break;case 79:case 111:s=8,n=55;break;default:return+t}for(var a,c=t.slice(2),l=0,u=c.length;l<u;l++)if(a=c.charCodeAt(l),a<48||a>n)return NaN;return parseInt(c,s)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,i=this;return i instanceof h&&(p?c((function(){g.valueOf.call(i)})):o(i)!=f)?a(new v(b(t)),i,h):b(t)};for(var C,y=i("9e1e")?l(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;y.length>w;w++)n(v,C=y[w])&&!n(h,C)&&m(h,C,u(v,C));h.prototype=g,g.constructor=h,i("2aba")(s,f,h)}},d25f:function(e,t,i){"use strict";var s=i("5ca1"),n=i("0a49")(2);s(s.P+s.F*!i("2f21")([].filter,!0),"Array",{filter:function(e){return n(this,e,arguments[1])}})},eef3:function(e,t){var i=["😀","😁","😂","🤣","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","🙂","🤗","🤩","🤔","🤨","😐","😑","😶","🙄","😏","😣","😥","😮","🤐","😯","😪","😫","😴","😌","😛","😜","😝","🤤","😒","😓","😔","😕","🙃","🤑","😲","🙁","😖","😞","😟","😤","😢","😭","😦","😧","😨","😩","🤯","😬","😰","😱","😳","🤪","😵","😡","😠","🤬","😷","🤒","🤕","🤢","🤮","🤧","😇","🤠","🤡","🤥","🤫","🤭","🧐","🤓","😈","👿","👹","👺","💀","👻","👽","🤖","💩","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🤲","👐","🙌","👏","🤝","👍","👎","👊","✊","🤛","🤜","🤞","✌️","🤟","🤘","👌","👈","👉","👆","👇","☝️","✋","🤚","🖐","🖖","👋","🤙","💪","🖕","✍️","🙏"];t.emojiData=i},f069:function(e,t,i){"use strict";var s=i("8753"),n=i.n(s);n.a},f1ae:function(e,t,i){"use strict";var s=i("86cc"),n=i("4630");e.exports=function(e,t,i){t in e?s.f(e,t,n(0,i)):e[t]=i}},f3e2:function(e,t,i){"use strict";var s=i("5ca1"),n=i("0a49")(0),o=i("2f21")([].forEach,!0);s(s.P+s.F*!o,"Array",{forEach:function(e){return n(this,e,arguments[1])}})},fa4e:function(e,t,i){},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
//# sourceMappingURL=chunk-44f6e77d.2455bfe6.js.map
\ No newline at end of file
This diff could not be displayed because it is too large.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5c1245e5"],{"16bd":function(t,e,i){"use strict";var o=i("df1c"),a=i.n(o);a.a},5817:function(t,e,i){},"682a":function(t,e,i){"use strict";var o=i("5817"),a=i.n(o);a.a},"6fdd":function(t,e,i){"use strict";var o=i("af44"),a=i.n(o);a.a},"7a26":function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"me-head"},[i("span",[i("i",{staticClass:"el-icon-reading"}),i("span",{attrs:{slot:"title"},slot:"title"},[t._v("知识库管理 ")])]),i("el-button-group",[t._l(t.total,(function(e){return[i("el-button",{key:e.id,class:{"el-button--primary":e.id+""==t.tableData.platform+""},attrs:{size:"mini"},on:{click:function(i){return t.onTogglePlatform(e.id)}}},[t._v("\n "+t._s(e.title)+" ("+t._s(e.count)+")\n ")])]}))],2),i("el-col",{attrs:{span:5}},[i("el-input",{attrs:{placeholder:"请输入关键词","prefix-icon":"el-icon-search",clearable:""},on:{change:t.onRefresh},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1),i("el-button",{attrs:{size:"mini"},on:{click:function(e){t.createDialogFormVisible=!0}}},[t._v("添 加")])],1),i("el-divider"),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.list}},[i("el-table-column",{attrs:{type:"index",index:t.indexMethod,width:"60"}}),i("el-table-column",{attrs:{prop:"title",label:"主标题"}}),i("el-table-column",{attrs:{prop:"sub_title",label:"子标题"},scopedSlots:t._u([{key:"default",fn:function(e){return[""!=e.row.sub_title?i("div",t._l(e.row.sub_title.split("|"),(function(e,o){return i("div",{key:o,staticStyle:{"font-size":"13px"}},[t._v("\n "+t._s(o+1)+"."+t._s(e)+"\n ")])})),0):i("div",[t._v("-----")])]}}])}),i("el-table-column",{attrs:{prop:"content",label:"内容"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.content.split("\n"),(function(e,o){return i("div",{key:o,staticStyle:{"font-size":"13px"}},[t._v("\n "+t._s(e)+"\n ")])}))}}])}),i("el-table-column",{attrs:{prop:"platform",align:"center",label:"匹配平台"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-tag",[t._v(t._s(t.$getPlatformItem(e.row.platform).title))])]}}])}),i("el-table-column",{attrs:{prop:"create_at",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.$formatUnixDate(e.row.create_at,"YYYY/MM/DD"))+"\n ")]}}])}),i("el-table-column",{attrs:{prop:"operating",align:"center",width:"150",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{size:"mini"},on:{click:function(i){return t.edit(e.row)}}},[t._v("编 辑")]),i("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(i){return t.deleteKnowledge(e.row)}}},[t._v("删 除")])]}}])})],1),i("el-row",{staticStyle:{"margin-top":"20px"},attrs:{type:"flex",justify:"space-between"}},[i("span",{staticStyle:{color:"#666","font-size":"14px"}},[t._v("共找到"+t._s(t.tableData.total)+"条数据")]),i("el-pagination",{attrs:{background:"",layout:"sizes, prev, pager, next","current-page":t.tableData.page_on,"page-sizes":[5,10,15,20],total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),i("CreateDialog",{attrs:{complete:t.onRefresh,dialogFormVisible:t.createDialogFormVisible},on:{"update:dialogFormVisible":function(e){t.createDialogFormVisible=e},"update:dialog-form-visible":function(e){t.createDialogFormVisible=e}}}),i("EditDialog",{attrs:{formData:t.editItem,complete:t.onRefresh,dialogFormVisible:t.editDialogFormVisible},on:{"update:dialogFormVisible":function(e){t.editDialogFormVisible=e},"update:dialog-form-visible":function(e){t.editDialogFormVisible=e}}})],1)},a=[],n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{width:"600px",title:"添加新的知识","show-close":!1,visible:t.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[i("el-form",{attrs:{model:t.form}},[i("el-form-item",{attrs:{label:"主标题","label-width":t.formLabelWidth}},[i("el-input",{attrs:{placeholder:"请输入主标题",autocomplete:"off"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}})],1),i("el-form-item",{attrs:{label:"子标题","label-width":t.formLabelWidth}},[t._l(t.dynamicTags,(function(e){return i("el-tag",{key:e,attrs:{closable:"","disable-transitions":!1},on:{close:function(i){return t.handleDel(e)}}},[t._v(t._s(e))])})),t.inputVisible?i("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:t.handleInputConfirm},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputConfirm(e)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}):i("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:t.showInput}},[t._v("+ 新增")])],2),i("el-form-item",{attrs:{label:"内容","label-width":t.formLabelWidth}},[i("el-input",{attrs:{rows:"5",type:"textarea",autocomplete:"off"},model:{value:t.form.content,callback:function(e){t.$set(t.form,"content",e)},expression:"form.content"}})],1),i("el-form-item",{attrs:{label:"匹配平台","label-width":t.formLabelWidth}},[i("el-select",{attrs:{placeholder:"请选择匹配平台"},model:{value:t.form.platform,callback:function(e){t.$set(t.form,"platform",e)},expression:"form.platform"}},t._l(t.$store.getters.platformConfig,(function(t,e){return i("el-option",{key:e,attrs:{label:t.title,value:t.id}})})),1)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.closeModal}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)},l=[],s=(i("57e7"),i("bc3a")),r=i.n(s),c={name:"mini-im-create-knowledge",data:function(){return{dynamicTags:[],inputVisible:!1,inputValue:"",form:{uid:"",platform:1,title:"",sub_title:"",content:""},formLabelWidth:"80px"}},props:{dialogFormVisible:Boolean,complete:Function},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},handleDel:function(t){this.dynamicTags.splice(this.dynamicTags.indexOf(t),1)},showInput:function(){var t=this;this.inputVisible=!0,this.$nextTick((function(){t.$refs.saveTagInput.$refs.input.focus()}))},handleInputConfirm:function(){var t=this.inputValue;t&&this.dynamicTags.push(t),this.inputVisible=!1,this.inputValue="",console.log(this.dynamicTags.join("|"))},save:function(){var t=this,e=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});this.form.uid=this.$store.state.adminInfo.id,this.form.sub_title=this.dynamicTags.join("|"),r.a.post("/knowledge",this.form).then((function(i){try{console.log(i),e.close(),t.$message.success("添加成功"),t.closeModal(),t.resize(),t.complete(1)}catch(o){console.log(o)}})).catch((function(i){e.close(),t.$message.error(i.response.data.message)}))},resize:function(){this.dynamicTags=[],this.form={uid:"",platform:1,title:"",sub_title:"",content:""}}}},u=c,f=(i("6fdd"),i("2877")),d=Object(f["a"])(u,n,l,!1,null,"015f50bf",null),m=d.exports,p=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{width:"600px",title:"编辑的知识","show-close":!1,visible:t.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[i("el-form",{attrs:{model:t.form}},[i("el-form-item",{attrs:{label:"主标题","label-width":t.formLabelWidth}},[i("el-input",{attrs:{placeholder:"请输入主标题",autocomplete:"off"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}})],1),i("el-form-item",{attrs:{label:"子标题","label-width":t.formLabelWidth}},[t._l(t.dynamicTags,(function(e){return i("el-tag",{key:e,attrs:{closable:"","disable-transitions":!1},on:{close:function(i){return t.handleDel(e)}}},[t._v("\n "+t._s(e)+"\n ")])})),t.inputVisible?i("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:t.handleInputConfirm},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputConfirm(e)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}):i("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:t.showInput}},[t._v("+ 新增子标题")])],2),i("el-form-item",{attrs:{label:"内容","label-width":t.formLabelWidth}},[i("el-input",{attrs:{rows:"5",type:"textarea",autocomplete:"off"},model:{value:t.form.content,callback:function(e){t.$set(t.form,"content",e)},expression:"form.content"}})],1),i("el-form-item",{attrs:{label:"匹配平台","label-width":t.formLabelWidth}},[i("el-select",{attrs:{placeholder:"请选择匹配平台"},model:{value:t.form.platform,callback:function(e){t.$set(t.form,"platform",e)},expression:"form.platform"}},t._l(t.platformConfig,(function(t,e){return i("el-option",{key:e,attrs:{label:t.title,value:t.id}})})),1)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.closeModal}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)},g=[],h=(i("28a5"),{name:"mini-im-create-knowledge",data:function(){return{dynamicTags:[],inputVisible:!1,inputValue:"",form:{uid:"",platform:1,title:"",sub_title:"",content:""},platformConfig:[],formLabelWidth:"80px"}},props:{dialogFormVisible:Boolean,complete:Function,formData:Object},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},handleDel:function(t){this.dynamicTags.splice(this.dynamicTags.indexOf(t),1)},showInput:function(){var t=this;this.inputVisible=!0,this.$nextTick((function(){t.$refs.saveTagInput.$refs.input.focus()}))},handleInputConfirm:function(){var t=this.inputValue;t&&this.dynamicTags.push(t),this.inputVisible=!1,this.inputValue=""},save:function(){var t=this,e=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});this.form.uid=this.$store.state.adminInfo.id,this.form.sub_title=this.dynamicTags.join("|"),r.a.put("/knowledge",this.form).then((function(i){try{console.log(i),e.close(),t.$message.success("修改成功"),t.closeModal(),t.resize(),t.complete(1)}catch(o){console.log(o)}})).catch((function(i){e.close(),t.$message.error(i.response.data.message)}))},resize:function(){this.dynamicTags=[],this.form={uid:"",platform:1,title:"",sub_title:"",content:""}}},watch:{formData:function(){this.platformConfig=this.$store.getters.platformConfig,this.form=Object.assign({},this.form,this.formData),""!=this.formData.sub_title&&(this.dynamicTags=this.formData.sub_title.split("|"))}}}),b=h,v=(i("682a"),Object(f["a"])(b,p,g,!1,null,"7b12f7d6",null)),_=v.exports,k={name:"knowledge",components:{CreateDialog:m,EditDialog:_},data:function(){return{keyword:"",tableData:{list:[],page_on:1,page_size:10,total:0,keyword:"",platform:1},total:[],createDialogFormVisible:!1,editDialogFormVisible:!1,loading:!0,editItem:null}},computed:{platformConfig:function(){return this.$store.state.platformConfig||[]}},created:function(){var t=this;setTimeout((function(){t.getKnowledgeList(),t.getTotal()}),500)},methods:{onRefresh:function(){this.getTotal(),this.getKnowledgeList()},indexMethod:function(t){return(this.tableData.page_on-1)*this.tableData.page_size+t+1},deleteKnowledge:function(t){var e=this;this.$confirm("您确定要删除该知识库吗? 删除后不可恢复!","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){r.a.delete("/knowledge/"+t.id).then((function(t){console.log(t.data),e.$message.success("删除成功"),e.getKnowledgeList(1)})).catch((function(t){e.$message.error(t.response.data.message)}))}))},onTogglePlatform:function(t){this.tableData.platform=parseInt(t),this.getKnowledgeList(1)},edit:function(t){this.editItem=t,this.editDialogFormVisible=!0},handleSizeChange:function(t){this.tableData.page_size=t,this.getKnowledgeList()},handleCurrentChange:function(t){this.tableData.page_on=t,this.getKnowledgeList()},getKnowledgeList:function(t){var e=this;t&&(this.tableData.page_on=t);var i=this.tableData,o=i.page_on,a=i.page_size,n=i.platform,l=this.keyword;r.a.post("/knowledge/list",{page_on:o,page_size:a,platform:n,keyword:l}).then((function(t){e.loading=!1,e.tableData=t.data.data})).catch((function(t){e.loading=!1,e.$message.error(t.response.data.message)}))},getTotal:function(){var t=this;r.a.get("/knowledge/total").then((function(e){t.total=e.data.data}))}}},w=k,y=(i("16bd"),Object(f["a"])(w,o,a,!1,null,"e6cb2868",null));e["default"]=y.exports},af44:function(t,e,i){},df1c:function(t,e,i){}}]);
//# sourceMappingURL=chunk-5c1245e5.8e906d8e.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/knowledge/index.vue?80e0","webpack:///./src/views/knowledge/edit.vue?212d","webpack:///./src/views/knowledge/create.vue?79ac","webpack:///./src/views/knowledge/index.vue?d8f0","webpack:///./src/views/knowledge/create.vue?e5d1","webpack:///src/views/knowledge/create.vue","webpack:///./src/views/knowledge/create.vue?c80e","webpack:///./src/views/knowledge/create.vue","webpack:///./src/views/knowledge/edit.vue?ef0c","webpack:///src/views/knowledge/edit.vue","webpack:///./src/views/knowledge/edit.vue?8aad","webpack:///./src/views/knowledge/edit.vue","webpack:///src/views/knowledge/index.vue","webpack:///./src/views/knowledge/index.vue?43e7","webpack:///./src/views/knowledge/index.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","_l","item","key","id","class","tableData","platform","on","$event","onTogglePlatform","_s","title","count","onRefresh","model","value","callback","$$v","keyword","expression","createDialogFormVisible","directives","name","rawName","staticStyle","list","indexMethod","scopedSlots","_u","fn","scope","row","sub_title","split","content","$getPlatformItem","$formatUnixDate","create_at","edit","deleteKnowledge","total","page_on","handleSizeChange","handleCurrentChange","editItem","editDialogFormVisible","staticRenderFns","dialogFormVisible","form","formLabelWidth","$set","tag","handleDel","ref","handleInputConfirm","nativeOn","type","indexOf","_k","keyCode","inputValue","showInput","$store","getters","index","closeModal","save","data","dynamicTags","inputVisible","uid","props","Boolean","complete","Function","methods","$emit","splice","$nextTick","push","console","log","join","lock","text","spinner","background","state","adminInfo","resize","component","platformConfig","formData","Object","response","loading","close","e","watch","assign","components","CreateDialog","EditDialog","page_size","computed","created","setTimeout","getTotal","getKnowledgeList","$confirm","confirmButtonText","cancelButtonText","center","parseInt","pid","val"],"mappings":"kHAAA,yBAAyjB,EAAG,G,2DCA5jB,yBAAwjB,EAAG,G,oCCA3jB,yBAA0jB,EAAG,G,2CCA7jB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,OAAO,CAACA,EAAG,IAAI,CAACE,YAAY,oBAAoBF,EAAG,OAAO,CAACG,MAAM,CAAC,KAAO,SAASC,KAAK,SAAS,CAACR,EAAIS,GAAG,cAAcL,EAAG,kBAAkB,CAACJ,EAAIU,GAAIV,EAAS,OAAE,SAASW,GAAM,MAAO,CAACP,EAAG,YAAY,CAACQ,IAAID,EAAKE,GAAGC,MAAM,CAAC,qBAAsBH,EAAKE,GAAK,IAAMb,EAAIe,UAAUC,SAAW,IAAIT,MAAM,CAAC,KAAO,QAAQU,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOlB,EAAImB,iBAAiBR,EAAKE,OAAO,CAACb,EAAIS,GAAG,eAAeT,EAAIoB,GAAGT,EAAKU,OAAO,KAA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MAAMI,gBAAkB,KAG/Cc,QA7BF,WA6BA,WACIC,YAAW,WACT,EAAN,mBACM,EAAN,aACA,MAGE/B,QAAS,CACP9D,UADJ,WAEMtB,KAAKoH,WACLpH,KAAKqH,oBAGPlF,YANJ,SAMA,GACM,OAAQnC,KAAKc,UAAUoC,QAAU,GAAKlD,KAAKc,UAAUkG,UAAYvC,EAAvE,GAGIzB,gBAVJ,SAUA,cACMhD,KAAKsH,SAAS,wBAAyB,QAAS,CAC9CC,kBAAmB,KACnBC,iBAAkB,KAClBC,QAAQ,EACRxD,KAAM,YACd,iBACQ,EAAR,6BACA,kBACU,QAAV,YACU,EAAV,yBACU,EAAV,uBAEA,mBACU,EAAV,+CAKI/C,iBA7BJ,SA6BA,GACMlB,KAAKc,UAAUC,SAAW2G,SAASC,GACnC3H,KAAKqH,iBAAiB,IAGxBtE,KAlCJ,SAkCA,GACM/C,KAAKqD,SAAW3C,EAChBV,KAAKsD,uBAAwB,GAG/BH,iBAvCJ,SAuCA,GACMnD,KAAKc,UAAUkG,UAAYY,EAC3B5H,KAAKqH,oBAGPjE,oBA5CJ,SA4CA,GACMpD,KAAKc,UAAUoC,QAAU0E,EACzB5H,KAAKqH,oBAGPA,iBAjDJ,SAiDA,cACA,8BADA,MAEA,iBAFA,EAEA,UAFA,EAEA,YAFA,EAEA,SACA,eACM,EAAN,uEACA,kBACQ,EAAR,WACQ,EAAR,yBAEA,mBACQ,EAAR,WACQ,EAAR,4CAIID,SAhEJ,WAgEA,WACM,EAAN,0BACA,kBACQ,EAAR,wBClNiY,ICQ7X,G,UAAY,eACd,EACAtH,EACAyD,GACA,EACA,KACA,WACA,OAIa,e","file":"js/chunk-5c1245e5.8e906d8e.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=e6cb2868&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=e6cb2868&lang=stylus&scoped=true&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=7b12f7d6&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=7b12f7d6&scoped=true&lang=stylus&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=style&index=0&id=015f50bf&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=style&index=0&id=015f50bf&scoped=true&lang=stylus&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"me-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-reading\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"知识库管理 \")])]),_c('el-button-group',[_vm._l((_vm.total),function(item){return [_c('el-button',{key:item.id,class:{'el-button--primary': item.id + '' == _vm.tableData.platform + ''},attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.onTogglePlatform(item.id)}}},[_vm._v(\"\\n \"+_vm._s(item.title)+\" (\"+_vm._s(item.count)+\")\\n \")])]})],2),_c('el-col',{attrs:{\"span\":5}},[_c('el-input',{attrs:{\"placeholder\":\"请输入关键词\",\"prefix-icon\":\"el-icon-search\",\"clearable\":\"\"},on:{\"change\":_vm.onRefresh},model:{value:(_vm.keyword),callback:function ($$v) {_vm.keyword=$$v},expression:\"keyword\"}})],1),_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.createDialogFormVisible = true}}},[_vm._v(\"添 加\")])],1),_c('el-divider'),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"width\":\"60\"}}),_c('el-table-column',{attrs:{\"prop\":\"title\",\"label\":\"主标题\"}}),_c('el-table-column',{attrs:{\"prop\":\"sub_title\",\"label\":\"子标题\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.sub_title != '')?_c('div',_vm._l((scope.row.sub_title.split('|')),function(item,key){return _c('div',{key:key,staticStyle:{\"font-size\":\"13px\"}},[_vm._v(\"\\n \"+_vm._s(key+1)+\".\"+_vm._s(item)+\"\\n \")])}),0):_c('div',[_vm._v(\"-----\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"content\",\"label\":\"内容\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return _vm._l((scope.row.content.split(\"\\n\")),function(item,key){return _c('div',{key:key,staticStyle:{\"font-size\":\"13px\"}},[_vm._v(\"\\n \"+_vm._s(item)+\"\\n \")])})}}])}),_c('el-table-column',{attrs:{\"prop\":\"platform\",\"align\":\"center\",\"label\":\"匹配平台\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',[_vm._v(_vm._s(_vm.$getPlatformItem(scope.row.platform).title))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"创建时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\"))+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"width\":\"150\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编 辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteKnowledge(scope.row)}}},[_vm._v(\"删 除\")])]}}])})],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('CreateDialog',{attrs:{\"complete\":_vm.onRefresh,\"dialogFormVisible\":_vm.createDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.createDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.createDialogFormVisible=$event}}}),_c('EditDialog',{attrs:{\"formData\":_vm.editItem,\"complete\":_vm.onRefresh,\"dialogFormVisible\":_vm.editDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.editDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.editDialogFormVisible=$event}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"添加新的知识\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"主标题\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入主标题\",\"autocomplete\":\"off\"},model:{value:(_vm.form.title),callback:function ($$v) {_vm.$set(_vm.form, \"title\", $$v)},expression:\"form.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"子标题\",\"label-width\":_vm.formLabelWidth}},[_vm._l((_vm.dynamicTags),function(tag){return _c('el-tag',{key:tag,attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleDel(tag)}}},[_vm._v(_vm._s(tag))])}),(_vm.inputVisible)?_c('el-input',{ref:\"saveTagInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm($event)}},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:\"inputValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":_vm.showInput}},[_vm._v(\"+ 新增\")])],2),_c('el-form-item',{attrs:{\"label\":\"内容\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"rows\":\"5\",\"type\":\"textarea\",\"autocomplete\":\"off\"},model:{value:(_vm.form.content),callback:function ($$v) {_vm.$set(_vm.form, \"content\", $$v)},expression:\"form.content\"}})],1),_c('el-form-item',{attrs:{\"label\":\"匹配平台\",\"label-width\":_vm.formLabelWidth}},[_c('el-select',{attrs:{\"placeholder\":\"请选择匹配平台\"},model:{value:(_vm.form.platform),callback:function ($$v) {_vm.$set(_vm.form, \"platform\", $$v)},expression:\"form.platform\"}},_vm._l((_vm.$store.getters.platformConfig),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.title,\"value\":item.id}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog\n width=\"600px\"\n title=\"添加新的知识\"\n :show-close=\"false\"\n :visible.sync=\"dialogFormVisible\"\n :close-on-click-modal=\"false\"\n >\n <el-form :model=\"form\">\n <el-form-item label=\"主标题\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.title\" placeholder=\"请输入主标题\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"子标题\" :label-width=\"formLabelWidth\">\n <el-tag\n :key=\"tag\"\n v-for=\"tag in dynamicTags\"\n closable\n :disable-transitions=\"false\"\n @close=\"handleDel(tag)\"\n >{{tag}}</el-tag>\n <el-input\n class=\"input-new-tag\"\n v-if=\"inputVisible\"\n v-model=\"inputValue\"\n ref=\"saveTagInput\"\n size=\"small\"\n @keyup.enter.native=\"handleInputConfirm\"\n @blur=\"handleInputConfirm\"\n ></el-input>\n <el-button v-else class=\"button-new-tag\" size=\"small\" @click=\"showInput\">+ 新增</el-button>\n </el-form-item>\n <el-form-item label=\"内容\" :label-width=\"formLabelWidth\">\n <el-input rows=\"5\" type=\"textarea\" v-model=\"form.content\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"匹配平台\" :label-width=\"formLabelWidth\">\n <el-select v-model=\"form.platform\" placeholder=\"请选择匹配平台\">\n <el-option\n :label=\"item.title\"\n :value=\"item.id\"\n :key=\"index\"\n v-for=\"(item, index) in $store.getters.platformConfig\"\n ></el-option>\n </el-select>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from \"axios\";\nexport default {\n name: \"mini-im-create-knowledge\",\n data() {\n return {\n dynamicTags: [],\n inputVisible: false,\n inputValue: \"\",\n form: {\n uid: \"\",\n platform: 1,\n title: \"\",\n sub_title: \"\",\n content: \"\"\n },\n formLabelWidth: \"80px\"\n };\n },\n props: {\n dialogFormVisible: Boolean,\n complete: Function\n },\n methods: {\n // 关闭\n closeModal() {\n this.$emit(\"update:dialogFormVisible\", false);\n },\n // 删除标签\n handleDel(tag) {\n this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);\n },\n // 显示子标题输入框\n showInput() {\n this.inputVisible = true;\n this.$nextTick(() => {\n this.$refs.saveTagInput.$refs.input.focus();\n });\n },\n // 标签确定\n handleInputConfirm() {\n let inputValue = this.inputValue;\n if (inputValue) {\n this.dynamicTags.push(inputValue);\n }\n this.inputVisible = false;\n this.inputValue = \"\";\n console.log(this.dynamicTags.join(\"|\"));\n },\n // 保存\n save() {\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n this.form.uid = this.$store.state.adminInfo.id;\n this.form.sub_title = this.dynamicTags.join(\"|\");\n axios\n .post(\"/knowledge\", this.form)\n .then(response => {\n try {\n console.log(response);\n loading.close();\n this.$message.success(\"添加成功\");\n this.closeModal();\n this.resize();\n this.complete(1);\n } catch (e) {\n console.log(e);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n resize() {\n this.dynamicTags = [];\n this.form = {\n uid: \"\",\n platform: 1,\n title: \"\",\n sub_title: \"\",\n content: \"\"\n };\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.el-tag + .el-tag {\n margin-left: 10px;\n}\n\n.button-new-tag {\n margin-left: 10px;\n height: 32px;\n line-height: 30px;\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.input-new-tag {\n width: 150px;\n margin-left: 10px;\n vertical-align: bottom;\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create.vue?vue&type=template&id=015f50bf&scoped=true&\"\nimport script from \"./create.vue?vue&type=script&lang=js&\"\nexport * from \"./create.vue?vue&type=script&lang=js&\"\nimport style0 from \"./create.vue?vue&type=style&index=0&id=015f50bf&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"015f50bf\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"编辑的知识\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"主标题\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入主标题\",\"autocomplete\":\"off\"},model:{value:(_vm.form.title),callback:function ($$v) {_vm.$set(_vm.form, \"title\", $$v)},expression:\"form.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"子标题\",\"label-width\":_vm.formLabelWidth}},[_vm._l((_vm.dynamicTags),function(tag){return _c('el-tag',{key:tag,attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleDel(tag)}}},[_vm._v(\"\\n \"+_vm._s(tag)+\"\\n \")])}),(_vm.inputVisible)?_c('el-input',{ref:\"saveTagInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm($event)}},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:\"inputValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":_vm.showInput}},[_vm._v(\"+ 新增子标题\")])],2),_c('el-form-item',{attrs:{\"label\":\"内容\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"rows\":\"5\",\"type\":\"textarea\",\"autocomplete\":\"off\"},model:{value:(_vm.form.content),callback:function ($$v) {_vm.$set(_vm.form, \"content\", $$v)},expression:\"form.content\"}})],1),_c('el-form-item',{attrs:{\"label\":\"匹配平台\",\"label-width\":_vm.formLabelWidth}},[_c('el-select',{attrs:{\"placeholder\":\"请选择匹配平台\"},model:{value:(_vm.form.platform),callback:function ($$v) {_vm.$set(_vm.form, \"platform\", $$v)},expression:\"form.platform\"}},_vm._l((_vm.platformConfig),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.title,\"value\":item.id}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog width=\"600px\" title=\"编辑的知识\" :show-close=\"false\" :visible.sync=\"dialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"主标题\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.title\" placeholder=\"请输入主标题\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"子标题\" :label-width=\"formLabelWidth\">\n <el-tag\n :key=\"tag\"\n v-for=\"tag in dynamicTags\"\n closable\n :disable-transitions=\"false\"\n @close=\"handleDel(tag)\">\n {{tag}}\n </el-tag>\n <el-input\n class=\"input-new-tag\"\n v-if=\"inputVisible\"\n v-model=\"inputValue\"\n ref=\"saveTagInput\"\n size=\"small\"\n @keyup.enter.native=\"handleInputConfirm\"\n @blur=\"handleInputConfirm\"\n >\n </el-input>\n <el-button v-else class=\"button-new-tag\" size=\"small\" @click=\"showInput\">+ 新增子标题</el-button>\n </el-form-item>\n <el-form-item label=\"内容\" :label-width=\"formLabelWidth\">\n <el-input rows=\"5\" type=\"textarea\" v-model=\"form.content\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"匹配平台\" :label-width=\"formLabelWidth\">\n <el-select v-model=\"form.platform\" placeholder=\"请选择匹配平台\">\n <el-option :label=\"item.title\" :value=\"item.id\" :key=\"index\" v-for=\"(item, index) in platformConfig\"></el-option>\n </el-select>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nexport default {\n name: 'mini-im-create-knowledge',\n data(){\n return {\n dynamicTags: [],\n inputVisible: false,\n inputValue: '',\n form: {\n uid: \"\",\n platform: 1,\n title: '',\n sub_title: '',\n content: '',\n },\n platformConfig: [],\n formLabelWidth: \"80px\"\n }\n },\n props:{\n dialogFormVisible: Boolean,\n complete: Function,\n formData: Object\n },\n methods: {\n // 关闭\n closeModal(){\n this.$emit('update:dialogFormVisible', false);\n },\n // 删除标签\n handleDel(tag) {\n this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);\n },\n // 显示子标题输入框\n showInput() {\n this.inputVisible = true;\n this.$nextTick(() => {\n this.$refs.saveTagInput.$refs.input.focus();\n });\n },\n // 确定\n handleInputConfirm() {\n let inputValue = this.inputValue;\n if (inputValue) {\n this.dynamicTags.push(inputValue);\n }\n this.inputVisible = false;\n this.inputValue = '';\n },\n // 保存\n save(){\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: '保存中...',\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.5)'\n });\n this.form.uid = this.$store.state.adminInfo.id\n this.form.sub_title = this.dynamicTags.join(\"|\")\n axios.put('/knowledge', this.form)\n .then(response => {\n try{\n console.log(response)\n loading.close();\n this.$message.success(\"修改成功\")\n this.closeModal()\n this.resize()\n this.complete(1)\n }catch(e){\n console.log(e)\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message)\n });\n\n },\n resize(){\n this.dynamicTags = []\n this.form = {\n uid: \"\",\n platform: 1,\n title: '',\n sub_title: '',\n content: '',\n };\n }\n },\n watch:{\n formData(){\n this.platformConfig = this.$store.getters.platformConfig\n this.form = Object.assign({},this.form, this.formData)\n if(this.formData.sub_title != \"\") this.dynamicTags = this.formData.sub_title.split(\"|\")\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n .el-tag + .el-tag {\n margin-left: 10px;\n }\n .button-new-tag {\n margin-left: 10px;\n height: 32px;\n line-height: 30px;\n padding-top: 0;\n padding-bottom: 0;\n }\n .input-new-tag {\n width: 150px;\n margin-left: 10px;\n vertical-align: bottom;\n }\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=7b12f7d6&scoped=true&\"\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=7b12f7d6&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7b12f7d6\",\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div class=\"me-head\">\n <span>\n <i class=\"el-icon-reading\"></i>\n <span slot=\"title\">知识库管理 </span>\n </span>\n <el-button-group>\n <template v-for=\"item in total\" >\n <el-button :class=\"{'el-button--primary': item.id + '' == tableData.platform + ''}\" @click=\"onTogglePlatform(item.id)\" :key=\"item.id\" size=\"mini\">\n {{item.title}} ({{item.count}})\n </el-button>\n </template>\n </el-button-group> \n <el-col :span=\"5\">\n <el-input @change=\"onRefresh\" placeholder=\"请输入关键词\" prefix-icon=\"el-icon-search\" v-model=\"keyword\" clearable></el-input>\n </el-col>\n <el-button @click=\"createDialogFormVisible = true\" size=\"mini\">添 加</el-button>\n </div>\n <el-divider />\n <el-table\n :data=\"tableData.list\"\n style=\"width: 100%\"\n v-loading=\"loading\"\n >\n <el-table-column\n type=\"index\"\n :index=\"indexMethod\"\n width=\"60\">\n </el-table-column>\n <el-table-column\n prop=\"title\"\n label=\"主标题\">\n </el-table-column>\n <el-table-column\n prop=\"sub_title\"\n label=\"子标题\">\n <template slot-scope=\"scope\">\n <div v-if=\"scope.row.sub_title != ''\">\n <div style=\"font-size: 13px;\" :key=\"key\" v-for=\"(item, key) in scope.row.sub_title.split('|')\">\n {{key+1}}.{{item}}\n </div>\n </div>\n <div v-else>-----</div>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"content\"\n label=\"内容\">\n <template slot-scope=\"scope\">\n <div style=\"font-size: 13px;\" :key=\"key\" v-for='(item, key) in scope.row.content.split(\"\\n\")'>\n {{item}}\n </div>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"platform\"\n align=\"center\"\n label=\"匹配平台\">\n <template slot-scope=\"scope\">\n <el-tag>{{$getPlatformItem(scope.row.platform).title}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"create_at\"\n label=\"创建时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}\n </template>\n </el-table-column>\n <el-table-column\n prop=\"operating\"\n align=\"center\"\n width=\"150\"\n label=\"操作\">\n <template slot-scope=\"scope\">\n <el-button\n size=\"mini\"\n @click=\"edit(scope.row)\">编 辑</el-button>\n <el-button\n size=\"mini\"\n type=\"danger\"\n @click=\"deleteKnowledge(scope.row)\">删 除</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\">\n </el-pagination>\n </el-row>\n <CreateDialog :complete=\"onRefresh\" :dialogFormVisible.sync=\"createDialogFormVisible\" />\n <EditDialog :formData=\"editItem\" :complete=\"onRefresh\" :dialogFormVisible.sync=\"editDialogFormVisible\" />\n </div>\n</template>\n\n<script>\nimport CreateDialog from \"./create\"\nimport EditDialog from \"./edit\"\nimport axios from 'axios'\nexport default {\n name: \"knowledge\",\n components: {\n CreateDialog,\n EditDialog\n },\n data() {\n return {\n keyword: \"\",\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n total: 0,\n keyword: \"\",\n platform: 1,\n },\n total: [],\n createDialogFormVisible: false,\n editDialogFormVisible: false,\n loading: true,\n editItem: null\n }\n },\n computed: {\n platformConfig(){\n return this.$store.state.platformConfig || []\n }\n },\n created(){\n setTimeout( ()=> {\n this.getKnowledgeList()\n this.getTotal()\n }, 500)\n \n },\n methods: {\n onRefresh(){\n this.getTotal()\n this.getKnowledgeList()\n },\n // 行号\n indexMethod(index) {\n return (this.tableData.page_on - 1) * this.tableData.page_size + index +1;\n },\n // 删除\n deleteKnowledge(item){\n this.$confirm('您确定要删除该知识库吗? 删除后不可恢复!', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => {\n axios.delete('/knowledge/' + item.id)\n .then(response => {\n console.log(response.data)\n this.$message.success(\"删除成功\")\n this.getKnowledgeList(1)\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n })\n },\n // 切换显示平台\n onTogglePlatform(pid){\n this.tableData.platform = parseInt(pid)\n this.getKnowledgeList(1)\n },\n // 编辑\n edit(item){\n this.editItem = item\n this.editDialogFormVisible = true\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val\n this.getKnowledgeList()\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val\n this.getKnowledgeList()\n },\n // 获取数据\n getKnowledgeList(index){\n if(index) this.tableData.page_on = index\n const {page_on, page_size, platform} = this.tableData\n const keyword = this.keyword\n axios.post('/knowledge/list', {page_on, page_size, platform, keyword})\n .then(response => {\n this.loading = false\n this.tableData = response.data.data\n })\n .catch(error => {\n this.loading = false\n this.$message.error(error.response.data.message)\n });\n },\n // 获取统计数据\n getTotal(){\n axios.get('/knowledge/total')\n .then(response => {\n this.total = response.data.data\n })\n },\n },\n};\n</script>\n<style lang=\"stylus\" scoped>\n .me-head{\n height 30px\n display flex\n align-items center\n font-size 20px\n justify-content space-between\n color #666\n i{\n margin-right 5px\n }\n }\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=e6cb2868&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=e6cb2868&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"e6cb2868\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-615380b5"],{"0219":function(e,t,a){},"3fe6":function(e,t,a){},4218:function(e,t,a){"use strict";var o=a("0219"),i=a.n(o);i.a},"4f37":function(e,t,a){"use strict";a("aa77")("trim",(function(e){return function(){return e(this,3)}}))},aa77:function(e,t,a){var o=a("5ca1"),i=a("be13"),l=a("79e5"),n=a("fdef"),r="["+n+"]",s="​…",c=RegExp("^"+r+r+"*"),m=RegExp(r+r+"*$"),d=function(e,t,a){var i={},r=l((function(){return!!n[e]()||s[e]()!=s})),c=i[e]=r?t(u):n[e];a&&(i[a]=c),o(o.P+o.F*r,"String",i)},u=d.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(m,"")),e};e.exports=d},aedf:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"mini-im-head"},[a("span",[a("i",{staticClass:"el-icon-headset"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("客服管理")])]),1==e.adminInfo.root?a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.createDialogFormVisible=!0}}},[e._v("添 加")]):e._e()],1),a("el-divider"),a("div",{staticClass:"search"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:2.1}},[a("el-form",{ref:"form",attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"按关键字:"}})],1)],1),a("el-col",{attrs:{span:5}},[a("el-input",{attrs:{placeholder:"请输入关键词",clearable:"","prefix-icon":"el-icon-search"},on:{change:e.changeInput,clear:e.clearKeyword},model:{value:e.tableData.keyword,callback:function(t){e.$set(e.tableData,"keyword",t)},expression:"tableData.keyword"}})],1),a("el-col",{attrs:{span:3}},[a("el-button",{on:{click:e.search}},[e._v("查 找")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.list}},[a("el-table-column",{attrs:{type:"index",index:e.indexMethod,width:"60"}}),a("el-table-column",{attrs:{prop:"avatar",label:"头像",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-avatar",{attrs:{size:40,src:t.row.avatar||e.$store.state.avatar}})]}}])}),a("el-table-column",{attrs:{prop:"username",label:"客服账号"}}),a("el-table-column",{attrs:{prop:"nickname",label:"客服昵称"}}),a("el-table-column",{attrs:{prop:"online",align:"center",label:"在线状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.online?a("el-tag",{attrs:{type:"success"}},[e._v("在线")]):e._e(),2==t.row.online?a("el-tag",{attrs:{type:"warning"}},[e._v("繁忙")]):e._e(),0==t.row.online?a("el-tag",{attrs:{type:"info"}},[e._v("离线")]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"root",align:"center",label:"角色"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.root?a("el-tag",{attrs:{effect:"dark",type:"warning"}},[e._v("超级管理")]):e._e(),0==t.row.root?a("el-tag",[e._v("客服人员")]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"last_activity",label:"最后在线时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$formatUnixDate(t.row.last_activity,"YYYY/MM/DD HH:mm"))+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"create_at",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$formatUnixDate(t.row.create_at,"YYYY/MM/DD"))+"\n ")]}}])}),1==e.adminInfo.root?a("el-table-column",{attrs:{prop:"operating",align:"center",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.root?a("el-button",{attrs:{size:"mini"},on:{click:function(a){return e.edit(t.row)}}},[e._v("编 辑")]):e._e(),0==t.row.root?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return e.deleteAdmin(t.row)}}},[e._v("删 除")]):e._e()]}}],null,!1,1757062568)}):e._e()],1),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{type:"flex",justify:"space-between"}},[a("span",{staticStyle:{color:"#666","font-size":"14px"}},[e._v("共找到"+e._s(e.tableData.total)+"条数据")]),a("el-pagination",{attrs:{background:"",layout:"sizes, prev, pager, next","current-page":e.tableData.page_on,"page-sizes":[5,10,15,20],total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),a("CreateDialog",{attrs:{complete:e.getAdmins,dialogFormVisible:e.createDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.createDialogFormVisible=t},"update:dialog-form-visible":function(t){e.createDialogFormVisible=t}}}),a("EditDialog",{attrs:{formData:e.editItem,complete:e.getAdmins,dialogFormVisible:e.editDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.editDialogFormVisible=t},"update:dialog-form-visible":function(t){e.editDialogFormVisible=t}}})],1)},i=[],l=(a("4f37"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"600px",title:"添加客服","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{attrs:{model:e.form}},[a("el-form-item",{attrs:{label:"客服账号","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入客服账号",autocomplete:"off"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}})],1),a("el-form-item",{attrs:{label:"客服昵称","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入客服昵称",autocomplete:"off"},model:{value:e.form.nickname,callback:function(t){e.$set(e.form,"nickname",t)},expression:"form.nickname"}})],1),a("el-form-item",{attrs:{label:"登录密码","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入登录密码",autocomplete:"off"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1),a("el-form-item",{attrs:{label:"确认密码","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入确认密码",autocomplete:"off"},model:{value:e.cCassword,callback:function(t){e.cCassword=t},expression:"cCassword"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)}),n=[],r=a("bc3a"),s=a.n(r),c={name:"mini-im-create-admin",data:function(){return{form:{username:"",nickname:"",password:""},cCassword:"",formLabelWidth:"80px"}},props:{dialogFormVisible:Boolean,complete:Function},mounted:function(){},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},save:function(){var e=this;if(""!=this.form.username.trim())if(""!=this.form.nickname.trim())if(""!=this.form.password.trim())if(this.form.password.trim()==this.cCassword.trim()){var t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});s.a.post("/admin",this.form).then((function(a){try{console.log(a),t.close(),e.$message.success("添加成功"),e.closeModal(),e.resize(),e.complete(1)}catch(o){console.log(o)}})).catch((function(a){t.close(),e.$message.error(a.response.data.message)}))}else this.$message.error("两次密码不一致!");else this.$message.error("密码不能为空!");else this.$message.error("昵称不能为空!");else this.$message.error("账号不能为空!")},resize:function(){this.cCassword="",this.form={username:"",nickname:"",password:""}}}},m=c,d=a("2877"),u=Object(d["a"])(m,l,n,!1,null,"56150a82",null),f=u.exports,p=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"600px",title:"修改客服资料","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{attrs:{model:e.form}},[a("el-form-item",{attrs:{label:"头像","label-width":e.formLabelWidth}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"mini-im-file-button",attrs:{title:"点击上传图片"}},[a("el-avatar",{attrs:{size:50,src:e.form.avatar||e.$store.state.avatar}}),a("input",{attrs:{onClick:"this.value = null",type:"file",accept:"image/*"},on:{change:e.changeFile}}),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isUploading,expression:"isUploading"}],staticClass:"mini-im-file-percent"},[a("span",[e._v(e._s(e.uploadPercent))])])],1)]),a("el-col",{attrs:{span:6}})],1)],1),a("el-form-item",{attrs:{label:"客服账号","label-width":e.formLabelWidth}},[a("span",[e._v(e._s(e.form.username))])]),a("el-form-item",{attrs:{label:"客服昵称","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入客服昵称",autocomplete:"off"},model:{value:e.form.nickname,callback:function(t){e.$set(e.form,"nickname",t)},expression:"form.nickname"}})],1),a("el-form-item",{attrs:{label:"手机号","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入登录密码",autocomplete:"off"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),a("el-form-item",{attrs:{label:"自动回复语","label-width":e.formLabelWidth}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入自动回复语,不支持emoji,请使用简单语句描述",autocomplete:"off"},model:{value:e.form.auto_reply,callback:function(t){e.$set(e.form,"auto_reply",t)},expression:"form.auto_reply"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)},g=[],h=a("fb21"),b={name:"mini-im-create-admin",data:function(){return{form:{phone:"",nickname:"",avatar:"",auto_reply:""},formLabelWidth:"90px",isUploading:!1,uploadPercent:""}},props:{dialogFormVisible:Boolean,complete:Function,formData:Object},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},changeFile:function(e){var t=this,a=e.target.files[0];Object(h["a"])({file:a,progress:function(e){t.isUploading=!0,t.uploadPercent=e+"%"},success:function(e){t.isUploading=!1,t.uploadPercent="",t.$message.success("上传成功");var a=t.$store.getters.uploadToken.host+"/"+e;t.form.avatar=a},error:function(e){t.isUploading=!1,t.uploadPercent="",t.$message.error(e.message)}})},save:function(){var e=this,t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});s.a.put("/admin",this.form).then((function(a){try{t.close(),e.$message.success("修改成功"),e.closeModal(),e.complete(1)}catch(o){console.log(o,a)}})).catch((function(a){t.close(),e.$message.error(a.response.data.message)}))}},watch:{formData:function(){this.form=Object.assign({},this.form,this.formData)}}},v=b,w=(a("4218"),Object(d["a"])(v,p,g,!1,null,"3e845274",null)),_=w.exports,k={name:"admins",components:{CreateDialog:f,EditDialog:_},data:function(){return{tableData:{list:[],page_on:1,page_size:10,keyword:"",total:0},createDialogFormVisible:!1,editDialogFormVisible:!1,loading:!0,editItem:{}}},computed:{adminInfo:function(){return this.$store.getters.adminInfo}},created:function(){var e=this;setTimeout((function(){return e.getAdmins(1)}),500)},methods:{indexMethod:function(e){return(this.tableData.page_on-1)*this.tableData.page_size+e+1},deleteAdmin:function(e){var t=this;this.$confirm("您确定要删除该客服吗? 删除后不可恢复!","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){s.a.delete("/admin/"+e.id).then((function(e){console.log(e.data),t.$message.success("删除成功"),t.getAdmins(1)})).catch((function(e){t.$message.error(e.response.data.message)}))}))},edit:function(e){this.editItem=e,this.editDialogFormVisible=!0},handleSizeChange:function(e){this.tableData.page_size=e,this.getAdmins()},handleCurrentChange:function(e){this.tableData.page_on=e,this.getAdmins()},clearKeyword:function(){this.getAdmins(1)},changeInput:function(){""==this.tableData.keyword&&this.getAdmins(1)},search:function(){this.tableData.keyword=this.tableData.keyword.trim(),this.tableData.keyword&&this.getAdmins(1)},getAdmins:function(e){var t=this;e&&(this.tableData.page_on=e);var a=this.tableData,o=a.page_on,i=a.page_size,l=a.keyword;s.a.post("/admin/list",{page_on:o,page_size:i,keyword:l,online:3}).then((function(e){t.loading=!1,t.tableData=e.data.data})).catch((function(e){t.loading=!1,t.$message.error(e.response.data.message)}))}}},y=k,D=(a("b4a5"),Object(d["a"])(y,o,i,!1,null,"0aee8f9a",null));t["default"]=D.exports},b4a5:function(e,t,a){"use strict";var o=a("3fe6"),i=a.n(o);i.a},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
//# sourceMappingURL=chunk-615380b5.8e004b72.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/customer/edit.vue?7f89","webpack:///./node_modules/core-js/modules/es6.string.trim.js","webpack:///./node_modules/core-js/modules/_string-trim.js","webpack:///./src/views/customer/index.vue?cf9f","webpack:///./src/views/customer/create.vue?dff4","webpack:///src/views/customer/create.vue","webpack:///./src/views/customer/create.vue?c0ff","webpack:///./src/views/customer/create.vue","webpack:///./src/views/customer/edit.vue?a880","webpack:///src/views/customer/edit.vue","webpack:///./src/views/customer/edit.vue?939e","webpack:///./src/views/customer/edit.vue","webpack:///src/views/customer/index.vue","webpack:///./src/views/customer/index.vue?3888","webpack:///./src/views/customer/index.vue","webpack:///./src/views/customer/index.vue?ae5a","webpack:///./node_modules/core-js/modules/_string-ws.js"],"names":["$trim","this","$export","defined","fails","spaces","space","non","ltrim","RegExp","rtrim","exporter","KEY","exec","ALIAS","exp","FORCE","fn","trim","P","F","string","TYPE","String","replace","module","exports","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","adminInfo","root","on","$event","createDialogFormVisible","_e","ref","changeInput","clearKeyword","model","value","tableData","callback","$$v","$set","expression","search","directives","name","rawName","staticStyle","list","indexMethod","scopedSlots","_u","key","scope","row","avatar","$store","state","online","_s","$formatUnixDate","last_activity","create_at","edit","deleteAdmin","total","page_on","handleSizeChange","handleCurrentChange","getAdmins","editItem","editDialogFormVisible","staticRenderFns","dialogFormVisible","form","formLabelWidth","cCassword","closeModal","save","data","props","Boolean","complete","Function","mounted","methods","$emit","lock","text","spinner","background","$message","error","resize","username","nickname","password","component","changeFile","uploadPercent","phone","auto_reply","isUploading","formData","Object","fileData","file","target","files","imgUrl","watch","assign","components","CreateDialog","EditDialog","page_size","keyword","loading","computed","getters","created","setTimeout","index","$confirm","confirmButtonText","cancelButtonText","center","type","item","val"],"mappings":"kKAAA,yBAAwjB,EAAG,G,oCCE3jB,EAAQ,OAAR,CAA0B,QAAQ,SAAUA,GAC1C,OAAO,WACL,OAAOA,EAAMC,KAAM,Q,qBCJvB,IAAIC,EAAU,EAAQ,QAClBC,EAAU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AyjB,EAAG,G,mBCA5jBzD,EAAOC,QAAU","file":"js/chunk-615380b5.8e004b72.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=3e845274&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=3e845274&scoped=true&lang=stylus&\"","'use strict';\n// 21.1.3.25 String.prototype.trim()\nrequire('./_string-trim')('trim', function ($trim) {\n return function trim() {\n return $trim(this, 3);\n };\n});\n","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"mini-im-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-headset\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"客服管理\")])]),(_vm.adminInfo.root == 1)?_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.createDialogFormVisible = true}}},[_vm._v(\"添 加\")]):_vm._e()],1),_c('el-divider'),_c('div',{staticClass:\"search\"},[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":2.1}},[_c('el-form',{ref:\"form\",attrs:{\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":\"按关键字:\"}})],1)],1),_c('el-col',{attrs:{\"span\":5}},[_c('el-input',{attrs:{\"placeholder\":\"请输入关键词\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-search\"},on:{\"change\":_vm.changeInput,\"clear\":_vm.clearKeyword},model:{value:(_vm.tableData.keyword),callback:function ($$v) {_vm.$set(_vm.tableData, \"keyword\", $$v)},expression:\"tableData.keyword\"}})],1),_c('el-col',{attrs:{\"span\":3}},[_c('el-button',{on:{\"click\":_vm.search}},[_vm._v(\"查 找\")])],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"width\":\"60\"}}),_c('el-table-column',{attrs:{\"prop\":\"avatar\",\"label\":\"头像\",\"width\":\"120\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-avatar',{attrs:{\"size\":40,\"src\":scope.row.avatar || _vm.$store.state.avatar}})]}}])}),_c('el-table-column',{attrs:{\"prop\":\"username\",\"label\":\"客服账号\"}}),_c('el-table-column',{attrs:{\"prop\":\"nickname\",\"label\":\"客服昵称\"}}),_c('el-table-column',{attrs:{\"prop\":\"online\",\"align\":\"center\",\"label\":\"在线状态\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.online == 1)?_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(\"在线\")]):_vm._e(),(scope.row.online == 2)?_c('el-tag',{attrs:{\"type\":\"warning\"}},[_vm._v(\"繁忙\")]):_vm._e(),(scope.row.online == 0)?_c('el-tag',{attrs:{\"type\":\"info\"}},[_vm._v(\"离线\")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"root\",\"align\":\"center\",\"label\":\"角色\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.root == 1)?_c('el-tag',{attrs:{\"effect\":\"dark\",\"type\":\"warning\"}},[_vm._v(\"超级管理\")]):_vm._e(),(scope.row.root == 0)?_c('el-tag',[_vm._v(\"客服人员\")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"last_activity\",\"label\":\"最后在线时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.last_activity, \"YYYY/MM/DD HH:mm\"))+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"创建时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\"))+\"\\n \")]}}])}),(_vm.adminInfo.root == 1)?_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"width\":\"150\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.root == 0)?_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编 辑\")]):_vm._e(),(scope.row.root == 0)?_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteAdmin(scope.row)}}},[_vm._v(\"删 除\")]):_vm._e()]}}],null,false,1757062568)}):_vm._e()],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('CreateDialog',{attrs:{\"complete\":_vm.getAdmins,\"dialogFormVisible\":_vm.createDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.createDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.createDialogFormVisible=$event}}}),_c('EditDialog',{attrs:{\"formData\":_vm.editItem,\"complete\":_vm.getAdmins,\"dialogFormVisible\":_vm.editDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.editDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.editDialogFormVisible=$event}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"添加客服\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"客服账号\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入客服账号\",\"autocomplete\":\"off\"},model:{value:(_vm.form.username),callback:function ($$v) {_vm.$set(_vm.form, \"username\", $$v)},expression:\"form.username\"}})],1),_c('el-form-item',{attrs:{\"label\":\"客服昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入客服昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"登录密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入登录密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, \"password\", $$v)},expression:\"form.password\"}})],1),_c('el-form-item',{attrs:{\"label\":\"确认密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入确认密码\",\"autocomplete\":\"off\"},model:{value:(_vm.cCassword),callback:function ($$v) {_vm.cCassword=$$v},expression:\"cCassword\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog width=\"600px\" title=\"添加客服\" :show-close=\"false\" :visible.sync=\"dialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"客服账号\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.username\" placeholder=\"请输入客服账号\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"客服昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入客服昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"登录密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.password\" placeholder=\"请输入登录密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"确认密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"cCassword\" placeholder=\"请输入确认密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from \"axios\";\nexport default {\n name: 'mini-im-create-admin',\n data(){\n return {\n form: {\n username: '',\n nickname: '',\n password: ''\n },\n cCassword: '',\n formLabelWidth: \"80px\"\n }\n },\n props:{\n dialogFormVisible: Boolean,\n complete: Function\n },\n mounted(){\n },\n methods: {\n // 关闭\n closeModal(){\n this.$emit('update:dialogFormVisible', false);\n },\n // 保存\n save() {\n // 验证一下密码字段\n if(this.form.username.trim() == \"\"){\n this.$message.error(\"账号不能为空!\")\n return;\n }\n if(this.form.nickname.trim() == \"\"){\n this.$message.error(\"昵称不能为空!\")\n return;\n }\n if(this.form.password.trim() == \"\"){\n this.$message.error(\"密码不能为空!\")\n return;\n }\n if(this.form.password.trim() != this.cCassword.trim()){\n this.$message.error(\"两次密码不一致!\")\n return;\n }\n\n // 验证字段 !! 算了其它前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n axios\n .post(\"/admin\", this.form)\n .then(response => {\n try {\n console.log(response);\n loading.close();\n this.$message.success(\"添加成功\");\n this.closeModal();\n this.resize();\n this.complete(1);\n } catch (e) {\n console.log(e);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n resize() {\n this.cCassword = '';\n this.form = {\n username: '',\n nickname: '',\n password: ''\n };\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n \n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create.vue?vue&type=template&id=56150a82&scoped=true&\"\nimport script from \"./create.vue?vue&type=script&lang=js&\"\nexport * from \"./create.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"56150a82\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"修改客服资料\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"头像\",\"label-width\":_vm.formLabelWidth}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('el-avatar',{attrs:{\"size\":50,\"src\":_vm.form.avatar || _vm.$store.state.avatar}}),_c('input',{attrs:{\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.changeFile}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploading),expression:\"isUploading\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadPercent))])])],1)]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"客服账号\",\"label-width\":_vm.formLabelWidth}},[_c('span',[_vm._v(_vm._s(_vm.form.username))])]),_c('el-form-item',{attrs:{\"label\":\"客服昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入客服昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"手机号\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入登录密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"自动回复语\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"placeholder\":\"请输入自动回复语,不支持emoji,请使用简单语句描述\",\"autocomplete\":\"off\"},model:{value:(_vm.form.auto_reply),callback:function ($$v) {_vm.$set(_vm.form, \"auto_reply\", $$v)},expression:\"form.auto_reply\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog\n width=\"600px\" \n title=\"修改客服资料\"\n :show-close=\"false\"\n :visible.sync=\"dialogFormVisible\"\n :close-on-click-modal=\"false\"\n >\n <el-form :model=\"form\">\n <el-form-item label=\"头像\" :label-width=\"formLabelWidth\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <el-avatar\n :size=\"50\"\n :src=\"form.avatar || $store.state.avatar\"\n ></el-avatar>\n <input onClick=\"this.value = null\" @change=\"changeFile\" type=\"file\" accept=\"image/*\" />\n <div v-show=\"isUploading\" class=\"mini-im-file-percent\">\n <span>{{uploadPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\"></el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"客服账号\" :label-width=\"formLabelWidth\">\n <span>{{form.username}}</span>\n </el-form-item>\n <el-form-item label=\"客服昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入客服昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"手机号\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.phone\" placeholder=\"请输入登录密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"自动回复语\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.auto_reply\" type=\"textarea\" placeholder=\"请输入自动回复语,不支持emoji,请使用简单语句描述\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from \"axios\";\nimport upload from '../../common/upload'\nexport default {\n name: \"mini-im-create-admin\",\n data() {\n return {\n form: {\n phone: \"\",\n nickname: \"\",\n avatar: \"\",\n auto_reply: \"\"\n },\n formLabelWidth: \"90px\",\n isUploading: false,\n uploadPercent: \"\"\n };\n },\n props: {\n dialogFormVisible: Boolean,\n complete: Function,\n formData: Object\n },\n methods: {\n // 关闭\n closeModal() {\n this.$emit(\"update:dialogFormVisible\", false);\n },\n // 上传\n changeFile(file) {\n\n var fileData = file.target.files[0];\n upload({\n file: fileData,\n progress: (percent) => {\n this.isUploading = true;\n this.uploadPercent = percent + \"%\";\n },\n success: (url) => {\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.success(\"上传成功\");\n var imgUrl = this.$store.getters.uploadToken.host + \"/\" + url\n this.form.avatar = imgUrl;\n },\n error: (err)=>{\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.error(err.message);\n }\n });\n\n\n },\n // 保存\n save() {\n // 验证字段 !! 算了其它前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n axios\n .put(\"/admin\", this.form)\n .then(response => {\n try {\n loading.close();\n this.$message.success(\"修改成功\");\n this.closeModal();\n this.complete(1);\n } catch (e) {\n console.log(e, response);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n }\n },\n watch: {\n formData() {\n this.form = Object.assign({}, this.form, this.formData);\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-file-button {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: relative;\n overflow: hidden;\n\n input {\n font-size: 100px;\n position: absolute;\n top: 0px;\n left: 0px;\n cursor: pointer;\n opacity 0\n }\n\n cursor: pointer;\n\n .mini-im-file-percent {\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n color: #fff;\n font-size: 12px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=3e845274&scoped=true&\"\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=3e845274&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3e845274\",\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div class=\"mini-im-head\">\n <span>\n <i class=\"el-icon-headset\"></i>\n <span slot=\"title\">客服管理</span>\n </span>\n <el-button v-if=\"adminInfo.root == 1\" @click=\"createDialogFormVisible = true\" size=\"mini\">添 加</el-button>\n </div>\n <el-divider />\n <div class=\"search\">\n <el-row :gutter=\"20\">\n <el-col :span=\"2.1\">\n <el-form ref=\"form\" label-width=\"120px\">\n <el-form-item label=\"按关键字:\"></el-form-item>\n </el-form>\n </el-col>\n <el-col :span=\"5\">\n <el-input @change=\"changeInput\" @clear=\"clearKeyword\" placeholder=\"请输入关键词\" v-model=\"tableData.keyword\" clearable prefix-icon=\"el-icon-search\"></el-input>\n </el-col>\n <el-col :span=\"3\">\n <el-button @click=\"search\">查 找</el-button>\n </el-col>\n </el-row>\n </div>\n <el-table\n :data=\"tableData.list\"\n style=\"width: 100%\"\n v-loading=\"loading\"\n >\n <el-table-column\n type=\"index\"\n :index=\"indexMethod\"\n width=\"60\">\n </el-table-column>\n <el-table-column\n prop=\"avatar\"\n label=\"头像\"\n width=\"120\">\n <template slot-scope=\"scope\">\n <el-avatar :size=\"40\" :src=\"scope.row.avatar || $store.state.avatar\"></el-avatar>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"username\"\n label=\"客服账号\">\n </el-table-column>\n <el-table-column\n prop=\"nickname\"\n label=\"客服昵称\">\n </el-table-column>\n <el-table-column\n prop=\"online\"\n align=\"center\"\n label=\"在线状态\">\n <template slot-scope=\"scope\">\n <el-tag type=\"success\" v-if=\"scope.row.online == 1\">在线</el-tag>\n <el-tag type=\"warning\" v-if=\"scope.row.online == 2\">繁忙</el-tag>\n <el-tag type=\"info\" v-if=\"scope.row.online == 0\">离线</el-tag>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"root\"\n align=\"center\"\n label=\"角色\">\n <template slot-scope=\"scope\">\n <el-tag effect=\"dark\" type=\"warning\" v-if=\"scope.row.root == 1\">超级管理</el-tag>\n <el-tag v-if=\"scope.row.root == 0\">客服人员</el-tag>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"last_activity\"\n label=\"最后在线时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.last_activity, \"YYYY/MM/DD HH:mm\")}}\n </template>\n </el-table-column>\n <el-table-column\n prop=\"create_at\"\n label=\"创建时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}\n </template>\n </el-table-column>\n <el-table-column\n prop=\"operating\"\n align=\"center\"\n width=\"150\"\n v-if=\"adminInfo.root == 1\"\n label=\"操作\">\n <template slot-scope=\"scope\">\n <el-button\n size=\"mini\"\n v-if=\"scope.row.root == 0\"\n @click=\"edit(scope.row)\">编 辑</el-button>\n <el-button\n size=\"mini\"\n type=\"danger\"\n v-if=\"scope.row.root == 0\"\n @click=\"deleteAdmin(scope.row)\">删 除</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\">\n </el-pagination>\n </el-row>\n <CreateDialog :complete=\"getAdmins\" :dialogFormVisible.sync=\"createDialogFormVisible\" />\n <EditDialog :formData=\"editItem\" :complete=\"getAdmins\" :dialogFormVisible.sync=\"editDialogFormVisible\" />\n </div>\n</template>\n\n<script>\nimport CreateDialog from \"./create\"\nimport EditDialog from \"./edit\"\nimport axios from 'axios'\nexport default {\n name: \"admins\",\n components: {\n CreateDialog,\n EditDialog\n },\n data() {\n return {\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n keyword: \"\",\n total: 0,\n },\n createDialogFormVisible: false,\n editDialogFormVisible: false,\n loading: true,\n editItem: {}\n }\n },\n computed: {\n adminInfo(){\n return this.$store.getters.adminInfo\n }\n },\n created(){\n setTimeout(()=> this.getAdmins(1), 500)\n },\n methods: {\n // 行号\n indexMethod(index) {\n return (this.tableData.page_on - 1) * this.tableData.page_size + index +1;\n },\n // 删除\n deleteAdmin(item){\n this.$confirm('您确定要删除该客服吗? 删除后不可恢复!', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => {\n axios.delete('/admin/' + item.id)\n .then(response => {\n console.log(response.data)\n this.$message.success(\"删除成功\")\n this.getAdmins(1)\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n })\n },\n // 编辑\n edit(item){\n this.editItem = item\n this.editDialogFormVisible = true\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val\n this.getAdmins()\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val\n this.getAdmins()\n },\n // 清空关键字\n clearKeyword(){\n this.getAdmins(1)\n },\n // 关键字input变动\n changeInput(){\n if(this.tableData.keyword == \"\"){\n this.getAdmins(1)\n }\n },\n // 查找\n search(){\n this.tableData.keyword = this.tableData.keyword.trim()\n if(!this.tableData.keyword) return\n this.getAdmins(1)\n },\n // 获取数据\n getAdmins(index){\n if(index) this.tableData.page_on = index\n const {page_on, page_size, keyword} = this.tableData\n axios.post('/admin/list', {page_on, page_size, keyword, \"online\": 3})\n .then(response => {\n this.loading = false\n this.tableData = response.data.data\n })\n .catch(error => {\n this.loading = false\n this.$message.error(error.response.data.message)\n });\n }\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n .mini-im-head{\n height 30px\n display flex\n align-items center\n font-size 20px\n justify-content space-between\n color #666\n i{\n margin-right 5px\n }\n }\n .el-select .el-input {\n width: 130px;\n }\n .input-with-select .el-input-group__prepend {\n background-color: #fff;\n }\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=0aee8f9a&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=0aee8f9a&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0aee8f9a\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=0aee8f9a&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=0aee8f9a&lang=stylus&scoped=true&\"","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-688d1b8e"],{"0219":function(e,t,a){},4218:function(e,t,a){"use strict";var o=a("0219"),i=a.n(o);i.a},"4f37":function(e,t,a){"use strict";a("aa77")("trim",(function(e){return function(){return e(this,3)}}))},aa77:function(e,t,a){var o=a("5ca1"),i=a("be13"),l=a("79e5"),n=a("fdef"),r="["+n+"]",s="​…",c=RegExp("^"+r+r+"*"),m=RegExp(r+r+"*$"),d=function(e,t,a){var i={},r=l((function(){return!!n[e]()||s[e]()!=s})),c=i[e]=r?t(u):n[e];a&&(i[a]=c),o(o.P+o.F*r,"String",i)},u=d.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(m,"")),e};e.exports=d},aedf:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"mini-im-head"},[a("span",[a("i",{staticClass:"el-icon-headset"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("客服管理")])]),1==e.adminInfo.root?a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.createDialogFormVisible=!0}}},[e._v("添 加")]):e._e()],1),a("el-divider"),a("div",{staticClass:"search"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:2.1}},[a("el-form",{ref:"form",attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"按关键字:"}})],1)],1),a("el-col",{attrs:{span:5}},[a("el-input",{attrs:{placeholder:"请输入关键词",clearable:"","prefix-icon":"el-icon-search"},on:{change:e.changeInput,clear:e.clearKeyword},model:{value:e.tableData.keyword,callback:function(t){e.$set(e.tableData,"keyword",t)},expression:"tableData.keyword"}})],1),a("el-col",{attrs:{span:3}},[a("el-button",{on:{click:e.search}},[e._v("查 找")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.list}},[a("el-table-column",{attrs:{type:"index",index:e.indexMethod,label:"#序号",width:"60"}}),a("el-table-column",{attrs:{prop:"avatar",label:"头像",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-avatar",{attrs:{size:40,src:t.row.avatar||e.$store.state.avatar}})]}}])}),a("el-table-column",{attrs:{prop:"username",label:"客服账号"}}),a("el-table-column",{attrs:{prop:"nickname",label:"客服昵称"}}),a("el-table-column",{attrs:{prop:"online",align:"center",label:"在线状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.online?a("el-tag",{attrs:{type:"success"}},[e._v("在线")]):e._e(),2==t.row.online?a("el-tag",{attrs:{type:"warning"}},[e._v("繁忙")]):e._e(),0==t.row.online?a("el-tag",{attrs:{type:"info"}},[e._v("离线")]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"root",align:"center",label:"角色"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.root?a("el-tag",{attrs:{effect:"dark",type:"warning"}},[e._v("超级管理")]):e._e(),0==t.row.root?a("el-tag",[e._v("客服人员")]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"last_activity",label:"最后在线时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$formatUnixDate(t.row.last_activity,"YYYY/MM/DD HH:mm"))+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"create_at",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$formatUnixDate(t.row.create_at,"YYYY/MM/DD"))+"\n ")]}}])}),1==e.adminInfo.root?a("el-table-column",{attrs:{prop:"operating",align:"center",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.root?a("el-button",{attrs:{size:"mini"},on:{click:function(a){return e.edit(t.row)}}},[e._v("编 辑")]):e._e(),0==t.row.root?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return e.deleteAdmin(t.row)}}},[e._v("删 除")]):e._e()]}}],null,!1,1757062568)}):e._e()],1),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{type:"flex",justify:"space-between"}},[a("span",{staticStyle:{color:"#666","font-size":"14px"}},[e._v("共找到"+e._s(e.tableData.total)+"条数据")]),a("el-pagination",{attrs:{background:"",layout:"sizes, prev, pager, next","current-page":e.tableData.page_on,"page-sizes":[5,10,15,20],total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),a("CreateDialog",{attrs:{complete:e.getAdmins,dialogFormVisible:e.createDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.createDialogFormVisible=t},"update:dialog-form-visible":function(t){e.createDialogFormVisible=t}}}),a("EditDialog",{attrs:{formData:e.editItem,complete:e.getAdmins,dialogFormVisible:e.editDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.editDialogFormVisible=t},"update:dialog-form-visible":function(t){e.editDialogFormVisible=t}}})],1)},i=[],l=(a("4f37"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"600px",title:"添加客服","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{attrs:{model:e.form}},[a("el-form-item",{attrs:{label:"客服账号","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入客服账号",autocomplete:"off"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}})],1),a("el-form-item",{attrs:{label:"客服昵称","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入客服昵称",autocomplete:"off"},model:{value:e.form.nickname,callback:function(t){e.$set(e.form,"nickname",t)},expression:"form.nickname"}})],1),a("el-form-item",{attrs:{label:"登录密码","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入登录密码",autocomplete:"off"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1),a("el-form-item",{attrs:{label:"确认密码","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入确认密码",autocomplete:"off"},model:{value:e.cCassword,callback:function(t){e.cCassword=t},expression:"cCassword"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)}),n=[],r=a("bc3a"),s=a.n(r),c={name:"mini-im-create-admin",data:function(){return{form:{username:"",nickname:"",password:""},cCassword:"",formLabelWidth:"80px"}},props:{dialogFormVisible:Boolean,complete:Function},mounted:function(){},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},save:function(){var e=this;if(""!=this.form.username.trim())if(""!=this.form.nickname.trim())if(""!=this.form.password.trim())if(this.form.password.trim()==this.cCassword.trim()){var t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});s.a.post("/admin",this.form).then((function(a){try{console.log(a),t.close(),e.$message.success("添加成功"),e.closeModal(),e.resize(),e.complete(1)}catch(o){console.log(o)}})).catch((function(a){t.close(),e.$message.error(a.response.data.message)}))}else this.$message.error("两次密码不一致!");else this.$message.error("密码不能为空!");else this.$message.error("昵称不能为空!");else this.$message.error("账号不能为空!")},resize:function(){this.cCassword="",this.form={username:"",nickname:"",password:""}}}},m=c,d=a("2877"),u=Object(d["a"])(m,l,n,!1,null,"56150a82",null),f=u.exports,p=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"600px",title:"修改客服资料","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{attrs:{model:e.form}},[a("el-form-item",{attrs:{label:"头像","label-width":e.formLabelWidth}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"mini-im-file-button",attrs:{title:"点击上传图片"}},[a("el-avatar",{attrs:{size:50,src:e.form.avatar||e.$store.state.avatar}}),a("input",{attrs:{onClick:"this.value = null",type:"file",accept:"image/*"},on:{change:e.changeFile}}),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isUploading,expression:"isUploading"}],staticClass:"mini-im-file-percent"},[a("span",[e._v(e._s(e.uploadPercent))])])],1)]),a("el-col",{attrs:{span:6}})],1)],1),a("el-form-item",{attrs:{label:"客服账号","label-width":e.formLabelWidth}},[a("span",[e._v(e._s(e.form.username))])]),a("el-form-item",{attrs:{label:"客服昵称","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入客服昵称",autocomplete:"off"},model:{value:e.form.nickname,callback:function(t){e.$set(e.form,"nickname",t)},expression:"form.nickname"}})],1),a("el-form-item",{attrs:{label:"手机号","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入登录密码",autocomplete:"off"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),a("el-form-item",{attrs:{label:"自动回复语","label-width":e.formLabelWidth}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入自动回复语,不支持emoji,请使用简单语句描述",autocomplete:"off"},model:{value:e.form.auto_reply,callback:function(t){e.$set(e.form,"auto_reply",t)},expression:"form.auto_reply"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)},g=[],b=a("fb21"),h={name:"mini-im-create-admin",data:function(){return{form:{phone:"",nickname:"",avatar:"",auto_reply:""},formLabelWidth:"90px",isUploading:!1,uploadPercent:""}},props:{dialogFormVisible:Boolean,complete:Function,formData:Object},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},changeFile:function(e){var t=this,a=e.target.files[0];Object(b["a"])({file:a,progress:function(e){t.isUploading=!0,t.uploadPercent=e+"%"},success:function(e){t.isUploading=!1,t.uploadPercent="",t.$message.success("上传成功");var a=t.$store.getters.uploadToken.host+"/"+e;t.form.avatar=a},error:function(e){t.isUploading=!1,t.uploadPercent="",t.$message.error(e.message)}})},save:function(){var e=this,t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});s.a.put("/admin",this.form).then((function(a){try{t.close(),e.$message.success("修改成功"),e.closeModal(),e.complete(1)}catch(o){console.log(o,a)}})).catch((function(a){t.close(),e.$message.error(a.response.data.message)}))}},watch:{formData:function(){this.form=Object.assign({},this.form,this.formData)}}},v=h,w=(a("4218"),Object(d["a"])(v,p,g,!1,null,"3e845274",null)),_=w.exports,k={name:"admins",components:{CreateDialog:f,EditDialog:_},data:function(){return{tableData:{list:[],page_on:1,page_size:10,keyword:"",total:0},createDialogFormVisible:!1,editDialogFormVisible:!1,loading:!0,editItem:{}}},computed:{adminInfo:function(){return this.$store.getters.adminInfo}},created:function(){var e=this;setTimeout((function(){return e.getAdmins(1)}),500)},methods:{indexMethod:function(e){return(this.tableData.page_on-1)*this.tableData.page_size+e+1},deleteAdmin:function(e){var t=this;this.$confirm("您确定要删除该客服吗? 删除后不可恢复!","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){s.a.delete("/admin/"+e.id).then((function(e){console.log(e.data),t.$message.success("删除成功"),t.getAdmins(1)})).catch((function(e){t.$message.error(e.response.data.message)}))}))},edit:function(e){this.editItem=e,this.editDialogFormVisible=!0},handleSizeChange:function(e){this.tableData.page_size=e,this.getAdmins()},handleCurrentChange:function(e){this.tableData.page_on=e,this.getAdmins()},clearKeyword:function(){this.getAdmins(1)},changeInput:function(){""==this.tableData.keyword&&this.getAdmins(1)},search:function(){this.tableData.keyword=this.tableData.keyword.trim(),this.tableData.keyword&&this.getAdmins(1)},getAdmins:function(e){var t=this;e&&(this.tableData.page_on=e);var a=this.tableData,o=a.page_on,i=a.page_size,l=a.keyword;s.a.post("/admin/list",{page_on:o,page_size:i,keyword:l,online:3}).then((function(e){t.loading=!1,t.tableData=e.data.data})).catch((function(e){t.loading=!1,t.$message.error(e.response.data.message)}))}}},y=k,D=(a("db3c"),Object(d["a"])(y,o,i,!1,null,"65c494d4",null));t["default"]=D.exports},b3a0:function(e,t,a){},db3c:function(e,t,a){"use strict";var o=a("b3a0"),i=a.n(o);i.a},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
//# sourceMappingURL=chunk-688d1b8e.764bf305.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/customer/edit.vue?7f89","webpack:///./node_modules/core-js/modules/es6.string.trim.js","webpack:///./node_modules/core-js/modules/_string-trim.js","webpack:///./src/views/customer/index.vue?59e7","webpack:///./src/views/customer/create.vue?dff4","webpack:///src/views/customer/create.vue","webpack:///./src/views/customer/create.vue?c0ff","webpack:///./src/views/customer/create.vue","webpack:///./src/views/customer/edit.vue?a880","webpack:///src/views/customer/edit.vue","webpack:///./src/views/customer/edit.vue?939e","webpack:///./src/views/customer/edit.vue","webpack:///src/views/customer/index.vue","webpack:///./src/views/customer/index.vue?3888","webpack:///./src/views/customer/index.vue","webpack:///./src/views/customer/index.vue?782e","webpack:///./node_modules/core-js/modules/_string-ws.js"],"names":["$trim","this","$export","defined","fails","spaces","space","non","ltrim","RegExp","rtrim","exporter","KEY","exec","ALIAS","exp","FORCE","fn","trim","P","F","string","TYPE","String","replace","module","exports","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","adminInfo","root","on","$event","createDialogFormVisible","_e","ref","changeInput","clearKeyword","model","value","tableData","callback","$$v","$set","expression","search","directives","name","rawName","staticStyle","list","indexMethod","scopedSlots","_u","key","scope","row","avatar","$store","state","online","_s","$formatUnixDate","last_activity","create_at","edit","deleteAdmin","total","page_on","handleSizeChange","handleCurrentChange","getAdmins","editItem","editDialogFormVisible","staticRenderFns","dialogFormVisible","form","formLabelWidth","cCassword","closeModal","save","data","props","Boolean","complete","Function","mounted","methods","$emit","lock","text","spinner","background","$message","error","resize","username","nickname","password","component","changeFile","uploadPercent","phone","auto_reply","isUploading","formData","Object","fileData","file","target","files","imgUrl","watch","assign","components","CreateDialog","EditDialog","page_size","keyword","loading","computed","getters","created","setTimeout","index","$confirm","confirmButtonText","cancelButtonText","center","type","item","val"],"mappings":"yIAAA,yBAAwjB,EAAG,G,oCCE3jB,EAAQ,OAAR,CAA0B,QAAQ,SAAUA,GAC1C,OAAO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R,8CC5NiY,ICQ7X,G,UAAY,eACd,EACApD,EACAuD,GACA,EACA,KACA,WACA,OAIa,e,kECnBf,yBAAyjB,EAAG,G,mBCA5jBzD,EAAOC,QAAU","file":"js/chunk-688d1b8e.764bf305.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=3e845274&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=3e845274&scoped=true&lang=stylus&\"","'use strict';\n// 21.1.3.25 String.prototype.trim()\nrequire('./_string-trim')('trim', function ($trim) {\n return function trim() {\n return $trim(this, 3);\n };\n});\n","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"mini-im-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-headset\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"客服管理\")])]),(_vm.adminInfo.root == 1)?_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.createDialogFormVisible = true}}},[_vm._v(\"添 加\")]):_vm._e()],1),_c('el-divider'),_c('div',{staticClass:\"search\"},[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":2.1}},[_c('el-form',{ref:\"form\",attrs:{\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":\"按关键字:\"}})],1)],1),_c('el-col',{attrs:{\"span\":5}},[_c('el-input',{attrs:{\"placeholder\":\"请输入关键词\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-search\"},on:{\"change\":_vm.changeInput,\"clear\":_vm.clearKeyword},model:{value:(_vm.tableData.keyword),callback:function ($$v) {_vm.$set(_vm.tableData, \"keyword\", $$v)},expression:\"tableData.keyword\"}})],1),_c('el-col',{attrs:{\"span\":3}},[_c('el-button',{on:{\"click\":_vm.search}},[_vm._v(\"查 找\")])],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"label\":\"#序号\",\"width\":\"60\"}}),_c('el-table-column',{attrs:{\"prop\":\"avatar\",\"label\":\"头像\",\"width\":\"120\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-avatar',{attrs:{\"size\":40,\"src\":scope.row.avatar || _vm.$store.state.avatar}})]}}])}),_c('el-table-column',{attrs:{\"prop\":\"username\",\"label\":\"客服账号\"}}),_c('el-table-column',{attrs:{\"prop\":\"nickname\",\"label\":\"客服昵称\"}}),_c('el-table-column',{attrs:{\"prop\":\"online\",\"align\":\"center\",\"label\":\"在线状态\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.online == 1)?_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(\"在线\")]):_vm._e(),(scope.row.online == 2)?_c('el-tag',{attrs:{\"type\":\"warning\"}},[_vm._v(\"繁忙\")]):_vm._e(),(scope.row.online == 0)?_c('el-tag',{attrs:{\"type\":\"info\"}},[_vm._v(\"离线\")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"root\",\"align\":\"center\",\"label\":\"角色\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.root == 1)?_c('el-tag',{attrs:{\"effect\":\"dark\",\"type\":\"warning\"}},[_vm._v(\"超级管理\")]):_vm._e(),(scope.row.root == 0)?_c('el-tag',[_vm._v(\"客服人员\")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"last_activity\",\"label\":\"最后在线时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.last_activity, \"YYYY/MM/DD HH:mm\"))+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"创建时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\"))+\"\\n \")]}}])}),(_vm.adminInfo.root == 1)?_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"width\":\"150\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.root == 0)?_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编 辑\")]):_vm._e(),(scope.row.root == 0)?_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteAdmin(scope.row)}}},[_vm._v(\"删 除\")]):_vm._e()]}}],null,false,1757062568)}):_vm._e()],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('CreateDialog',{attrs:{\"complete\":_vm.getAdmins,\"dialogFormVisible\":_vm.createDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.createDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.createDialogFormVisible=$event}}}),_c('EditDialog',{attrs:{\"formData\":_vm.editItem,\"complete\":_vm.getAdmins,\"dialogFormVisible\":_vm.editDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.editDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.editDialogFormVisible=$event}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"添加客服\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"客服账号\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入客服账号\",\"autocomplete\":\"off\"},model:{value:(_vm.form.username),callback:function ($$v) {_vm.$set(_vm.form, \"username\", $$v)},expression:\"form.username\"}})],1),_c('el-form-item',{attrs:{\"label\":\"客服昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入客服昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"登录密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入登录密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, \"password\", $$v)},expression:\"form.password\"}})],1),_c('el-form-item',{attrs:{\"label\":\"确认密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入确认密码\",\"autocomplete\":\"off\"},model:{value:(_vm.cCassword),callback:function ($$v) {_vm.cCassword=$$v},expression:\"cCassword\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog width=\"600px\" title=\"添加客服\" :show-close=\"false\" :visible.sync=\"dialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"客服账号\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.username\" placeholder=\"请输入客服账号\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"客服昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入客服昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"登录密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.password\" placeholder=\"请输入登录密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"确认密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"cCassword\" placeholder=\"请输入确认密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from \"axios\";\nexport default {\n name: 'mini-im-create-admin',\n data(){\n return {\n form: {\n username: '',\n nickname: '',\n password: ''\n },\n cCassword: '',\n formLabelWidth: \"80px\"\n }\n },\n props:{\n dialogFormVisible: Boolean,\n complete: Function\n },\n mounted(){\n },\n methods: {\n // 关闭\n closeModal(){\n this.$emit('update:dialogFormVisible', false);\n },\n // 保存\n save() {\n // 验证一下密码字段\n if(this.form.username.trim() == \"\"){\n this.$message.error(\"账号不能为空!\")\n return;\n }\n if(this.form.nickname.trim() == \"\"){\n this.$message.error(\"昵称不能为空!\")\n return;\n }\n if(this.form.password.trim() == \"\"){\n this.$message.error(\"密码不能为空!\")\n return;\n }\n if(this.form.password.trim() != this.cCassword.trim()){\n this.$message.error(\"两次密码不一致!\")\n return;\n }\n\n // 验证字段 !! 算了其它前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n axios\n .post(\"/admin\", this.form)\n .then(response => {\n try {\n console.log(response);\n loading.close();\n this.$message.success(\"添加成功\");\n this.closeModal();\n this.resize();\n this.complete(1);\n } catch (e) {\n console.log(e);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n resize() {\n this.cCassword = '';\n this.form = {\n username: '',\n nickname: '',\n password: ''\n };\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n \n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create.vue?vue&type=template&id=56150a82&scoped=true&\"\nimport script from \"./create.vue?vue&type=script&lang=js&\"\nexport * from \"./create.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"56150a82\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"修改客服资料\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"头像\",\"label-width\":_vm.formLabelWidth}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('el-avatar',{attrs:{\"size\":50,\"src\":_vm.form.avatar || _vm.$store.state.avatar}}),_c('input',{attrs:{\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.changeFile}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploading),expression:\"isUploading\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadPercent))])])],1)]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"客服账号\",\"label-width\":_vm.formLabelWidth}},[_c('span',[_vm._v(_vm._s(_vm.form.username))])]),_c('el-form-item',{attrs:{\"label\":\"客服昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入客服昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"手机号\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入登录密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"自动回复语\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"placeholder\":\"请输入自动回复语,不支持emoji,请使用简单语句描述\",\"autocomplete\":\"off\"},model:{value:(_vm.form.auto_reply),callback:function ($$v) {_vm.$set(_vm.form, \"auto_reply\", $$v)},expression:\"form.auto_reply\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog\n width=\"600px\" \n title=\"修改客服资料\"\n :show-close=\"false\"\n :visible.sync=\"dialogFormVisible\"\n :close-on-click-modal=\"false\"\n >\n <el-form :model=\"form\">\n <el-form-item label=\"头像\" :label-width=\"formLabelWidth\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <el-avatar\n :size=\"50\"\n :src=\"form.avatar || $store.state.avatar\"\n ></el-avatar>\n <input onClick=\"this.value = null\" @change=\"changeFile\" type=\"file\" accept=\"image/*\" />\n <div v-show=\"isUploading\" class=\"mini-im-file-percent\">\n <span>{{uploadPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\"></el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"客服账号\" :label-width=\"formLabelWidth\">\n <span>{{form.username}}</span>\n </el-form-item>\n <el-form-item label=\"客服昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入客服昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"手机号\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.phone\" placeholder=\"请输入登录密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"自动回复语\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.auto_reply\" type=\"textarea\" placeholder=\"请输入自动回复语,不支持emoji,请使用简单语句描述\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from \"axios\";\nimport upload from '../../common/upload'\nexport default {\n name: \"mini-im-create-admin\",\n data() {\n return {\n form: {\n phone: \"\",\n nickname: \"\",\n avatar: \"\",\n auto_reply: \"\"\n },\n formLabelWidth: \"90px\",\n isUploading: false,\n uploadPercent: \"\"\n };\n },\n props: {\n dialogFormVisible: Boolean,\n complete: Function,\n formData: Object\n },\n methods: {\n // 关闭\n closeModal() {\n this.$emit(\"update:dialogFormVisible\", false);\n },\n // 上传\n changeFile(file) {\n\n var fileData = file.target.files[0];\n upload({\n file: fileData,\n progress: (percent) => {\n this.isUploading = true;\n this.uploadPercent = percent + \"%\";\n },\n success: (url) => {\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.success(\"上传成功\");\n var imgUrl = this.$store.getters.uploadToken.host + \"/\" + url\n this.form.avatar = imgUrl;\n },\n error: (err)=>{\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.error(err.message);\n }\n });\n\n\n },\n // 保存\n save() {\n // 验证字段 !! 算了其它前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n axios\n .put(\"/admin\", this.form)\n .then(response => {\n try {\n loading.close();\n this.$message.success(\"修改成功\");\n this.closeModal();\n this.complete(1);\n } catch (e) {\n console.log(e, response);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n }\n },\n watch: {\n formData() {\n this.form = Object.assign({}, this.form, this.formData);\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-file-button {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: relative;\n overflow: hidden;\n\n input {\n font-size: 100px;\n position: absolute;\n top: 0px;\n left: 0px;\n cursor: pointer;\n opacity 0\n }\n\n cursor: pointer;\n\n .mini-im-file-percent {\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n color: #fff;\n font-size: 12px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=3e845274&scoped=true&\"\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=3e845274&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3e845274\",\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div class=\"mini-im-head\">\n <span>\n <i class=\"el-icon-headset\"></i>\n <span slot=\"title\">客服管理</span>\n </span>\n <el-button v-if=\"adminInfo.root == 1\" @click=\"createDialogFormVisible = true\" size=\"mini\">添 加</el-button>\n </div>\n <el-divider />\n <div class=\"search\">\n <el-row :gutter=\"20\">\n <el-col :span=\"2.1\">\n <el-form ref=\"form\" label-width=\"120px\">\n <el-form-item label=\"按关键字:\"></el-form-item>\n </el-form>\n </el-col>\n <el-col :span=\"5\">\n <el-input @change=\"changeInput\" @clear=\"clearKeyword\" placeholder=\"请输入关键词\" v-model=\"tableData.keyword\" clearable prefix-icon=\"el-icon-search\"></el-input>\n </el-col>\n <el-col :span=\"3\">\n <el-button @click=\"search\">查 找</el-button>\n </el-col>\n </el-row>\n </div>\n <el-table\n :data=\"tableData.list\"\n style=\"width: 100%\"\n v-loading=\"loading\"\n >\n <el-table-column\n type=\"index\"\n :index=\"indexMethod\"\n label=\"#序号\"\n width=\"60\">\n </el-table-column>\n <el-table-column\n prop=\"avatar\"\n label=\"头像\"\n width=\"120\">\n <template slot-scope=\"scope\">\n <el-avatar :size=\"40\" :src=\"scope.row.avatar || $store.state.avatar\"></el-avatar>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"username\"\n label=\"客服账号\">\n </el-table-column>\n <el-table-column\n prop=\"nickname\"\n label=\"客服昵称\">\n </el-table-column>\n <el-table-column\n prop=\"online\"\n align=\"center\"\n label=\"在线状态\">\n <template slot-scope=\"scope\">\n <el-tag type=\"success\" v-if=\"scope.row.online == 1\">在线</el-tag>\n <el-tag type=\"warning\" v-if=\"scope.row.online == 2\">繁忙</el-tag>\n <el-tag type=\"info\" v-if=\"scope.row.online == 0\">离线</el-tag>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"root\"\n align=\"center\"\n label=\"角色\">\n <template slot-scope=\"scope\">\n <el-tag effect=\"dark\" type=\"warning\" v-if=\"scope.row.root == 1\">超级管理</el-tag>\n <el-tag v-if=\"scope.row.root == 0\">客服人员</el-tag>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"last_activity\"\n label=\"最后在线时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.last_activity, \"YYYY/MM/DD HH:mm\")}}\n </template>\n </el-table-column>\n <el-table-column\n prop=\"create_at\"\n label=\"创建时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}\n </template>\n </el-table-column>\n <el-table-column\n prop=\"operating\"\n align=\"center\"\n width=\"150\"\n v-if=\"adminInfo.root == 1\"\n label=\"操作\">\n <template slot-scope=\"scope\">\n <el-button\n size=\"mini\"\n v-if=\"scope.row.root == 0\"\n @click=\"edit(scope.row)\">编 辑</el-button>\n <el-button\n size=\"mini\"\n type=\"danger\"\n v-if=\"scope.row.root == 0\"\n @click=\"deleteAdmin(scope.row)\">删 除</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\">\n </el-pagination>\n </el-row>\n <CreateDialog :complete=\"getAdmins\" :dialogFormVisible.sync=\"createDialogFormVisible\" />\n <EditDialog :formData=\"editItem\" :complete=\"getAdmins\" :dialogFormVisible.sync=\"editDialogFormVisible\" />\n </div>\n</template>\n\n<script>\nimport CreateDialog from \"./create\"\nimport EditDialog from \"./edit\"\nimport axios from 'axios'\nexport default {\n name: \"admins\",\n components: {\n CreateDialog,\n EditDialog\n },\n data() {\n return {\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n keyword: \"\",\n total: 0,\n },\n createDialogFormVisible: false,\n editDialogFormVisible: false,\n loading: true,\n editItem: {}\n }\n },\n computed: {\n adminInfo(){\n return this.$store.getters.adminInfo\n }\n },\n created(){\n setTimeout(()=> this.getAdmins(1), 500)\n },\n methods: {\n // 行号\n indexMethod(index) {\n return (this.tableData.page_on - 1) * this.tableData.page_size + index +1;\n },\n // 删除\n deleteAdmin(item){\n this.$confirm('您确定要删除该客服吗? 删除后不可恢复!', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => {\n axios.delete('/admin/' + item.id)\n .then(response => {\n console.log(response.data)\n this.$message.success(\"删除成功\")\n this.getAdmins(1)\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n })\n },\n // 编辑\n edit(item){\n this.editItem = item\n this.editDialogFormVisible = true\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val\n this.getAdmins()\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val\n this.getAdmins()\n },\n // 清空关键字\n clearKeyword(){\n this.getAdmins(1)\n },\n // 关键字input变动\n changeInput(){\n if(this.tableData.keyword == \"\"){\n this.getAdmins(1)\n }\n },\n // 查找\n search(){\n this.tableData.keyword = this.tableData.keyword.trim()\n if(!this.tableData.keyword) return\n this.getAdmins(1)\n },\n // 获取数据\n getAdmins(index){\n if(index) this.tableData.page_on = index\n const {page_on, page_size, keyword} = this.tableData\n axios.post('/admin/list', {page_on, page_size, keyword, \"online\": 3})\n .then(response => {\n this.loading = false\n this.tableData = response.data.data\n })\n .catch(error => {\n this.loading = false\n this.$message.error(error.response.data.message)\n });\n }\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n .mini-im-head{\n height 30px\n display flex\n align-items center\n font-size 20px\n justify-content space-between\n color #666\n i{\n margin-right 5px\n }\n }\n .el-select .el-input {\n width: 130px;\n }\n .input-with-select .el-input-group__prepend {\n background-color: #fff;\n }\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=65c494d4&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=65c494d4&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"65c494d4\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=65c494d4&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=65c494d4&lang=stylus&scoped=true&\"","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-771e4186"],{4468:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"mini-im-head"},[a("span",[a("i",{staticClass:"el-icon-user"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("用户管理")])])]),a("el-divider"),a("div",{staticClass:"search"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{staticStyle:{width:"120px"}},[a("el-form",{ref:"form",attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"按条件查找:"}})],1)],1),a("el-col",{attrs:{span:3}},[a("el-select",{attrs:{placeholder:"请选择平台"},model:{value:e.tableData.platform,callback:function(t){e.$set(e.tableData,"platform",t)},expression:"tableData.platform"}},e._l(e.platformConfig,(function(e){return a("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})})),1)],1),a("el-col",{attrs:{span:4}},[a("el-input",{attrs:{placeholder:"请输入关键词","prefix-icon":"el-icon-search",clearable:""},model:{value:e.tableData.keyword,callback:function(t){e.$set(e.tableData,"keyword",t)},expression:"tableData.keyword"}})],1),a("el-col",{attrs:{span:6.5}},[a("el-date-picker",{attrs:{type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.selectDate,callback:function(t){e.selectDate=t},expression:"selectDate"}})],1),a("el-col",{attrs:{span:3}},[a("el-button",{on:{click:e.search}},[e._v("查 找")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.list}},[a("el-table-column",{attrs:{type:"index",index:e.indexMethod,width:"60"}}),a("el-table-column",{attrs:{prop:"avatar",label:"头像",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-avatar",{attrs:{size:40,src:t.row.avatar||e.$store.state.avatar}})]}}])}),a("el-table-column",{attrs:{prop:"nickname",label:"用户昵称"},scopedSlots:e._u([{key:"default",fn:function(t){return[""!=t.row.nickname?a("span",[e._v(e._s(t.row.nickname))]):a("span",[e._v("------")])]}}])}),a("el-table-column",{attrs:{prop:"uid",label:"业务平台ID"},scopedSlots:e._u([{key:"default",fn:function(t){return[""!=t.row.uid?a("span",[e._v(e._s(t.row.uid))]):a("span",[e._v("------")])]}}])}),a("el-table-column",{attrs:{prop:"address",label:"所在地区"},scopedSlots:e._u([{key:"default",fn:function(t){return[""!=t.row.address?a("span",[e._v(e._s(t.row.address))]):a("span",[e._v("------")])]}}])}),a("el-table-column",{attrs:{prop:"phone",label:"联系方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[""!=t.row.phone?a("span",[e._v(e._s(t.row.phone))]):a("span",[e._v("------")])]}}])}),a("el-table-column",{attrs:{prop:"online",align:"center",label:"在线状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.online?a("el-tag",{attrs:{type:"success"}},[e._v("在线")]):e._e(),0==t.row.online?a("el-tag",{attrs:{type:"info"}},[e._v("离线")]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"platform",align:"center",label:"服务平台"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",[e._v(e._s(e.$getPlatformItem(t.row.platform).title))])]}}])}),a("el-table-column",{attrs:{prop:"remarks",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.remarks||"------")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"create_at",label:"注册时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$formatUnixDate(t.row.create_at,"YYYY/MM/DD"))+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"operating",align:"center",label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini"},on:{click:function(a){return e.edit(t.row)}}},[e._v("编 辑")]),1==e.$store.getters.adminInfo.root?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return e.deleteUser(t.row)}}},[e._v("删 除")]):e._e()]}}])})],1),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{type:"flex",justify:"space-between"}},[a("span",{staticStyle:{color:"#666","font-size":"14px"}},[e._v("共找到"+e._s(e.tableData.total)+"条数据")]),a("el-pagination",{attrs:{background:"",layout:"sizes, prev, pager, next","current-page":e.tableData.page_on,"page-sizes":[5,10,15,20],total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),a("EditDialog",{attrs:{complete:e.getUsers,formData:e.editItem,dialogFormVisible:e.editDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.editDialogFormVisible=t},"update:dialog-form-visible":function(t){e.editDialogFormVisible=t}}})],1)},l=[],s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"编辑用户","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{attrs:{model:e.form}},[a("el-form-item",{attrs:{label:"头像","label-width":e.formLabelWidth}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"mini-im-file-button",attrs:{title:"点击上传图片"}},[a("el-avatar",{attrs:{size:50,src:e.form.avatar||e.$store.state.avatar}}),a("input",{attrs:{onClick:"this.value = null",type:"file",accept:"image/*"},on:{change:e.changeFile}}),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isUploading,expression:"isUploading"}],staticClass:"mini-im-file-percent"},[a("span",[e._v(e._s(e.uploadPercent))])])],1)]),a("el-col",{attrs:{span:6}})],1)],1),a("el-form-item",{attrs:{label:"用户昵称","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入用户昵称",autocomplete:"off"},model:{value:e.form.nickname,callback:function(t){e.$set(e.form,"nickname",t)},expression:"form.nickname"}})],1),a("el-form-item",{attrs:{label:"所在地区","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入所在地区",autocomplete:"off"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1),a("el-form-item",{attrs:{label:"联系方式","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入联系方式",autocomplete:"off"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),a("el-form-item",{attrs:{label:"备注","label-width":e.formLabelWidth}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入备注",autocomplete:"off"},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)},n=[],r=a("bc3a"),i=a.n(r),c=a("fb21"),d={name:"mini-im-edit-user",data:function(){return{form:{id:"",avatar:"",phone:"",address:"",nickname:"",remarks:""},formLabelWidth:"120px",isUploading:!1,uploadPercent:""}},props:{dialogFormVisible:Boolean,complete:Function,formData:Object},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},changeFile:function(e){var t=this,a=e.target.files[0];Object(c["a"])({file:a,progress:function(e){t.isUploading=!0,t.uploadPercent=e+"%"},success:function(e){t.isUploading=!1,t.uploadPercent="",t.$message.success("上传成功");var a=t.$store.getters.uploadToken.host+"/"+e;t.form.avatar=a},error:function(e){t.isUploading=!1,t.uploadPercent="",t.$message.error(e.message)}})},save:function(){var e=this,t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});i.a.put("/user",this.form).then((function(a){try{console.log(a),t.close(),e.$message.success("修改成功"),e.closeModal(),e.complete()}catch(o){console.log(o)}})).catch((function(a){t.close(),e.$message.error(a.response.data.message)}))}},watch:{formData:function(){this.form=Object.assign({},this.form,this.formData)}}},u=d,p=(a("b3fc"),a("2877")),f=Object(p["a"])(u,s,n,!1,null,"6bfc8d44",null),m=f.exports,b=a("c1df"),g={name:"robot",components:{EditDialog:m},data:function(){return{loading:!0,selectDate:[],tableData:{list:[],page_on:1,page_size:10,keyword:"",total:0,platform:1,date_start:"",date_end:""},editItem:{},editDialogFormVisible:!1}},computed:{platformConfig:function(){return this.$store.getters.platformConfig}},created:function(){var e=this;setTimeout((function(){return e.getUsers(1)}),500)},methods:{indexMethod:function(e){return(this.tableData.page_on-1)*this.tableData.page_size+e+1},edit:function(e){this.editItem=e,this.editDialogFormVisible=!0},deleteUser:function(e){var t=this;this.$confirm("您确定要删除该用户吗? 删除后不可恢复!","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){i.a.delete("/user/"+e.id).then((function(e){console.log(e.data),t.$message.success("删除成功"),t.getUsers(1)})).catch((function(e){t.$message.error(e.response.data.message)}))}))},handleSizeChange:function(e){this.tableData.page_size=e,this.getUsers()},handleCurrentChange:function(e){this.tableData.page_on=e,this.getUsers()},search:function(){2==this.selectDate.length?(this.tableData.date_start=b(this.selectDate[0]).format("YYYY-MM-DD"),this.tableData.date_end=b(this.selectDate[1]).format("YYYY-MM-DD")):(this.tableData.date_start="",this.tableData.date_end=""),this.getUsers(1)},getUsers:function(e){var t=this;e&&(this.tableData.page_on=e);var a=this.tableData,o=a.page_on,l=a.page_size,s=a.keyword,n=a.date_start,r=a.date_end,c=a.platform;i.a.post("/user/list",{page_on:o,page_size:l,keyword:s,date_start:n,date_end:r,platform:c}).then((function(e){t.loading=!1,t.tableData=e.data.data})).catch((function(e){t.loading=!1,t.$message.error(e.response.data.message)}))}}},h=g,_=(a("7487"),Object(p["a"])(h,o,l,!1,null,"d2bb02c0",null));t["default"]=_.exports},5672:function(e,t,a){},7487:function(e,t,a){"use strict";var o=a("5672"),l=a.n(o);l.a},8904:function(e,t,a){},b3fc:function(e,t,a){"use strict";var o=a("8904"),l=a.n(o);l.a}}]);
//# sourceMappingURL=chunk-771e4186.f1240d97.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/users/index.vue?67bf","webpack:///./src/views/users/edit.vue?fca4","webpack:///src/views/users/edit.vue","webpack:///./src/views/users/edit.vue?2db2","webpack:///./src/views/users/edit.vue","webpack:///src/views/users/index.vue","webpack:///./src/views/users/index.vue?6c0d","webpack:///./src/views/users/index.vue","webpack:///./src/views/users/index.vue?3a21","webpack:///./src/views/users/edit.vue?3e06"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","staticStyle","ref","model","value","tableData","callback","$$v","$set","expression","_l","item","key","id","title","selectDate","on","search","directives","name","rawName","list","indexMethod","scopedSlots","_u","fn","scope","row","avatar","$store","state","nickname","_s","uid","address","phone","online","_e","$getPlatformItem","platform","remarks","$formatUnixDate","create_at","$event","edit","getters","adminInfo","root","deleteUser","total","page_on","handleSizeChange","handleCurrentChange","getUsers","editItem","editDialogFormVisible","staticRenderFns","dialogFormVisible","form","formLabelWidth","changeFile","uploadPercent","closeModal","save","data","isUploading","props","Boolean","complete","Function","formData","Object","methods","$emit","fileData","file","target","files","lock","text","spinner","background","watch","assign","component","moment","components","EditDialog","loading","page_size","keyword","date_start","date_end","computed","platformConfig","created","setTimeout","index","$confirm","confirmButtonText","cancelButtonText","center","type","val","format"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,OAAO,CAACA,EAAG,IAAI,CAACE,YAAY,iBAAiBF,EAAG,OAAO,CAACG,MAAM,CAAC,KAAO,SAASC,KAAK,SAAS,CAACR,EAAIS,GAAG,cAAcL,EAAG,cAAcA,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,SAAS,CAACG,MAAM,CAAC,OAAS,KAAK,CAACH,EAAG,SAAS,CAACM,YAAY,CAAC,MAAQ,UAAU,CAACN,EAAG,UAAU,CAACO,IAAI,OAAOJ,MAAM,CAAC,cAAc,UAAU,CAACH,EAAG,eAAe,CAACG,MAAM,CAAC,MAAQ,aAAa,IAAI,GAAGH,EAAG,SAAS,CA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IC,YAAW,WAAf,6BAEExB,QAAS,CAEPlD,YAFJ,SAEA,GACM,OAAQ9B,KAAKa,UAAU6C,QAAU,GAAK1D,KAAKa,UAAUoF,UAAYQ,EAAvE,GAGIrD,KANJ,SAMA,GACMpD,KAAK8D,SAAW3C,EAChBnB,KAAK+D,uBAAwB,GAG/BP,WAXJ,SAWA,cACMxD,KAAK0G,SAAS,uBAAwB,QAAS,CAC7CC,kBAAmB,KACnBC,iBAAkB,KAClBC,QAAQ,EACRC,KAAM,YACd,iBACQ,EAAR,wBACA,kBACU,QAAV,YACU,EAAV,yBACU,EAAV,eAEA,mBACU,EAAV,+CAKInD,iBA9BJ,SA8BA,GACM3D,KAAKa,UAAUoF,UAAYc,EAC3B/G,KAAK6D,YAGPD,oBAnCJ,SAmCA,GACM5D,KAAKa,UAAU6C,QAAUqD,EACzB/G,KAAK6D,YAGPpC,OAxCJ,WAyCA,2BACQzB,KAAKa,UAAUsF,WAAaN,EAAO7F,KAAKuB,WAAW,IAAIyF,OAAO,cAC9DhH,KAAKa,UAAUuF,SAAWP,EAAO7F,KAAKuB,WAAW,IAAIyF,OAAO,gBAE5DhH,KAAKa,UAAUsF,WAAa,GAC5BnG,KAAKa,UAAUuF,SAAW,IAE5BpG,KAAK6D,SAAS,IAGhBA,SAnDJ,SAmDA,cACA,8BADA,MAEA,iBAFA,EAEA,UAFA,EAEA,YAFA,EAEA,UAFA,EAEA,aAFA,EAEA,WAFA,EAEA,SACM,EAAN,0FACA,kBACQ,EAAR,WACQ,EAAR,yBAEA,mBACQ,EAAR,WACQ,EAAR,8CC5NiY,ICQ7X,G,UAAY,eACd,EACA/D,EACAkE,GACA,EACA,KACA,WACA,OAIa,e,kECnBf,yBAAyjB,EAAG,G,yDCA5jB,yBAAwjB,EAAG","file":"js/chunk-771e4186.f1240d97.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"mini-im-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-user\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"用户管理\")])])]),_c('el-divider'),_c('div',{staticClass:\"search\"},[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{staticStyle:{\"width\":\"120px\"}},[_c('el-form',{ref:\"form\",attrs:{\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":\"按条件查找:\"}})],1)],1),_c('el-col',{attrs:{\"span\":3}},[_c('el-select',{attrs:{\"placeholder\":\"请选择平台\"},model:{value:(_vm.tableData.platform),callback:function ($$v) {_vm.$set(_vm.tableData, \"platform\", $$v)},expression:\"tableData.platform\"}},_vm._l((_vm.platformConfig),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.title,\"value\":item.id}})}),1)],1),_c('el-col',{attrs:{\"span\":4}},[_c('el-input',{attrs:{\"placeholder\":\"请输入关键词\",\"prefix-icon\":\"el-icon-search\",\"clearable\":\"\"},model:{value:(_vm.tableData.keyword),callback:function ($$v) {_vm.$set(_vm.tableData, \"keyword\", $$v)},expression:\"tableData.keyword\"}})],1),_c('el-col',{attrs:{\"span\":6.5}},[_c('el-date-picker',{attrs:{\"type\":\"daterange\",\"align\":\"right\",\"unlink-panels\":\"\",\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\"},model:{value:(_vm.selectDate),callback:function ($$v) {_vm.selectDate=$$v},expression:\"selectDate\"}})],1),_c('el-col',{attrs:{\"span\":3}},[_c('el-button',{on:{\"click\":_vm.search}},[_vm._v(\"查 找\")])],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"width\":\"60\"}}),_c('el-table-column',{attrs:{\"prop\":\"avatar\",\"label\":\"头像\",\"width\":\"80\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-avatar',{attrs:{\"size\":40,\"src\":scope.row.avatar || _vm.$store.state.avatar}})]}}])}),_c('el-table-column',{attrs:{\"prop\":\"nickname\",\"label\":\"用户昵称\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.nickname != '')?_c('span',[_vm._v(_vm._s(scope.row.nickname))]):_c('span',[_vm._v(\"------\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"uid\",\"label\":\"业务平台ID\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.uid != '')?_c('span',[_vm._v(_vm._s(scope.row.uid))]):_c('span',[_vm._v(\"------\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"address\",\"label\":\"所在地区\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.address != '')?_c('span',[_vm._v(_vm._s(scope.row.address))]):_c('span',[_vm._v(\"------\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"phone\",\"label\":\"联系方式\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.phone != '')?_c('span',[_vm._v(_vm._s(scope.row.phone))]):_c('span',[_vm._v(\"------\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"online\",\"align\":\"center\",\"label\":\"在线状态\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.online == 1)?_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(\"在线\")]):_vm._e(),(scope.row.online == 0)?_c('el-tag',{attrs:{\"type\":\"info\"}},[_vm._v(\"离线\")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"platform\",\"align\":\"center\",\"label\":\"服务平台\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',[_vm._v(_vm._s(_vm.$getPlatformItem(scope.row.platform).title))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"remarks\",\"label\":\"备注\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(scope.row.remarks || '------')+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"注册时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\"))+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"label\":\"操作\",\"width\":\"150\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编 辑\")]),(_vm.$store.getters.adminInfo.root == 1)?_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteUser(scope.row)}}},[_vm._v(\"删 除\")]):_vm._e()]}}])})],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('EditDialog',{attrs:{\"complete\":_vm.getUsers,\"formData\":_vm.editItem,\"dialogFormVisible\":_vm.editDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.editDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.editDialogFormVisible=$event}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"title\":\"编辑用户\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"头像\",\"label-width\":_vm.formLabelWidth}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('el-avatar',{attrs:{\"size\":50,\"src\":_vm.form.avatar || _vm.$store.state.avatar}}),_c('input',{attrs:{\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.changeFile}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploading),expression:\"isUploading\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadPercent))])])],1)]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"用户昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入用户昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"所在地区\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入所在地区\",\"autocomplete\":\"off\"},model:{value:(_vm.form.address),callback:function ($$v) {_vm.$set(_vm.form, \"address\", $$v)},expression:\"form.address\"}})],1),_c('el-form-item',{attrs:{\"label\":\"联系方式\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入联系方式\",\"autocomplete\":\"off\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"备注\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"placeholder\":\"请输入备注\",\"autocomplete\":\"off\"},model:{value:(_vm.form.remarks),callback:function ($$v) {_vm.$set(_vm.form, \"remarks\", $$v)},expression:\"form.remarks\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog\n title=\"编辑用户\"\n :show-close=\"false\"\n :visible.sync=\"dialogFormVisible\"\n :close-on-click-modal=\"false\"\n >\n <el-form :model=\"form\">\n <el-form-item label=\"头像\" :label-width=\"formLabelWidth\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <el-avatar\n :size=\"50\"\n :src=\"form.avatar || $store.state.avatar\"\n ></el-avatar>\n <input onClick=\"this.value = null\" @change=\"changeFile\" type=\"file\" accept=\"image/*\" />\n <div v-show=\"isUploading\" class=\"mini-im-file-percent\">\n <span>{{uploadPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\"></el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"用户昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入用户昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"所在地区\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.address\" placeholder=\"请输入所在地区\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"联系方式\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.phone\" placeholder=\"请输入联系方式\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"备注\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.remarks\" type=\"textarea\" placeholder=\"请输入备注\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nimport upload from '../../common/upload'\nexport default {\n name: \"mini-im-edit-user\",\n data() {\n return {\n form: {\n id: \"\",\n avatar: \"\",\n phone: \"\",\n address: \"\",\n nickname: \"\",\n remarks: \"\"\n },\n formLabelWidth: \"120px\",\n isUploading: false,\n uploadPercent: \"\"\n };\n },\n props: {\n dialogFormVisible: Boolean,\n complete: Function,\n formData: Object\n },\n methods: {\n // 关闭\n closeModal() {\n this.$emit(\"update:dialogFormVisible\", false);\n },\n // 上传\n changeFile(file) {\n\n var fileData = file.target.files[0];\n upload({\n file: fileData,\n progress: (percent) => {\n this.isUploading = true;\n this.uploadPercent = percent + \"%\";\n },\n success: (url) => {\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.success(\"上传成功\");\n var imgUrl = this.$store.getters.uploadToken.host + \"/\" + url\n this.form.avatar = imgUrl;\n },\n error: (err)=>{\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.error(err.message);\n }\n });\n\n\n },\n // 保存\n save(){\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n axios\n .put(\"/user\", this.form)\n .then(response => {\n try {\n console.log(response);\n loading.close();\n this.$message.success(\"修改成功\");\n this.closeModal();\n this.complete();\n } catch (e) {\n console.log(e);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n },\n watch:{\n formData(){\n this.form = Object.assign({},this.form, this.formData)\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-file-button {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: relative;\n overflow: hidden;\n\n input {\n font-size: 100px;\n position: absolute;\n top: 0px;\n left: 0px;\n cursor: pointer;\n opacity 0\n }\n\n cursor: pointer;\n\n .mini-im-file-percent {\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n color: #fff;\n font-size: 12px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=6bfc8d44&scoped=true&\"\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=6bfc8d44&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6bfc8d44\",\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div class=\"mini-im-head\">\n <span>\n <i class=\"el-icon-user\"></i>\n <span slot=\"title\">用户管理</span>\n </span>\n </div>\n <el-divider />\n <div class=\"search\">\n <el-row :gutter=\"20\">\n <el-col style=\"width: 120px\">\n <el-form ref=\"form\" label-width=\"120px\">\n <el-form-item label=\"按条件查找:\"></el-form-item>\n </el-form>\n </el-col>\n <el-col :span=\"3\">\n <el-select v-model=\"tableData.platform\" placeholder=\"请选择平台\">\n <el-option\n v-for=\"item in platformConfig\"\n :key=\"item.id\"\n :label=\"item.title\"\n :value=\"item.id\"\n ></el-option>\n </el-select>\n </el-col>\n <el-col :span=\"4\">\n <el-input placeholder=\"请输入关键词\" prefix-icon=\"el-icon-search\" v-model=\"tableData.keyword\" clearable></el-input>\n </el-col>\n <el-col :span=\"6.5\">\n <el-date-picker\n v-model=\"selectDate\"\n type=\"daterange\"\n align=\"right\"\n unlink-panels\n range-separator=\"至\"\n start-placeholder=\"开始日期\"\n end-placeholder=\"结束日期\"\n ></el-date-picker>\n </el-col>\n <el-col :span=\"3\">\n <el-button @click=\"search\">查 找</el-button>\n </el-col>\n </el-row>\n </div>\n <el-table :data=\"tableData.list\" v-loading=\"loading\" style=\"width: 100%\">\n <el-table-column\n type=\"index\"\n :index=\"indexMethod\"\n width=\"60\">\n </el-table-column>\n <el-table-column prop=\"avatar\" label=\"头像\" width=\"80\">\n <template slot-scope=\"scope\">\n <el-avatar :size=\"40\" :src=\"scope.row.avatar || $store.state.avatar\"></el-avatar>\n </template>\n </el-table-column>\n <el-table-column prop=\"nickname\" label=\"用户昵称\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.nickname != ''\">{{scope.row.nickname}}</span>\n <span v-else>------</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"uid\" label=\"业务平台ID\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.uid != ''\">{{scope.row.uid}}</span>\n <span v-else>------</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"address\" label=\"所在地区\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.address != ''\">{{scope.row.address}}</span>\n <span v-else>------</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"phone\" label=\"联系方式\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.phone != ''\">{{scope.row.phone}}</span>\n <span v-else>------</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"online\" align=\"center\" label=\"在线状态\">\n <template slot-scope=\"scope\">\n <el-tag type=\"success\" v-if=\"scope.row.online == 1\">在线</el-tag>\n <el-tag type=\"info\" v-if=\"scope.row.online == 0\">离线</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"platform\" align=\"center\" label=\"服务平台\">\n <template slot-scope=\"scope\">\n <el-tag>{{$getPlatformItem(scope.row.platform).title}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"remarks\" label=\"备注\">\n <template slot-scope=\"scope\">\n {{scope.row.remarks || '------'}}\n </template>\n </el-table-column>\n <el-table-column prop=\"create_at\" label=\"注册时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}\n </template>\n </el-table-column>\n <el-table-column prop=\"operating\" align=\"center\" label=\"操作\" width=\"150\">\n <template slot-scope=\"scope\">\n <el-button size=\"mini\" @click=\"edit(scope.row)\">编 辑</el-button>\n <el-button v-if=\"$store.getters.adminInfo.root == 1\" size=\"mini\" type=\"danger\" @click=\"deleteUser(scope.row)\">删 除</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\">\n </el-pagination>\n </el-row>\n <EditDialog :complete=\"getUsers\" :formData=\"editItem\" :dialogFormVisible.sync=\"editDialogFormVisible\" />\n </div>\n</template>\n\n<script>\nimport EditDialog from \"./edit\";\nimport axios from 'axios'\nvar moment = require('moment');\nexport default {\n name: \"robot\",\n components: {\n EditDialog\n },\n data() {\n return {\n loading: true,\n selectDate: [],\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n keyword: \"\",\n total: 0,\n platform: 1,\n date_start: \"\",\n date_end: \"\",\n },\n editItem: {},\n editDialogFormVisible: false,\n };\n },\n computed: {\n platformConfig(){\n return this.$store.getters.platformConfig\n }\n },\n created() {\n setTimeout(()=> this.getUsers(1), 500)\n },\n methods: {\n // 行号\n indexMethod(index) {\n return (this.tableData.page_on - 1) * this.tableData.page_size + index +1;\n },\n // 编辑\n edit(item){\n this.editItem = item\n this.editDialogFormVisible = true\n },\n // 删除\n deleteUser(item) {\n this.$confirm('您确定要删除该用户吗? 删除后不可恢复!', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => {\n axios.delete('/user/' + item.id)\n .then(response => {\n console.log(response.data)\n this.$message.success(\"删除成功\")\n this.getUsers(1)\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n })\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val\n this.getUsers()\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val\n this.getUsers()\n },\n // 查询\n search(){\n if(this.selectDate.length == 2){\n this.tableData.date_start = moment(this.selectDate[0]).format(\"YYYY-MM-DD\")\n this.tableData.date_end = moment(this.selectDate[1]).format(\"YYYY-MM-DD\")\n }else{\n this.tableData.date_start = \"\"\n this.tableData.date_end = \"\"\n }\n this.getUsers(1)\n },\n // 获取数据\n getUsers(index){\n if(index) this.tableData.page_on = index\n const {page_on, page_size, keyword, date_start, date_end, platform} = this.tableData\n axios.post('/user/list', {page_on, page_size, keyword, date_start, date_end, platform})\n .then(response => {\n this.loading = false\n this.tableData = response.data.data\n })\n .catch(error => {\n this.loading = false\n this.$message.error(error.response.data.message)\n });\n },\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n.mini-im-head {\n height: 30px;\n display: flex;\n align-items: center;\n font-size: 20px;\n justify-content: space-between;\n color: #666;\n\n i {\n margin-right: 5px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=d2bb02c0&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=d2bb02c0&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"d2bb02c0\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=d2bb02c0&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=d2bb02c0&lang=stylus&scoped=true&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=6bfc8d44&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=6bfc8d44&scoped=true&lang=stylus&\""],"sourceRoot":""}
\ No newline at end of file
This diff could not be displayed because it is too large.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cabbc79c"],{"11e9":function(t,e,a){var s=a("52a7"),n=a("4630"),o=a("6821"),i=a("6a99"),r=a("69a8"),c=a("c69a"),l=Object.getOwnPropertyDescriptor;e.f=a("9e1e")?l:function(t,e){if(t=o(t),e=i(e,!0),c)try{return l(t,e)}catch(a){}if(r(t,e))return n(!s.f.call(t,e),t[e])}},"1c01":function(t,e,a){var s=a("5ca1");s(s.S+s.F*!a("9e1e"),"Object",{defineProperty:a("86cc").f})},2725:function(t,e,a){},"454f":function(t,e,a){a("46a7");var s=a("584a").Object;t.exports=function(t,e,a){return s.defineProperty(t,e,a)}},"456d":function(t,e,a){var s=a("4bf8"),n=a("0d58");a("5eda")("keys",(function(){return function(t){return n(s(t))}}))},"46a7":function(t,e,a){var s=a("63b6");s(s.S+s.F*!a("8e60"),"Object",{defineProperty:a("d9f6").f})},"4f37":function(t,e,a){"use strict";a("aa77")("trim",(function(t){return function(){return t(this,3)}}))},"58b2":function(t,e,a){var s=a("5ca1");s(s.S+s.F*!a("9e1e"),"Object",{defineProperties:a("1495")})},"5eda":function(t,e,a){var s=a("5ca1"),n=a("8378"),o=a("79e5");t.exports=function(t,e){var a=(n.Object||{})[t]||Object[t],i={};i[t]=e(a),s(s.S+s.F*o((function(){a(1)})),"Object",i)}},7563:function(t,e,a){"use strict";var s=a("2725"),n=a.n(s);n.a},"7b0d":function(t,e,a){"use strict";var s=a("eb66"),n=a.n(s);n.a},"85f2":function(t,e,a){t.exports=a("454f")},"8e6e":function(t,e,a){var s=a("5ca1"),n=a("990b"),o=a("6821"),i=a("11e9"),r=a("f1ae");s(s.S,"Object",{getOwnPropertyDescriptors:function(t){var e,a,s=o(t),c=i.f,l=n(s),u={},d=0;while(l.length>d)a=c(s,e=l[d++]),void 0!==a&&r(u,e,a);return u}})},9093:function(t,e,a){var s=a("ce10"),n=a("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return s(t,n)}},"990b":function(t,e,a){var s=a("9093"),n=a("2621"),o=a("cb7c"),i=a("7726").Reflect;t.exports=i&&i.ownKeys||function(t){var e=s.f(o(t)),a=n.f;return a?e.concat(a(t)):e}},aa77:function(t,e,a){var s=a("5ca1"),n=a("be13"),o=a("79e5"),i=a("fdef"),r="["+i+"]",c="​…",l=RegExp("^"+r+r+"*"),u=RegExp(r+r+"*$"),d=function(t,e,a){var n={},r=o((function(){return!!i[t]()||c[t]()!=c})),l=n[t]=r?e(p):i[t];a&&(n[a]=l),s(s.P+s.F*r,"String",n)},p=d.trim=function(t,e){return t=String(n(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=d},ac6a:function(t,e,a){for(var s=a("cadf"),n=a("0d58"),o=a("2aba"),i=a("7726"),r=a("32e9"),c=a("84f2"),l=a("2b4c"),u=l("iterator"),d=l("toStringTag"),p=c.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=n(f),v=0;v<h.length;v++){var m,g=h[v],w=f[g],b=i[g],_=b&&b.prototype;if(_&&(_[u]||r(_,u,p),_[d]||r(_,d,g),c[g]=p,w))for(m in s)_[m]||o(_,m,s[m],!0)}},bd86:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var s=a("85f2"),n=a.n(s);function o(t,e,a){return e in t?n()(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}},d25f:function(t,e,a){"use strict";var s=a("5ca1"),n=a("0a49")(2);s(s.P+s.F*!a("2f21")([].filter,!0),"Array",{filter:function(t){return n(this,t,arguments[1])}})},df5f: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("div",{staticClass:"me-head"},[a("span",[a("i",{staticClass:"el-icon-tickets"}),a("span",{attrs:{slot:"title"},slot:"title"},[t._v("工单管理")]),t._m(0)]),a("div",[a("el-button",{attrs:{size:"mini"}},[t._v("分类设置")])],1)]),a("el-divider"),a("div",{staticClass:"container-box"},[a("div",{staticClass:"menu"},[a("el-tabs",{staticStyle:{width:"200px",height:"80vh"},attrs:{"tab-position":"left"},on:{"tab-click":t.tabsChange}},[t._l(t.workorderTypes,(function(t){return[a("el-tab-pane",{key:t.id,attrs:{label:t.title+"("+t.count+")"}})]}))],2)],1),a("div",{staticClass:"table-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.list}},[a("el-table-column",{attrs:{type:"index",index:t.indexMethod,width:"60",label:"#序号"}}),a("el-table-column",{attrs:{prop:"title",label:"工单标题"}}),a("el-table-column",{attrs:{prop:"status",label:"当前状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.status?a("el-tag",{attrs:{type:"warning"}},[t._v("等待客服处理")]):t._e(),2==e.row.status?a("el-tag",{attrs:{type:"warning"}},[t._v("等待客服回复")]):t._e(),1==e.row.status?a("el-tag",{attrs:{type:"success"}},[t._v("已有客服回复")]):t._e(),3==e.row.status?a("el-tag",{attrs:{type:"info"}},[t._v(" 工单已结束 ")]):t._e()]}}])}),a("el-table-column",{attrs:{prop:"u_nickname",label:"用户(发布者)"}}),a("el-table-column",{attrs:{prop:"a_nickname",label:"最后回复者(客服)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.a_nickname||"-----")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"create_at",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t.$formatUnixDate(e.row.create_at,"YYYY/MM/DD")))]}}])}),a("el-table-column",{attrs:{prop:"operating",align:"center",width:"150",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini"},on:{click:function(a){return t.onShow(e.row)}}},[t._v("查 看")])]}}])})],1),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{type:"flex",justify:"space-between"}},[a("span",{staticStyle:{color:"#666","font-size":"14px"}},[t._v("共找到"+t._s(t.tableData.total)+"条数据")]),a("el-pagination",{attrs:{background:"",layout:"sizes, prev, pager, next","current-page":t.tableData.page_on,"page-sizes":[5,10,15,20],total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)]),a("WorkOrderView",{attrs:{workorderTypes:t.workorderTypes,prop:t.showWorkOrder},model:{value:t.isShowWorkOrderView,callback:function(e){t.isShowWorkOrderView=e},expression:"isShowWorkOrderView"}})],1)},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticStyle:{"font-size":"15px","margin-left":"30px",color:"#e7a646"}},[t._v("当前有\n "),a("strong",{staticStyle:{color:"#f56c6c"}},[t._v("5")]),t._v("\n 条待处理, 和"),a("strong",{staticStyle:{color:"#f56c6c"}},[t._v(" 8")]),t._v("\n 条待回复工单")])}],o=a("bc3a"),i=a.n(o),r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"workorder-view",class:{"is-show-aside":!t.isShowAside}},[a("div",{staticClass:"mask",on:{dblclick:t.close}}),a("transition",{attrs:{name:"el-zoom-in-bottom"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"content-box",class:{"padding-bottom30":3==t.showData.status}},[a("div",{staticClass:"title"},[a("i",{staticClass:"el-icon-tickets"}),t._v(" 工单详细\n ")]),a("div",{staticClass:"buttons"},[1!=t.showData.status&&2!=t.showData.status||0!=t.showData.delete?t._e():a("el-button",{attrs:{size:"mini",type:"warning"},on:{click:t.closeWorkorder}},[t._v("关闭工单")]),3==t.showData.status&&1==t.adminInfo.root&&0==t.showData.delete?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:t.delWorkorder}},[t._v("删除工单")]):t._e(),1==t.showData.delete?a("div",{staticStyle:{"font-size":"13px","margin-top":"5px",color:"#f44336"}},[t._v("该工单已删除")]):t._e()],1),a("span",{staticClass:"close",on:{click:t.close}},[a("i",{staticClass:"el-icon-close"})]),a("div",{staticClass:"content"},[a("div",{staticClass:"scroll"},[a("div",{staticClass:"form-line"},[a("span",{staticClass:"lable"},[t._v("标题:")]),a("div",{staticClass:"con"},[t._v(t._s(t.showData.title))])]),a("div",{staticClass:"form-line"},[a("span",{staticClass:"lable"},[t._v("用户:")]),a("div",{staticClass:"con"},[t._v(t._s(t.showData.u_nickname))])]),a("div",{staticClass:"form-line"},[a("span",{staticClass:"lable"},[t._v("手机:")]),a("div",{staticClass:"con"},[t._v(t._s(t.showData.phone))])]),a("div",{staticClass:"form-line"},[a("span",{staticClass:"lable"},[t._v("邮箱:")]),a("div",{staticClass:"con"},[t._v(t._s(t.showData.email||"未预留邮箱"))])]),a("div",{staticClass:"form-line"},[a("span",{staticClass:"lable"},[t._v("类型:")]),a("div",{staticClass:"con"},[t._v(t._s(t.typeName||"---"))])]),a("div",{staticClass:"form-line"},[a("span",{staticClass:"lable"},[t._v("状态:")]),a("div",{staticClass:"con"},[0==t.showData.status?a("span",{staticStyle:{color:"#e6a23c"}},[t._v("等待客服处理")]):t._e(),2==t.showData.status?a("span",{staticStyle:{color:"#e6a23c"}},[t._v("等待客服回复")]):t._e(),1==t.showData.status?a("span",{staticStyle:{color:"#67c23a"}},[t._v("已有客服回复")]):t._e(),3==t.showData.status?a("span",{staticStyle:{color:"#909399"}},[t._v("工单已结束")]):t._e()])]),a("div",{staticClass:"form-line"},[a("span",{staticClass:"lable"},[t._v("内容:")]),a("div",{staticClass:"con",domProps:{innerHTML:t._s(t.showData.content)}})]),a("el-divider",{staticStyle:{height:"10px"}}),a("div",{staticClass:"comments"},[t.comments.length<=0&&!t.isShowGetCommentsLoading?a("div",{staticClass:"no-data"},[t._v("暂无回复内容~")]):t._e(),t.isShowGetCommentsLoading?a("div",{staticClass:"comments-loading"},[a("i",{staticClass:"el-icon-loading"}),a("span",[t._v("正在努力加载中~")])]):t._l(t.comments,(function(e,s){return[a("div",{key:s,staticClass:"item"},[a("div",{staticClass:"avatar"},[e.aid==t.adminInfo.id?a("img",{attrs:{src:t.adminInfo.avatar||"http://qiniu.cmp520.com/avatar_degault_3.png",alt:""}}):a("img",{attrs:{src:e.a_avatar||"http://qiniu.cmp520.com/avatar_degault_3.png",alt:""}})]),a("div",{staticClass:"right"},[0==e.aid?a("div",{staticClass:"nickname"},[t._v(t._s(e.u_nickname))]):a("div",{staticClass:"nickname"},[t._v(t._s(e.a_nickname))]),a("div",{staticClass:"detail",domProps:{innerHTML:t._s(e.content)}}),a("div",{staticClass:"date"},[t._v(t._s(t.$formatDate(e.create_at)))])])])]})),t.showData&&3==t.showData.status?a("div",{staticClass:"workorder-close"},[t._v("工单已结束~")]):t._e()],2)],1)]),""!=t.request.source||t.isShowUploadLoading?a("div",{staticClass:"file-view"},[t.isShowUploadLoading?a("span",[a("i",{staticClass:"el-icon-loading"}),a("i",[t._v("上传中~")])]):a("span",[a("i",{staticClass:"el-icon-paperclip"}),a("i",[t._v("你已成功添加附件,重新上传可替换~")])])]):t._e(),3!=t.showData.status?a("div",{staticClass:"input-form"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.request.content,expression:"request.content"}],attrs:{placeholder:"请输入内容~"},domProps:{value:t.request.content},on:{blur:function(e){return t.inputBlur()},input:function(e){e.target.composing||t.$set(t.request,"content",e.target.value)}}}),a("span",{staticClass:"icon-btn"},[a("input",{attrs:{title:"添加附件",type:"file",onclick:"this.value = null"},on:{change:t.uploadFile}})]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.reply()}}},[t._v("提交")])],1):t._e()])])],1)},c=[],l=(a("1c01"),a("58b2"),a("8e6e"),a("f3e2"),a("ac6a"),a("456d"),a("57e7"),a("9865"),a("4f37"),a("d25f"),a("bd86")),u=a("2f62"),d=a("fb21");function p(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function f(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?p(Object(a),!0).forEach((function(e){Object(l["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):p(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var h={name:"workorder-view",data:function(){return{isShowUploadLoading:!1,isShowGetCommentsLoading:!1,isSubmit:!1,workorder:null,comments:[],fileType:"",request:{source:"",content:""}}},props:{value:{default:!1,type:Boolean},prop:Object,workorderTypes:Array},created:function(){this.comments=[]},computed:f({showData:function(){return this.workorder||this.prop},isShowAside:function(){return this.$store.state.isShowAside},typeName:function(){var t=this;try{return this.workorderTypes.filter((function(e){return e.id==t.showData.tid}))[0].title}catch(e){return""}}},Object(u["b"])(["adminInfo","uploadToken"])),methods:{close:function(){this.$emit("input",!1)},getWorkOrder:function(){var t=this;i.a.get("/public/workorder/"+this.prop.id).then((function(e){null!=e.data.data&&(t.workorder=e.data.data),setTimeout((function(){return t.$previewRefresh()}),500)}))},getComments:function(){var t=this;this.isShowGetCommentsLoading=!0,i.a.get("/public/workorder/comments/"+this.prop.id).then((function(e){null!=e.data.data&&(t.comments=e.data.data),setTimeout((function(){return t.$previewRefresh()}),500),t.isShowGetCommentsLoading=!1})).catch((function(e){console.log(e),t.isShowGetCommentsLoading=!1,t.$message.error("加载失败,请刷新尝试~")}))},closeWorkorder:function(){var t=this;this.$prompt("请输入关闭原因!","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/\S/,inputErrorMessage:"关闭工单原因不能为空~"}).then((function(e){var a=e.value,s=t.showData.id,n=a;i.a.post("/workorder/close",{wid:s,remark:n}).then((function(){t.getWorkOrder(),t.$notify({title:"温馨提示!",message:"工单已关闭~",showClose:!1,type:"success"})})).catch((function(){t.$message.error("工单关闭失败~")}))}))},delWorkorder:function(){var t=this;this.$confirm("您确定删除该工单吗?","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var e=t.showData.id;i.a.delete("/public/workorder/"+e).then((function(){t.$notify({title:"温馨提示!",message:"工单已删除~",showClose:!1,type:"success"}),t.close()})).catch((function(){t.$message.error("工单删除失败~")}))}))},reply:function(){var t=this,e=this.request.content+this.request.source;if(""!=e.trim()){if(!this.isSubmit){this.isSubmit=!0;var a=this.showData.id;i.a.post("/public/workorder/reply",{wid:a,content:e}).then((function(e){t.isSubmit=!1,console.log(e),t.getComments(),t.request={source:"",content:""},t.$notify({title:"温馨提示!",message:"回复成功~",showClose:!1,type:"success"}),setTimeout((function(){var t=document.querySelector(".content").clientHeight,e=document.querySelector(".scroll").clientHeight;document.querySelector(".content").scrollTop=e-t+20}),500)})).catch((function(e){t.isSubmit=!1,console.log(e),t.$message.error("提交失败~")}))}}else this.$message.error("请输入内容~")},inputBlur:function(){setTimeout((function(){document.body.scrollTo=0,window.scrollTo(0,0)}),100)},uploadFile:function(t){var e=t.target,a=e.files[0];this.isShowUploadLoading=!0;var s=this;Object(d["a"])({file:a,mode:this.uploadToken.mode,progress:function(){},success:function(t){var e;s.isShowUploadLoading=!1;var a=s.uploadToken.host+"/"+t,n=t.substr(t.lastIndexOf(".")+1);-1!="jpg,jpeg,png,JPG,JPEG,PNG".indexOf(n)?e="<br><img style='max-width:45%' preview='1' src='"+a+"' />":(e="<br><img style='width:20px;height:20px;top:3px; right:3px;position: relative;' preview='1' src='http://qiniu.cmp520.com/fj.png' />",e+="<a target='_blank' style='color: #2e9dfc;' href='"+a+"'>下载附件</a>"),s.request.source=e,s.$notify({title:"温馨提示!",message:"上传成功~",showClose:!1,type:"success"})},error:function(t){s.isShowUploadLoading=!1,t.response&&t.response.data&&s.$message.error(t.response.data.message)}})}},watch:{prop:function(){var t=this;this.getWorkOrder(),setTimeout((function(){t.$previewRefresh(),t.getComments()}),500)}}},v=h,m=(a("7563"),a("2877")),g=Object(m["a"])(v,r,c,!1,null,"04313ef6",null),w=g.exports,b={name:"workorder-index",components:{WorkOrderView:w},data:function(){return{loading:!0,isShowWorkOrderView:!1,showWorkOrder:{},tableData:{list:[],page_on:1,page_size:10,total:0,status:"",del:0,tid:0},tabIndex:0,del:0,workorderTypes:[{id:0,count:0,title:"全部工单"}]}},computed:{workStatus:function(){return this.tabIndex==this.workorderTypes.length-1&&this.workorderTypes.length>1?"0,1,2,3":"0,1,2"}},created:function(){this.getWorkorderList(),this.getWorkorderTypes()},methods:{onShow:function(t){this.showWorkOrder=t,this.isShowWorkOrderView=!0},tabsChange:function(t){this.tabIndex=parseInt(t.index),this.del=0,this.tabIndex==this.workorderTypes.length-1&&(this.del=1),this.changeType(this.workorderTypes[this.tabIndex].id)},indexMethod:function(t){return(this.tableData.page_on-1)*this.tableData.page_size+t+1},changeType:function(t){this.tableData.tid=t,this.getWorkorderList(1)},getWorkorderList:function(t){var e=this;t&&(this.tableData.page_on=t),this.tableData.status=this.workStatus,this.tableData.del=this.del;var a=this.tableData,s=a.page_on,n=a.page_size,o=a.tid,r=a.status,c=a.del;i.a.post("/workorder/list",{page_on:s,page_size:n,tid:o,status:r,del:c}).then((function(t){e.loading=!1,e.tableData=t.data.data})).catch((function(t){e.loading=!1,e.$message.error(t.response.data.message)}))},getWorkorderTypes:function(){var t=this;i.a.get("/workorder/types").then((function(e){t.workorderTypes=t.workorderTypes.concat(e.data.data);for(var a=0;a<e.data.data.length;a++)t.workorderTypes[0].count+=e.data.data[a].count;t.workorderTypes.push({id:-1,count:0,title:"已结单"}),t.workorderTypes.push({id:-2,count:0,title:"回收站"})})).catch((function(e){t.$message.error(e.response.data.message)}))},handleSizeChange:function(t){this.tableData.page_size=t,this.getWorkorderList()},handleCurrentChange:function(t){this.tableData.page_on=t,this.getWorkorderList()}},watch:{isShowWorkOrderView:function(t){t||this.getWorkorderList()}}},_=b,y=(a("7b0d"),Object(m["a"])(_,s,n,!1,null,"28a53d25",null));e["default"]=y.exports},eb66:function(t,e,a){},f1ae:function(t,e,a){"use strict";var s=a("86cc"),n=a("4630");t.exports=function(t,e,a){e in t?s.f(t,e,n(0,a)):t[e]=a}},f3e2:function(t,e,a){"use strict";var s=a("5ca1"),n=a("0a49")(0),o=a("2f21")([].forEach,!0);s(s.P+s.F*!o,"Array",{forEach:function(t){return n(this,t,arguments[1])}})},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
//# sourceMappingURL=chunk-cabbc79c.8d69ea53.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./node_modules/core-js/modules/_object-gopd.js","webpack:///./node_modules/core-js/modules/es6.object.define-property.js","webpack:///./node_modules/core-js/library/fn/object/define-property.js","webpack:///./node_modules/core-js/modules/es6.object.keys.js","webpack:///./node_modules/core-js/library/modules/es6.object.define-property.js","webpack:///./node_modules/core-js/modules/es6.string.trim.js","webpack:///./node_modules/core-js/modules/es6.object.define-properties.js","webpack:///./node_modules/core-js/modules/_object-sap.js","webpack:///./src/views/workorder/workorder-view.vue?0351","webpack:///./src/views/workorder/index.vue?8748","webpack:///./node_modules/@babel/runtime-corejs2/core-js/object/define-property.js","webpack:///./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js","webpack:///./node_modules/core-js/modules/_object-gopn.js","webpack:///./node_modules/core-js/modules/_own-keys.js","webpack:///./node_modules/core-js/modules/_string-trim.js","webpack:///./node_modules/core-js/modules/web.dom.iterable.js","webpack:///./node_modules/@babel/runtime-corejs2/helpers/esm/defineProperty.js","webpack:///./node_modules/core-js/modules/es6.array.filter.js","webpack:///./src/views/workorder/index.vue?0ef2","webpack:///./src/views/workorder/workorder-view.vue?9955","webpack:///src/views/workorder/workorder-view.vue","webpack:///./src/views/workorder/workorder-view.vue?47c8","webpack:///./src/views/workorder/workorder-view.vue","webpack:///src/views/workorder/index.vue","webpack:///./src/views/workorder/index.vue?4c70","webpack:///./src/views/workorder/index.vue","webpack:///./node_modules/core-js/modules/_create-property.js","webpack:///./node_modules/core-js/modules/es6.array.for-each.js","webpack:///./node_modules/core-js/modules/_string-ws.js"],"names":["pIE","createDesc","toIObject","toPrimitive","has","IE8_DOM_DEFINE","gOPD","Object","getOwnPropertyDescriptor","exports","f","O","P","e","call","$export","S","F","defineProperty","$Object","module","it","key","desc","toObject","$keys","$trim","this","defineProperties","core","fails","KEY","exec","fn","exp","ownKeys","createProperty","getOwnPropertyDescriptors","object","getDesc","keys","result","i","length","undefined","hiddenKeys","concat","getOwnPropertyNames","gOPN","gOPS","anObject","Reflect","getSymbols","defined","spaces","space","non","ltrim","RegExp","rtrim","exporter","ALIAS","FORCE","trim","string","TYPE","String","replace","$iterators","getKeys","redefine","global","hide","Iterators","wks","ITERATOR","TO_STRING_TAG","ArrayValues","Array","DOMIterables","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","collections","NAME","explicit","Collection","proto","prototype","_defineProperty","obj","value","enumerable","configurable","writable","$filter","filter","callbackfn","arguments","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","_m","staticStyle","on","tabsChange","_l","item","id","title","count","directives","name","rawName","expression","tableData","list","indexMethod","scopedSlots","_u","scope","row","status","_e","_s","a_nickname","$formatUnixDate","create_at","$event","onShow","total","page_on","handleSizeChange","handleCurrentChange","workorderTypes","showWorkOrder","model","callback","$$v","isShowWorkOrderView","staticRenderFns","class","isShowAside","close","showData","delete","closeWorkorder","adminInfo","root","delWorkorder","u_nickname","phone","email","typeName","domProps","content","comments","isShowGetCommentsLoading","index","aid","avatar","a_avatar","$formatDate","request","source","isShowUploadLoading","inputBlur","target","composing","$set","uploadFile","reply","data","isSubmit","workorder","fileType","props","default","type","Boolean","prop","created","computed","$store","state","methods","$emit","getWorkOrder","response","setTimeout","getComments","$prompt","confirmButtonText","cancelButtonText","inputPattern","inputErrorMessage","$message","error","document","body","scrollTo","window","fileDom","file","files","mode","uploadToken","progress","success","html","self","fullPath","host","src","substr","lastIndexOf","indexOf","$notify","message","showClose","watch","component","components","WorkOrderView","loading","page_size","del","tid","tabIndex","workStatus","getWorkorderList","getWorkorderTypes","parseInt","tab","changeType","val","$defineProperty","$forEach","STRICT","forEach"],"mappings":"qGAAA,IAAIA,EAAM,EAAQ,QACdC,EAAa,EAAQ,QACrBC,EAAY,EAAQ,QACpBC,EAAc,EAAQ,QACtBC,EAAM,EAAQ,QACdC,EAAiB,EAAQ,QACzBC,EAAOC,OAAOC,yBAElBC,EAAQC,EAAI,EAAQ,QAAoBJ,EAAO,SAAkCK,EAAGC,GAGlF,GAFAD,EAAIT,EAAUS,GACdC,EAAIT,EAAYS,GAAG,GACfP,EAAgB,IAClB,OAAOC,EAAKK,EAAGC,GACf,MAAOC,IACT,GAAIT,EAAIO,EAAGC,GAAI,OAAOX,GAAYD,EAAIU,EAAEI,KAAKH,EAAGC,GAAID,EAAEC,M,uBCdxD,IAAIG,EAAU,EAAQ,QAEtBA,EAAQA,EAAQC,EAAID,EAAQE,GAAK,EAAQ,QAAmB,SAAU,CAAEC,eAAgB,EAAQ,QAAgBR,K,8CCFhH,EAAQ,QACR,IAAIS,EAAU,EAAQ,QAAuBZ,OAC7Ca,EAAOX,QAAU,SAAwBY,EAAIC,EAAKC,GAChD,OAAOJ,EAAQD,eAAeG,EAAIC,EAAKC,K,uBCFzC,IAAIC,EAAW,EAAQ,QACnBC,EAAQ,EAAQ,QAEpB,EAAQ,OAAR,CAAyB,QAAQ,WAC/B,OAAO,SAAcJ,G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,EAAO1E,GACpC0E,KAAS3J,EAAQyO,EAAgBrQ,EAAE4B,EAAQ2J,EAAOhM,EAAW,EAAGsH,IAC/DjF,EAAO2J,GAAS1E,I,kCCLvB,IAAIxG,EAAU,EAAQ,QAClBiQ,EAAW,EAAQ,OAAR,CAA4B,GACvCC,EAAS,EAAQ,OAAR,CAA4B,GAAGC,SAAS,GAErDnQ,EAAQA,EAAQH,EAAIG,EAAQE,GAAKgQ,EAAQ,QAAS,CAEhDC,QAAS,SAAiBrJ,GACxB,OAAOmJ,EAASrP,KAAMkG,EAAYC,UAAU,Q,mBCRhD1G,EAAOX,QAAU","file":"js/chunk-cabbc79c.8d69ea53.js","sourcesContent":["var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n","require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n","// 19.1.2.14 Object.keys(O)\nvar toObject = require('./_to-object');\nvar $keys = require('./_object-keys');\n\nrequire('./_object-sap')('keys', function () {\n return function keys(it) {\n return $keys(toObject(it));\n };\n});\n","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n","'use strict';\n// 21.1.3.25 String.prototype.trim()\nrequire('./_string-trim')('trim', function ($trim) {\n return function trim() {\n return $trim(this, 3);\n };\n});\n","var $export = require('./_export');\n// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperties: require('./_object-dps') });\n","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export');\nvar core = require('./_core');\nvar fails = require('./_fails');\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-view.vue?vue&type=style&index=0&id=04313ef6&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-view.vue?vue&type=style&index=0&id=04313ef6&scoped=true&lang=stylus&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=28a53d25&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=28a53d25&scoped=true&lang=stylus&\"","module.exports = require(\"core-js/library/fn/object/define-property\");","// https://github.com/tc39/proposal-object-getownpropertydescriptors\nvar $export = require('./_export');\nvar ownKeys = require('./_own-keys');\nvar toIObject = require('./_to-iobject');\nvar gOPD = require('./_object-gopd');\nvar createProperty = require('./_create-property');\n\n$export($export.S, 'Object', {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = toIObject(object);\n var getDesc = gOPD.f;\n var keys = ownKeys(O);\n var result = {};\n var i = 0;\n var key, desc;\n while (keys.length > i) {\n desc = getDesc(O, key = keys[i++]);\n if (desc !== undefined) createProperty(result, key, desc);\n }\n return result;\n }\n});\n","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","// all object keys, includes non-enumerable and symbols\nvar gOPN = require('./_object-gopn');\nvar gOPS = require('./_object-gops');\nvar anObject = require('./_an-object');\nvar Reflect = require('./_global').Reflect;\nmodule.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {\n var keys = gOPN.f(anObject(it));\n var getSymbols = gOPS.f;\n return getSymbols ? keys.concat(getSymbols(it)) : keys;\n};\n","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","var $iterators = require('./es6.array.iterator');\nvar getKeys = require('./_object-keys');\nvar redefine = require('./_redefine');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar wks = require('./_wks');\nvar ITERATOR = wks('iterator');\nvar TO_STRING_TAG = wks('toStringTag');\nvar ArrayValues = Iterators.Array;\n\nvar DOMIterables = {\n CSSRuleList: true, // TODO: Not spec compliant, should be false.\n CSSStyleDeclaration: false,\n CSSValueList: false,\n ClientRectList: false,\n DOMRectList: false,\n DOMStringList: false,\n DOMTokenList: true,\n DataTransferItemList: false,\n FileList: false,\n HTMLAllCollection: false,\n HTMLCollection: false,\n HTMLFormElement: false,\n HTMLSelectElement: false,\n MediaList: true, // TODO: Not spec compliant, should be false.\n MimeTypeArray: false,\n NamedNodeMap: false,\n NodeList: true,\n PaintRequestList: false,\n Plugin: false,\n PluginArray: false,\n SVGLengthList: false,\n SVGNumberList: false,\n SVGPathSegList: false,\n SVGPointList: false,\n SVGStringList: false,\n SVGTransformList: false,\n SourceBufferList: false,\n StyleSheetList: true, // TODO: Not spec compliant, should be false.\n TextTrackCueList: false,\n TextTrackList: false,\n TouchList: false\n};\n\nfor (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {\n var NAME = collections[i];\n var explicit = DOMIterables[NAME];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n var key;\n if (proto) {\n if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);\n if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = ArrayValues;\n if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);\n }\n}\n","import _Object$defineProperty from \"../../core-js/object/define-property\";\nexport default function _defineProperty(obj, key, value) {\n if (key in obj) {\n _Object$defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"me-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-tickets\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"工单管理\")]),_vm._m(0)]),_c('div',[_c('el-button',{attrs:{\"size\":\"mini\"}},[_vm._v(\"分类设置\")])],1)]),_c('el-divider'),_c('div',{staticClass:\"container-box\"},[_c('div',{staticClass:\"menu\"},[_c('el-tabs',{staticStyle:{\"width\":\"200px\",\"height\":\"80vh\"},attrs:{\"tab-position\":\"left\"},on:{\"tab-click\":_vm.tabsChange}},[_vm._l((_vm.workorderTypes),function(item){return [_c('el-tab-pane',{key:item.id,attrs:{\"label\":item.title + '('+item.count+')'}})]})],2)],1),_c('div',{staticClass:\"table-content\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"width\":\"60\",\"label\":\"#序号\"}}),_c('el-table-column',{attrs:{\"prop\":\"title\",\"label\":\"工单标题\"}}),_c('el-table-column',{attrs:{\"prop\":\"status\",\"label\":\"当前状态\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.status == 0)?_c('el-tag',{attrs:{\"type\":\"warning\"}},[_vm._v(\"等待客服处理\")]):_vm._e(),(scope.row.status == 2)?_c('el-tag',{attrs:{\"type\":\"warning\"}},[_vm._v(\"等待客服回复\")]):_vm._e(),(scope.row.status == 1)?_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(\"已有客服回复\")]):_vm._e(),(scope.row.status == 3)?_c('el-tag',{attrs:{\"type\":\"info\"}},[_vm._v(\" 工单已结束 \")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"u_nickname\",\"label\":\"用户(发布者)\"}}),_c('el-table-column',{attrs:{\"prop\":\"a_nickname\",\"label\":\"最后回复者(客服)\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(scope.row.a_nickname || '-----')+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"创建时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")))]}}])}),_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"width\":\"150\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.onShow(scope.row)}}},[_vm._v(\"查 看\")])]}}])})],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)],1)]),_c('WorkOrderView',{attrs:{\"workorderTypes\":_vm.workorderTypes,\"prop\":_vm.showWorkOrder},model:{value:(_vm.isShowWorkOrderView),callback:function ($$v) {_vm.isShowWorkOrderView=$$v},expression:\"isShowWorkOrderView\"}})],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticStyle:{\"font-size\":\"15px\",\"margin-left\":\"30px\",\"color\":\"#e7a646\"}},[_vm._v(\"当前有\\n \"),_c('strong',{staticStyle:{\"color\":\"#f56c6c\"}},[_vm._v(\"5\")]),_vm._v(\"\\n 条待处理, 和\"),_c('strong',{staticStyle:{\"color\":\"#f56c6c\"}},[_vm._v(\" 8\")]),_vm._v(\"\\n 条待回复工单\")])}]\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.value),expression:\"value\"}],staticClass:\"workorder-view\",class:{'is-show-aside': !_vm.isShowAside}},[_c('div',{staticClass:\"mask\",on:{\"dblclick\":_vm.close}}),_c('transition',{attrs:{\"name\":\"el-zoom-in-bottom\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.value),expression:\"value\"}],staticClass:\"content-box\",class:{'padding-bottom30': _vm.showData.status == 3}},[_c('div',{staticClass:\"title\"},[_c('i',{staticClass:\"el-icon-tickets\"}),_vm._v(\" 工单详细\\n \")]),_c('div',{staticClass:\"buttons\"},[((_vm.showData.status == 1 || _vm.showData.status == 2) && _vm.showData.delete == 0)?_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"warning\"},on:{\"click\":_vm.closeWorkorder}},[_vm._v(\"关闭工单\")]):_vm._e(),(_vm.showData.status == 3 && _vm.adminInfo.root == 1 && _vm.showData.delete == 0)?_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":_vm.delWorkorder}},[_vm._v(\"删除工单\")]):_vm._e(),(_vm.showData.delete == 1)?_c('div',{staticStyle:{\"font-size\":\"13px\",\"margin-top\":\"5px\",\"color\":\"#f44336\"}},[_vm._v(\"该工单已删除\")]):_vm._e()],1),_c('span',{staticClass:\"close\",on:{\"click\":_vm.close}},[_c('i',{staticClass:\"el-icon-close\"})]),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"scroll\"},[_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"标题:\")]),_c('div',{staticClass:\"con\"},[_vm._v(_vm._s(_vm.showData.title))])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"用户:\")]),_c('div',{staticClass:\"con\"},[_vm._v(_vm._s(_vm.showData.u_nickname))])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"手机:\")]),_c('div',{staticClass:\"con\"},[_vm._v(_vm._s(_vm.showData.phone))])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"邮箱:\")]),_c('div',{staticClass:\"con\"},[_vm._v(_vm._s(_vm.showData.email || '未预留邮箱'))])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"类型:\")]),_c('div',{staticClass:\"con\"},[_vm._v(_vm._s(_vm.typeName || '---'))])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"状态:\")]),_c('div',{staticClass:\"con\"},[(_vm.showData.status == 0)?_c('span',{staticStyle:{\"color\":\"#e6a23c\"}},[_vm._v(\"等待客服处理\")]):_vm._e(),(_vm.showData.status == 2)?_c('span',{staticStyle:{\"color\":\"#e6a23c\"}},[_vm._v(\"等待客服回复\")]):_vm._e(),(_vm.showData.status == 1)?_c('span',{staticStyle:{\"color\":\"#67c23a\"}},[_vm._v(\"已有客服回复\")]):_vm._e(),(_vm.showData.status == 3)?_c('span',{staticStyle:{\"color\":\"#909399\"}},[_vm._v(\"工单已结束\")]):_vm._e()])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"内容:\")]),_c('div',{staticClass:\"con\",domProps:{\"innerHTML\":_vm._s(_vm.showData.content)}})]),_c('el-divider',{staticStyle:{\"height\":\"10px\"}}),_c('div',{staticClass:\"comments\"},[(_vm.comments.length <= 0 && !_vm.isShowGetCommentsLoading)?_c('div',{staticClass:\"no-data\"},[_vm._v(\"暂无回复内容~\")]):_vm._e(),(_vm.isShowGetCommentsLoading)?_c('div',{staticClass:\"comments-loading\"},[_c('i',{staticClass:\"el-icon-loading\"}),_c('span',[_vm._v(\"正在努力加载中~\")])]):_vm._l((_vm.comments),function(item,index){return [_c('div',{key:index,staticClass:\"item\"},[_c('div',{staticClass:\"avatar\"},[(item.aid == _vm.adminInfo.id)?_c('img',{attrs:{\"src\":_vm.adminInfo.avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png',\"alt\":\"\"}}):_c('img',{attrs:{\"src\":item.a_avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png',\"alt\":\"\"}})]),_c('div',{staticClass:\"right\"},[(item.aid == 0)?_c('div',{staticClass:\"nickname\"},[_vm._v(_vm._s(item.u_nickname))]):_c('div',{staticClass:\"nickname\"},[_vm._v(_vm._s(item.a_nickname))]),_c('div',{staticClass:\"detail\",domProps:{\"innerHTML\":_vm._s(item.content)}}),_c('div',{staticClass:\"date\"},[_vm._v(_vm._s(_vm.$formatDate(item.create_at)))])])])]}),(_vm.showData && _vm.showData.status == 3)?_c('div',{staticClass:\"workorder-close\"},[_vm._v(\"工单已结束~\")]):_vm._e()],2)],1)]),(_vm.request.source != '' || _vm.isShowUploadLoading)?_c('div',{staticClass:\"file-view\"},[(_vm.isShowUploadLoading)?_c('span',[_c('i',{staticClass:\"el-icon-loading\"}),_c('i',[_vm._v(\"上传中~\")])]):_c('span',[_c('i',{staticClass:\"el-icon-paperclip\"}),_c('i',[_vm._v(\"你已成功添加附件,重新上传可替换~\")])])]):_vm._e(),(_vm.showData.status != 3)?_c('div',{staticClass:\"input-form\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.request.content),expression:\"request.content\"}],attrs:{\"placeholder\":\"请输入内容~\"},domProps:{\"value\":(_vm.request.content)},on:{\"blur\":function($event){return _vm.inputBlur()},\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, \"content\", $event.target.value)}}}),_c('span',{staticClass:\"icon-btn\"},[_c('input',{attrs:{\"title\":\"添加附件\",\"type\":\"file\",\"onclick\":\"this.value = null\"},on:{\"change\":_vm.uploadFile}})]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.reply()}}},[_vm._v(\"提交\")])],1):_vm._e()])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n<template>\n <div class=\"workorder-view\" :class=\"{'is-show-aside': !isShowAside}\" v-show=\"value\">\n <div class=\"mask\" @dblclick=\"close\"></div>\n <transition name=\"el-zoom-in-bottom\">\n <div class=\"content-box\" :class=\"{'padding-bottom30': showData.status == 3}\" v-show=\"value\">\n <div class=\"title\">\n <i class=\"el-icon-tickets\"></i> 工单详细\n </div>\n <div class=\"buttons\">\n <el-button\n size=\"mini\"\n @click=\"closeWorkorder\"\n v-if=\"(showData.status == 1 || showData.status == 2) && showData.delete == 0\"\n type=\"warning\"\n >关闭工单</el-button>\n <el-button\n size=\"mini\"\n @click=\"delWorkorder\"\n v-if=\"showData.status == 3 && adminInfo.root == 1 && showData.delete == 0\"\n type=\"danger\"\n >删除工单</el-button>\n <div v-if=\"showData.delete == 1\" style=\"font-size:13px;margin-top:5px;color:#f44336\">该工单已删除</div>\n </div>\n <span class=\"close\" @click=\"close\">\n <i class=\"el-icon-close\"></i>\n </span>\n <div class=\"content\">\n <div class=\"scroll\">\n <div class=\"form-line\">\n <span class=\"lable\">标题:</span>\n <div class=\"con\">{{showData.title}}</div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">用户:</span>\n <div class=\"con\">{{showData.u_nickname}}</div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">手机:</span>\n <div class=\"con\">{{showData.phone}}</div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">邮箱:</span>\n <div class=\"con\">{{showData.email || '未预留邮箱'}}</div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">类型:</span>\n <div class=\"con\">{{typeName || '---'}}</div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">状态:</span>\n <div class=\"con\">\n <span style=\"color:#e6a23c;\" v-if=\"showData.status == 0\">等待客服处理</span>\n <span style=\"color:#e6a23c;\" v-if=\"showData.status == 2\">等待客服回复</span>\n <span style=\"color:#67c23a;\" v-if=\"showData.status == 1\">已有客服回复</span>\n <span style=\"color:#909399;\" v-if=\"showData.status == 3\">工单已结束</span>\n </div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">内容:</span>\n <div class=\"con\" v-html=\"showData.content\"></div>\n </div>\n <el-divider style=\"height:10px;\" />\n <div class=\"comments\">\n <div class=\"no-data\" v-if=\"comments.length <= 0 && !isShowGetCommentsLoading\">暂无回复内容~</div>\n <div class=\"comments-loading\" v-if=\"isShowGetCommentsLoading\">\n <i class=\"el-icon-loading\"></i>\n <span>正在努力加载中~</span>\n </div>\n <template v-else v-for=\"(item,index) in comments\">\n <div :key=\"index\" class=\"item\">\n <div class=\"avatar\">\n <img\n v-if=\"item.aid == adminInfo.id\"\n :src=\"adminInfo.avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png'\"\n alt\n />\n <img\n v-else\n :src=\"item.a_avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png'\"\n alt\n />\n </div>\n <div class=\"right\">\n <div class=\"nickname\" v-if=\"item.aid == 0\">{{item.u_nickname}}</div>\n <div class=\"nickname\" v-else>{{item.a_nickname}}</div>\n <div class=\"detail\" v-html=\"item.content\"></div>\n <div class=\"date\">{{$formatDate(item.create_at)}}</div>\n </div>\n </div>\n </template>\n <div class=\"workorder-close\" v-if=\"showData && showData.status == 3\">工单已结束~</div>\n </div>\n </div>\n </div>\n <div class=\"file-view\" v-if=\"request.source != '' || isShowUploadLoading\">\n <span v-if=\"isShowUploadLoading\">\n <i class=\"el-icon-loading\"></i>\n <i>上传中~</i>\n </span>\n <span v-else>\n <i class=\"el-icon-paperclip\"></i>\n <i>你已成功添加附件,重新上传可替换~</i>\n </span>\n </div>\n <div class=\"input-form\" v-if=\"showData.status != 3\">\n <textarea v-model=\"request.content\" @blur=\"inputBlur()\" placeholder=\"请输入内容~\"></textarea>\n <span class=\"icon-btn\">\n <input title=\"添加附件\" type=\"file\" @change=\"uploadFile\" onclick=\"this.value = null\" />\n </span>\n <el-button type=\"primary\" @click=\"reply()\">提交</el-button>\n </div>\n </div>\n </transition>\n </div>\n</template>\n<script>\nimport axios from \"axios\";\nimport { mapGetters } from \"vuex\";\nimport upload from \"../../common/upload\";\nexport default {\n name: \"workorder-view\",\n data() {\n return {\n isShowUploadLoading: false,\n isShowGetCommentsLoading: false,\n isSubmit: false,\n workorder: null,\n comments: [],\n fileType: \"\",\n request: {\n source: \"\",\n content: \"\"\n }\n };\n },\n props: {\n value: {\n default: false,\n type: Boolean\n },\n prop: Object,\n workorderTypes: Array\n },\n created() {\n this.comments = [];\n },\n computed: {\n showData() {\n return this.workorder || this.prop;\n },\n isShowAside() {\n return this.$store.state.isShowAside;\n },\n typeName(){\n try{\n return this.workorderTypes.filter((i)=>i.id == this.showData.tid)[0].title\n }catch(e){\n return \"\"\n }\n },\n ...mapGetters([\"adminInfo\", \"uploadToken\"])\n },\n methods: {\n // 按钮操作\n close() {\n this.$emit(\"input\", false);\n },\n getWorkOrder() {\n axios.get(\"/public/workorder/\" + this.prop.id).then(response => {\n if (response.data.data != null) this.workorder = response.data.data;\n setTimeout(() => this.$previewRefresh(), 500);\n });\n },\n getComments() {\n this.isShowGetCommentsLoading = true;\n axios\n .get(\"/public/workorder/comments/\" + this.prop.id)\n .then(response => {\n if (response.data.data != null) this.comments = response.data.data;\n setTimeout(() => this.$previewRefresh(), 500);\n this.isShowGetCommentsLoading = false;\n })\n .catch(error => {\n console.log(error);\n this.isShowGetCommentsLoading = false;\n this.$message.error(\"加载失败,请刷新尝试~\");\n });\n },\n closeWorkorder() {\n this.$prompt(\"请输入关闭原因!\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n inputPattern: /\\S/,\n inputErrorMessage: \"关闭工单原因不能为空~\"\n }).then(({ value }) => {\n const wid = this.showData.id;\n let remark = value\n axios\n .post(\"/workorder/close\", { wid, remark })\n .then(() => {\n this.getWorkOrder()\n this.$notify({\n title: \"温馨提示!\",\n message: \"工单已关闭~\",\n showClose: false,\n type: \"success\"\n });\n })\n .catch(() => {\n this.$message.error(\"工单关闭失败~\");\n });\n });\n },\n delWorkorder() {\n this.$confirm('您确定删除该工单吗?', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n const wid = this.showData.id;\n axios\n .delete(\"/public/workorder/\" +wid)\n .then(() => {\n this.$notify({\n title: \"温馨提示!\",\n message: \"工单已删除~\",\n showClose: false,\n type: \"success\"\n });\n this.close()\n })\n .catch(() => {\n this.$message.error(\"工单删除失败~\");\n });\n });\n },\n reply() {\n const content = this.request.content + this.request.source;\n if (content.trim() == \"\") {\n this.$message.error(\"请输入内容~\");\n return;\n }\n if (this.isSubmit) return;\n this.isSubmit = true;\n const wid = this.showData.id;\n axios\n .post(\"/public/workorder/reply\", { wid, content })\n .then(response => {\n this.isSubmit = false;\n console.log(response);\n this.getComments();\n this.request = {\n source: \"\",\n content: \"\"\n };\n this.$notify({\n title: \"温馨提示!\",\n message: \"回复成功~\",\n showClose: false,\n type: \"success\"\n });\n setTimeout(() => {\n var sBoxHeight = document.querySelector(\".content\").clientHeight;\n var sHeight = document.querySelector(\".scroll\").clientHeight;\n document.querySelector(\".content\").scrollTop =\n sHeight - sBoxHeight + 20;\n }, 500);\n })\n .catch(error => {\n this.isSubmit = false;\n console.log(error);\n this.$message.error(\"提交失败~\");\n });\n },\n inputBlur() {\n setTimeout(() => {\n document.body.scrollTo = 0;\n window.scrollTo(0, 0);\n }, 100);\n },\n uploadFile(e) {\n var fileDom = e.target;\n var file = fileDom.files[0];\n this.isShowUploadLoading = true;\n const self = this;\n upload({\n file,\n mode: this.uploadToken.mode,\n progress() {},\n success(src) {\n self.isShowUploadLoading = false;\n var html;\n var fullPath = self.uploadToken.host + \"/\" + src;\n var fileType = src.substr(src.lastIndexOf(\".\") + 1);\n if (\"jpg,jpeg,png,JPG,JPEG,PNG\".indexOf(fileType) != -1) {\n html =\n \"<br><img style='max-width:45%' preview='1' src='\" +\n fullPath +\n \"' />\";\n } else {\n html =\n \"<br><img style='width:20px;height:20px;top:3px; right:3px;position: relative;' preview='1' src='http://qiniu.cmp520.com/fj.png' />\";\n html +=\n \"<a target='_blank' style='color: #2e9dfc;' href='\" +\n fullPath +\n \"'>下载附件</a>\";\n }\n self.request.source = html;\n self.$notify({\n title: \"温馨提示!\",\n message: \"上传成功~\",\n showClose: false,\n type: \"success\"\n });\n },\n error(e) {\n self.isShowUploadLoading = false;\n if (e.response && e.response.data) {\n self.$message.error(e.response.data.message);\n return;\n }\n }\n });\n }\n },\n watch: {\n prop() {\n this.getWorkOrder();\n setTimeout(() => {\n this.$previewRefresh();\n this.getComments();\n }, 500);\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.workorder-view {\n width: 100vw;\n height: 100vh;\n position: fixed;\n right: 0;\n top: 0px;\n left: 0px;\n background-color: rgba(0, 0, 0, 0.8);\n z-index: 9;\n\n .mask {\n width: 100%;\n height: 100%;\n }\n\n .no-data {\n color: #666;\n font-size: 14px;\n }\n\n .workorder-close, .comments-loading {\n text-align: center;\n color: #666;\n font-size: 14px;\n padding: 10px;\n }\n\n .comments {\n padding: 10px;\n\n .item {\n display: flex;\n\n .avatar {\n padding-top: 10px;\n\n img {\n width: 30px;\n height: 30px;\n border-radius: 100px;\n display: block;\n }\n\n border-bottom: 1px solid rgba(158, 158, 158, 0.13);\n }\n\n .right {\n padding: 10px 5px;\n flex-grow: 1;\n border-bottom: 1px solid rgba(158, 158, 158, 0.13);\n\n .nickname {\n font-size: 15px;\n color: #333;\n }\n\n .detail {\n font-size: 15px;\n color: #333;\n margin-top: 5px;\n }\n\n .date {\n color: #999;\n font-size: 14px;\n margin-top: 5px;\n }\n }\n\n &:last-child {\n .right, .avatar {\n border-bottom: 0;\n }\n }\n }\n }\n\n .content-box {\n width: 600px;\n height: 100%;\n background-color: #fff;\n position: fixed;\n right: 0px;\n left: 260px;\n margin: 0 auto;\n top: 30px;\n overflow: hidden;\n border-radius: 5px 5px 0 0;\n padding-top: 40px;\n padding-bottom: 135px;\n box-sizing: border-box;\n &.padding-bottom30{\n padding-bottom: 30px;\n }\n\n .content {\n box-sizing: border-box;\n width: 100%;\n padding: 0 10px;\n height: 100%;\n overflow: hidden;\n overflow-y: auto;\n padding-top: 10px;\n position: relative;\n padding-bottom: 20px;\n }\n\n .file-view {\n position: absolute;\n bottom: 135px;\n left: 0;\n right: 0;\n padding: 5px 10px;\n margin: 0 auto;\n font-size: 13px;\n color: #8bc34a;\n\n span {\n display: flex;\n align-content: center;\n align-items: center;\n\n img {\n width: 20px;\n height: 20px;\n }\n\n i {\n font-style: normal;\n margin-left: 5px;\n }\n }\n }\n\n .input-form {\n position: absolute;\n bottom: 35px;\n left: 0;\n right: 0;\n margin: 0 auto;\n width: 100%;\n height: 100px;\n background-color: #fff;\n border-top: 1px solid rgba(158, 158, 158, 0.13);\n display: flex;\n justify-content: space-between;\n padding: 10px 10px 0;\n box-sizing: border-box;\n align-content: center;\n align-items: center;\n\n textarea {\n height: 90%;\n flex-grow: 1;\n border-radius: 0;\n border: 0;\n color: #333;\n font-size: 14px;\n resize: none;\n }\n\n .icon-btn {\n background: url('../../assets/upload.png') center center no-repeat;\n background-size: 30px;\n width: 55px;\n height: 55px;\n overflow: hidden;\n\n input {\n display: block;\n width: 100%;\n height: 100%;\n font-size: 100px;\n opacity: 0;\n }\n }\n }\n\n .title {\n width: 100%;\n height: 40px;\n border-bottom: 1px solid #ddd;\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n padding: 10px 0 0 10px;\n box-sizing: border-box;\n }\n\n .buttons {\n position: absolute;\n top: 5px;\n right: 50px;\n }\n\n .close {\n position: absolute;\n top: 5px;\n right: 5px;\n font-size: 25px;\n color: #ccc;\n cursor: pointer;\n }\n\n .form-line {\n margin-bottom: 5px;\n font-size: 14px;\n color: #333;\n display: flex;\n\n .lable {\n width: 50px;\n flex-shrink: 0;\n }\n\n .con {\n flex-grow: 1;\n }\n\n img {\n width: 30%;\n }\n }\n }\n\n &.is-show-aside {\n left: 0;\n\n .content {\n left: 0px;\n }\n }\n}\n</style>\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-view.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-view.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./workorder-view.vue?vue&type=template&id=04313ef6&scoped=true&\"\nimport script from \"./workorder-view.vue?vue&type=script&lang=js&\"\nexport * from \"./workorder-view.vue?vue&type=script&lang=js&\"\nimport style0 from \"./workorder-view.vue?vue&type=style&index=0&id=04313ef6&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"04313ef6\",\n null\n \n)\n\nexport default component.exports","\n<template>\n <div>\n <div class=\"me-head\">\n <span>\n <i class=\"el-icon-tickets\"></i>\n <span slot=\"title\">工单管理</span>\n <span style=\"font-size:15px;margin-left: 30px;color:#e7a646\">当前有\n <strong style=\"color: #f56c6c\">5</strong>\n 条待处理, 和<strong style=\"color: #f56c6c\"> 8</strong>\n 条待回复工单</span>\n </span>\n <div>\n <el-button size=\"mini\">分类设置</el-button>\n </div>\n </div>\n <el-divider />\n <div class=\"container-box\">\n <div class=\"menu\">\n <el-tabs @tab-click=\"tabsChange\" tab-position=\"left\" style=\"width:200px;height: 80vh;\">\n <template size=\"small\" v-for=\"item in workorderTypes\" border>\n <el-tab-pane :key=\"item.id\" :label=\"item.title + '('+item.count+')'\"></el-tab-pane>\n </template>\n </el-tabs>\n </div>\n <div class=\"table-content\">\n <el-table :data=\"tableData.list\" style=\"width: 100%\" v-loading=\"loading\">\n <el-table-column type=\"index\" :index=\"indexMethod\" width=\"60\" label=\"#序号\"></el-table-column>\n <el-table-column prop=\"title\" label=\"工单标题\"></el-table-column>\n <el-table-column prop=\"status\" label=\"当前状态\">\n <template slot-scope=\"scope\">\n <el-tag type=\"warning\" v-if=\"scope.row.status == 0\">等待客服处理</el-tag>\n <el-tag type=\"warning\" v-if=\"scope.row.status == 2\">等待客服回复</el-tag>\n <el-tag type=\"success\" v-if=\"scope.row.status == 1\">已有客服回复</el-tag>\n <el-tag type=\"info\" v-if=\"scope.row.status == 3\"> 工单已结束 </el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"u_nickname\" label=\"用户(发布者)\"></el-table-column>\n <el-table-column prop=\"a_nickname\" label=\"最后回复者(客服)\">\n <template slot-scope=\"scope\">\n {{scope.row.a_nickname || '-----'}}\n </template>\n </el-table-column>\n <el-table-column prop=\"create_at\" label=\"创建时间\">\n <template slot-scope=\"scope\">{{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}</template>\n </el-table-column>\n <el-table-column prop=\"operating\" align=\"center\" width=\"150\" label=\"操作\">\n <template slot-scope=\"scope\">\n <el-button @click=\"onShow(scope.row)\" size=\"mini\">查 看</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\"\n ></el-pagination>\n </el-row>\n </div>\n </div>\n <WorkOrderView :workorderTypes=\"workorderTypes\" :prop=\"showWorkOrder\" v-model=\"isShowWorkOrderView\" />\n </div>\n</template>\n<script>\nimport axios from \"axios\";\nimport WorkOrderView from \"./workorder-view\"\nexport default {\n name: \"workorder-index\",\n components: {\n WorkOrderView\n },\n data() {\n return {\n loading: true,\n isShowWorkOrderView: false,\n showWorkOrder: {},\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n total: 0,\n status: \"\",\n del: 0,\n tid: 0\n },\n tabIndex: 0,\n del: 0,\n workorderTypes:[\n {\n \"id\": 0,\n \"count\": 0,\n \"title\": \"全部工单\"\n }\n ],\n };\n },\n computed: {\n workStatus(){\n if(this.tabIndex == this.workorderTypes.length-1 && this.workorderTypes.length > 1){\n return '0,1,2,3'\n }\n return \"0,1,2\"\n }\n },\n created() {\n this.getWorkorderList();\n this.getWorkorderTypes()\n },\n methods: {\n onShow(item){\n this.showWorkOrder = item\n this.isShowWorkOrderView = true\n },\n tabsChange(tab){\n this.tabIndex = parseInt(tab.index)\n this.del = 0\n if(this.tabIndex == this.workorderTypes.length-1) this.del = 1\n this.changeType(this.workorderTypes[this.tabIndex].id)\n },\n // 行号\n indexMethod(index) {\n return (\n (this.tableData.page_on - 1) * this.tableData.page_size + index + 1\n );\n },\n changeType(tid){\n this.tableData.tid = tid;\n this.getWorkorderList(1);\n },\n // 获取数据\n getWorkorderList(index) {\n if (index) this.tableData.page_on = index;\n this.tableData.status = this.workStatus\n this.tableData.del = this.del\n const { page_on, page_size, tid, status, del } = this.tableData;\n axios\n .post(\"/workorder/list\", { page_on, page_size, tid, status, del })\n .then(response => {\n this.loading = false;\n this.tableData = response.data.data;\n })\n .catch(error => {\n this.loading = false;\n this.$message.error(error.response.data.message);\n });\n },\n // 获取类型数据\n getWorkorderTypes() {\n axios\n .get(\"/workorder/types\")\n .then(response => {\n this.workorderTypes = this.workorderTypes.concat(response.data.data);\n for(var i=0; i<response.data.data.length; i++){\n this.workorderTypes[0].count += response.data.data[i].count\n }\n this.workorderTypes.push({\n \"id\": -1,\n \"count\": 0,\n \"title\": \"已结单\"\n })\n this.workorderTypes.push({\n \"id\": -2,\n \"count\": 0,\n \"title\": \"回收站\"\n })\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val;\n this.getWorkorderList();\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val;\n this.getWorkorderList();\n }\n },\n watch: {\n isShowWorkOrderView(show){\n if(!show){\n this.getWorkorderList();\n }\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.me-head {\n height: 30px;\n display: flex;\n align-items: center;\n font-size: 20px;\n justify-content: space-between;\n color: #666;\n\n i {\n margin-right: 5px;\n }\n}\n.container-box{\n display flex\n .menu{\n flex-shrink: 0;\n width 180px;\n }\n .table-content{\n flex-grow 1\n }\n}\n</style>\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=28a53d25&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=28a53d25&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"28a53d25\",\n null\n \n)\n\nexport default component.exports","'use strict';\nvar $defineProperty = require('./_object-dp');\nvar createDesc = require('./_property-desc');\n\nmodule.exports = function (object, index, value) {\n if (index in object) $defineProperty.f(object, index, createDesc(0, value));\n else object[index] = value;\n};\n","'use strict';\nvar $export = require('./_export');\nvar $forEach = require('./_array-methods')(0);\nvar STRICT = require('./_strict-method')([].forEach, true);\n\n$export($export.P + $export.F * !STRICT, 'Array', {\n // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])\n forEach: function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments[1]);\n }\n});\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d086e898"],{"0e51":function(t,e,o){"use strict";var s=o("99fd"),a=o.n(s);a.a},"1e4b":function(t,e,o){"use strict";o.r(e);var s=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-container",[t.$store.state.isShowAside?o("me-aside"):t._e(),o("el-container",{staticStyle:{"min-width":"800px"}},[o("el-header",{staticClass:"mini-im-header"},[o("me-heaser",{attrs:{title:"sdfsd"}})],1),o("el-main",{style:"background-color:"+t.workbenchBgColor},[o("router-view")],1)],1),o("EditProfile"),o("EditPassword")],1)},a=[],i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-aside",{staticClass:"mini-im-aside",attrs:{width:"200px"}},[s("div",{staticClass:"mini-im-logo",on:{click:function(e){return t.$router.push({path:"/index"})}}},[t.$store.getters.systemInfo.logo?s("div",[s("img",{attrs:{src:t.$store.getters.systemInfo.logo+"?id="+Date.now(),alt:""}})]):s("div",[s("img",{attrs:{src:o("8e69"),alt:""}})])]),s("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":t.menuActive,"background-color":"#3e444a","text-color":"#fff",router:!0,"active-text-color":"#ffd04b"}},[s("el-menu-item",{attrs:{index:"/index"}},[s("i",{staticClass:"el-icon-s-home"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("首页")])]),s("el-menu-item",{attrs:{index:"/workbench"}},[s("el-badge",{staticStyle:{width:"100%"},attrs:{hidden:0==t.$store.getters.readCount,value:t.$store.getters.readCount,max:99}},[s("div",[s("i",{staticClass:"el-icon-s-platform"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("工作台")])])])],1),s("el-menu-item",{attrs:{index:"/knowledge"}},[s("i",{staticClass:"el-icon-reading"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("知识库")])]),s("el-menu-item",{attrs:{index:"/robot"}},[s("i",{staticClass:"el-icon-picture-outline-round"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("机器人")])]),s("el-menu-item",{attrs:{index:"/customer"}},[s("i",{staticClass:"el-icon-headset"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("客服管理")])]),s("el-menu-item",{attrs:{index:"/users"}},[s("i",{staticClass:"el-icon-user"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("用户管理")])]),s("el-menu-item",{attrs:{index:"/chat_record"}},[s("i",{staticClass:"el-icon-time"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("服务记录")])]),s("el-menu-item",{attrs:{index:"/system"}},[s("i",{staticClass:"el-icon-setting"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("系统设置")])])],1),s("div",{staticClass:"fix-bottom"},[s("a",{attrs:{title:"去给作者Star",target:"_blank",href:"https://github.com/chenxianqi/kefu_server.git"}},[s("svg",{staticClass:"github-logo",attrs:{height:"23",viewBox:"0 0 16 16",version:"1.1",width:"23","aria-hidden":"true"}},[s("path",{attrs:{fill:"#fff","fill-rule":"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"}})]),s("span",[t._v(" Github")])])])],1)},n=[],r={name:"mini-im-aside",data:function(){return{menuActive:"/index"}},mounted:function(){this.setHeaderTitle()},methods:{setHeaderTitle:function(){var t;switch(this.menuActive=this.$route.path,this.menuActive){case"/index":t="首页";break;case"/workbench":t="工作台";break;case"/knowledge":t="知识库";break;case"/robot":t="机器人";break;case"/customer":t="客服管理";break;case"/users":t="用户管理";break;case"/system":t="系统设置";break}this.$store.commit("onChangeHeaserTitle",t)}},watch:{$route:function(){this.setHeaderTitle()}}},l=r,c=(o("0e51"),o("2877")),d=Object(c["a"])(l,i,n,!1,null,null,null),m=d.exports,u=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-row",{attrs:{type:"flex",justify:"end",gutter:20}},[o("el-col",{attrs:{span:5}},[o("el-button",{staticClass:"mini-im-button",attrs:{type:"info",icon:t.$store.state.isShowAside?"el-icon-s-fold":"el-icon-s-unfold"},on:{click:function(e){return t.$store.commit("onChangeToggleAside",!t.$store.state.isShowAside)}}})],1),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"mini-im-title"},[t._v(t._s(t.$store.state.heaserTitle))])]),o("el-col",{attrs:{span:5}},[o("el-row",{staticClass:"mini-im-dropdown",attrs:{type:"flex",justify:"end"}},[o("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommand}},[o("div",{staticClass:"el-dropdown-link"},[o("el-avatar",{staticClass:"mini-im-avatar",attrs:{size:25}},[o("img",{attrs:{src:t.$store.getters.avatar}})]),o("span",{staticStyle:{padding:"0 5px"}},[t._v(" "+t._s(t.$store.getters.nickname)+" ")]),o("i",{staticClass:"el-icon-arrow-down el-icon--right"})],1),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[o("el-dropdown-item",{attrs:{command:"a"}},[o("i",{staticClass:"el-icon-user icon"}),t._v("\n 修改资料\n ")]),o("el-dropdown-item",{attrs:{command:"b"}},[o("i",{staticClass:"el-icon-unlock icon"}),t._v("\n 修改密码\n ")]),o("el-dropdown-item",{attrs:{command:"c",divided:""}},[o("i",{staticClass:"el-icon-caret-right icon"}),t._v("\n 退出登录\n ")])],1)],1)],1)],1)],1)},f=[],p=o("bc3a"),h=o.n(p),g={name:"mini-im-aside",data:function(){return{bgColor:"#ffffff"}},props:{title:String},methods:{logout:function(){var t=this;h.a.put("/admin/online/0"),h.a.get("/auth/logout").then((function(){t.$store.commit("onReset"),t.$store.commit("onChangeAdminInfo",null),t.$router.push({path:"/login"}),t.$mimcInstance.logout(),t.$store.commit("onIsLogin",!1),localStorage.clear()})).catch((function(e){t.$message.error("退出失败"),console.log(e)}))},handleCommand:function(t){var e=this;switch(t){case"a":this.$store.commit("onChangeEditDialogFormVisible",!0);break;case"b":this.$store.commit("onChangeEditPasswordDialogFormVisible",!0);break;case"c":this.$confirm("您确定要退出登录吗? ","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){return e.logout()}));break}}}},b=g,v=(o("8a1c"),Object(c["a"])(b,u,f,!1,null,"7a297760",null)),w=v.exports,_=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-dialog",{attrs:{width:"500px",title:"修改资料","show-close":!1,visible:t.$store.state.editDialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.$store.state,"editDialogFormVisible",e)}}},[o("el-form",{attrs:{model:t.form}},[o("el-form-item",{attrs:{label:"头像","label-width":t.formLabelWidth}},[o("el-row",{attrs:{gutter:10}},[o("el-col",{attrs:{span:3}},[o("div",{staticClass:"mini-im-file-button",attrs:{title:"点击上传图片"}},[o("el-avatar",{attrs:{size:50,src:t.form.avatar||t.$store.state.avatar}}),o("input",{attrs:{onClick:"this.value = null",type:"file",accept:"image/*"},on:{change:t.changeFile}}),o("div",{directives:[{name:"show",rawName:"v-show",value:t.isUploading,expression:"isUploading"}],staticClass:"mini-im-file-percent"},[o("span",[t._v(t._s(t.uploadPercent))])])],1)]),o("el-col",{attrs:{span:6}})],1)],1),o("el-form-item",{attrs:{label:"账号","label-width":t.formLabelWidth}},[t._v("\n "+t._s(t.form.username)+"\n ")]),o("el-form-item",{attrs:{label:"昵称","label-width":t.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请输入昵称",autocomplete:"off"},model:{value:t.form.nickname,callback:function(e){t.$set(t.form,"nickname",e)},expression:"form.nickname"}})],1),o("el-form-item",{attrs:{label:"联系方式","label-width":t.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请输入联系方式",autocomplete:"off"},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})],1),o("el-form-item",{attrs:{label:"自动回复语","label-width":t.formLabelWidth}},[o("el-input",{attrs:{type:"textarea",placeholder:"请输入自动回复语,不支持emoji,请使用简单语句描述",autocomplete:"off"},model:{value:t.form.auto_reply,callback:function(e){t.$set(t.form,"auto_reply",e)},expression:"form.auto_reply"}})],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:t.closeModal}},[t._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)},$=[],k=o("fb21"),x={name:"mini-im-edit-profile",data:function(){return{form:{id:"",avatar:"",username:"",nickname:"",phone:"",auto_reply:""},formLabelWidth:"90px",isUploading:!1,uploadPercent:""}},computed:{adminInfo:function(){return this.$store.state.adminInfo}},methods:{closeModal:function(){this.$store.commit("onChangeEditDialogFormVisible",!1)},save:function(){var t=this,e=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});h.a.put("/admin",this.form).then((function(o){console.log(o),e.close(),t.$message.success("资料修改成功"),t.closeModal(),t.$store.dispatch("ON_GET_ME")})).catch((function(o){e.close(),t.$message.error(o.response.data.message)}))},changeFile:function(t){var e=this;Object(k["a"])({file:t.target.files[0],progress:function(t){e.isUploading=!0,e.uploadPercent=t+"%"},success:function(t){e.isUploading=!1,e.uploadPercent="",e.$message.success("上传成功");var o=e.$store.getters.uploadToken.host+"/"+t;e.form.avatar=o},error:function(t){e.isUploading=!1,e.uploadPercent="",e.$message.error(t.message)}})}},watch:{adminInfo:function(){if(this.adminInfo){var t=this.$store.state.adminInfo,e=t.avatar,o=t.username,s=t.nickname,a=t.phone,i=t.id,n=t.auto_reply;this.form={avatar:e,username:o,nickname:s,phone:a,id:i,auto_reply:n}}}}},C=x,y=(o("5d0e"),Object(c["a"])(C,_,$,!1,null,"0d4bcba3",null)),E=y.exports,P=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-dialog",{attrs:{width:"500px",title:"修改密码","show-close":!1,visible:t.$store.state.editPasswordDialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.$store.state,"editPasswordDialogFormVisible",e)}}},[o("el-form",{attrs:{model:t.form}},[o("el-form-item",{attrs:{label:"旧密码","label-width":t.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请输入旧密码",autocomplete:"off"},model:{value:t.form.old_password,callback:function(e){t.$set(t.form,"old_password",e)},expression:"form.old_password"}})],1),o("el-form-item",{attrs:{label:"新密码","label-width":t.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请输入新密码",autocomplete:"off"},model:{value:t.form.new_password,callback:function(e){t.$set(t.form,"new_password",e)},expression:"form.new_password"}})],1),o("el-form-item",{attrs:{label:"确认密码","label-width":t.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请再次输入新密码",autocomplete:"off"},model:{value:t.form.enter_password,callback:function(e){t.$set(t.form,"enter_password",e)},expression:"form.enter_password"}})],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:t.closeModal}},[t._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)},A=[],F={name:"mini-im-create-knowledge",data:function(){return{form:{old_password:"",new_password:"",enter_password:""},robotSwitch:!0,formLabelWidth:"80px"}},props:{dialogFormVisible:Boolean},mounted:function(){},methods:{closeModal:function(){this.resize(),this.$store.commit("onChangeEditPasswordDialogFormVisible",!1)},save:function(){var t=this,e=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});h.a.put("/admin/password",this.form).then((function(o){console.log(o),e.close(),t.$message.success("资料修改成功"),t.closeModal(),t.resize()})).catch((function(o){e.close(),t.$message.error(o.response.data.message)}))},resize:function(){this.form={old_password:"",new_password:"",enter_password:""}}}},L=F,I=Object(c["a"])(L,P,A,!1,null,"5987490c",null),M=I.exports,S={name:"home",components:{MeAside:m,MeHeaser:w,EditProfile:E,EditPassword:M},computed:{workbenchBgColor:function(){return"/workbench"==this.$route.path?this.$store.getters.workbenchBgColor:"#ffffff"}}},T=S,W=(o("c5f8"),Object(c["a"])(T,s,a,!1,null,"61095d10",null));e["default"]=W.exports},"5d0e":function(t,e,o){"use strict";var s=o("710f"),a=o.n(s);a.a},"710f":function(t,e,o){},"8a1c":function(t,e,o){"use strict";var s=o("9aba"),a=o.n(s);a.a},"8e69":function(t,e,o){t.exports=o.p+"img/kefu_logo.9c308a55.png"},"98be":function(t,e,o){},"99fd":function(t,e,o){},"9aba":function(t,e,o){},c5f8:function(t,e,o){"use strict";var s=o("98be"),a=o.n(s);a.a}}]);
//# sourceMappingURL=chunk-d086e898.72fb38e4.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/components/me-aside.vue?48f3","webpack:///./src/views/index.vue?1588","webpack:///./src/components/me-aside.vue?4e46","webpack:///src/components/me-aside.vue","webpack:///./src/components/me-aside.vue?761f","webpack:///./src/components/me-aside.vue","webpack:///./src/components/me-header.vue?d953","webpack:///src/components/me-header.vue","webpack:///./src/components/me-header.vue?8b81","webpack:///./src/components/me-header.vue","webpack:///./src/components/me-edit-profile.vue?f354","webpack:///src/components/me-edit-profile.vue","webpack:///./src/components/me-edit-profile.vue?b167","webpack:///./src/components/me-edit-profile.vue","webpack:///./src/components/me-edit-password.vue?c2bd","webpack:///src/components/me-edit-password.vue","webpack:///./src/components/me-edit-password.vue?7d42","webpack:///./src/components/me-edit-password.vue","webpack:///src/views/index.vue","webpack:///./src/views/index.vue?a66e","webpack:///./src/views/index.vue","webpack:///./src/components/me-edit-profile.vue?ef1b","webpack:///./src/components/me-header.vue?35bc","webpack:///./src/assets/kefu_logo.png","webpack:///./src/views/index.vue?c757"],"names":["render","_vm","this","_h","$createElement","_c","_self","$store","state","_e","staticStyle","staticClass","attrs","style","workbenchBgColor","staticRenderFns","on","$event","$router","push","path","getters","systemInfo","logo","Date","now","menuActive","slot","_v","readCount","name","data","mounted","methods","setHeaderTitle","title","$route","commit","watch","component","isShowAside","_s","heaserTitle","handleCommand","avatar","nickname","bgColor","props","String","logout","console","log","error","editDialogFormVisible","$set","form","formLabelWidth","changeFile","directives","rawName","value","expression","uploadPercent","username","model","callback","$$v","closeModal","save","computed","adminInfo","lock","text","spinner","background","loading","close","editPasswordDialogFormVisible","dialogFormVisible","Boolean","resize","components","MeAside","module","exports"],"mappings":"kHAAA,yBAA+gB,EAAG,G,2CCAlhB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,eAAe,CAAEJ,EAAIM,OAAOC,MAAiB,YAAEH,EAAG,YAAYJ,EAAIQ,KAAKJ,EAAG,eAAe,CAACK,YAAY,CAAC,YAAY,UAAU,CAACL,EAAG,YAAY,CAACM,YAAY,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"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-aside.vue?vue&type=style&index=0&lang=stylus&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-aside.vue?vue&type=style&index=0&lang=stylus&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-container',[(_vm.$store.state.isShowAside)?_c('me-aside'):_vm._e(),_c('el-container',{staticStyle:{\"min-width\":\"800px\"}},[_c('el-header',{staticClass:\"mini-im-header\"},[_c('me-heaser',{attrs:{\"title\":\"sdfsd\"}})],1),_c('el-main',{style:('background-color:' + _vm.workbenchBgColor)},[_c('router-view')],1)],1),_c('EditProfile'),_c('EditPassword')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-aside',{staticClass:\"mini-im-aside\",attrs:{\"width\":\"200px\"}},[_c('div',{staticClass:\"mini-im-logo\",on:{\"click\":function($event){return _vm.$router.push({ path: '/index'})}}},[(_vm.$store.getters.systemInfo.logo)?_c('div',[_c('img',{attrs:{\"src\":_vm.$store.getters.systemInfo.logo + '?id=' + Date.now(),\"alt\":\"\"}})]):_c('div',[_c('img',{attrs:{\"src\":require(\"../assets/kefu_logo.png\"),\"alt\":\"\"}})])]),_c('el-menu',{staticClass:\"el-menu-vertical-demo\",attrs:{\"default-active\":_vm.menuActive,\"background-color\":\"#3e444a\",\"text-color\":\"#fff\",\"router\":true,\"active-text-color\":\"#ffd04b\"}},[_c('el-menu-item',{attrs:{\"index\":\"/index\"}},[_c('i',{staticClass:\"el-icon-s-home\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"首页\")])]),_c('el-menu-item',{attrs:{\"index\":\"/workbench\"}},[_c('el-badge',{staticStyle:{\"width\":\"100%\"},attrs:{\"hidden\":_vm.$store.getters.readCount == 0,\"value\":_vm.$store.getters.readCount,\"max\":99}},[_c('div',[_c('i',{staticClass:\"el-icon-s-platform\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"工作台\")])])])],1),_c('el-menu-item',{attrs:{\"index\":\"/knowledge\"}},[_c('i',{staticClass:\"el-icon-reading\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"知识库\")])]),_c('el-menu-item',{attrs:{\"index\":\"/robot\"}},[_c('i',{staticClass:\"el-icon-picture-outline-round\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"机器人\")])]),_c('el-menu-item',{attrs:{\"index\":\"/customer\"}},[_c('i',{staticClass:\"el-icon-headset\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"客服管理\")])]),_c('el-menu-item',{attrs:{\"index\":\"/users\"}},[_c('i',{staticClass:\"el-icon-user\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"用户管理\")])]),_c('el-menu-item',{attrs:{\"index\":\"/chat_record\"}},[_c('i',{staticClass:\"el-icon-time\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"服务记录\")])]),_c('el-menu-item',{attrs:{\"index\":\"/system\"}},[_c('i',{staticClass:\"el-icon-setting\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"系统设置\")])])],1),_c('div',{staticClass:\"fix-bottom\"},[_c('a',{attrs:{\"title\":\"去给作者Star\",\"target\":\"_blank\",\"href\":\"https://github.com/chenxianqi/kefu_server.git\"}},[_c('svg',{staticClass:\"github-logo\",attrs:{\"height\":\"23\",\"viewBox\":\"0 0 16 16\",\"version\":\"1.1\",\"width\":\"23\",\"aria-hidden\":\"true\"}},[_c('path',{attrs:{\"fill\":\"#fff\",\"fill-rule\":\"evenodd\",\"d\":\"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z\"}})]),_c('span',[_vm._v(\" Github\")])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-aside width=\"200px\" class=\"mini-im-aside\">\n <div class=\"mini-im-logo\" @click=\"$router.push({ path: '/index'})\">\n <div v-if=\"$store.getters.systemInfo.logo\"><img :src=\"$store.getters.systemInfo.logo + '?id=' + Date.now()\" alt=\"\"></div>\n <div v-else><img src=\"../assets/kefu_logo.png\" alt=\"\"></div>\n </div>\n <el-menu\n :default-active=\"menuActive\"\n class=\"el-menu-vertical-demo\"\n background-color=\"#3e444a\"\n text-color=\"#fff\"\n :router=\"true\"\n active-text-color=\"#ffd04b\"\n >\n <el-menu-item index=\"/index\">\n <i class=\"el-icon-s-home\"></i>\n <span slot=\"title\">首页</span>\n </el-menu-item>\n <el-menu-item index=\"/workbench\">\n <el-badge :hidden=\"$store.getters.readCount == 0\" :value=\"$store.getters.readCount\" :max=\"99\" style=\"width: 100%;\">\n <div>\n <i class=\"el-icon-s-platform\"></i>\n <span slot=\"title\">工作台</span>\n </div>\n </el-badge>\n </el-menu-item>\n <el-menu-item index=\"/knowledge\">\n <i class=\"el-icon-reading\"></i>\n <span slot=\"title\">知识库</span>\n </el-menu-item>\n <el-menu-item index=\"/robot\">\n <i class=\"el-icon-picture-outline-round\"></i>\n <span slot=\"title\">机器人</span>\n </el-menu-item>\n <el-menu-item index=\"/customer\">\n <i class=\"el-icon-headset\"></i>\n <span slot=\"title\">客服管理</span>\n </el-menu-item>\n <el-menu-item index=\"/users\">\n <i class=\"el-icon-user\"></i>\n <span slot=\"title\">用户管理</span>\n </el-menu-item>\n <el-menu-item index=\"/chat_record\">\n <i class=\"el-icon-time\"></i>\n <span slot=\"title\">服务记录</span>\n </el-menu-item>\n <el-menu-item index=\"/system\">\n <i class=\"el-icon-setting\"></i>\n <span slot=\"title\">系统设置</span>\n </el-menu-item>\n \n </el-menu>\n <div class=\"fix-bottom\">\n <a title=\"去给作者Star\" target=\"_blank\" href=\"https://github.com/chenxianqi/kefu_server.git\">\n <svg class=\"github-logo\" height=\"23\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"23\" aria-hidden=\"true\"><path fill=\"#fff\" fill-rule=\"evenodd\" d=\"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z\"></path></svg>\n <span> Github</span>\n </a>\n </div>\n </el-aside>\n</template>\n<script>\nexport default {\n name: 'mini-im-aside',\n data(){\n return {\n menuActive: \"/index\"\n }\n },\n mounted(){\n this.setHeaderTitle()\n },\n methods: {\n setHeaderTitle(){\n this.menuActive = this.$route.path\n var title\n switch(this.menuActive){\n case \"/index\":\n title = \"首页\"\n break\n case \"/workbench\":\n title = \"工作台\"\n break\n case \"/knowledge\":\n title = \"知识库\"\n break\n case \"/robot\":\n title = \"机器人\"\n break\n case \"/customer\":\n title = \"客服管理\"\n break\n case \"/users\":\n title = \"用户管理\"\n break\n case \"/system\":\n title = \"系统设置\"\n break\n }\n this.$store.commit(\"onChangeHeaserTitle\", title)\n }\n },\n watch: {\n \"$route\"(){\n this.setHeaderTitle()\n }\n }\n}\n</script>\n<style lang=\"stylus\">\n .mini-im-aside{\n background-color: #3e444a\n display flex\n flex-direction column\n .mini-im-logo{\n width 100%;\n height: 100px;\n display flex\n justify-content center\n flex-direction column\n align-items center\n border-bottom 1px solid #ddd\n img{\n height : 30px\n }\n }\n .el-menu{\n border-right 0\n }\n .el-badge__content{\n border 0\n top 30px\n }\n .fix-bottom{\n flex-grow 1\n display flex\n flex-direction column\n justify-content flex-end\n padding-bottom 30px\n a{\n cursor pointer\n padding 0 30px\n text-align center\n align-items center\n color #fff\n display flex\n align-content center\n .github-log{\n width 50px\n }\n span{\n margin-top 3px\n margin-left 5px\n }\n }\n }\n }\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-aside.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-aside.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me-aside.vue?vue&type=template&id=b3aabc52&\"\nimport script from \"./me-aside.vue?vue&type=script&lang=js&\"\nexport * from \"./me-aside.vue?vue&type=script&lang=js&\"\nimport style0 from \"./me-aside.vue?vue&type=style&index=0&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-row',{attrs:{\"type\":\"flex\",\"justify\":\"end\",\"gutter\":20}},[_c('el-col',{attrs:{\"span\":5}},[_c('el-button',{staticClass:\"mini-im-button\",attrs:{\"type\":\"info\",\"icon\":_vm.$store.state.isShowAside ? 'el-icon-s-fold' : 'el-icon-s-unfold'},on:{\"click\":function($event){return _vm.$store.commit('onChangeToggleAside', !_vm.$store.state.isShowAside)}}})],1),_c('el-col',{attrs:{\"span\":16}},[_c('div',{staticClass:\"mini-im-title\"},[_vm._v(_vm._s(_vm.$store.state.heaserTitle))])]),_c('el-col',{attrs:{\"span\":5}},[_c('el-row',{staticClass:\"mini-im-dropdown\",attrs:{\"type\":\"flex\",\"justify\":\"end\"}},[_c('el-dropdown',{attrs:{\"trigger\":\"click\"},on:{\"command\":_vm.handleCommand}},[_c('div',{staticClass:\"el-dropdown-link\"},[_c('el-avatar',{staticClass:\"mini-im-avatar\",attrs:{\"size\":25}},[_c('img',{attrs:{\"src\":_vm.$store.getters.avatar}})]),_c('span',{staticStyle:{\"padding\":\"0 5px\"}},[_vm._v(\" \"+_vm._s(_vm.$store.getters.nickname)+\" \")]),_c('i',{staticClass:\"el-icon-arrow-down el-icon--right\"})],1),_c('el-dropdown-menu',{attrs:{\"slot\":\"dropdown\"},slot:\"dropdown\"},[_c('el-dropdown-item',{attrs:{\"command\":\"a\"}},[_c('i',{staticClass:\"el-icon-user icon\"}),_vm._v(\"\\n 修改资料\\n \")]),_c('el-dropdown-item',{attrs:{\"command\":\"b\"}},[_c('i',{staticClass:\"el-icon-unlock icon\"}),_vm._v(\"\\n 修改密码\\n \")]),_c('el-dropdown-item',{attrs:{\"command\":\"c\",\"divided\":\"\"}},[_c('i',{staticClass:\"el-icon-caret-right icon\"}),_vm._v(\"\\n 退出登录\\n \")])],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-row type=\"flex\" justify=\"end\" :gutter=\"20\">\n <el-col :span=\"5\">\n <el-button\n @click=\"$store.commit('onChangeToggleAside', !$store.state.isShowAside)\"\n class=\"mini-im-button\"\n type=\"info\"\n :icon=\"$store.state.isShowAside ? 'el-icon-s-fold' : 'el-icon-s-unfold'\"\n >\n </el-button>\n </el-col>\n <el-col :span=\"16\" >\n <div class=\"mini-im-title\">{{$store.state.heaserTitle}}</div>\n </el-col>\n <el-col :span=\"5\">\n <el-row type=\"flex\" justify=\"end\" class=\"mini-im-dropdown\">\n <el-dropdown @command=\"handleCommand\" trigger=\"click\">\n <div class=\"el-dropdown-link\">\n <el-avatar :size=\"25\" class=\"mini-im-avatar\">\n <img :src=\"$store.getters.avatar\"/>\n </el-avatar>\n <span style=\"padding:0 5px;\"> {{$store.getters.nickname}} </span>\n <i class=\"el-icon-arrow-down el-icon--right\"></i>\n </div>\n <el-dropdown-menu slot=\"dropdown\">\n <el-dropdown-item command=\"a\">\n <i class=\"el-icon-user icon\"></i>\n 修改资料\n </el-dropdown-item>\n <el-dropdown-item command=\"b\">\n <i class=\"el-icon-unlock icon\"></i>\n 修改密码\n </el-dropdown-item>\n <el-dropdown-item command=\"c\" divided>\n <i class=\"el-icon-caret-right icon\"></i>\n 退出登录\n </el-dropdown-item>\n </el-dropdown-menu>\n </el-dropdown>\n </el-row>\n </el-col>\n </el-row>\n</template>\n<script>\nimport axios from 'axios'\nexport default {\n name: \"mini-im-aside\",\n data(){\n return {\n bgColor: \"#ffffff\"\n }\n },\n props: {\n title: String\n },\n methods: {\n // 退出登录\n logout(){\n axios.put('/admin/online/0')\n axios.get('/auth/logout')\n .then(() => {\n this.$store.commit(\"onReset\")\n this.$store.commit(\"onChangeAdminInfo\", null)\n this.$router.push({ path: '/login'})\n this.$mimcInstance.logout()\n this.$store.commit(\"onIsLogin\", false)\n localStorage.clear()\n })\n .catch(error => {\n this.$message.error('退出失败')\n console.log(error)\n })\n },\n handleCommand(command){\n switch(command){\n case 'a':\n this.$store.commit(\"onChangeEditDialogFormVisible\", true)\n break\n case 'b':\n this.$store.commit(\"onChangeEditPasswordDialogFormVisible\", true)\n break\n case 'c':\n this.$confirm('您确定要退出登录吗? ', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => this.logout())\n break\n\n }\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-header {\n background-color: #545c64;\n border-bottom: 1px solid #545c64;\n .mini-im-dropdown{\n height 100%\n }\n .mini-im-button{\n border 0\n font-size 35px\n display block\n background 0\n padding-left 0\n }\n .mini-im-title{\n color #fff\n font-size 16px\n text-align center\n line-height 60px\n }\n .icon {\n color: #fff;\n }\n .el-dropdown-link {\n cursor: pointer;\n display flex\n height 100%\n line-height 60px\n align-items center\n color: #fff;\n }\n .el-icon-arrow-down {\n font-size: 12px;\n }\n}\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-header.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-header.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me-header.vue?vue&type=template&id=7a297760&scoped=true&\"\nimport script from \"./me-header.vue?vue&type=script&lang=js&\"\nexport * from \"./me-header.vue?vue&type=script&lang=js&\"\nimport style0 from \"./me-header.vue?vue&type=style&index=0&id=7a297760&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7a297760\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"500px\",\"title\":\"修改资料\",\"show-close\":false,\"visible\":_vm.$store.state.editDialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){return _vm.$set(_vm.$store.state, \"editDialogFormVisible\", $event)}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"头像\",\"label-width\":_vm.formLabelWidth}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('el-avatar',{attrs:{\"size\":50,\"src\":_vm.form.avatar || _vm.$store.state.avatar}}),_c('input',{attrs:{\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.changeFile}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploading),expression:\"isUploading\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadPercent))])])],1)]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"账号\",\"label-width\":_vm.formLabelWidth}},[_vm._v(\"\\n \"+_vm._s(_vm.form.username)+\"\\n \")]),_c('el-form-item',{attrs:{\"label\":\"昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"联系方式\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入联系方式\",\"autocomplete\":\"off\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"自动回复语\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"placeholder\":\"请输入自动回复语,不支持emoji,请使用简单语句描述\",\"autocomplete\":\"off\"},model:{value:(_vm.form.auto_reply),callback:function ($$v) {_vm.$set(_vm.form, \"auto_reply\", $$v)},expression:\"form.auto_reply\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog width=\"500px\" title=\"修改资料\" :show-close=\"false\" :visible.sync=\"$store.state.editDialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"头像\" :label-width=\"formLabelWidth\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <el-avatar :size=\"50\" :src=\"form.avatar || $store.state.avatar\"></el-avatar>\n <input onClick=\"this.value = null\" @change=\"changeFile\" type=\"file\" accept=\"image/*\">\n <div v-show=\"isUploading\" class=\"mini-im-file-percent\">\n <span>{{uploadPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\">\n </el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"账号\" :label-width=\"formLabelWidth\">\n {{form.username}}\n </el-form-item>\n <el-form-item label=\"昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"联系方式\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.phone\" placeholder=\"请输入联系方式\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"自动回复语\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.auto_reply\" type=\"textarea\" placeholder=\"请输入自动回复语,不支持emoji,请使用简单语句描述\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nimport upload from '../common/upload'\nexport default {\n name: 'mini-im-edit-profile',\n data(){\n return {\n form: {\n id: \"\",\n avatar: \"\",\n username: \"\",\n nickname: '',\n phone: '',\n auto_reply: ''\n },\n formLabelWidth: \"90px\",\n isUploading: false,\n uploadPercent: \"\"\n }\n },\n computed: {\n adminInfo(){\n return this.$store.state.adminInfo\n }\n },\n methods: {\n // 关闭窗口\n closeModal(){\n this.$store.commit(\"onChangeEditDialogFormVisible\", false)\n },\n // 保存\n save(){\n const loading = this.$loading({\n lock: true,\n text: '保存中...',\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.5)'\n });\n axios.put('/admin', this.form)\n .then(response => {\n console.log(response)\n loading.close();\n this.$message.success(\"资料修改成功\")\n this.closeModal()\n this.$store.dispatch('ON_GET_ME')\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message)\n });\n\n },\n // 上传头像\n changeFile(file){\n\n upload({\n file: file.target.files[0],\n progress: (percent) => {\n this.isUploading = true\n this.uploadPercent = percent + \"%\"\n },\n success: (url) => {\n this.isUploading = false\n this.uploadPercent = \"\"\n this.$message.success(\"上传成功\")\n var imgUrl = this.$store.getters.uploadToken.host +\"/\"+ url\n this.form.avatar = imgUrl\n },\n error: (err)=>{\n this.isUploading = false\n this.uploadPercent = \"\"\n this.$message.error(err.message)\n }\n });\n \n }\n },\n watch: {\n adminInfo(){\n if(!this.adminInfo) return\n const {avatar,username, nickname, phone, id, auto_reply } = this.$store.state.adminInfo\n this.form = {avatar,username, nickname, phone, id, auto_reply }\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n .mini-im-file-button{\n width 50px\n height 50px\n border-radius 50%\n position relative\n overflow hidden\n input{\n font-size 100px\n position absolute\n top 0px\n left 0px\n cursor pointer\n opacity 0\n }\n cursor pointer\n .mini-im-file-percent{\n position absolute\n top 0px\n left 0px\n width 100%\n height 100%\n display flex\n align-items center\n justify-content center\n border-radius 50%\n background-color rgba(0,0,0, .5)\n color #fff\n font-size 12px\n }\n }\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-profile.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-profile.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me-edit-profile.vue?vue&type=template&id=0d4bcba3&scoped=true&\"\nimport script from \"./me-edit-profile.vue?vue&type=script&lang=js&\"\nexport * from \"./me-edit-profile.vue?vue&type=script&lang=js&\"\nimport style0 from \"./me-edit-profile.vue?vue&type=style&index=0&id=0d4bcba3&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0d4bcba3\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"500px\",\"title\":\"修改密码\",\"show-close\":false,\"visible\":_vm.$store.state.editPasswordDialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){return _vm.$set(_vm.$store.state, \"editPasswordDialogFormVisible\", $event)}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"旧密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入旧密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.old_password),callback:function ($$v) {_vm.$set(_vm.form, \"old_password\", $$v)},expression:\"form.old_password\"}})],1),_c('el-form-item',{attrs:{\"label\":\"新密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入新密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.new_password),callback:function ($$v) {_vm.$set(_vm.form, \"new_password\", $$v)},expression:\"form.new_password\"}})],1),_c('el-form-item',{attrs:{\"label\":\"确认密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请再次输入新密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.enter_password),callback:function ($$v) {_vm.$set(_vm.form, \"enter_password\", $$v)},expression:\"form.enter_password\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog width=\"500px\" title=\"修改密码\" :show-close=\"false\" :visible.sync=\"$store.state.editPasswordDialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"旧密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.old_password\" placeholder=\"请输入旧密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"新密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.new_password\" placeholder=\"请输入新密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"确认密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.enter_password\" placeholder=\"请再次输入新密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nexport default {\n name: 'mini-im-create-knowledge',\n data(){\n return {\n form: {\n old_password: \"\",\n new_password: \"\",\n enter_password: \"\"\n },\n robotSwitch: true,\n formLabelWidth: \"80px\"\n }\n },\n props:{\n dialogFormVisible: Boolean\n },\n mounted(){\n },\n methods: {\n // 关闭\n closeModal(){\n this.resize()\n this.$store.commit(\"onChangeEditPasswordDialogFormVisible\", false)\n },\n // 保存\n save(){\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: '保存中...',\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.5)'\n });\n axios.put('/admin/password', this.form)\n .then(response => {\n console.log(response)\n loading.close();\n this.$message.success(\"资料修改成功\")\n this.closeModal()\n this.resize()\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message)\n });\n\n },\n resize(){\n this.form = {\n old_password: \"\",\n new_password: \"\",\n enter_password: \"\"\n }\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n \n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-password.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-password.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me-edit-password.vue?vue&type=template&id=5987490c&scoped=true&\"\nimport script from \"./me-edit-password.vue?vue&type=script&lang=js&\"\nexport * from \"./me-edit-password.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5987490c\",\n null\n \n)\n\nexport default component.exports","<template>\n <el-container>\n <me-aside v-if=\"$store.state.isShowAside\"></me-aside>\n <el-container style=\"min-width: 800px;\">\n <el-header class=\"mini-im-header\">\n <me-heaser title=\"sdfsd\"></me-heaser>\n </el-header>\n <el-main :style=\"'background-color:' + workbenchBgColor\">\n <router-view></router-view>\n </el-main>\n </el-container>\n <EditProfile />\n <EditPassword />\n </el-container>\n</template>\n\n<script>\n\nimport MeAside from \"@/components/me-aside.vue\";\nimport MeHeaser from \"@/components/me-header.vue\";\nimport EditProfile from \"@/components/me-edit-profile.vue\";\nimport EditPassword from \"@/components/me-edit-password.vue\";\n\nexport default {\n name: \"home\",\n components: {\n MeAside,MeHeaser,EditProfile,EditPassword\n },\n computed: {\n workbenchBgColor(){\n if(this.$route.path == \"/workbench\"){\n return this.$store.getters.workbenchBgColor\n }\n return \"#ffffff\"\n }\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n .mini-im-header{\n background-color #545c64\n border-bottom 1px solid #545c64\n }\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=61095d10&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=61095d10&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"61095d10\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-profile.vue?vue&type=style&index=0&id=0d4bcba3&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-profile.vue?vue&type=style&index=0&id=0d4bcba3&scoped=true&lang=stylus&\"","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-header.vue?vue&type=style&index=0&id=7a297760&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-header.vue?vue&type=style&index=0&id=7a297760&scoped=true&lang=stylus&\"","module.exports = __webpack_public_path__ + \"img/kefu_logo.9c308a55.png\";","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=61095d10&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=61095d10&lang=stylus&scoped=true&\""],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d086e898"],{"0e51":function(t,e,o){"use strict";var s=o("99fd"),a=o.n(s);a.a},"1e4b":function(t,e,o){"use strict";o.r(e);var s=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-container",[t.$store.state.isShowAside?o("me-aside"):t._e(),o("el-container",{staticStyle:{"min-width":"800px"}},[o("el-header",{staticClass:"mini-im-header"},[o("me-heaser",{attrs:{title:"sdfsd"}})],1),o("el-main",{style:"background-color:"+t.workbenchBgColor},[o("router-view")],1)],1),o("EditProfile"),o("EditPassword")],1)},a=[],i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-aside",{staticClass:"mini-im-aside",attrs:{width:"200px"}},[s("div",{staticClass:"mini-im-logo",on:{click:function(e){return t.$router.push({path:"/index"})}}},[t.$store.getters.systemInfo.logo?s("div",[s("img",{attrs:{src:t.$store.getters.systemInfo.logo+"?id="+Date.now(),alt:""}})]):s("div",[s("img",{attrs:{src:o("8e69"),alt:""}})])]),s("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":t.menuActive,"background-color":"#3e444a","text-color":"#fff",router:!0,"active-text-color":"#ffd04b"}},[s("el-menu-item",{attrs:{index:"/index"}},[s("i",{staticClass:"el-icon-s-home"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("首页")])]),s("el-menu-item",{attrs:{index:"/workbench"}},[s("el-badge",{staticStyle:{width:"100%"},attrs:{hidden:0==t.$store.getters.readCount,value:t.$store.getters.readCount,max:99}},[s("div",[s("i",{staticClass:"el-icon-s-platform"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("工作台")])])])],1),s("el-menu-item",{attrs:{index:"/knowledge"}},[s("i",{staticClass:"el-icon-reading"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("知识库")])]),s("el-menu-item",{attrs:{index:"/robot"}},[s("i",{staticClass:"el-icon-picture-outline-round"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("机器人")])]),s("el-menu-item",{attrs:{index:"/customer"}},[s("i",{staticClass:"el-icon-headset"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("客服管理")])]),s("el-menu-item",{attrs:{index:"/users"}},[s("i",{staticClass:"el-icon-user"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("用户管理")])]),s("el-menu-item",{attrs:{index:"/chat_record"}},[s("i",{staticClass:"el-icon-time"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("服务记录")])]),s("el-menu-item",{attrs:{index:"/system"}},[s("i",{staticClass:"el-icon-setting"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("系统设置")])])],1)],1)},n=[],r={name:"mini-im-aside",data:function(){return{menuActive:"/index"}},mounted:function(){this.setHeaderTitle()},methods:{setHeaderTitle:function(){var t;switch(this.menuActive=this.$route.path,this.menuActive){case"/index":t="首页";break;case"/workbench":t="工作台";break;case"/knowledge":t="知识库";break;case"/robot":t="机器人";break;case"/customer":t="客服管理";break;case"/workorder":t="工单管理";break;case"/users":t="用户管理";break;case"/system":t="系统设置";break}this.$store.commit("onChangeHeaserTitle",t)}},watch:{$route:function(){this.setHeaderTitle()}}},l=r,c=(o("0e51"),o("2877")),m=Object(c["a"])(l,i,n,!1,null,null,null),d=m.exports,u=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-row",{attrs:{type:"flex",justify:"end",gutter:20}},[o("el-col",{attrs:{span:5}},[o("el-button",{staticClass:"mini-im-button",attrs:{type:"info",icon:t.$store.state.isShowAside?"el-icon-s-fold":"el-icon-s-unfold"},on:{click:function(e){return t.$store.commit("onChangeToggleAside",!t.$store.state.isShowAside)}}})],1),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"mini-im-title"},[t._v(t._s(t.$store.state.heaserTitle))])]),o("el-col",{attrs:{span:5}},[o("el-row",{staticClass:"mini-im-dropdown",attrs:{type:"flex",justify:"end"}},[o("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommand}},[o("div",{staticClass:"el-dropdown-link"},[o("el-avatar",{staticClass:"mini-im-avatar",attrs:{size:25}},[o("img",{attrs:{src:t.$store.getters.avatar}})]),o("span",{staticStyle:{padding:"0 5px"}},[t._v(" "+t._s(t.$store.getters.nickname)+" ")]),o("i",{staticClass:"el-icon-arrow-down el-icon--right"})],1),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[o("el-dropdown-item",{attrs:{command:"a"}},[o("i",{staticClass:"el-icon-user icon"}),t._v("\n 修改资料\n ")]),o("el-dropdown-item",{attrs:{command:"b"}},[o("i",{staticClass:"el-icon-unlock icon"}),t._v("\n 修改密码\n ")]),o("el-dropdown-item",{attrs:{command:"c",divided:""}},[o("i",{staticClass:"el-icon-caret-right icon"}),t._v("\n 退出登录\n ")])],1)],1)],1)],1)],1)},f=[],p=o("bc3a"),h=o.n(p),g={name:"mini-im-aside",data:function(){return{bgColor:"#ffffff"}},props:{title:String},methods:{logout:function(){var t=this;h.a.put("/admin/online/0"),h.a.get("/auth/logout").then((function(){t.$store.commit("onReset"),t.$store.commit("onChangeAdminInfo",null),t.$router.push({path:"/login"}),t.$mimcInstance.logout(),t.$store.commit("onIsLogin",!1),localStorage.clear()})).catch((function(e){t.$message.error("退出失败"),console.log(e)}))},handleCommand:function(t){var e=this;switch(t){case"a":this.$store.commit("onChangeEditDialogFormVisible",!0);break;case"b":this.$store.commit("onChangeEditPasswordDialogFormVisible",!0);break;case"c":this.$confirm("您确定要退出登录吗? ","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){return e.logout()}));break}}}},b=g,w=(o("8a1c"),Object(c["a"])(b,u,f,!1,null,"7a297760",null)),v=w.exports,_=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-dialog",{attrs:{width:"500px",title:"修改资料","show-close":!1,visible:t.$store.state.editDialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.$store.state,"editDialogFormVisible",e)}}},[o("el-form",{attrs:{model:t.form}},[o("el-form-item",{attrs:{label:"头像","label-width":t.formLabelWidth}},[o("el-row",{attrs:{gutter:10}},[o("el-col",{attrs:{span:3}},[o("div",{staticClass:"mini-im-file-button",attrs:{title:"点击上传图片"}},[o("el-avatar",{attrs:{size:50,src:t.form.avatar||t.$store.state.avatar}}),o("input",{attrs:{onClick:"this.value = null",type:"file",accept:"image/*"},on:{change:t.changeFile}}),o("div",{directives:[{name:"show",rawName:"v-show",value:t.isUploading,expression:"isUploading"}],staticClass:"mini-im-file-percent"},[o("span",[t._v(t._s(t.uploadPercent))])])],1)]),o("el-col",{attrs:{span:6}})],1)],1),o("el-form-item",{attrs:{label:"账号","label-width":t.formLabelWidth}},[t._v("\n "+t._s(t.form.username)+"\n ")]),o("el-form-item",{attrs:{label:"昵称","label-width":t.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请输入昵称",autocomplete:"off"},model:{value:t.form.nickname,callback:function(e){t.$set(t.form,"nickname",e)},expression:"form.nickname"}})],1),o("el-form-item",{attrs:{label:"联系方式","label-width":t.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请输入联系方式",autocomplete:"off"},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})],1),o("el-form-item",{attrs:{label:"自动回复语","label-width":t.formLabelWidth}},[o("el-input",{attrs:{type:"textarea",placeholder:"请输入自动回复语,不支持emoji,请使用简单语句描述",autocomplete:"off"},model:{value:t.form.auto_reply,callback:function(e){t.$set(t.form,"auto_reply",e)},expression:"form.auto_reply"}})],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:t.closeModal}},[t._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)},$=[],k=o("fb21"),x={name:"mini-im-edit-profile",data:function(){return{form:{id:"",avatar:"",username:"",nickname:"",phone:"",auto_reply:""},formLabelWidth:"90px",isUploading:!1,uploadPercent:""}},computed:{adminInfo:function(){return this.$store.state.adminInfo}},methods:{closeModal:function(){this.$store.commit("onChangeEditDialogFormVisible",!1)},save:function(){var t=this,e=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});h.a.put("/admin",this.form).then((function(o){console.log(o),e.close(),t.$message.success("资料修改成功"),t.closeModal(),t.$store.dispatch("ON_GET_ME")})).catch((function(o){e.close(),t.$message.error(o.response.data.message)}))},changeFile:function(t){var e=this;Object(k["a"])({file:t.target.files[0],progress:function(t){e.isUploading=!0,e.uploadPercent=t+"%"},success:function(t){e.isUploading=!1,e.uploadPercent="",e.$message.success("上传成功");var o=e.$store.getters.uploadToken.host+"/"+t;e.form.avatar=o},error:function(t){e.isUploading=!1,e.uploadPercent="",e.$message.error(t.message)}})}},watch:{adminInfo:function(){if(this.adminInfo){var t=this.$store.state.adminInfo,e=t.avatar,o=t.username,s=t.nickname,a=t.phone,i=t.id,n=t.auto_reply;this.form={avatar:e,username:o,nickname:s,phone:a,id:i,auto_reply:n}}}}},C=x,y=(o("5d0e"),Object(c["a"])(C,_,$,!1,null,"0d4bcba3",null)),E=y.exports,P=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-dialog",{attrs:{width:"500px",title:"修改密码","show-close":!1,visible:t.$store.state.editPasswordDialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.$store.state,"editPasswordDialogFormVisible",e)}}},[o("el-form",{attrs:{model:t.form}},[o("el-form-item",{attrs:{label:"旧密码","label-width":t.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请输入旧密码",autocomplete:"off"},model:{value:t.form.old_password,callback:function(e){t.$set(t.form,"old_password",e)},expression:"form.old_password"}})],1),o("el-form-item",{attrs:{label:"新密码","label-width":t.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请输入新密码",autocomplete:"off"},model:{value:t.form.new_password,callback:function(e){t.$set(t.form,"new_password",e)},expression:"form.new_password"}})],1),o("el-form-item",{attrs:{label:"确认密码","label-width":t.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请再次输入新密码",autocomplete:"off"},model:{value:t.form.enter_password,callback:function(e){t.$set(t.form,"enter_password",e)},expression:"form.enter_password"}})],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:t.closeModal}},[t._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)},F=[],L={name:"mini-im-create-knowledge",data:function(){return{form:{old_password:"",new_password:"",enter_password:""},robotSwitch:!0,formLabelWidth:"80px"}},props:{dialogFormVisible:Boolean},mounted:function(){},methods:{closeModal:function(){this.resize(),this.$store.commit("onChangeEditPasswordDialogFormVisible",!1)},save:function(){var t=this,e=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});h.a.put("/admin/password",this.form).then((function(o){console.log(o),e.close(),t.$message.success("资料修改成功"),t.closeModal(),t.resize()})).catch((function(o){e.close(),t.$message.error(o.response.data.message)}))},resize:function(){this.form={old_password:"",new_password:"",enter_password:""}}}},A=L,I=Object(c["a"])(A,P,F,!1,null,"5987490c",null),T=I.exports,W={name:"home",components:{MeAside:d,MeHeaser:v,EditProfile:E,EditPassword:T},computed:{workbenchBgColor:function(){return"/workbench"==this.$route.path?this.$store.getters.workbenchBgColor:"#ffffff"}}},j=W,D=(o("c5f8"),Object(c["a"])(j,s,a,!1,null,"61095d10",null));e["default"]=D.exports},"5d0e":function(t,e,o){"use strict";var s=o("710f"),a=o.n(s);a.a},"710f":function(t,e,o){},"8a1c":function(t,e,o){"use strict";var s=o("9aba"),a=o.n(s);a.a},"8e69":function(t,e,o){t.exports=o.p+"img/kefu_logo.9c308a55.png"},"98be":function(t,e,o){},"99fd":function(t,e,o){},"9aba":function(t,e,o){},c5f8:function(t,e,o){"use strict";var s=o("98be"),a=o.n(s);a.a}}]);
//# sourceMappingURL=chunk-d086e898.fd9639b1.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/components/me-aside.vue?48f3","webpack:///./src/views/index.vue?1588","webpack:///./src/components/me-aside.vue?f794","webpack:///src/components/me-aside.vue","webpack:///./src/components/me-aside.vue?761f","webpack:///./src/components/me-aside.vue?0e9e","webpack:///./src/components/me-header.vue?d953","webpack:///src/components/me-header.vue","webpack:///./src/components/me-header.vue?8b81","webpack:///./src/components/me-header.vue","webpack:///./src/components/me-edit-profile.vue?f354","webpack:///src/components/me-edit-profile.vue","webpack:///./src/components/me-edit-profile.vue?b167","webpack:///./src/components/me-edit-profile.vue","webpack:///./src/components/me-edit-password.vue?c2bd","webpack:///src/components/me-edit-password.vue","webpack:///./src/components/me-edit-password.vue?7d42","webpack:///./src/components/me-edit-password.vue","webpack:///src/views/index.vue","webpack:///./src/views/index.vue?a66e","webpack:///./src/views/index.vue","webpack:///./src/components/me-edit-profile.vue?ef1b","webpack:///./src/components/me-header.vue?35bc","webpack:///./src/assets/kefu_logo.png","webpack:///./src/views/index.vue?c757"],"names":["render","_vm","this","_h","$createElement","_c","_self","$store","state","_e","staticStyle","staticClass","attrs","style","workbenchBgColor","staticRenderFns","on","$event","$router","push","path","getters","systemInfo","logo","Date","now","menuActive","slot","_v","readCount","name","data","mounted","methods","setHeaderTitle","title","$route","commit","watch","component","isShowAside","_s","heaserTitle","handleCommand","avatar","nickname","bgColor","props","String","logout","console","log","error","editDialogFormVisible","$set","form","formLabelWidth","changeFile","directives","rawName","value","expression","uploadPercent","username","model","callback","$$v","closeModal","save","computed","adminInfo","lock","text","spinner","background","loading","close","editPasswordDialogFormVisible","dialogFormVisible","Boolean","resize","components","MeAside","module","exports"],"mappings":"kHAAA,yBAA+gB,EAAG,G,2CCAlhB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,eAAe,CAAEJ,EAAIM,OAAOC,MAAiB,YAAEH,EAAG,YAAYJ,EAAIQ,KAAKJ,EAAG,eAAe,CAACK,YAAY,CAAC,YAAY,UAAU,CAACL,EAAG,YAAY,CAACM,YAAY,kBAAkB,CAACN,EAAG,YAAY,CAACO,MAAM,CAAC,MAAQ,YAAY,GAAGP,EAAG,UAAU,CAACQ,MAAO,oBAAsBZ,EAAIa,kBAAmB,CAACT,EAAG,gB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PkC,WAFJ,WAGMjE,KAAK8E,SACL9E,KAAKK,OAAO8B,OAAO,yCAAyC,IAG9D+B,KAPJ,WAOA,WAEA,iBACQG,MAAM,EACNC,KAAM,SACNC,QAAS,kBACTC,WAAY,uBAEd,EAAN,mCACA,kBACQ,QAAR,OACQ,EAAR,QACQ,EAAR,2BACQ,EAAR,aACQ,EAAR,YAEA,mBACQC,EAAQC,QACR,EAAR,4CAIII,OA7BJ,WA8BM9E,KAAKqD,KAAO,CACV,aAAR,GACQ,aAAR,GACQ,eAAR,OCxE6X,ICOzX,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,MAIa,I,QCKf,GACEzB,KAAM,OACNmD,WAAY,CACVC,QAAJ,EAAI,SAAJ,EAAI,YAAJ,EAAI,aAAJ,GAEEb,SAAU,CACRvD,iBADJ,WAEM,MAAN,+BACeZ,KAAKK,OAAOc,QAAQP,iBAEtB,aCjCqW,ICQ9W,G,UAAY,eACd,EACAd,EACAe,GACA,EACA,KACA,WACA,OAIa,e,6CCnBf,yBAA8iB,EAAG,G,6DCAjjB,yBAAwiB,EAAG,G,uBCA3iBoE,EAAOC,QAAU,IAA0B,8B,6GCA3C,yBAAoiB,EAAG","file":"js/chunk-d086e898.fd9639b1.js","sourcesContent":["import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-aside.vue?vue&type=style&index=0&lang=stylus&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-aside.vue?vue&type=style&index=0&lang=stylus&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-container',[(_vm.$store.state.isShowAside)?_c('me-aside'):_vm._e(),_c('el-container',{staticStyle:{\"min-width\":\"800px\"}},[_c('el-header',{staticClass:\"mini-im-header\"},[_c('me-heaser',{attrs:{\"title\":\"sdfsd\"}})],1),_c('el-main',{style:('background-color:' + _vm.workbenchBgColor)},[_c('router-view')],1)],1),_c('EditProfile'),_c('EditPassword')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-aside',{staticClass:\"mini-im-aside\",attrs:{\"width\":\"200px\"}},[_c('div',{staticClass:\"mini-im-logo\",on:{\"click\":function($event){return _vm.$router.push({ path: '/index'})}}},[(_vm.$store.getters.systemInfo.logo)?_c('div',[_c('img',{attrs:{\"src\":_vm.$store.getters.systemInfo.logo + '?id=' + Date.now(),\"alt\":\"\"}})]):_c('div',[_c('img',{attrs:{\"src\":require(\"../assets/kefu_logo.png\"),\"alt\":\"\"}})])]),_c('el-menu',{staticClass:\"el-menu-vertical-demo\",attrs:{\"default-active\":_vm.menuActive,\"background-color\":\"#3e444a\",\"text-color\":\"#fff\",\"router\":true,\"active-text-color\":\"#ffd04b\"}},[_c('el-menu-item',{attrs:{\"index\":\"/index\"}},[_c('i',{staticClass:\"el-icon-s-home\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"首页\")])]),_c('el-menu-item',{attrs:{\"index\":\"/workbench\"}},[_c('el-badge',{staticStyle:{\"width\":\"100%\"},attrs:{\"hidden\":_vm.$store.getters.readCount == 0,\"value\":_vm.$store.getters.readCount,\"max\":99}},[_c('div',[_c('i',{staticClass:\"el-icon-s-platform\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"工作台\")])])])],1),_c('el-menu-item',{attrs:{\"index\":\"/knowledge\"}},[_c('i',{staticClass:\"el-icon-reading\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"知识库\")])]),_c('el-menu-item',{attrs:{\"index\":\"/robot\"}},[_c('i',{staticClass:\"el-icon-picture-outline-round\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"机器人\")])]),_c('el-menu-item',{attrs:{\"index\":\"/customer\"}},[_c('i',{staticClass:\"el-icon-headset\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"客服管理\")])]),_c('el-menu-item',{attrs:{\"index\":\"/users\"}},[_c('i',{staticClass:\"el-icon-user\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"用户管理\")])]),_c('el-menu-item',{attrs:{\"index\":\"/chat_record\"}},[_c('i',{staticClass:\"el-icon-time\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"服务记录\")])]),_c('el-menu-item',{attrs:{\"index\":\"/system\"}},[_c('i',{staticClass:\"el-icon-setting\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"系统设置\")])])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-aside width=\"200px\" class=\"mini-im-aside\">\n <div class=\"mini-im-logo\" @click=\"$router.push({ path: '/index'})\">\n <div v-if=\"$store.getters.systemInfo.logo\"><img :src=\"$store.getters.systemInfo.logo + '?id=' + Date.now()\" alt=\"\"></div>\n <div v-else><img src=\"../assets/kefu_logo.png\" alt=\"\"></div>\n </div>\n <el-menu\n :default-active=\"menuActive\"\n class=\"el-menu-vertical-demo\"\n background-color=\"#3e444a\"\n text-color=\"#fff\"\n :router=\"true\"\n active-text-color=\"#ffd04b\"\n >\n <el-menu-item index=\"/index\">\n <i class=\"el-icon-s-home\"></i>\n <span slot=\"title\">首页</span>\n </el-menu-item>\n <el-menu-item index=\"/workbench\">\n <el-badge :hidden=\"$store.getters.readCount == 0\" :value=\"$store.getters.readCount\" :max=\"99\" style=\"width: 100%;\">\n <div>\n <i class=\"el-icon-s-platform\"></i>\n <span slot=\"title\">工作台</span>\n </div>\n </el-badge>\n </el-menu-item>\n <!-- <el-menu-item index=\"/workorder\">\n <el-badge :hidden=\"$store.getters.readCount == 0\" :value=\"$store.getters.readCount\" :max=\"99\" style=\"width: 100%;\">\n <div>\n <i class=\"el-icon-tickets\"></i>\n <span slot=\"title\">工单管理</span>\n </div>\n </el-badge>\n </el-menu-item> -->\n <el-menu-item index=\"/knowledge\">\n <i class=\"el-icon-reading\"></i>\n <span slot=\"title\">知识库</span>\n </el-menu-item>\n <el-menu-item index=\"/robot\">\n <i class=\"el-icon-picture-outline-round\"></i>\n <span slot=\"title\">机器人</span>\n </el-menu-item>\n <el-menu-item index=\"/customer\">\n <i class=\"el-icon-headset\"></i>\n <span slot=\"title\">客服管理</span>\n </el-menu-item>\n <el-menu-item index=\"/users\">\n <i class=\"el-icon-user\"></i>\n <span slot=\"title\">用户管理</span>\n </el-menu-item>\n <el-menu-item index=\"/chat_record\">\n <i class=\"el-icon-time\"></i>\n <span slot=\"title\">服务记录</span>\n </el-menu-item>\n <el-menu-item index=\"/system\">\n <i class=\"el-icon-setting\"></i>\n <span slot=\"title\">系统设置</span>\n </el-menu-item>\n \n </el-menu>\n <!-- <div class=\"fix-bottom\">\n <a title=\"去给作者Star\" target=\"_blank\" href=\"https://github.com/chenxianqi/kefu_server.git\">\n <svg class=\"github-logo\" height=\"23\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"23\" aria-hidden=\"true\"><path fill=\"#fff\" fill-rule=\"evenodd\" d=\"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z\"></path></svg>\n <span> Github</span>\n </a>\n </div> -->\n </el-aside>\n</template>\n<script>\nexport default {\n name: 'mini-im-aside',\n data(){\n return {\n menuActive: \"/index\"\n }\n },\n mounted(){\n this.setHeaderTitle()\n },\n methods: {\n setHeaderTitle(){\n this.menuActive = this.$route.path\n var title\n switch(this.menuActive){\n case \"/index\":\n title = \"首页\"\n break\n case \"/workbench\":\n title = \"工作台\"\n break\n case \"/knowledge\":\n title = \"知识库\"\n break\n case \"/robot\":\n title = \"机器人\"\n break\n case \"/customer\":\n title = \"客服管理\"\n break\n case \"/workorder\":\n title = \"工单管理\"\n break\n case \"/users\":\n title = \"用户管理\"\n break\n case \"/system\":\n title = \"系统设置\"\n break\n }\n this.$store.commit(\"onChangeHeaserTitle\", title)\n }\n },\n watch: {\n \"$route\"(){\n this.setHeaderTitle()\n }\n }\n}\n</script>\n<style lang=\"stylus\">\n .mini-im-aside{\n background-color: #3e444a\n display flex\n flex-direction column\n .mini-im-logo{\n width 100%;\n height: 100px;\n display flex\n justify-content center\n flex-direction column\n align-items center\n border-bottom 1px solid #ddd\n img{\n height : 30px\n }\n }\n .el-menu{\n border-right 0\n }\n .el-badge__content{\n border 0\n top 30px\n }\n .fix-bottom{\n flex-grow 1\n display flex\n flex-direction column\n justify-content flex-end\n padding-bottom 30px\n a{\n cursor pointer\n padding 0 30px\n text-align center\n align-items center\n color #fff\n display flex\n align-content center\n .github-log{\n width 50px\n }\n span{\n margin-top 3px\n margin-left 5px\n }\n }\n }\n }\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-aside.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-aside.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me-aside.vue?vue&type=template&id=01ed8aba&\"\nimport script from \"./me-aside.vue?vue&type=script&lang=js&\"\nexport * from \"./me-aside.vue?vue&type=script&lang=js&\"\nimport style0 from \"./me-aside.vue?vue&type=style&index=0&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-row',{attrs:{\"type\":\"flex\",\"justify\":\"end\",\"gutter\":20}},[_c('el-col',{attrs:{\"span\":5}},[_c('el-button',{staticClass:\"mini-im-button\",attrs:{\"type\":\"info\",\"icon\":_vm.$store.state.isShowAside ? 'el-icon-s-fold' : 'el-icon-s-unfold'},on:{\"click\":function($event){return _vm.$store.commit('onChangeToggleAside', !_vm.$store.state.isShowAside)}}})],1),_c('el-col',{attrs:{\"span\":16}},[_c('div',{staticClass:\"mini-im-title\"},[_vm._v(_vm._s(_vm.$store.state.heaserTitle))])]),_c('el-col',{attrs:{\"span\":5}},[_c('el-row',{staticClass:\"mini-im-dropdown\",attrs:{\"type\":\"flex\",\"justify\":\"end\"}},[_c('el-dropdown',{attrs:{\"trigger\":\"click\"},on:{\"command\":_vm.handleCommand}},[_c('div',{staticClass:\"el-dropdown-link\"},[_c('el-avatar',{staticClass:\"mini-im-avatar\",attrs:{\"size\":25}},[_c('img',{attrs:{\"src\":_vm.$store.getters.avatar}})]),_c('span',{staticStyle:{\"padding\":\"0 5px\"}},[_vm._v(\" \"+_vm._s(_vm.$store.getters.nickname)+\" \")]),_c('i',{staticClass:\"el-icon-arrow-down el-icon--right\"})],1),_c('el-dropdown-menu',{attrs:{\"slot\":\"dropdown\"},slot:\"dropdown\"},[_c('el-dropdown-item',{attrs:{\"command\":\"a\"}},[_c('i',{staticClass:\"el-icon-user icon\"}),_vm._v(\"\\n 修改资料\\n \")]),_c('el-dropdown-item',{attrs:{\"command\":\"b\"}},[_c('i',{staticClass:\"el-icon-unlock icon\"}),_vm._v(\"\\n 修改密码\\n \")]),_c('el-dropdown-item',{attrs:{\"command\":\"c\",\"divided\":\"\"}},[_c('i',{staticClass:\"el-icon-caret-right icon\"}),_vm._v(\"\\n 退出登录\\n \")])],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-row type=\"flex\" justify=\"end\" :gutter=\"20\">\n <el-col :span=\"5\">\n <el-button\n @click=\"$store.commit('onChangeToggleAside', !$store.state.isShowAside)\"\n class=\"mini-im-button\"\n type=\"info\"\n :icon=\"$store.state.isShowAside ? 'el-icon-s-fold' : 'el-icon-s-unfold'\"\n >\n </el-button>\n </el-col>\n <el-col :span=\"16\" >\n <div class=\"mini-im-title\">{{$store.state.heaserTitle}}</div>\n </el-col>\n <el-col :span=\"5\">\n <el-row type=\"flex\" justify=\"end\" class=\"mini-im-dropdown\">\n <el-dropdown @command=\"handleCommand\" trigger=\"click\">\n <div class=\"el-dropdown-link\">\n <el-avatar :size=\"25\" class=\"mini-im-avatar\">\n <img :src=\"$store.getters.avatar\"/>\n </el-avatar>\n <span style=\"padding:0 5px;\"> {{$store.getters.nickname}} </span>\n <i class=\"el-icon-arrow-down el-icon--right\"></i>\n </div>\n <el-dropdown-menu slot=\"dropdown\">\n <el-dropdown-item command=\"a\">\n <i class=\"el-icon-user icon\"></i>\n 修改资料\n </el-dropdown-item>\n <el-dropdown-item command=\"b\">\n <i class=\"el-icon-unlock icon\"></i>\n 修改密码\n </el-dropdown-item>\n <el-dropdown-item command=\"c\" divided>\n <i class=\"el-icon-caret-right icon\"></i>\n 退出登录\n </el-dropdown-item>\n </el-dropdown-menu>\n </el-dropdown>\n </el-row>\n </el-col>\n </el-row>\n</template>\n<script>\nimport axios from 'axios'\nexport default {\n name: \"mini-im-aside\",\n data(){\n return {\n bgColor: \"#ffffff\"\n }\n },\n props: {\n title: String\n },\n methods: {\n // 退出登录\n logout(){\n axios.put('/admin/online/0')\n axios.get('/auth/logout')\n .then(() => {\n this.$store.commit(\"onReset\")\n this.$store.commit(\"onChangeAdminInfo\", null)\n this.$router.push({ path: '/login'})\n this.$mimcInstance.logout()\n this.$store.commit(\"onIsLogin\", false)\n localStorage.clear()\n })\n .catch(error => {\n this.$message.error('退出失败')\n console.log(error)\n })\n },\n handleCommand(command){\n switch(command){\n case 'a':\n this.$store.commit(\"onChangeEditDialogFormVisible\", true)\n break\n case 'b':\n this.$store.commit(\"onChangeEditPasswordDialogFormVisible\", true)\n break\n case 'c':\n this.$confirm('您确定要退出登录吗? ', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => this.logout())\n break\n\n }\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-header {\n background-color: #545c64;\n border-bottom: 1px solid #545c64;\n .mini-im-dropdown{\n height 100%\n }\n .mini-im-button{\n border 0\n font-size 35px\n display block\n background 0\n padding-left 0\n }\n .mini-im-title{\n color #fff\n font-size 16px\n text-align center\n line-height 60px\n }\n .icon {\n color: #fff;\n }\n .el-dropdown-link {\n cursor: pointer;\n display flex\n height 100%\n line-height 60px\n align-items center\n color: #fff;\n }\n .el-icon-arrow-down {\n font-size: 12px;\n }\n}\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-header.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-header.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me-header.vue?vue&type=template&id=7a297760&scoped=true&\"\nimport script from \"./me-header.vue?vue&type=script&lang=js&\"\nexport * from \"./me-header.vue?vue&type=script&lang=js&\"\nimport style0 from \"./me-header.vue?vue&type=style&index=0&id=7a297760&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7a297760\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"500px\",\"title\":\"修改资料\",\"show-close\":false,\"visible\":_vm.$store.state.editDialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){return _vm.$set(_vm.$store.state, \"editDialogFormVisible\", $event)}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"头像\",\"label-width\":_vm.formLabelWidth}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('el-avatar',{attrs:{\"size\":50,\"src\":_vm.form.avatar || _vm.$store.state.avatar}}),_c('input',{attrs:{\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.changeFile}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploading),expression:\"isUploading\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadPercent))])])],1)]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"账号\",\"label-width\":_vm.formLabelWidth}},[_vm._v(\"\\n \"+_vm._s(_vm.form.username)+\"\\n \")]),_c('el-form-item',{attrs:{\"label\":\"昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"联系方式\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入联系方式\",\"autocomplete\":\"off\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"自动回复语\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"placeholder\":\"请输入自动回复语,不支持emoji,请使用简单语句描述\",\"autocomplete\":\"off\"},model:{value:(_vm.form.auto_reply),callback:function ($$v) {_vm.$set(_vm.form, \"auto_reply\", $$v)},expression:\"form.auto_reply\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog width=\"500px\" title=\"修改资料\" :show-close=\"false\" :visible.sync=\"$store.state.editDialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"头像\" :label-width=\"formLabelWidth\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <el-avatar :size=\"50\" :src=\"form.avatar || $store.state.avatar\"></el-avatar>\n <input onClick=\"this.value = null\" @change=\"changeFile\" type=\"file\" accept=\"image/*\">\n <div v-show=\"isUploading\" class=\"mini-im-file-percent\">\n <span>{{uploadPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\">\n </el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"账号\" :label-width=\"formLabelWidth\">\n {{form.username}}\n </el-form-item>\n <el-form-item label=\"昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"联系方式\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.phone\" placeholder=\"请输入联系方式\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"自动回复语\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.auto_reply\" type=\"textarea\" placeholder=\"请输入自动回复语,不支持emoji,请使用简单语句描述\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nimport upload from '../common/upload'\nexport default {\n name: 'mini-im-edit-profile',\n data(){\n return {\n form: {\n id: \"\",\n avatar: \"\",\n username: \"\",\n nickname: '',\n phone: '',\n auto_reply: ''\n },\n formLabelWidth: \"90px\",\n isUploading: false,\n uploadPercent: \"\"\n }\n },\n computed: {\n adminInfo(){\n return this.$store.state.adminInfo\n }\n },\n methods: {\n // 关闭窗口\n closeModal(){\n this.$store.commit(\"onChangeEditDialogFormVisible\", false)\n },\n // 保存\n save(){\n const loading = this.$loading({\n lock: true,\n text: '保存中...',\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.5)'\n });\n axios.put('/admin', this.form)\n .then(response => {\n console.log(response)\n loading.close();\n this.$message.success(\"资料修改成功\")\n this.closeModal()\n this.$store.dispatch('ON_GET_ME')\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message)\n });\n\n },\n // 上传头像\n changeFile(file){\n\n upload({\n file: file.target.files[0],\n progress: (percent) => {\n this.isUploading = true\n this.uploadPercent = percent + \"%\"\n },\n success: (url) => {\n this.isUploading = false\n this.uploadPercent = \"\"\n this.$message.success(\"上传成功\")\n var imgUrl = this.$store.getters.uploadToken.host +\"/\"+ url\n this.form.avatar = imgUrl\n },\n error: (err)=>{\n this.isUploading = false\n this.uploadPercent = \"\"\n this.$message.error(err.message)\n }\n });\n \n }\n },\n watch: {\n adminInfo(){\n if(!this.adminInfo) return\n const {avatar,username, nickname, phone, id, auto_reply } = this.$store.state.adminInfo\n this.form = {avatar,username, nickname, phone, id, auto_reply }\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n .mini-im-file-button{\n width 50px\n height 50px\n border-radius 50%\n position relative\n overflow hidden\n input{\n font-size 100px\n position absolute\n top 0px\n left 0px\n cursor pointer\n opacity 0\n }\n cursor pointer\n .mini-im-file-percent{\n position absolute\n top 0px\n left 0px\n width 100%\n height 100%\n display flex\n align-items center\n justify-content center\n border-radius 50%\n background-color rgba(0,0,0, .5)\n color #fff\n font-size 12px\n }\n }\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-profile.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-profile.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me-edit-profile.vue?vue&type=template&id=0d4bcba3&scoped=true&\"\nimport script from \"./me-edit-profile.vue?vue&type=script&lang=js&\"\nexport * from \"./me-edit-profile.vue?vue&type=script&lang=js&\"\nimport style0 from \"./me-edit-profile.vue?vue&type=style&index=0&id=0d4bcba3&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0d4bcba3\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"500px\",\"title\":\"修改密码\",\"show-close\":false,\"visible\":_vm.$store.state.editPasswordDialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){return _vm.$set(_vm.$store.state, \"editPasswordDialogFormVisible\", $event)}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"旧密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入旧密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.old_password),callback:function ($$v) {_vm.$set(_vm.form, \"old_password\", $$v)},expression:\"form.old_password\"}})],1),_c('el-form-item',{attrs:{\"label\":\"新密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入新密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.new_password),callback:function ($$v) {_vm.$set(_vm.form, \"new_password\", $$v)},expression:\"form.new_password\"}})],1),_c('el-form-item',{attrs:{\"label\":\"确认密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请再次输入新密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.enter_password),callback:function ($$v) {_vm.$set(_vm.form, \"enter_password\", $$v)},expression:\"form.enter_password\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog width=\"500px\" title=\"修改密码\" :show-close=\"false\" :visible.sync=\"$store.state.editPasswordDialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"旧密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.old_password\" placeholder=\"请输入旧密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"新密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.new_password\" placeholder=\"请输入新密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"确认密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.enter_password\" placeholder=\"请再次输入新密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nexport default {\n name: 'mini-im-create-knowledge',\n data(){\n return {\n form: {\n old_password: \"\",\n new_password: \"\",\n enter_password: \"\"\n },\n robotSwitch: true,\n formLabelWidth: \"80px\"\n }\n },\n props:{\n dialogFormVisible: Boolean\n },\n mounted(){\n },\n methods: {\n // 关闭\n closeModal(){\n this.resize()\n this.$store.commit(\"onChangeEditPasswordDialogFormVisible\", false)\n },\n // 保存\n save(){\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: '保存中...',\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.5)'\n });\n axios.put('/admin/password', this.form)\n .then(response => {\n console.log(response)\n loading.close();\n this.$message.success(\"资料修改成功\")\n this.closeModal()\n this.resize()\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message)\n });\n\n },\n resize(){\n this.form = {\n old_password: \"\",\n new_password: \"\",\n enter_password: \"\"\n }\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n \n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-password.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-password.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me-edit-password.vue?vue&type=template&id=5987490c&scoped=true&\"\nimport script from \"./me-edit-password.vue?vue&type=script&lang=js&\"\nexport * from \"./me-edit-password.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5987490c\",\n null\n \n)\n\nexport default component.exports","<template>\n <el-container>\n <me-aside v-if=\"$store.state.isShowAside\"></me-aside>\n <el-container style=\"min-width: 800px;\">\n <el-header class=\"mini-im-header\">\n <me-heaser title=\"sdfsd\"></me-heaser>\n </el-header>\n <el-main :style=\"'background-color:' + workbenchBgColor\">\n <router-view></router-view>\n </el-main>\n </el-container>\n <EditProfile />\n <EditPassword />\n </el-container>\n</template>\n\n<script>\n\nimport MeAside from \"@/components/me-aside.vue\";\nimport MeHeaser from \"@/components/me-header.vue\";\nimport EditProfile from \"@/components/me-edit-profile.vue\";\nimport EditPassword from \"@/components/me-edit-password.vue\";\n\nexport default {\n name: \"home\",\n components: {\n MeAside,MeHeaser,EditProfile,EditPassword\n },\n computed: {\n workbenchBgColor(){\n if(this.$route.path == \"/workbench\"){\n return this.$store.getters.workbenchBgColor\n }\n return \"#ffffff\"\n }\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n .mini-im-header{\n background-color #545c64\n border-bottom 1px solid #545c64\n }\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=61095d10&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=61095d10&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"61095d10\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-profile.vue?vue&type=style&index=0&id=0d4bcba3&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-profile.vue?vue&type=style&index=0&id=0d4bcba3&scoped=true&lang=stylus&\"","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-header.vue?vue&type=style&index=0&id=7a297760&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-header.vue?vue&type=style&index=0&id=7a297760&scoped=true&lang=stylus&\"","module.exports = __webpack_public_path__ + \"img/kefu_logo.9c308a55.png\";","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=61095d10&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=61095d10&lang=stylus&scoped=true&\""],"sourceRoot":""}
\ No newline at end of file
File mode changed
.container[data-v-6f1ffd80]{height:100vh;overflow:hidden;overflow-y:auto}.content[data-v-6f1ffd80]{padding-top:50px;padding-bottom:90px}.content .no-data[data-v-6f1ffd80]{color:#666;font-size:14px}.content .workorder-close[data-v-6f1ffd80]{text-align:center;color:#666;font-size:14px;padding:10px}.content.hide-header[data-v-6f1ffd80]{padding-top:0}.content .head[data-v-6f1ffd80]{margin:0 10px;padding:10px 0;border-bottom:1px solid hsla(0,0%,62%,.13)}.content .head .con[data-v-6f1ffd80]{font-size:15px;color:#333;display:-ms-flexbox;display:flex;margin-bottom:8px}.content .head .con span[data-v-6f1ffd80]{-ms-flex-flow:1;flex-flow:1}.content .head .con span[data-v-6f1ffd80]:first-child{-ms-flex-flow:0;flex-flow:0;-ms-flex-negative:0;flex-shrink:0;width:45px}.content .head .con i[data-v-6f1ffd80]{font-style:normal}.content .comments[data-v-6f1ffd80]{padding:10px}.content .comments .item[data-v-6f1ffd80]{display:-ms-flexbox;display:flex}.content .comments .item .avatar[data-v-6f1ffd80]{padding-top:10px;border-bottom:1px solid hsla(0,0%,62%,.13)}.content .comments .item .avatar img[data-v-6f1ffd80]{width:30px;height:30px;border-radius:100px;display:block}.content .comments .item .right[data-v-6f1ffd80]{padding:10px 5px;-ms-flex-positive:1;flex-grow:1;border-bottom:1px solid hsla(0,0%,62%,.13)}.content .comments .item .right .nickname[data-v-6f1ffd80]{font-size:15px;color:#333}.content .comments .item .right .detail[data-v-6f1ffd80]{font-size:15px;color:#333;margin-top:5px}.content .comments .item .right .date[data-v-6f1ffd80]{color:#999;font-size:14px;margin-top:5px}.content .comments .item:last-child .avatar[data-v-6f1ffd80],.content .comments .item:last-child .right[data-v-6f1ffd80]{border-bottom:0}.content .file-view[data-v-6f1ffd80]{position:fixed;bottom:80px;left:0;right:0;padding:5px 10px;margin:0 auto;font-size:13px;color:#8bc34a}.content .file-view span[data-v-6f1ffd80]{display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center}.content .file-view span img[data-v-6f1ffd80]{width:20px;height:20px}.content .file-view span i[data-v-6f1ffd80]{font-style:normal;margin-left:5px}.content .input-form[data-v-6f1ffd80]{position:fixed;bottom:0;left:0;right:0;margin:0 auto;width:100%;height:80px;background-color:#fff;border-top:1px solid hsla(0,0%,62%,.13);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:0 10px;box-sizing:border-box;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center}.content .input-form textarea[data-v-6f1ffd80]{height:45px;-ms-flex-positive:1;flex-grow:1;border-radius:0;border:0;color:#333;font-size:14px;resize:none}.content .input-form .icon-btn[data-v-6f1ffd80]{background:url(../img/upload.76668586.png) 50% no-repeat;background-size:30px;width:55px;height:55px;overflow:hidden}.content .input-form .icon-btn input[data-v-6f1ffd80]{display:block;width:100%;height:100%;font-size:100px;opacity:0}.content .input-form .sub-btn[data-v-6f1ffd80]{display:block;width:55px;height:30px;color:#fff;line-height:30px;text-align:center;border-radius:3px;border:none;font-size:14px;background:linear-gradient(90deg,#26a2ff,#736cde);-ms-flex-negative:0;flex-shrink:0}.content .input-form .sub-btn[data-v-6f1ffd80]:active{opacity:.8}
\ No newline at end of file
.container[data-v-ac0a42f8]{height:100vh;overflow:hidden;overflow-y:auto}.content[data-v-ac0a42f8]{padding-top:50px;padding-bottom:90px}.content .no-data[data-v-ac0a42f8]{color:#666;font-size:14px}.content .workorder-close[data-v-ac0a42f8]{text-align:center;color:#666;font-size:14px;padding:10px}.content.hide-header[data-v-ac0a42f8]{padding-top:0}.content .head[data-v-ac0a42f8]{margin:0 10px;padding:10px 0;border-bottom:1px solid hsla(0,0%,62%,.13)}.content .head .con[data-v-ac0a42f8]{font-size:15px;color:#333;display:-ms-flexbox;display:flex;margin-bottom:8px}.content .head .con span[data-v-ac0a42f8]{-ms-flex-flow:1;flex-flow:1}.content .head .con span[data-v-ac0a42f8]:first-child{-ms-flex-flow:0;flex-flow:0;-ms-flex-negative:0;flex-shrink:0;width:45px}.content .head .con i[data-v-ac0a42f8]{font-style:normal}.content .comments[data-v-ac0a42f8]{padding:10px}.content .comments .item[data-v-ac0a42f8]{display:-ms-flexbox;display:flex}.content .comments .item .avatar[data-v-ac0a42f8]{padding-top:10px;border-bottom:1px solid hsla(0,0%,62%,.13)}.content .comments .item .avatar img[data-v-ac0a42f8]{width:30px;height:30px;border-radius:100px;display:block}.content .comments .item .right[data-v-ac0a42f8]{padding:10px 5px;-ms-flex-positive:1;flex-grow:1;border-bottom:1px solid hsla(0,0%,62%,.13)}.content .comments .item .right .nickname[data-v-ac0a42f8]{font-size:15px;color:#333}.content .comments .item .right .detail[data-v-ac0a42f8]{font-size:15px;color:#333;margin-top:5px}.content .comments .item .right .date[data-v-ac0a42f8]{color:#999;font-size:14px;margin-top:5px}.content .comments .item:last-child .avatar[data-v-ac0a42f8],.content .comments .item:last-child .right[data-v-ac0a42f8]{border-bottom:0}.content .file-view[data-v-ac0a42f8]{position:fixed;bottom:80px;left:0;right:0;padding:5px 10px;margin:0 auto;font-size:13px;color:#8bc34a}.content .file-view span[data-v-ac0a42f8]{display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center}.content .file-view span img[data-v-ac0a42f8]{width:20px;height:20px}.content .file-view span i[data-v-ac0a42f8]{font-style:normal;margin-left:5px}.content .input-form[data-v-ac0a42f8]{position:fixed;bottom:0;left:0;right:0;margin:0 auto;width:100%;height:80px;background-color:#fff;border-top:1px solid hsla(0,0%,62%,.13);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:0 10px;box-sizing:border-box;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center}.content .input-form textarea[data-v-ac0a42f8]{height:45px;-ms-flex-positive:1;flex-grow:1;border-radius:0;border:0;color:#333;font-size:14px;resize:none}.content .input-form .icon-btn[data-v-ac0a42f8]{background:url(../img/upload.76668586.png) 50% no-repeat;background-size:30px;width:55px;height:55px;overflow:hidden}.content .input-form .icon-btn input[data-v-ac0a42f8]{display:block;width:100%;height:100%;font-size:100px;opacity:0}.content .input-form .sub-btn[data-v-ac0a42f8]{display:block;width:55px;height:30px;color:#fff;line-height:30px;text-align:center;border-radius:3px;border:none;font-size:14px;background:linear-gradient(90deg,#26a2ff,#736cde);-ms-flex-negative:0;flex-shrink:0}.content .input-form .sub-btn[data-v-ac0a42f8]:active{opacity:.8}
\ No newline at end of file
......@@ -43,4 +43,4 @@
top:0 !important;
min-height: inherit!important;
left:0 !important; right:0 !important; bottom:0 !important; margin: auto !important;
}</style><link href=css/chunk-2c568771.92feb802.css rel=prefetch><link href=css/chunk-5e6009ff.86cb9867.css rel=prefetch><link href=css/chunk-612d9b40.3daa63d4.css rel=prefetch><link href=css/chunk-9ec58ea8.5743221d.css rel=prefetch><link href=js/chunk-2c568771.a81203d3.js rel=prefetch><link href=js/chunk-5e6009ff.d7088d94.js rel=prefetch><link href=js/chunk-612d9b40.13a3a9bb.js rel=prefetch><link href=js/chunk-9ec58ea8.59b56ff9.js rel=prefetch><link href=css/app.19de1655.css rel=preload as=style><link href=css/chunk-vendors.5cea36ab.css rel=preload as=style><link href=js/app.a65684bc.js rel=preload as=script><link href=js/chunk-vendors.a823ad66.js rel=preload as=script><link href=css/chunk-vendors.5cea36ab.css rel=stylesheet><link href=css/app.19de1655.css rel=stylesheet></head><body><noscript><strong>We're sorry but m doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.a823ad66.js></script><script src=js/app.a65684bc.js></script></body></html>
\ No newline at end of file
}</style><link href=css/chunk-046fefd3.c3f39812.css rel=prefetch><link href=css/chunk-2c568771.92feb802.css rel=prefetch><link href=css/chunk-612d9b40.3daa63d4.css rel=prefetch><link href=css/chunk-963a14da.86cb9867.css rel=prefetch><link href=js/chunk-046fefd3.4711921f.js rel=prefetch><link href=js/chunk-2c568771.a81203d3.js rel=prefetch><link href=js/chunk-612d9b40.13a3a9bb.js rel=prefetch><link href=js/chunk-963a14da.2d59ffcb.js rel=prefetch><link href=css/app.19de1655.css rel=preload as=style><link href=css/chunk-vendors.5cea36ab.css rel=preload as=style><link href=js/app.9bd82821.js rel=preload as=script><link href=js/chunk-vendors.a823ad66.js rel=preload as=script><link href=css/chunk-vendors.5cea36ab.css rel=stylesheet><link href=css/app.19de1655.css rel=stylesheet></head><body><noscript><strong>We're sorry but m doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.a823ad66.js></script><script src=js/app.9bd82821.js></script></body></html>
\ No newline at end of file
(function(e){function t(t){for(var a,r,c=t[0],i=t[1],u=t[2],l=0,d=[];l<c.length;l++)r=c[l],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&d.push(o[r][0]),o[r]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);f&&f(t);while(d.length)d.shift()();return s.push.apply(s,u||[]),n()}function n(){for(var e,t=0;t<s.length;t++){for(var n=s[t],a=!0,r=1;r<n.length;r++){var c=n[r];0!==o[c]&&(a=!1)}a&&(s.splice(t--,1),e=i(i.s=n[0]))}return e}var a={},r={app:0},o={app:0},s=[];function c(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-2c568771":"a81203d3","chunk-5e6009ff":"d7088d94","chunk-612d9b40":"13a3a9bb","chunk-9ec58ea8":"59b56ff9"}[e]+".js"}function i(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n={"chunk-2c568771":1,"chunk-5e6009ff":1,"chunk-612d9b40":1,"chunk-9ec58ea8":1};r[e]?t.push(r[e]):0!==r[e]&&n[e]&&t.push(r[e]=new Promise((function(t,n){for(var a="css/"+({}[e]||e)+"."+{"chunk-2c568771":"92feb802","chunk-5e6009ff":"86cb9867","chunk-612d9b40":"3daa63d4","chunk-9ec58ea8":"5743221d"}[e]+".css",o=i.p+a,s=document.getElementsByTagName("link"),c=0;c<s.length;c++){var u=s[c],l=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(l===a||l===o))return t()}var d=document.getElementsByTagName("style");for(c=0;c<d.length;c++){u=d[c],l=u.getAttribute("data-href");if(l===a||l===o)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var a=t&&t.target&&t.target.src||o,s=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");s.code="CSS_CHUNK_LOAD_FAILED",s.request=a,delete r[e],f.parentNode.removeChild(f),n(s)},f.href=o;var p=document.getElementsByTagName("head")[0];p.appendChild(f)})).then((function(){r[e]=0})));var a=o[e];if(0!==a)if(a)t.push(a[2]);else{var s=new Promise((function(t,n){a=o[e]=[t,n]}));t.push(a[2]=s);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=c(e);var d=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(f);var n=o[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+a+": "+r+")",d.name="ChunkLoadError",d.type=a,d.request=r,n[1](d)}o[e]=void 0}};var f=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],l=u.push.bind(u);u.push=t,u=u.slice();for(var d=0;d<u.length;d++)t(u[d]);var f=l;s.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},4678:function(e,t,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-SG":"cdab","./en-SG.js":"cdab","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-nz":"6f50","./en-nz.js":"6f50","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-tw":"90ea","./zh-tw.js":"90ea"};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=o,e.exports=r,r.id="4678"},"56d7":function(e,t,n){"use strict";n.r(t);n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isShowPageLoading?n("div",{staticClass:"mini-im-loading",class:{"pc-mini-im-loading":!e.isMobile}},[n("mt-spinner",{attrs:{type:"triple-bounce",color:"#26a2ff"}})],1):e._e(),n("router-view")],1)},o=[],s=(n("8e6e"),n("ac6a"),n("456d"),n("28a5"),n("bd86")),c=n("2f62");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(s["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={name:"app",data:function(){return{}},computed:u({},Object(c["b"])(["isShowPageLoading","userAccount","isArtificial","isMobile","artificialAccount","robotAccount","platform","userLocal","uid","uid"])),created:function(){var e=this;this.getLocal(),setTimeout((function(){e.handelUrl(),e.runApp()}),500),this.onCheckIsOutSession()},methods:{runApp:function(){var e=this,t=this.$mimcInstance.getLocalCacheUser();t&&null!=this.userAccount&&this.userAccount!=t.id&&0!=this.userAccount&&localStorage.clear(),this.$mimcInstance.init({type:0,address:this.userLocal,uid:this.uid||0,platform:this.platform,account_id:this.userAccount||0},(function(t){if(e.upLastActivity(),e.$store.dispatch("onGetCompanyInfo"),e.$store.dispatch("onGetUploadSecret"),e.$store.dispatch("onGetWorkorderTypes"),e.$store.dispatch("onGetWorkorders"),t){e.$store.commit("updateState",{userAccount:t.id,userInfo:t});var n=e.$mimcInstance.robot;localStorage.setItem("robot_"+n.id,JSON.stringify(n)),e.$store.commit("updateState",{robotAccount:n.id,robotInfo:n}),e.$mimcInstance.login();var a=function t(){null!=e.$mimcInstance.user&&e.$mimcInstance.user.isLogin()?e.artificialAccount||(console.log("握手消息"),e.$mimcInstance.sendMessage("handshake",e.robotAccount,"")):setTimeout((function(){return t()}),200)};a()}else setTimeout((function(){return e.runApp()}),1e3)}))},handelUrl:function(){var e,t,n,a,r,o,s,c,i=this.$route.query;i&&i.c&&localStorage.clear();var u=this.queryToJson(localStorage.getItem("urlQuery"));u&&(i=Object.assign({},u,i)),i&&("0"==i.h&&(e=!1),"0"==i.m&&(t=!1,e=!1),i.u&&(n=parseInt(i.u)),i.p&&(c=parseInt(i.p)),i.uid&&(a=parseInt(i.uid)),"0"==i.r?(r=!0,o=parseInt(i.a)):s=parseInt(i.a));var l=localStorage.getItem("isArtificial"),d=localStorage.getItem("artificialAccount");"true"==l&&(r=!0,o=parseInt(d)),this.$store.commit("updateState",{isShowHeader:e,isMobile:t,userAccount:n,uid:a,isArtificial:r,artificialAccount:o,robotAccount:s,platform:c})},queryToJson:function(e){if(!e||""==e)return null;var t=e.substr(1,e.length).split("&");if(!t)return null;for(var n={},a=0;a<t.length;a++){var r=t[a].split("=");n[r[0]]=r[1]}return n},getLocal:function(){this.$store.dispatch("onGetLocal",this.$store.state.AmapAPPKey)},upLastActivity:function(){var e=this;this.onCheckIsOutSession();var t=this.$mimcInstance.getLocalCacheUser();t&&this.$store.dispatch("onUpdateLastActivity"),this.isArtificial&&localStorage.setItem("artificialTime",Date.now()),setTimeout((function(){return e.upLastActivity()}),6e4)},onCheckIsOutSession:function(){var e=localStorage.getItem("artificialTime");e&&(e=parseInt(e),Date.now()>e+6e5&&this.$store.commit("updateState",{isArtificial:!1,artificialAccount:null}))}}},d=l,f=(n("7faf"),n("2877")),p=Object(f["a"])(d,r,o,!1,null,null,null),m=p.exports,h=n("d1d4"),b=n.n(h),g=n("8c4f");a["default"].use(g["a"]);var j=new g["a"]({base:"",routes:[{path:"/",redirect:"/index"},{path:"/index",name:"index",component:function(){return n.e("chunk-5e6009ff").then(n.bind(null,"e0a0"))}},{path:"/workorder",name:"workorder",component:function(){return n.e("chunk-612d9b40").then(n.bind(null,"fb09"))}},{path:"/workorder/create",name:"workorder_create",component:function(){return n.e("chunk-2c568771").then(n.bind(null,"ede1"))}},{path:"/workorder/detail/:id",name:"workorder_detail",component:function(){return n.e("chunk-9ec58ea8").then(n.bind(null,"4033"))}}]}),k=j,v=n("bc3a"),y=n.n(v),w={onGetMessages:function(e,t){var n=20;y.a.post("/public/messages",{timestamp:t.timestamp,page_size:n}).then((function(a){var r=[],o=a.data.data.list||[];(o.length<n||0==o.length)&&e.commit("updateState",{isLoadMorEnd:!0}),r=0==t.oldMsg.length&&o.length>0?a.data.data.list:o.length>0?o.concat(t.oldMsg):t.oldMsg,e.commit("updateState",{messages:r}),t.callback&&t.callback()})).catch((function(e){console.log(e)}))},onGetLocal:function(e,t){y.a.get("https://restapi.amap.com/v3/ip?key="+t).then((function(t){t.data.province&&e.commit("updateState",{userLocal:t.data.province+t.data.city})})).catch((function(e){console.error(e)}))},onCleanRead:function(){y.a.get("/public/clean_read/")},onUpdateLastActivity:function(){y.a.get("/public/activity/")},onToggleWindow:function(e,t){y.a.put("/public/window/",{window:t})},onGetCompanyInfo:function(e){y.a.get("/public/company").then((function(t){e.commit("updateState",{companyInfo:t.data.data})})).catch((function(e){console.error(e)}))},onGetUploadSecret:function(e){y.a.get("/public/secret").then((function(t){e.commit("updateState",{uploadToken:t.data.data})}))},onGetWorkorderTypes:function(e){y.a.get("/public/workorder/types").then((function(t){e.commit("updateState",{workorderTypes:t.data.data})}))},onGetWorkorders:function(e){y.a.get("/public/workorders").then((function(t){e.commit("updateState",{workorders:t.data.data})}))}},_={updateState:function(e,t){var n=e;for(var a in t)void 0!=t[a]&&(n[a]=t[a]);e=n}},M=(n("4917"),{platform:function(e){return e.platform},isArtificial:function(e){return e.isArtificial},isShowHeader:function(e){return e.isShowHeader},isMobile:function(e){return e.isMobile},uid:function(e){return e.uid},userAccount:function(e){return e.userAccount},artificialAccount:function(e){return e.artificialAccount},robotInfo:function(e){return e.robotInfo},robotAccount:function(e){return e.robotAccount},isLoadMorEnd:function(e){return e.isLoadMorEnd},messages:function(e){return e.messages||[]},userLocal:function(e){return e.userLocal},isLoadMorLoading:function(e){return e.isLoadMorLoading},userInfo:function(e){return e.userInfo},companyInfo:function(e){return e.companyInfo},uploadToken:function(e){return e.uploadToken},isIOS:function(){return!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},isSafari:function(){return navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")<1},isJudgeBigScreen:function(){var e=!1,t=window.screen.height/window.screen.width,n=window.screen.height==window.screen.availHeight?1.8:1.65;return t>n&&(e=!0),e},isShowPageLoading:function(e){return e.isShowPageLoading},workorders:function(e){return e.workorders},workorderTypes:function(e){return e.workorderTypes}}),I={platform:5,isShowPageLoading:!1,isShowHeader:!0,isMobile:!0,isArtificial:!1,uid:0,userAccount:0,artificialAccount:null,robotInfo:null,robotAccount:null,messages:[],isLoadMorEnd:!1,userLocal:"",AmapAPPKey:"",isLoadMorLoading:!1,userInfo:{},companyInfo:null,uploadToken:null,workorders:[],workorderTypes:[]};a["default"].use(c["a"]);var S=new c["a"].Store({state:I,getters:M,mutations:_,actions:w}),A=(n("394c"),n("76a0")),L=n.n(A),T=(n("aa35"),n("7f7f"),n("cea2")),C=n("c1df"),O={install:function(e,t){e.prototype.$myMethod=function(){console.log(t)},e.prototype.$formatUnixDate=function(e,t){return C(parseInt(e+"000")).format(t)},e.prototype.$formatFromNowDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm";return C().format("YYYYMMDD")==C(parseInt(e+"000")).format("YYYYMMDD")?"今天 "+C(parseInt(e+"000")).format("HH:mm"):C(parseInt(e+"000")).format(t)},e.prototype.$formatDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return C(parseInt(e+"000")).format(t)},e.prototype.$robotNickname=function(e){for(var t,n=this.$store.getters.robots,a=0;a<n.length;a++)n[a].id==e&&(t=n[a].nickname);return t},e.prototype.$uploadFile=function(e){var t=e.mode,n=e.file,a=e.percent,r=e.success,o=e.fail,s=null,c=parseInt(1e4*Math.random()*(new Date).getTime())+n.name.substr(n.name.lastIndexOf("."));if(1==t){var i=new FormData;i.append("file",n),i.append("file_name",c),y.a.post("/public/upload",i).then((function(e){r&&r(e.data.data)})).catch((function(e){o&&o(e)}))}else if(2==t){var u={quality:.92,noCompressIfLarger:!0,maxWidth:1500};T["compressImage"](n,u).then((function(e){var t=T["upload"](e.dist,c,self.uploadToken.secret,{},{mimeType:null});s=t.subscribe({next:function(e){a&&a(e)},error:function(){var e=new FormData;e.append("fileType","image"),e.append("fileName","file"),e.append("key",c),e.append("token",self.uploadToken.secret),e.append("file",n),y.a.post("https://upload.qiniup.com",e).then((function(){r&&r(c)})).catch((function(e){o&&o(e)}))},complete:function(e){r&&r(e.key)}})}))}return s}}},D=O,Y=(n("6b54"),{install:function(e,t){console.log(t),e.MimcInstance=e.prototype.$mimcInstance={user:null,robot:null,platform:5,fetchMIMCTokenResult:null,_receiveP2PMsgCallback:null,_statusChangeCallback:null,_serverAckCallback:null,_disconnectCallback:null,init:function(e,t){this.platform=e.platform,this.fetchMIMCToken(e,t)},getLocalCacheUser:function(){var e=localStorage.getItem("user");return e?JSON.parse(e):null},fetchMIMCToken:function(e,t){var n=this;y.a.post("/public/register",e).then((function(e){n.fetchMIMCTokenResult=e.data.data.token,localStorage.setItem("user",JSON.stringify(e.data.data.user)),localStorage.setItem("Token",e.data.data.user.token),console.log("MIMC初始化成功"),n.getRobot((function(){t&&t(e.data.data.user)}))})).catch((function(e){t&&t(null),console.log(e)}))},getRobot:function(e){var t=this;y.a.get("/public/robot/"+this.platform).then((function(n){t.robot=n.data.data,e&&e()})).catch((function(e){console.log("mimc初始化失败,请刷新重试",e)}))},pushMessage:function(e){var t=this;y.a.post("/public/message/push",{msgType:"NORMAL_MSG",payload:e}).then((function(n){console.log(n.data),200!=n.data["code"]&&setTimeout((function(){return t.pushMessage(e)}),300)})).catch((function(){setTimeout((function(){return t.pushMessage(e)}),300)}))},login:function(e){var t=this;try{if(this.user)return;var n=this.fetchMIMCTokenResult;this.user=new MIMCUser(n.data.appId,n.data.appAccount,"666"),this.user.registerP2PMsgHandler((function(e){var n=JSON.parse(window.Base64.decode(e.getPayload()));t._receiveP2PMsgCallback&&t._receiveP2PMsgCallback(n)})),this.user.registerFetchToken((function(){return n})),this.user.registerStatusChange((function(e,n,a,r){t._statusChangeCallback&&t._statusChangeCallback(e,n,a,r)})),this.user.registerServerAckHandler((function(e,n,a,r){t._serverAckCallback&&t._serverAckCallback(e,n,a,r)})),this.user.registerDisconnHandler((function(){t._disconnectCallback&&t._disconnectCallback()})),this.user.login(),window.mimcInstance=this,e&&e(),console.log("MIMC登录成功")}catch(a){console.log("MIMC登录失败"),setTimeout((function(){t.login()}),1e3)}},logout:function(){this.user&&(this.user.logout(),this.user=null)},addEventListener:function(e,t){switch(e){case"receiveP2PMsg":this._receiveP2PMsgCallback=t;break;case"statusChange":this._statusChangeCallback=t;break;case"serverAck":this._serverAckCallback=t;break;case"disconnect":this._disconnectCallback=t;break}},sendMessage:function(e,t){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.user){var r={from_account:parseInt(this.fetchMIMCTokenResult.data.appAccount),to_account:parseInt(t),biz_type:e,version:"0",timestamp:parseInt(((new Date).getTime()+" ").substr(0,10)),key:(new Date).getTime(),read:0,platform:this.platform,transfer_account:0,payload:a+""},o=window.Base64.encode(JSON.stringify(r));return"contacts"!=e&&"pong"!=e&&"welcome"!=e&&"handshake"!=e&&"search_knowledge"!=e&&this.pushMessage(window.Base64.encode(o)),setTimeout((function(){n.user.sendMessage(t.toString(),o)}),150),r}Object(A["Toast"])({message:"服务异常,请刷新重试!"})},createLocalMessage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r={from_account:parseInt(this.fetchMIMCTokenResult.data.appAccount),to_account:parseInt(t),biz_type:e,version:"0",platform:this.platform,timestamp:parseInt(((new Date).getTime()+" ").substr(0,10)),key:(new Date).getTime(),read:0,transfer_account:parseInt(a),payload:n+""};return r}}}}),P=Y,$={months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY年MM月DD日",LLL:"YYYY年MM月DD日Ah点mm分",LLLL:"YYYY年MM月DD日ddddAh点mm分",l:"YYYY-M-D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d秒",m:"1分钟",mm:"%d分钟",h:"1小时",hh:"%d小时",d:"1天",dd:"%d天",M:"1个月",MM:"%d个月",y:"1年",yy:"%d年"},week:{dow:1,doy:4}},z=n("c1df");z.locale("zh-cn",$),y.a.defaults.baseURL="/api",y.a.interceptors.request.use((function(e){var t=localStorage.getItem("Token")||"";return e.headers=Object.assign({},{Token:t},e.headers),e}),(function(e){return console.log(e),Promise.reject(e)}));var H={clickToCloseNonZoomable:!1,fullscreenEl:!1};a["default"].use(b.a,H),a["default"].use(D),a["default"].use(P),a["default"].use(L.a),a["default"].config.productionTip=!1,new a["default"]({router:k,store:S,render:function(e){return e(m)}}).$mount("#app")},"7faf":function(e,t,n){"use strict";var a=n("8fba"),r=n.n(a);r.a},"8fba":function(e,t,n){}});
//# sourceMappingURL=app.a65684bc.js.map
\ No newline at end of file
(function(e){function t(t){for(var a,r,c=t[0],i=t[1],u=t[2],l=0,d=[];l<c.length;l++)r=c[l],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&d.push(o[r][0]),o[r]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);f&&f(t);while(d.length)d.shift()();return s.push.apply(s,u||[]),n()}function n(){for(var e,t=0;t<s.length;t++){for(var n=s[t],a=!0,r=1;r<n.length;r++){var c=n[r];0!==o[c]&&(a=!1)}a&&(s.splice(t--,1),e=i(i.s=n[0]))}return e}var a={},r={app:0},o={app:0},s=[];function c(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-046fefd3":"4711921f","chunk-2c568771":"a81203d3","chunk-612d9b40":"13a3a9bb","chunk-963a14da":"2d59ffcb"}[e]+".js"}function i(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n={"chunk-046fefd3":1,"chunk-2c568771":1,"chunk-612d9b40":1,"chunk-963a14da":1};r[e]?t.push(r[e]):0!==r[e]&&n[e]&&t.push(r[e]=new Promise((function(t,n){for(var a="css/"+({}[e]||e)+"."+{"chunk-046fefd3":"c3f39812","chunk-2c568771":"92feb802","chunk-612d9b40":"3daa63d4","chunk-963a14da":"86cb9867"}[e]+".css",o=i.p+a,s=document.getElementsByTagName("link"),c=0;c<s.length;c++){var u=s[c],l=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(l===a||l===o))return t()}var d=document.getElementsByTagName("style");for(c=0;c<d.length;c++){u=d[c],l=u.getAttribute("data-href");if(l===a||l===o)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var a=t&&t.target&&t.target.src||o,s=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");s.code="CSS_CHUNK_LOAD_FAILED",s.request=a,delete r[e],f.parentNode.removeChild(f),n(s)},f.href=o;var p=document.getElementsByTagName("head")[0];p.appendChild(f)})).then((function(){r[e]=0})));var a=o[e];if(0!==a)if(a)t.push(a[2]);else{var s=new Promise((function(t,n){a=o[e]=[t,n]}));t.push(a[2]=s);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=c(e);var d=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(f);var n=o[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+a+": "+r+")",d.name="ChunkLoadError",d.type=a,d.request=r,n[1](d)}o[e]=void 0}};var f=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],l=u.push.bind(u);u.push=t,u=u.slice();for(var d=0;d<u.length;d++)t(u[d]);var f=l;s.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},4678:function(e,t,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-SG":"cdab","./en-SG.js":"cdab","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-nz":"6f50","./en-nz.js":"6f50","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-tw":"90ea","./zh-tw.js":"90ea"};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=o,e.exports=r,r.id="4678"},"56d7":function(e,t,n){"use strict";n.r(t);n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isShowPageLoading?n("div",{staticClass:"mini-im-loading",class:{"pc-mini-im-loading":!e.isMobile}},[n("mt-spinner",{attrs:{type:"triple-bounce",color:"#26a2ff"}})],1):e._e(),n("router-view")],1)},o=[],s=(n("8e6e"),n("ac6a"),n("456d"),n("28a5"),n("bd86")),c=n("2f62");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(s["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={name:"app",data:function(){return{}},computed:u({},Object(c["b"])(["isShowPageLoading","userAccount","isArtificial","isMobile","artificialAccount","robotAccount","platform","userLocal","uid","uid"])),created:function(){var e=this;this.getLocal(),setTimeout((function(){e.handelUrl(),e.runApp()}),500),this.onCheckIsOutSession()},methods:{runApp:function(){var e=this,t=this.$mimcInstance.getLocalCacheUser();t&&null!=this.userAccount&&this.userAccount!=t.id&&0!=this.userAccount&&localStorage.clear(),this.$mimcInstance.init({type:0,address:this.userLocal,uid:this.uid||0,platform:this.platform,account_id:this.userAccount||0},(function(t){if(e.upLastActivity(),e.$store.dispatch("onGetCompanyInfo"),e.$store.dispatch("onGetUploadSecret"),e.$store.dispatch("onGetWorkorderTypes"),e.$store.dispatch("onGetWorkorders"),t){e.$store.commit("updateState",{userAccount:t.id,userInfo:t});var n=e.$mimcInstance.robot;localStorage.setItem("robot_"+n.id,JSON.stringify(n)),e.$store.commit("updateState",{robotAccount:n.id,robotInfo:n}),e.$mimcInstance.login();var a=function t(){null!=e.$mimcInstance.user&&e.$mimcInstance.user.isLogin()?e.artificialAccount||(console.log("握手消息"),e.$mimcInstance.sendMessage("handshake",e.robotAccount,"")):setTimeout((function(){return t()}),200)};a()}else setTimeout((function(){return e.runApp()}),1e3)}))},handelUrl:function(){var e,t,n,a,r,o,s,c,i=this.$route.query;i&&i.c&&localStorage.clear();var u=this.queryToJson(localStorage.getItem("urlQuery"));u&&(i=Object.assign({},u,i)),i&&("0"==i.h&&(e=!1),"0"==i.m&&(t=!1,e=!1),i.u&&(n=parseInt(i.u)),i.p&&(c=parseInt(i.p)),i.uid&&(a=parseInt(i.uid)),"0"==i.r?(r=!0,o=parseInt(i.a)):s=parseInt(i.a));var l=localStorage.getItem("isArtificial"),d=localStorage.getItem("artificialAccount");"true"==l&&(r=!0,o=parseInt(d)),this.$store.commit("updateState",{isShowHeader:e,isMobile:t,userAccount:n,uid:a,isArtificial:r,artificialAccount:o,robotAccount:s,platform:c})},queryToJson:function(e){if(!e||""==e)return null;var t=e.substr(1,e.length).split("&");if(!t)return null;for(var n={},a=0;a<t.length;a++){var r=t[a].split("=");n[r[0]]=r[1]}return n},getLocal:function(){this.$store.dispatch("onGetLocal",this.$store.state.AmapAPPKey)},upLastActivity:function(){var e=this;this.onCheckIsOutSession();var t=this.$mimcInstance.getLocalCacheUser();t&&this.$store.dispatch("onUpdateLastActivity"),this.isArtificial&&localStorage.setItem("artificialTime",Date.now()),setTimeout((function(){return e.upLastActivity()}),6e4)},onCheckIsOutSession:function(){var e=localStorage.getItem("artificialTime");e&&(e=parseInt(e),Date.now()>e+6e5&&this.$store.commit("updateState",{isArtificial:!1,artificialAccount:null}))}}},d=l,f=(n("7faf"),n("2877")),p=Object(f["a"])(d,r,o,!1,null,null,null),m=p.exports,h=n("d1d4"),b=n.n(h),g=n("8c4f");a["default"].use(g["a"]);var j=new g["a"]({base:"",routes:[{path:"/",redirect:"/index"},{path:"/index",name:"index",component:function(){return n.e("chunk-963a14da").then(n.bind(null,"e0a0"))}},{path:"/workorder",name:"workorder",component:function(){return n.e("chunk-612d9b40").then(n.bind(null,"fb09"))}},{path:"/workorder/create",name:"workorder_create",component:function(){return n.e("chunk-2c568771").then(n.bind(null,"ede1"))}},{path:"/workorder/detail/:id",name:"workorder_detail",component:function(){return n.e("chunk-046fefd3").then(n.bind(null,"4033"))}}]}),k=j,v=n("bc3a"),y=n.n(v),w={onGetMessages:function(e,t){var n=20;y.a.post("/public/messages",{timestamp:t.timestamp,page_size:n}).then((function(a){var r=[],o=a.data.data.list||[];(o.length<n||0==o.length)&&e.commit("updateState",{isLoadMorEnd:!0}),r=0==t.oldMsg.length&&o.length>0?a.data.data.list:o.length>0?o.concat(t.oldMsg):t.oldMsg,e.commit("updateState",{messages:r}),t.callback&&t.callback()})).catch((function(e){console.log(e)}))},onGetLocal:function(e,t){y.a.get("https://restapi.amap.com/v3/ip?key="+t).then((function(t){t.data.province&&e.commit("updateState",{userLocal:t.data.province+t.data.city})})).catch((function(e){console.error(e)}))},onCleanRead:function(){y.a.get("/public/clean_read/")},onUpdateLastActivity:function(){y.a.get("/public/activity/")},onToggleWindow:function(e,t){y.a.put("/public/window/",{window:t})},onGetCompanyInfo:function(e){y.a.get("/public/company").then((function(t){e.commit("updateState",{companyInfo:t.data.data})})).catch((function(e){console.error(e)}))},onGetUploadSecret:function(e){y.a.get("/public/secret").then((function(t){e.commit("updateState",{uploadToken:t.data.data})}))},onGetWorkorderTypes:function(e){y.a.get("/public/workorder/types").then((function(t){e.commit("updateState",{workorderTypes:t.data.data})}))},onGetWorkorders:function(e){y.a.get("/public/workorders").then((function(t){e.commit("updateState",{workorders:t.data.data})}))}},_={updateState:function(e,t){var n=e;for(var a in t)void 0!=t[a]&&(n[a]=t[a]);e=n}},M=(n("4917"),{platform:function(e){return e.platform},isArtificial:function(e){return e.isArtificial},isShowHeader:function(e){return e.isShowHeader},isMobile:function(e){return e.isMobile},uid:function(e){return e.uid},userAccount:function(e){return e.userAccount},artificialAccount:function(e){return e.artificialAccount},robotInfo:function(e){return e.robotInfo},robotAccount:function(e){return e.robotAccount},isLoadMorEnd:function(e){return e.isLoadMorEnd},messages:function(e){return e.messages||[]},userLocal:function(e){return e.userLocal},isLoadMorLoading:function(e){return e.isLoadMorLoading},userInfo:function(e){return e.userInfo},companyInfo:function(e){return e.companyInfo},uploadToken:function(e){return e.uploadToken},isIOS:function(){return!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},isSafari:function(){return navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")<1},isJudgeBigScreen:function(){var e=!1,t=window.screen.height/window.screen.width,n=window.screen.height==window.screen.availHeight?1.8:1.65;return t>n&&(e=!0),e},isShowPageLoading:function(e){return e.isShowPageLoading},workorders:function(e){return e.workorders},workorderTypes:function(e){return e.workorderTypes}}),I={platform:5,isShowPageLoading:!1,isShowHeader:!0,isMobile:!0,isArtificial:!1,uid:0,userAccount:0,artificialAccount:null,robotInfo:null,robotAccount:null,messages:[],isLoadMorEnd:!1,userLocal:"",AmapAPPKey:"73ef1dc5c5ea086e7330b95aede42953",isLoadMorLoading:!1,userInfo:{},companyInfo:null,uploadToken:null,workorders:[],workorderTypes:[]};a["default"].use(c["a"]);var S=new c["a"].Store({state:I,getters:M,mutations:_,actions:w}),A=(n("394c"),n("76a0")),L=n.n(A),T=(n("aa35"),n("7f7f"),n("cea2")),C=n("c1df"),O={install:function(e,t){e.prototype.$myMethod=function(){console.log(t)},e.prototype.$formatUnixDate=function(e,t){return C(parseInt(e+"000")).format(t)},e.prototype.$formatFromNowDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm";return C().format("YYYYMMDD")==C(parseInt(e+"000")).format("YYYYMMDD")?"今天 "+C(parseInt(e+"000")).format("HH:mm"):C(parseInt(e+"000")).format(t)},e.prototype.$formatDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return C(parseInt(e+"000")).format(t)},e.prototype.$robotNickname=function(e){for(var t,n=this.$store.getters.robots,a=0;a<n.length;a++)n[a].id==e&&(t=n[a].nickname);return t},e.prototype.$uploadFile=function(e){var t=e.mode,n=e.secret,a=e.file,r=e.percent,o=e.success,s=e.fail,c=null,i=parseInt(1e4*Math.random()*(new Date).getTime())+a.name.substr(a.name.lastIndexOf("."));if(1==t){var u=new FormData;u.append("file",a),u.append("file_name",i),y.a.post("/public/upload",u).then((function(e){o&&o(e.data.data)})).catch((function(e){s&&s(e)}))}else if(2==t){var l={quality:.92,noCompressIfLarger:!0,maxWidth:1500};T["compressImage"](a,l).then((function(e){var t=T["upload"](e.dist,i,n,{},{mimeType:null});c=t.subscribe({next:function(e){r&&r(e)},error:function(){var e=new FormData;e.append("fileType","image"),e.append("fileName","file"),e.append("key",i),e.append("token",n),e.append("file",a),y.a.post("https://upload.qiniup.com",e).then((function(){o&&o(i)})).catch((function(e){s&&s(e)}))},complete:function(e){o&&o(e.key)}})}))}return c}}},D=O,Y=(n("6b54"),{install:function(e,t){console.log(t),e.MimcInstance=e.prototype.$mimcInstance={user:null,robot:null,platform:5,fetchMIMCTokenResult:null,_receiveP2PMsgCallback:null,_statusChangeCallback:null,_serverAckCallback:null,_disconnectCallback:null,init:function(e,t){this.platform=e.platform,this.fetchMIMCToken(e,t)},getLocalCacheUser:function(){var e=localStorage.getItem("user");return e?JSON.parse(e):null},fetchMIMCToken:function(e,t){var n=this;y.a.post("/public/register",e).then((function(e){n.fetchMIMCTokenResult=e.data.data.token,localStorage.setItem("user",JSON.stringify(e.data.data.user)),localStorage.setItem("Token",e.data.data.user.token),console.log("MIMC初始化成功"),n.getRobot((function(){t&&t(e.data.data.user)}))})).catch((function(e){t&&t(null),console.log(e)}))},getRobot:function(e){var t=this;y.a.get("/public/robot/"+this.platform).then((function(n){t.robot=n.data.data,e&&e()})).catch((function(e){console.log("mimc初始化失败,请刷新重试",e)}))},pushMessage:function(e){var t=this;y.a.post("/public/message/push",{msgType:"NORMAL_MSG",payload:e}).then((function(n){console.log(n.data),200!=n.data["code"]&&setTimeout((function(){return t.pushMessage(e)}),300)})).catch((function(){setTimeout((function(){return t.pushMessage(e)}),300)}))},login:function(e){var t=this;try{if(this.user)return;var n=this.fetchMIMCTokenResult;this.user=new MIMCUser(n.data.appId,n.data.appAccount,"666"),this.user.registerP2PMsgHandler((function(e){var n=JSON.parse(window.Base64.decode(e.getPayload()));t._receiveP2PMsgCallback&&t._receiveP2PMsgCallback(n)})),this.user.registerFetchToken((function(){return n})),this.user.registerStatusChange((function(e,n,a,r){t._statusChangeCallback&&t._statusChangeCallback(e,n,a,r)})),this.user.registerServerAckHandler((function(e,n,a,r){t._serverAckCallback&&t._serverAckCallback(e,n,a,r)})),this.user.registerDisconnHandler((function(){t._disconnectCallback&&t._disconnectCallback()})),this.user.login(),window.mimcInstance=this,e&&e(),console.log("MIMC登录成功")}catch(a){console.log("MIMC登录失败"),setTimeout((function(){t.login()}),1e3)}},logout:function(){this.user&&(this.user.logout(),this.user=null)},addEventListener:function(e,t){switch(e){case"receiveP2PMsg":this._receiveP2PMsgCallback=t;break;case"statusChange":this._statusChangeCallback=t;break;case"serverAck":this._serverAckCallback=t;break;case"disconnect":this._disconnectCallback=t;break}},sendMessage:function(e,t){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.user){var r={from_account:parseInt(this.fetchMIMCTokenResult.data.appAccount),to_account:parseInt(t),biz_type:e,version:"0",timestamp:parseInt(((new Date).getTime()+" ").substr(0,10)),key:(new Date).getTime(),read:0,platform:this.platform,transfer_account:0,payload:a+""},o=window.Base64.encode(JSON.stringify(r));return"contacts"!=e&&"pong"!=e&&"welcome"!=e&&"handshake"!=e&&"search_knowledge"!=e&&this.pushMessage(window.Base64.encode(o)),setTimeout((function(){n.user.sendMessage(t.toString(),o)}),150),r}Object(A["Toast"])({message:"服务异常,请刷新重试!"})},createLocalMessage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r={from_account:parseInt(this.fetchMIMCTokenResult.data.appAccount),to_account:parseInt(t),biz_type:e,version:"0",platform:this.platform,timestamp:parseInt(((new Date).getTime()+" ").substr(0,10)),key:(new Date).getTime(),read:0,transfer_account:parseInt(a),payload:n+""};return r}}}}),P=Y,$={months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY年MM月DD日",LLL:"YYYY年MM月DD日Ah点mm分",LLLL:"YYYY年MM月DD日ddddAh点mm分",l:"YYYY-M-D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d秒",m:"1分钟",mm:"%d分钟",h:"1小时",hh:"%d小时",d:"1天",dd:"%d天",M:"1个月",MM:"%d个月",y:"1年",yy:"%d年"},week:{dow:1,doy:4}},z=n("c1df");z.locale("zh-cn",$),y.a.defaults.baseURL="/api",y.a.interceptors.request.use((function(e){var t=localStorage.getItem("Token")||"";return e.headers=Object.assign({},{Token:t},e.headers),e}),(function(e){return console.log(e),Promise.reject(e)}));var H={clickToCloseNonZoomable:!1,fullscreenEl:!1};a["default"].use(b.a,H),a["default"].use(D),a["default"].use(P),a["default"].use(L.a),a["default"].config.productionTip=!1,new a["default"]({router:k,store:S,render:function(e){return e(m)}}).$mount("#app")},"7faf":function(e,t,n){"use strict";var a=n("8fba"),r=n.n(a);r.a},"8fba":function(e,t,n){}});
//# sourceMappingURL=app.9bd82821.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/moment/locale sync ^\\.\\/.*$","webpack:///./src/App.vue?46e5","webpack:///src/App.vue","webpack:///./src/App.vue?2e55","webpack:///./src/App.vue?bff9","webpack:///./src/router.js","webpack:///./src/store/actions.js","webpack:///./src/store/mutations.js","webpack:///./src/store/getters.js","webpack:///./src/store/state.js","webpack:///./src/store/index.js","webpack:///./plugins/help.js","webpack:///./plugins/mimc.js","webpack:///./resource/moment_locale.js","webpack:///./src/main.js","webpack:///./src/App.vue?2c4a"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","jsonpScriptSrc","p","exports","module","l","e","promises","cssChunks","Promise","resolve","reject","href","fullhref","existingLinkTags","document","getElementsByTagName","tag","dataHref","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","code","parentNode","removeChild","head","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","error","clearTimeout","chunk","errorType","realSrc","message","name","undefined","setTimeout","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice","map","webpackContext","req","id","webpackContextResolve","keys","_vm","this","_h","$createElement","_c","_self","staticClass","class","isMobile","attrs","_e","staticRenderFns","computed","created","getLocal","onCheckIsOutSession","methods","runApp","localStorage","clear","$mimcInstance","init","handelUrl","isShowHeader","query","$route","urlQuery","queryToJson","getItem","assign","h","u","userAccount","parseInt","platform","uid","isArtificial","artificialAccount","a","robotAccount","isArtificialString","artificialAccountString","$store","commit","str","substr","split","mapData","temArr","dispatch","state","AmapAPPKey","upLastActivity","user","setItem","Date","now","artificialTime","component","Vue","use","Router","router","base","process","routes","path","redirect","onGetMessages","context","params","pageSize","axios","post","timestamp","page_size","response","newMessage","messages","list","isLoadMorEnd","oldMsg","concat","callback","catch","log","onGetLocal","APPKey","province","userLocal","city","onCleanRead","onUpdateLastActivity","onToggleWindow","put","onGetCompanyInfo","companyInfo","onGetUploadSecret","uploadToken","onGetWorkorderTypes","workorderTypes","onGetWorkorders","workorders","updateState","newObj","oldState","robotInfo","isLoadMorLoading","userInfo","isIOS","navigator","userAgent","match","isSafari","indexOf","isJudgeBigScreen","yes","rate","screen","height","width","limit","availHeight","isShowPageLoading","Vuex","Store","getters","mutations","actions","moment","require","Helps","options","$myMethod","$formatUnixDate","unix","format","$formatFromNowDate","$formatDate","$robotNickname","nickname","robots","$uploadFile","secret","file","percent","success","fail","qiniuObservable","fileName","Math","random","getTime","lastIndexOf","fd","FormData","append","res","quality","noCompressIfLarger","maxWidth","qiniu","observable","dist","mimeType","subscribe","next","formData","complete","MimcPlugin","MimcInstance","robot","fetchMIMCTokenResult","_receiveP2PMsgCallback","_statusChangeCallback","_serverAckCallback","_disconnectCallback","fetchMIMCToken","getLocalCacheUser","userString","JSON","parse","token","stringify","getRobot","pushMessage","payload","login","MIMCUser","appId","appAccount","registerP2PMsgHandler","msg","Base64","decode","getPayload","registerFetchToken","registerStatusChange","bindResult","errType","errReason","errDesc","registerServerAckHandler","packetId","sequence","timeStamp","errMsg","registerDisconnHandler","mimcInstance","logout","addEventListener","sendMessage","toAccount","messageJson","jsonBase64Msg","encode","toString","Toast","createLocalMessage","transferAccount","months","monthsShort","weekdays","weekdaysShort","weekdaysMin","longDateFormat","LT","LTS","L","LL","LLL","LLLL","ll","lll","llll","meridiemParse","meridiemHour","hour","meridiem","minute","hm","calendar","sameDay","nextDay","nextWeek","lastDay","lastWeek","sameElse","dayOfMonthOrdinalParse","ordinal","number","period","relativeTime","future","past","ss","mm","hh","dd","M","MM","y","yy","week","dow","doy","locale","momentLocal","defaults","baseURL","interceptors","config","headers","clickToCloseNonZoomable","fullscreenEl","preview","MintUI","productionTip","store","render","App","$mount"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAG/Be,GAAqBA,EAAoBhB,GAE5C,MAAMO,EAASC,OACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAI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ACFC,IAAK,EACLC,IAAK,IChFTxI,EAASC,EAAQ,QACrBD,EAAOyI,OAAO,QAASC,GAIvBnM,IAAMoM,SAASC,QAAU,OAGzBrM,IAAMsM,aAAa7U,QAAQ2H,KAAI,SAAUmN,GACvC,IAAMzF,EAAQpK,aAAaU,QAAQ,UAAY,GAI/C,OAHAmP,EAAOC,QAAUhY,OAAO6I,OAAO,GAAI,CACjC,MAASyJ,GACRyF,EAAOC,SACHD,KACN,SAAU3T,GAGX,OADAiC,QAAQgG,IAAIjI,GACLtC,QAAQE,OAAOoC,MAGxB,IAAIgL,EAAQ,CACV6I,yBAAyB,EACzBC,cAAa,GAEfvN,aAAIC,IAAIuN,IAAS/I,GACjBzE,aAAIC,IAAIuE,GACRxE,aAAIC,IAAI6G,GACR9G,aAAIC,IAAIwN,KACRzN,aAAIoN,OAAOM,eAAgB,EAC3B,IAAI1N,aAAI,CACNG,SACAwN,QACAC,OAAQ,SAAAzP,GAAC,OAAIA,EAAE0P,MACdC,OAAO,S,oCC5CV,yBAAqf,EAAG,G","file":"js/app.9bd82821.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t\"app\": 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"js/\" + ({}[chunkId]||chunkId) + \".\" + {\"chunk-046fefd3\":\"4711921f\",\"chunk-2c568771\":\"a81203d3\",\"chunk-612d9b40\":\"13a3a9bb\",\"chunk-963a14da\":\"2d59ffcb\"}[chunkId] + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"chunk-046fefd3\":1,\"chunk-2c568771\":1,\"chunk-612d9b40\":1,\"chunk-963a14da\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"css/\" + ({}[chunkId]||chunkId) + \".\" + {\"chunk-046fefd3\":\"c3f39812\",\"chunk-2c568771\":\"92feb802\",\"chunk-612d9b40\":\"3daa63d4\",\"chunk-963a14da\":\"86cb9867\"}[chunkId] + \".css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","var map = {\n\t\"./af\": \"2bfb\",\n\t\"./af.js\": \"2bfb\",\n\t\"./ar\": \"8e73\",\n\t\"./ar-dz\": \"a356\",\n\t\"./ar-dz.js\": \"a356\",\n\t\"./ar-kw\": \"423e\",\n\t\"./ar-kw.js\": \"423e\",\n\t\"./ar-ly\": \"1cfd\",\n\t\"./ar-ly.js\": \"1cfd\",\n\t\"./ar-ma\": \"0a84\",\n\t\"./ar-ma.js\": \"0a84\",\n\t\"./ar-sa\": \"8230\",\n\t\"./ar-sa.js\": \"8230\",\n\t\"./ar-tn\": \"6d83\",\n\t\"./ar-tn.js\": \"6d83\",\n\t\"./ar.js\": \"8e73\",\n\t\"./az\": \"485c\",\n\t\"./az.js\": \"485c\",\n\t\"./be\": \"1fc1\",\n\t\"./be.js\": \"1fc1\",\n\t\"./bg\": \"84aa\",\n\t\"./bg.js\": \"84aa\",\n\t\"./bm\": \"a7fa\",\n\t\"./bm.js\": \"a7fa\",\n\t\"./bn\": \"9043\",\n\t\"./bn.js\": \"9043\",\n\t\"./bo\": \"d26a\",\n\t\"./bo.js\": \"d26a\",\n\t\"./br\": \"6887\",\n\t\"./br.js\": \"6887\",\n\t\"./bs\": \"2554\",\n\t\"./bs.js\": \"2554\",\n\t\"./ca\": \"d716\",\n\t\"./ca.js\": \"d716\",\n\t\"./cs\": \"3c0d\",\n\t\"./cs.js\": \"3c0d\",\n\t\"./cv\": \"03ec\",\n\t\"./cv.js\": \"03ec\",\n\t\"./cy\": \"9797\",\n\t\"./cy.js\": \"9797\",\n\t\"./da\": \"0f14\",\n\t\"./da.js\": \"0f14\",\n\t\"./de\": \"b469\",\n\t\"./de-at\": \"b3eb\",\n\t\"./de-at.js\": \"b3eb\",\n\t\"./de-ch\": \"bb71\",\n\t\"./de-ch.js\": \"bb71\",\n\t\"./de.js\": \"b469\",\n\t\"./dv\": \"598a\",\n\t\"./dv.js\": \"598a\",\n\t\"./el\": \"8d47\",\n\t\"./el.js\": \"8d47\",\n\t\"./en-SG\": \"cdab\",\n\t\"./en-SG.js\": \"cdab\",\n\t\"./en-au\": \"0e6b\",\n\t\"./en-au.js\": \"0e6b\",\n\t\"./en-ca\": \"3886\",\n\t\"./en-ca.js\": \"3886\",\n\t\"./en-gb\": \"39a6\",\n\t\"./en-gb.js\": \"39a6\",\n\t\"./en-ie\": \"e1d3\",\n\t\"./en-ie.js\": \"e1d3\",\n\t\"./en-il\": \"7333\",\n\t\"./en-il.js\": \"7333\",\n\t\"./en-nz\": \"6f50\",\n\t\"./en-nz.js\": \"6f50\",\n\t\"./eo\": \"65db\",\n\t\"./eo.js\": \"65db\",\n\t\"./es\": \"898b\",\n\t\"./es-do\": \"0a3c\",\n\t\"./es-do.js\": \"0a3c\",\n\t\"./es-us\": \"55c9\",\n\t\"./es-us.js\": \"55c9\",\n\t\"./es.js\": \"898b\",\n\t\"./et\": \"ec18\",\n\t\"./et.js\": \"ec18\",\n\t\"./eu\": \"0ff2\",\n\t\"./eu.js\": \"0ff2\",\n\t\"./fa\": \"8df4\",\n\t\"./fa.js\": \"8df4\",\n\t\"./fi\": \"81e9\",\n\t\"./fi.js\": \"81e9\",\n\t\"./fo\": \"0721\",\n\t\"./fo.js\": \"0721\",\n\t\"./fr\": \"9f26\",\n\t\"./fr-ca\": \"d9f8\",\n\t\"./fr-ca.js\": \"d9f8\",\n\t\"./fr-ch\": \"0e49\",\n\t\"./fr-ch.js\": \"0e49\",\n\t\"./fr.js\": \"9f26\",\n\t\"./fy\": \"7118\",\n\t\"./fy.js\": \"7118\",\n\t\"./ga\": \"5120\",\n\t\"./ga.js\": \"5120\",\n\t\"./gd\": \"f6b4\",\n\t\"./gd.js\": \"f6b4\",\n\t\"./gl\": \"8840\",\n\t\"./gl.js\": \"8840\",\n\t\"./gom-latn\": \"0caa\",\n\t\"./gom-latn.js\": \"0caa\",\n\t\"./gu\": \"e0c5\",\n\t\"./gu.js\": \"e0c5\",\n\t\"./he\": \"c7aa\",\n\t\"./he.js\": \"c7aa\",\n\t\"./hi\": \"dc4d\",\n\t\"./hi.js\": \"dc4d\",\n\t\"./hr\": \"4ba9\",\n\t\"./hr.js\": \"4ba9\",\n\t\"./hu\": \"5b14\",\n\t\"./hu.js\": \"5b14\",\n\t\"./hy-am\": \"d6b6\",\n\t\"./hy-am.js\": \"d6b6\",\n\t\"./id\": \"5038\",\n\t\"./id.js\": \"5038\",\n\t\"./is\": \"0558\",\n\t\"./is.js\": \"0558\",\n\t\"./it\": \"6e98\",\n\t\"./it-ch\": \"6f12\",\n\t\"./it-ch.js\": \"6f12\",\n\t\"./it.js\": \"6e98\",\n\t\"./ja\": \"079e\",\n\t\"./ja.js\": \"079e\",\n\t\"./jv\": \"b540\",\n\t\"./jv.js\": \"b540\",\n\t\"./ka\": \"201b\",\n\t\"./ka.js\": \"201b\",\n\t\"./kk\": \"6d79\",\n\t\"./kk.js\": \"6d79\",\n\t\"./km\": \"e81d\",\n\t\"./km.js\": \"e81d\",\n\t\"./kn\": \"3e92\",\n\t\"./kn.js\": \"3e92\",\n\t\"./ko\": \"22f8\",\n\t\"./ko.js\": \"22f8\",\n\t\"./ku\": \"2421\",\n\t\"./ku.js\": \"2421\",\n\t\"./ky\": \"9609\",\n\t\"./ky.js\": \"9609\",\n\t\"./lb\": \"440c\",\n\t\"./lb.js\": \"440c\",\n\t\"./lo\": \"b29d\",\n\t\"./lo.js\": \"b29d\",\n\t\"./lt\": \"26f9\",\n\t\"./lt.js\": \"26f9\",\n\t\"./lv\": \"b97c\",\n\t\"./lv.js\": \"b97c\",\n\t\"./me\": \"293c\",\n\t\"./me.js\": \"293c\",\n\t\"./mi\": \"688b\",\n\t\"./mi.js\": \"688b\",\n\t\"./mk\": \"6909\",\n\t\"./mk.js\": \"6909\",\n\t\"./ml\": \"02fb\",\n\t\"./ml.js\": \"02fb\",\n\t\"./mn\": \"958b\",\n\t\"./mn.js\": \"958b\",\n\t\"./mr\": \"39bd\",\n\t\"./mr.js\": \"39bd\",\n\t\"./ms\": \"ebe4\",\n\t\"./ms-my\": \"6403\",\n\t\"./ms-my.js\": \"6403\",\n\t\"./ms.js\": \"ebe4\",\n\t\"./mt\": \"1b45\",\n\t\"./mt.js\": \"1b45\",\n\t\"./my\": \"8689\",\n\t\"./my.js\": \"8689\",\n\t\"./nb\": \"6ce3\",\n\t\"./nb.js\": \"6ce3\",\n\t\"./ne\": \"3a39\",\n\t\"./ne.js\": \"3a39\",\n\t\"./nl\": \"facd\",\n\t\"./nl-be\": \"db29\",\n\t\"./nl-be.js\": \"db29\",\n\t\"./nl.js\": \"facd\",\n\t\"./nn\": \"b84c\",\n\t\"./nn.js\": \"b84c\",\n\t\"./pa-in\": \"f3ff\",\n\t\"./pa-in.js\": \"f3ff\",\n\t\"./pl\": \"8d57\",\n\t\"./pl.js\": \"8d57\",\n\t\"./pt\": \"f260\",\n\t\"./pt-br\": \"d2d4\",\n\t\"./pt-br.js\": \"d2d4\",\n\t\"./pt.js\": \"f260\",\n\t\"./ro\": \"972c\",\n\t\"./ro.js\": \"972c\",\n\t\"./ru\": \"957c\",\n\t\"./ru.js\": \"957c\",\n\t\"./sd\": \"6784\",\n\t\"./sd.js\": \"6784\",\n\t\"./se\": \"ffff\",\n\t\"./se.js\": \"ffff\",\n\t\"./si\": \"eda5\",\n\t\"./si.js\": \"eda5\",\n\t\"./sk\": \"7be6\",\n\t\"./sk.js\": \"7be6\",\n\t\"./sl\": \"8155\",\n\t\"./sl.js\": \"8155\",\n\t\"./sq\": \"c8f3\",\n\t\"./sq.js\": \"c8f3\",\n\t\"./sr\": \"cf1e\",\n\t\"./sr-cyrl\": \"13e9\",\n\t\"./sr-cyrl.js\": \"13e9\",\n\t\"./sr.js\": \"cf1e\",\n\t\"./ss\": \"52bd\",\n\t\"./ss.js\": \"52bd\",\n\t\"./sv\": \"5fbd\",\n\t\"./sv.js\": \"5fbd\",\n\t\"./sw\": \"74dc\",\n\t\"./sw.js\": \"74dc\",\n\t\"./ta\": \"3de5\",\n\t\"./ta.js\": \"3de5\",\n\t\"./te\": \"5cbb\",\n\t\"./te.js\": \"5cbb\",\n\t\"./tet\": \"576c\",\n\t\"./tet.js\": \"576c\",\n\t\"./tg\": \"3b1b\",\n\t\"./tg.js\": \"3b1b\",\n\t\"./th\": \"10e8\",\n\t\"./th.js\": \"10e8\",\n\t\"./tl-ph\": \"0f38\",\n\t\"./tl-ph.js\": \"0f38\",\n\t\"./tlh\": \"cf75\",\n\t\"./tlh.js\": \"cf75\",\n\t\"./tr\": \"0e81\",\n\t\"./tr.js\": \"0e81\",\n\t\"./tzl\": \"cf51\",\n\t\"./tzl.js\": \"cf51\",\n\t\"./tzm\": \"c109\",\n\t\"./tzm-latn\": \"b53d\",\n\t\"./tzm-latn.js\": \"b53d\",\n\t\"./tzm.js\": \"c109\",\n\t\"./ug-cn\": \"6117\",\n\t\"./ug-cn.js\": \"6117\",\n\t\"./uk\": \"ada2\",\n\t\"./uk.js\": \"ada2\",\n\t\"./ur\": \"5294\",\n\t\"./ur.js\": \"5294\",\n\t\"./uz\": \"2e8c\",\n\t\"./uz-latn\": \"010e\",\n\t\"./uz-latn.js\": \"010e\",\n\t\"./uz.js\": \"2e8c\",\n\t\"./vi\": \"2921\",\n\t\"./vi.js\": \"2921\",\n\t\"./x-pseudo\": \"fd7e\",\n\t\"./x-pseudo.js\": \"fd7e\",\n\t\"./yo\": \"7f33\",\n\t\"./yo.js\": \"7f33\",\n\t\"./zh-cn\": \"5c3a\",\n\t\"./zh-cn.js\": \"5c3a\",\n\t\"./zh-hk\": \"49ab\",\n\t\"./zh-hk.js\": \"49ab\",\n\t\"./zh-tw\": \"90ea\",\n\t\"./zh-tw.js\": \"90ea\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"4678\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.isShowPageLoading)?_c('div',{staticClass:\"mini-im-loading\",class:{'pc-mini-im-loading': !_vm.isMobile}},[_c('mt-spinner',{attrs:{\"type\":\"triple-bounce\",\"color\":\"#26a2ff\"}})],1):_vm._e(),_c('router-view')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div>\n <div\n class=\"mini-im-loading\"\n :class=\"{'pc-mini-im-loading': !isMobile}\"\n v-if=\"isShowPageLoading\"\n >\n <mt-spinner type=\"triple-bounce\" color=\"#26a2ff\"></mt-spinner>\n </div>\n <router-view />\n </div>\n</template>\n\n<script>\nimport { mapGetters } from \"vuex\";\nexport default {\n name: \"app\",\n data() {\n return {};\n },\n computed: {\n ...mapGetters([\n \"isShowPageLoading\",\n \"userAccount\",\n \"isArtificial\",\n \"isMobile\",\n \"artificialAccount\",\n \"robotAccount\",\n \"platform\",\n \"userLocal\",\n \"uid\",\n \"uid\",\n ])\n },\n created() {\n this.getLocal();\n setTimeout(() => {\n this.handelUrl()\n this.runApp()\n }, 500);\n // 判断是否被踢出对话\n this.onCheckIsOutSession();\n },\n methods: {\n runApp() {\n const user = this.$mimcInstance.getLocalCacheUser();\n if (\n user &&\n this.userAccount != null &&\n this.userAccount != user.id &&\n this.userAccount != 0\n ) {\n localStorage.clear();\n }\n this.$mimcInstance.init(\n {\n type: 0, // 默认0\n address: this.userLocal,\n uid: this.uid || 0, // 预留字段扩展自己平台业务\n platform: this.platform, // 渠道(平台)\n account_id: this.userAccount || 0 // 用户ID\n // 初始化完成这里返回一个user\n },\n user => {\n\n // 上报活动时间\n this.upLastActivity();\n\n // 获取公司信息\n this.$store.dispatch(\"onGetCompanyInfo\");\n\n // 获取上传配置信息\n this.$store.dispatch(\"onGetUploadSecret\");\n\n // 获取工单类型\n this.$store.dispatch(\"onGetWorkorderTypes\");\n\n // 获取工单列表\n this.$store.dispatch(\"onGetWorkorders\");\n\n // 重试\n if (!user) {\n setTimeout(() => this.runApp(), 1000);\n return;\n }\n\n // user\n this.$store.commit(\"updateState\", {\n userAccount: user.id,\n userInfo: user\n });\n\n // robot\n var robot = this.$mimcInstance.robot;\n localStorage.setItem(\"robot_\" + robot.id, JSON.stringify(robot));\n this.$store.commit(\"updateState\", {\n robotAccount: robot.id,\n robotInfo: robot\n });\n\n // 登录mimc\n this.$mimcInstance.login();\n\n // 发送一条握手消息给机器人\n var sentHandshake =() =>{\n if (this.$mimcInstance.user == null || !this.$mimcInstance.user.isLogin()) {\n setTimeout(() => sentHandshake(), 200);\n return\n }\n if (!this.artificialAccount) {\n console.log(\"握手消息\");\n this.$mimcInstance.sendMessage(\n \"handshake\",\n this.robotAccount,\n \"\"\n );\n }\n }\n sentHandshake()\n\n\n }\n );\n },\n // Handelurl\n handelUrl() {\n // url query 介绍\n // h == header 0 不显示 1显示 默认值显示,PC端不显示\n // m == mobile 0 不是移动端 1是移动端\n // p == platform 平台ID(渠道)\n // r == robot 0 当前为为客服 1机器人(对应的账号为a)\n // a == account 当前提供对话服务的账号,即客服账号,或机器人\n // u == userAccount 会话用户账号\n // uid == userId 业务平台的ID\n // c = 1 清除本地缓存\n var isShowHeader,\n isMobile,\n userAccount,\n uid,\n isArtificial,\n artificialAccount,\n robotAccount,\n platform;\n var query = this.$route.query;\n if (query && query.c) localStorage.clear();\n // 获取本地缓存\n var urlQuery = this.queryToJson(localStorage.getItem(\"urlQuery\"));\n if (urlQuery) {\n query = Object.assign({}, urlQuery, query);\n }\n if (query) {\n if (query.h == \"0\") isShowHeader = false;\n if (query.m == \"0\") {\n isMobile = false;\n isShowHeader = false;\n }\n if (query.u) userAccount = parseInt(query.u);\n if (query.p) platform = parseInt(query.p);\n if (query.uid) uid = parseInt(query.uid);\n if (query.r == \"0\") {\n isArtificial = true;\n artificialAccount = parseInt(query.a);\n } else {\n robotAccount = parseInt(query.a);\n }\n }\n var isArtificialString = localStorage.getItem(\"isArtificial\");\n var artificialAccountString = localStorage.getItem(\"artificialAccount\");\n if (isArtificialString == \"true\") {\n isArtificial = true;\n artificialAccount = parseInt(artificialAccountString);\n }\n this.$store.commit(\"updateState\", {\n isShowHeader,\n isMobile,\n userAccount,\n uid,\n isArtificial,\n artificialAccount,\n robotAccount,\n platform\n });\n },\n // query 转json\n queryToJson(str) {\n if (!str || str == \"\") return null;\n var query = str.substr(1, str.length).split(\"&\");\n if (!query) return null;\n var mapData = {};\n for (let i = 0; i < query.length; i++) {\n var temArr = query[i].split(\"=\");\n mapData[temArr[0]] = temArr[1];\n }\n return mapData;\n },\n // 根据IP获取用户地理位置\n getLocal() {\n this.$store.dispatch(\"onGetLocal\", this.$store.state.AmapAPPKey);\n },\n // 上报最后活动时间\n upLastActivity() {\n this.onCheckIsOutSession();\n const user = this.$mimcInstance.getLocalCacheUser();\n if (user) this.$store.dispatch(\"onUpdateLastActivity\");\n if (this.isArtificial) {\n localStorage.setItem(\"artificialTime\", Date.now());\n }\n setTimeout(() => this.upLastActivity(), 1000 * 60);\n },\n // 判断是否被踢出对话\n onCheckIsOutSession() {\n var artificialTime = localStorage.getItem(\"artificialTime\");\n if (artificialTime) {\n artificialTime = parseInt(artificialTime);\n if (Date.now() > artificialTime + 60 * 1000 * 10) {\n this.$store.commit(\"updateState\", {\n isArtificial: false,\n artificialAccount: null\n });\n }\n }\n },\n }\n};\n</script>\n\n<style lang=\"stylus\">\nbody {\n min-width: 240px;\n overflow: hidden;\n height: 100vh;\n background-color: #f3f3f3;\n}\n\n.mint-header.is-fixed {\n height: 50px !important;\n background: -webkit-linear-gradient(to right, #26a2ff, #736cde);\n background: -o-linear-gradient(to right, #26a2ff, #736cde);\n background: -moz-linear-gradient(to right, #26a2ff, #736cde);\n background: linear-gradient(to right, #26a2ff, #736cde);\n\n .mint-header-title {\n font-size: 15px;\n }\n}\n\n.mint-header, .mint-tabbar {\n min-width: 240px;\n z-index: 999999999 !important;\n}\n\n.mint-header .is-right {\n img {\n width: 25px;\n }\n}\n\n.mint-header .mint-button .mintui {\n font-size: 23px !important;\n}\n\n.mini-im-loading {\n display: flex;\n width: 100%;\n position: fixed;\n height: 100vh;\n top: 0;\n left: 0;\n z-index: 9;\n right: 0;\n background-color: #fff !important;\n margin: auto;\n align-items: center;\n justify-content: center;\n\n &.pc-mini-im-loading {\n width: 360px !important;\n height: 360px !important;\n top: -48px;\n bottom: 0;\n margin: auto !important;\n }\n}\n.workorder-create-picker .picker-item{\n font-size 15px\n}\n</style>\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=8724d2a4&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\nimport Router from 'vue-router'\n\nVue.use(Router)\nconst router = new Router({\n base: process.env.BASE_URL,\n routes: [\n {\n path: '/',\n redirect: '/index'\n },\n {\n path: '/index',\n name: 'index',\n component: () => import('./views/kefu.vue')\n },\n {\n path: '/workorder',\n name: 'workorder',\n component: () => import('./views/workorder.vue')\n },\n {\n path: '/workorder/create',\n name: 'workorder_create',\n component: () => import('./views/workorder_create.vue')\n },\n {\n path: '/workorder/detail/:id',\n name: 'workorder_detail',\n component: () => import('./views/workorder_detail.vue')\n },\n ]\n})\n\nexport default router\n","import axios from \"axios\";\nexport default {\n // 获取消息列表\n // params.timestamp\n // params.callback\n // params.oldMsg old msgs\n onGetMessages(context, params) {\n const pageSize = 20;\n axios\n .post(\"/public/messages\", {\n timestamp: params.timestamp,\n page_size: pageSize\n })\n .then(response => {\n let newMessage = [];\n let messages = response.data.data.list || [];\n if (messages.length < pageSize || messages.length == 0) {\n context.commit('updateState', { isLoadMorEnd: true })\n }\n if (params.oldMsg.length == 0 && messages.length > 0) {\n newMessage = response.data.data.list\n } else if (messages.length > 0) {\n newMessage = messages.concat(params.oldMsg);\n }else{\n newMessage = params.oldMsg\n }\n context.commit('updateState', { messages: newMessage })\n if (params.callback) params.callback()\n })\n .catch(error => {\n console.log(error);\n });\n },\n // 获取用户位置\n // APPKey 高德地图web应用key\n onGetLocal(context, APPKey) {\n axios\n .get(\"https://restapi.amap.com/v3/ip?key=\" + APPKey)\n .then(response => {\n if (response.data.province) {\n context.commit('updateState', { userLocal: response.data.province + response.data.city })\n }\n })\n .catch(error => {\n console.error(error);\n });\n },\n // 清除未读消息\n onCleanRead() {\n axios.get(\"/public/clean_read/\");\n },\n // 上报最后活动时间\n onUpdateLastActivity() {\n axios.get(\"/public/activity/\");\n },\n // 用户是否在当前聊天页面\n onToggleWindow(context, window) {\n axios.put(\"/public/window/\", { window });\n },\n // 用户是否在当前聊天页面\n onGetCompanyInfo(context) {\n axios\n .get(\"/public/company\")\n .then(response => {\n context.commit('updateState', { companyInfo: response.data.data })\n })\n .catch(error => {\n console.error(error);\n });\n },\n // 获取上传配置\n onGetUploadSecret(context){\n axios.get(\"/public/secret\").then(response => {\n context.commit('updateState', { uploadToken: response.data.data })\n });\n },\n // 获取工单类型\n onGetWorkorderTypes(context){\n axios.get(\"/public/workorder/types\").then(response => {\n context.commit('updateState', { workorderTypes: response.data.data })\n });\n },\n // 获取工单列表\n onGetWorkorders(context){\n axios.get(\"/public/workorders\").then(response => {\n context.commit('updateState', { workorders: response.data.data })\n });\n }\n}","export default {\n updateState(state, newObj){\n var oldState = state\n for (var i in newObj) {\n if(newObj[i] == undefined) continue\n oldState[i] = newObj[i]\n }\n\n state = oldState\n\n }\n}","export default {\n platform(state) {\n return state.platform;\n },\n isArtificial(state) {\n return state.isArtificial;\n },\n isShowHeader(state) {\n return state.isShowHeader;\n },\n isMobile(state) {\n return state.isMobile;\n },\n uid(state) {\n return state.uid;\n },\n userAccount(state) {\n return state.userAccount;\n },\n artificialAccount(state) {\n return state.artificialAccount;\n },\n robotInfo(state) {\n return state.robotInfo\n },\n robotAccount(state) {\n return state.robotAccount\n },\n isLoadMorEnd(state) {\n return state.isLoadMorEnd\n },\n messages(state) {\n return state.messages || []\n },\n userLocal(state) {\n return state.userLocal\n },\n isLoadMorLoading(state) {\n return state.isLoadMorLoading\n },\n userInfo(state) {\n return state.userInfo\n },\n companyInfo(state) {\n return state.companyInfo\n },\n uploadToken(state) {\n return state.uploadToken\n },\n isIOS() {\n return !!navigator.userAgent.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/);\n },\n isSafari() {\n return (\n navigator.userAgent.indexOf(\"Safari\") > -1 &&\n navigator.userAgent.indexOf(\"Chrome\") < 1\n );\n },\n isJudgeBigScreen() {\n let yes = false;\n const rate = window.screen.height / window.screen.width;\n let limit = window.screen.height == window.screen.availHeight ? 1.8 : 1.65;\n if (rate > limit) yes = true;\n return yes;\n },\n isShowPageLoading(state){\n return state.isShowPageLoading\n },\n workorders(state){\n return state.workorders\n },\n workorderTypes(state){\n return state.workorderTypes\n }\n}","export default {\n platform: 5, // 平台(渠道)\n isShowPageLoading: false, // page loading\n isShowHeader: true, // 是否显示header\n isMobile: true, // 是否是移动端\n isArtificial: false, // 是否是人工服务\n uid: 0, // 业务平台的ID\n userAccount: 0, // 用户账号\n artificialAccount: null, // 客服账号ID\n robotInfo: null, // 机器人信息\n robotAccount: null, // 机器人账号ID\n messages: [], // 消息列表\n isLoadMorEnd: false, // 是否已经到末尾\n userLocal: \"\", // 用户地理位置\n AmapAPPKey: \"73ef1dc5c5ea086e7330b95aede42953\", // 高德地图web appkey\n isLoadMorLoading: false, // 是否在加装更多消息loading\n userInfo: {}, // 用户信息\n companyInfo: null, // 公司信息\n uploadToken: null, // 上传token\n\n // workorder\n workorders: [], // 工单列表\n workorderTypes: [], // 工单类型列表\n \n}","import Vue from 'vue'\nimport Vuex from 'vuex'\nimport actions from './actions'\nimport mutations from './mutations'\nimport getters from './getters'\nimport state from './state'\nVue.use(Vuex)\nexport default new Vuex.Store({\n state: state,\n getters: getters,\n mutations: mutations,\n actions: actions\n})","var moment = require('moment');\nimport axios from \"axios\";\nimport * as qiniu from \"qiniu-js\";\n// eslint-disable-next-line no-undef\nvar Helps = {};\nHelps.install = function (Vue, options) {\n Vue.prototype.$myMethod = function () {\n console.log(options)\n }\n // 格式化日期\n Vue.prototype.$formatUnixDate = function (unix, format) {\n return moment(parseInt(unix + '000')).format(format)\n }\n // 格式化日期(相对日期)\n Vue.prototype.$formatFromNowDate = function (unix, format = \"YYYY-MM-DD HH:mm\") {\n if (moment().format(\"YYYYMMDD\") == moment(parseInt(unix + '000')).format(\"YYYYMMDD\")) {\n return \"今天 \" + moment(parseInt(unix + '000')).format(\"HH:mm\")\n }\n return moment(parseInt(unix + '000')).format(format)\n }\n // 格式化日期(相对日期)\n Vue.prototype.$formatDate = function (unix, format = \"YYYY-MM-DD HH:mm:ss\") {\n return moment(parseInt(unix + '000')).format(format)\n }\n Vue.prototype.$robotNickname = function (id) {\n var nickname\n var robots = this.$store.getters.robots\n for (let i = 0; i < robots.length; i++) {\n if (robots[i].id == id) {\n nickname = robots[i].nickname\n }\n }\n return nickname\n }\n\n // 上传文件\n Vue.prototype.$uploadFile = function ({ mode,secret, file, percent, success, fail }) {\n var qiniuObservable = null;\n const fileName = parseInt(Math.random() * 10000 * new Date().getTime()) + file.name.substr(file.name.lastIndexOf(\".\"));\n // 系统内置\n if (mode == 1) {\n let fd = new FormData();\n fd.append(\"file\", file);\n fd.append(\"file_name\", fileName);\n axios\n .post(\"/public/upload\", fd)\n .then(res => {\n if (success) success(res.data.data);\n })\n .catch((e) => {\n if (fail) fail(e);\n });\n }\n // 七牛云\n else if (mode == 2) {\n let options = {\n quality: 0.92,\n noCompressIfLarger: true,\n maxWidth: 1500\n };\n qiniu.compressImage(file, options).then(data => {\n const observable = qiniu.upload(\n data.dist,\n fileName,\n secret,\n {},\n {\n mimeType: null\n }\n );\n qiniuObservable = observable.subscribe({\n next: function (res) {\n if (percent) percent(res)\n },\n error: function () {\n // 失败后再次使用FormData上传\n var formData = new FormData();\n formData.append(\"fileType\", \"image\");\n formData.append(\"fileName\", \"file\");\n formData.append(\"key\", fileName);\n formData.append(\"token\", secret);\n formData.append(\"file\", file);\n axios\n .post(\"https://upload.qiniup.com\", formData)\n .then(() => {\n if (success) success(fileName);\n })\n .catch((e) => {\n if (fail) fail(e);\n });\n },\n complete: function (res) {\n if (success) success(res.key);\n }\n });\n });\n }\n\n return qiniuObservable\n\n }\n\n\n}\nexport default Helps;","import axios from \"axios\";\nimport { Toast } from 'mint-ui';\nvar MimcPlugin = {};\nMimcPlugin.install = function (Vue, options) {\n\n console.log(options)\n\n // 获取单个平台数据\n Vue.MimcInstance = Vue.prototype.$mimcInstance = {\n user: null,\n robot: null,\n platform: 5,\n fetchMIMCTokenResult: null,\n _receiveP2PMsgCallback: null,\n _statusChangeCallback: null,\n _serverAckCallback: null,\n _disconnectCallback: null,\n // 初始化\n init(request, callback){\n this.platform = request.platform\n this.fetchMIMCToken(request, callback)\n },\n // 获取本地已经登录过的User\n getLocalCacheUser(){\n const userString = localStorage.getItem(\"user\")\n if(userString) return JSON.parse(userString)\n return null\n },\n // 获取token\n // request 登录参数\n // 登录回调 callback bool 是否成功\n fetchMIMCToken(request, callback){\n axios.post('/public/register', request)\n .then(response => {\n this.fetchMIMCTokenResult = response.data.data.token\n localStorage.setItem(\"user\", JSON.stringify(response.data.data.user))\n localStorage.setItem(\"Token\", response.data.data.user.token)\n console.log(\"MIMC初始化成功\")\n this.getRobot(()=>{\n if(callback) callback(response.data.data.user)\n })\n })\n .catch((error)=>{\n if(callback) callback(null)\n console.log(error)\n })\n },\n // 获取机器人\n getRobot(callback){\n axios.get('/public/robot/'+this.platform)\n .then(response => {\n this.robot = response.data.data\n if(callback)callback()\n }) \n .catch((error)=>{\n console.log(\"mimc初始化失败,请刷新重试\", error)\n })\n },\n // pushMessage\n pushMessage(payload){\n axios.post('/public/message/push', {\n \"msgType\": \"NORMAL_MSG\",\n \"payload\": payload\n })\n .then(response => {\n console.log(response.data)\n if(response.data['code'] != 200){\n setTimeout(()=> this.pushMessage(payload), 300)\n }\n })\n .catch(()=>{\n setTimeout(()=> this.pushMessage(payload), 300)\n })\n },\n // 登录\n login(callback){\n try{\n if(this.user) return\n var fetchMIMCTokenResult = this.fetchMIMCTokenResult\n // eslint-disable-next-line no-undef\n this.user = new MIMCUser(fetchMIMCTokenResult.data.appId, fetchMIMCTokenResult.data.appAccount, \"666\");\n this.user.registerP2PMsgHandler((message)=>{\n var msg = JSON.parse(window.Base64.decode(message.getPayload()));\n if(this._receiveP2PMsgCallback) this._receiveP2PMsgCallback(msg)\n });\n this.user.registerFetchToken(() => {\n return fetchMIMCTokenResult;\n });\n this.user.registerStatusChange((bindResult, errType, errReason, errDesc)=>{\n if(this._statusChangeCallback) this._statusChangeCallback(bindResult, errType, errReason, errDesc)\n });\n this.user.registerServerAckHandler((packetId, sequence, timeStamp, errMsg)=>{\n if(this._serverAckCallback) this._serverAckCallback(packetId, sequence, timeStamp, errMsg)\n });\n this.user.registerDisconnHandler(() => {\n if(this._disconnectCallback) this._disconnectCallback()\n });\n this.user.login();\n window.mimcInstance = this\n if(callback) callback()\n console.log(\"MIMC登录成功\")\n }catch(e){\n console.log(\"MIMC登录失败\")\n // 重新尝试\n setTimeout(()=>{\n this.login()\n }, 1000)\n }\n },\n // 退出\n logout(){\n if(this.user){\n this.user.logout()\n this.user = null\n }\n },\n // 注册监听器\n addEventListener(type, callback){\n switch(type){\n case \"receiveP2PMsg\":\n this._receiveP2PMsgCallback = callback\n break\n case \"statusChange\":\n this._statusChangeCallback = callback\n break\n case \"serverAck\":\n this._serverAckCallback = callback\n break\n case \"disconnect\":\n this._disconnectCallback = callback\n break\n }\n },\n // 发送消息\n sendMessage(type, toAccount, payload = \"\"){\n if(!this.user){\n Toast({\n message: \"服务异常,请刷新重试!\"\n })\n return\n }\n var messageJson = {\n \"from_account\": parseInt(this.fetchMIMCTokenResult.data.appAccount),\n \"to_account\": parseInt(toAccount),\n \"biz_type\": type,\n \"version\": \"0\",\n \"timestamp\": parseInt((new Date().getTime() + \" \").substr(0, 10)),\n \"key\": new Date().getTime(),\n \"read\": 0,\n \"platform\": this.platform,\n \"transfer_account\": 0,\n \"payload\": payload + ''\n }\n \n var jsonBase64Msg = window.Base64.encode(JSON.stringify(messageJson))\n \n // 过滤不入库\n if(!(type == \"contacts\" || type == \"pong\" || type == \"welcome\" || type == \"handshake\" || type == \"search_knowledge\")){\n // 发送给机器人中专入库\n // const intoMessageJson = {\n // \"biz_type\": \"into\",\n // \"payload\": jsonBase64Msg\n // }\n // const intoJsonBase64Msg = window.Base64.encode(JSON.stringify(intoMessageJson))\n // this.user.sendMessage(this.robot.id.toString(), intoJsonBase64Msg);\n // 消息入库\n this.pushMessage(window.Base64.encode(jsonBase64Msg))\n }\n\n setTimeout(()=>{\n // 发送给对方\n this.user.sendMessage(toAccount.toString(), jsonBase64Msg);\n // console.log(\"发送给对方\", jsonBase64Msg)\n },150)\n\n return messageJson\n },\n // 创建本地消息\n createLocalMessage(type, toAccount, payload = \"\", transferAccount = 0){\n const messageJson = {\n \"from_account\": parseInt(this.fetchMIMCTokenResult.data.appAccount),\n \"to_account\": parseInt(toAccount),\n \"biz_type\": type,\n \"version\": \"0\",\n \"platform\": this.platform,\n \"timestamp\": parseInt((new Date().getTime() + \" \").substr(0, 10)),\n \"key\": new Date().getTime(),\n \"read\": 0,\n \"transfer_account\": parseInt(transferAccount),\n \"payload\": payload + ''\n }\n return messageJson\n }\n \n\n }\n}\nexport default MimcPlugin;","export default {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY年MM月DD日',\n LLL: 'YYYY年MM月DD日Ah点mm分',\n LLLL: 'YYYY年MM月DD日ddddAh点mm分',\n l: 'YYYY-M-D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm'\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' ||\n meridiem === '上午') {\n return hour;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n } else {\n // '中午'\n return hour >= 11 ? hour : hour + 12;\n }\n },\n meridiem: function (hour, minute) {\n const hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天]LT',\n nextDay: '[明天]LT',\n nextWeek: '[下]ddddLT',\n lastDay: '[昨天]LT',\n lastWeek: '[上]ddddLT',\n sameElse: 'L'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|周)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '周';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s内',\n past: '%s前',\n s: '几秒',\n ss: '%d秒',\n m: '1分钟',\n mm: '%d分钟',\n h: '1小时',\n hh: '%d小时',\n d: '1天',\n dd: '%d天',\n M: '1个月',\n MM: '%d个月',\n y: '1年',\n yy: '%d年'\n },\n week: {\n dow: 1,\n doy: 4\n }\n}","import Vue from 'vue'\nimport App from './App.vue'\nimport preview from 'vue-photo-preview'\nimport router from \"./router\"\nimport store from './store'\nimport 'vue-photo-preview/dist/skin.css'\nimport MintUI from 'mint-ui'\nimport 'mint-ui/lib/style.css'\nimport Helps from \"../plugins/help\"\nimport MimcPlugin from \"../plugins/mimc\"\nimport momentLocal from '../resource/moment_locale'\nvar moment = require('moment');\nmoment.locale(\"zh-cn\", momentLocal)\n\nimport axios from 'axios'\n\naxios.defaults.baseURL = '/api'\n\n// axios添加请求拦截器\naxios.interceptors.request.use(function (config) {\n const token = localStorage.getItem('Token') || \"\"\n config.headers = Object.assign({}, {\n 'Token': token,\n }, config.headers)\n return config;\n}, function (error) {\n // eslint-disable-next-line no-console\n console.log(error)\n return Promise.reject(error);\n});\n\nvar options={\n clickToCloseNonZoomable: false,\n fullscreenEl:false, //关闭全屏按钮\n}\nVue.use(preview, options)\nVue.use(Helps)\nVue.use(MimcPlugin)\nVue.use(MintUI)\nVue.config.productionTip = false\nnew Vue({\n router,\n store,\n render: h => h(App)\n}).$mount('#app')\n","import mod from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=stylus&\"; export default mod; export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=stylus&\""],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/moment/locale sync ^\\.\\/.*$","webpack:///./src/App.vue?46e5","webpack:///src/App.vue","webpack:///./src/App.vue?2e55","webpack:///./src/App.vue?bff9","webpack:///./src/router.js","webpack:///./src/store/actions.js","webpack:///./src/store/mutations.js","webpack:///./src/store/getters.js","webpack:///./src/store/state.js","webpack:///./src/store/index.js","webpack:///./plugins/help.js","webpack:///./plugins/mimc.js","webpack:///./resource/moment_locale.js","webpack:///./src/main.js","webpack:///./src/App.vue?2c4a"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","jsonpScriptSrc","p","exports","module","l","e","promises","cssChunks","Promise","resolve","reject","href","fullhref","existingLinkTags","document","getElementsByTagName","tag","dataHref","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","code","parentNode","removeChild","head","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","error","clearTimeout","chunk","errorType","realSrc","message","name","undefined","setTimeout","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice","map","webpackContext","req","id","webpackContextResolve","keys","_vm","this","_h","$createElement","_c","_self","staticClass","class","isMobile","attrs","_e","staticRenderFns","computed","created","getLocal","onCheckIsOutSession","methods","runApp","localStorage","clear","$mimcInstance","init","handelUrl","isShowHeader","query","$route","urlQuery","queryToJson","getItem","assign","h","u","userAccount","parseInt","platform","uid","isArtificial","artificialAccount","a","robotAccount","isArtificialString","artificialAccountString","$store","commit","str","substr","split","mapData","temArr","dispatch","state","AmapAPPKey","upLastActivity","user","setItem","Date","now","artificialTime","component","Vue","use","Router","router","base","process","routes","path","redirect","onGetMessages","context","params","pageSize","axios","post","timestamp","page_size","response","newMessage","messages","list","isLoadMorEnd","oldMsg","concat","callback","catch","log","onGetLocal","APPKey","province","userLocal","city","onCleanRead","onUpdateLastActivity","onToggleWindow","put","onGetCompanyInfo","companyInfo","onGetUploadSecret","uploadToken","onGetWorkorderTypes","workorderTypes","onGetWorkorders","workorders","updateState","newObj","oldState","robotInfo","isLoadMorLoading","userInfo","isIOS","navigator","userAgent","match","isSafari","indexOf","isJudgeBigScreen","yes","rate","screen","height","width","limit","availHeight","isShowPageLoading","Vuex","Store","getters","mutations","actions","moment","require","Helps","options","$myMethod","$formatUnixDate","unix","format","$formatFromNowDate","$formatDate","$robotNickname","nickname","robots","$uploadFile","file","percent","success","fail","qiniuObservable","fileName","Math","random","getTime","lastIndexOf","fd","FormData","append","res","quality","noCompressIfLarger","maxWidth","qiniu","observable","dist","self","secret","mimeType","subscribe","next","formData","complete","MimcPlugin","MimcInstance","robot","fetchMIMCTokenResult","_receiveP2PMsgCallback","_statusChangeCallback","_serverAckCallback","_disconnectCallback","fetchMIMCToken","getLocalCacheUser","userString","JSON","parse","token","stringify","getRobot","pushMessage","payload","login","MIMCUser","appId","appAccount","registerP2PMsgHandler","msg","Base64","decode","getPayload","registerFetchToken","registerStatusChange","bindResult","errType","errReason","errDesc","registerServerAckHandler","packetId","sequence","timeStamp","errMsg","registerDisconnHandler","mimcInstance","logout","addEventListener","sendMessage","toAccount","messageJson","jsonBase64Msg","encode","toString","Toast","createLocalMessage","transferAccount","months","monthsShort","weekdays","weekdaysShort","weekdaysMin","longDateFormat","LT","LTS","L","LL","LLL","LLLL","ll","lll","llll","meridiemParse","meridiemHour","hour","meridiem","minute","hm","calendar","sameDay","nextDay","nextWeek","lastDay","lastWeek","sameElse","dayOfMonthOrdinalParse","ordinal","number","period","relativeTime","future","past","ss","mm","hh","dd","M","MM","y","yy","week","dow","doy","locale","momentLocal","defaults","baseURL","interceptors","config","headers","clickToCloseNonZoomable","fullscreenEl","preview","MintUI","productionTip","store","render","App","$mount"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAG/Be,GAAqBA,EAAoBhB,GAE5C,MAAMO,EAASC,OACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,E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,IChFTzI,EAASC,EAAQ,QACrBD,EAAO0I,OAAO,QAASC,GAIvBpM,IAAMqM,SAASC,QAAU,OAGzBtM,IAAMuM,aAAa9U,QAAQ2H,KAAI,SAAUoN,GACvC,IAAMzF,EAAQrK,aAAaU,QAAQ,UAAY,GAI/C,OAHAoP,EAAOC,QAAUjY,OAAO6I,OAAO,GAAI,CACjC,MAAS0J,GACRyF,EAAOC,SACHD,KACN,SAAU5T,GAGX,OADAiC,QAAQgG,IAAIjI,GACLtC,QAAQE,OAAOoC,MAGxB,IAAIgL,EAAQ,CACV8I,yBAAyB,EACzBC,cAAa,GAEfxN,aAAIC,IAAIwN,IAAShJ,GACjBzE,aAAIC,IAAIuE,GACRxE,aAAIC,IAAI8G,GACR/G,aAAIC,IAAIyN,KACR1N,aAAIqN,OAAOM,eAAgB,EAC3B,IAAI3N,aAAI,CACNG,SACAyN,QACAC,OAAQ,SAAA1P,GAAC,OAAIA,EAAE2P,MACdC,OAAO,S,oCC5CV,yBAAqf,EAAG,G","file":"js/app.a65684bc.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t\"app\": 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"js/\" + ({}[chunkId]||chunkId) + \".\" + {\"chunk-2c568771\":\"a81203d3\",\"chunk-5e6009ff\":\"d7088d94\",\"chunk-612d9b40\":\"13a3a9bb\",\"chunk-9ec58ea8\":\"59b56ff9\"}[chunkId] + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"chunk-2c568771\":1,\"chunk-5e6009ff\":1,\"chunk-612d9b40\":1,\"chunk-9ec58ea8\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"css/\" + ({}[chunkId]||chunkId) + \".\" + {\"chunk-2c568771\":\"92feb802\",\"chunk-5e6009ff\":\"86cb9867\",\"chunk-612d9b40\":\"3daa63d4\",\"chunk-9ec58ea8\":\"5743221d\"}[chunkId] + \".css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","var map = {\n\t\"./af\": \"2bfb\",\n\t\"./af.js\": \"2bfb\",\n\t\"./ar\": \"8e73\",\n\t\"./ar-dz\": \"a356\",\n\t\"./ar-dz.js\": \"a356\",\n\t\"./ar-kw\": \"423e\",\n\t\"./ar-kw.js\": \"423e\",\n\t\"./ar-ly\": \"1cfd\",\n\t\"./ar-ly.js\": \"1cfd\",\n\t\"./ar-ma\": \"0a84\",\n\t\"./ar-ma.js\": \"0a84\",\n\t\"./ar-sa\": \"8230\",\n\t\"./ar-sa.js\": \"8230\",\n\t\"./ar-tn\": \"6d83\",\n\t\"./ar-tn.js\": \"6d83\",\n\t\"./ar.js\": \"8e73\",\n\t\"./az\": \"485c\",\n\t\"./az.js\": \"485c\",\n\t\"./be\": \"1fc1\",\n\t\"./be.js\": \"1fc1\",\n\t\"./bg\": \"84aa\",\n\t\"./bg.js\": \"84aa\",\n\t\"./bm\": \"a7fa\",\n\t\"./bm.js\": \"a7fa\",\n\t\"./bn\": \"9043\",\n\t\"./bn.js\": \"9043\",\n\t\"./bo\": \"d26a\",\n\t\"./bo.js\": \"d26a\",\n\t\"./br\": \"6887\",\n\t\"./br.js\": \"6887\",\n\t\"./bs\": \"2554\",\n\t\"./bs.js\": \"2554\",\n\t\"./ca\": \"d716\",\n\t\"./ca.js\": \"d716\",\n\t\"./cs\": \"3c0d\",\n\t\"./cs.js\": \"3c0d\",\n\t\"./cv\": \"03ec\",\n\t\"./cv.js\": \"03ec\",\n\t\"./cy\": \"9797\",\n\t\"./cy.js\": \"9797\",\n\t\"./da\": \"0f14\",\n\t\"./da.js\": \"0f14\",\n\t\"./de\": \"b469\",\n\t\"./de-at\": \"b3eb\",\n\t\"./de-at.js\": \"b3eb\",\n\t\"./de-ch\": \"bb71\",\n\t\"./de-ch.js\": \"bb71\",\n\t\"./de.js\": \"b469\",\n\t\"./dv\": \"598a\",\n\t\"./dv.js\": \"598a\",\n\t\"./el\": \"8d47\",\n\t\"./el.js\": \"8d47\",\n\t\"./en-SG\": \"cdab\",\n\t\"./en-SG.js\": \"cdab\",\n\t\"./en-au\": \"0e6b\",\n\t\"./en-au.js\": \"0e6b\",\n\t\"./en-ca\": \"3886\",\n\t\"./en-ca.js\": \"3886\",\n\t\"./en-gb\": \"39a6\",\n\t\"./en-gb.js\": \"39a6\",\n\t\"./en-ie\": \"e1d3\",\n\t\"./en-ie.js\": \"e1d3\",\n\t\"./en-il\": \"7333\",\n\t\"./en-il.js\": \"7333\",\n\t\"./en-nz\": \"6f50\",\n\t\"./en-nz.js\": \"6f50\",\n\t\"./eo\": \"65db\",\n\t\"./eo.js\": \"65db\",\n\t\"./es\": \"898b\",\n\t\"./es-do\": \"0a3c\",\n\t\"./es-do.js\": \"0a3c\",\n\t\"./es-us\": \"55c9\",\n\t\"./es-us.js\": \"55c9\",\n\t\"./es.js\": \"898b\",\n\t\"./et\": \"ec18\",\n\t\"./et.js\": \"ec18\",\n\t\"./eu\": \"0ff2\",\n\t\"./eu.js\": \"0ff2\",\n\t\"./fa\": \"8df4\",\n\t\"./fa.js\": \"8df4\",\n\t\"./fi\": \"81e9\",\n\t\"./fi.js\": \"81e9\",\n\t\"./fo\": \"0721\",\n\t\"./fo.js\": \"0721\",\n\t\"./fr\": \"9f26\",\n\t\"./fr-ca\": \"d9f8\",\n\t\"./fr-ca.js\": \"d9f8\",\n\t\"./fr-ch\": \"0e49\",\n\t\"./fr-ch.js\": \"0e49\",\n\t\"./fr.js\": \"9f26\",\n\t\"./fy\": \"7118\",\n\t\"./fy.js\": \"7118\",\n\t\"./ga\": \"5120\",\n\t\"./ga.js\": \"5120\",\n\t\"./gd\": \"f6b4\",\n\t\"./gd.js\": \"f6b4\",\n\t\"./gl\": \"8840\",\n\t\"./gl.js\": \"8840\",\n\t\"./gom-latn\": \"0caa\",\n\t\"./gom-latn.js\": \"0caa\",\n\t\"./gu\": \"e0c5\",\n\t\"./gu.js\": \"e0c5\",\n\t\"./he\": \"c7aa\",\n\t\"./he.js\": \"c7aa\",\n\t\"./hi\": \"dc4d\",\n\t\"./hi.js\": \"dc4d\",\n\t\"./hr\": \"4ba9\",\n\t\"./hr.js\": \"4ba9\",\n\t\"./hu\": \"5b14\",\n\t\"./hu.js\": \"5b14\",\n\t\"./hy-am\": \"d6b6\",\n\t\"./hy-am.js\": \"d6b6\",\n\t\"./id\": \"5038\",\n\t\"./id.js\": \"5038\",\n\t\"./is\": \"0558\",\n\t\"./is.js\": \"0558\",\n\t\"./it\": \"6e98\",\n\t\"./it-ch\": \"6f12\",\n\t\"./it-ch.js\": \"6f12\",\n\t\"./it.js\": \"6e98\",\n\t\"./ja\": \"079e\",\n\t\"./ja.js\": \"079e\",\n\t\"./jv\": \"b540\",\n\t\"./jv.js\": \"b540\",\n\t\"./ka\": \"201b\",\n\t\"./ka.js\": \"201b\",\n\t\"./kk\": \"6d79\",\n\t\"./kk.js\": \"6d79\",\n\t\"./km\": \"e81d\",\n\t\"./km.js\": \"e81d\",\n\t\"./kn\": \"3e92\",\n\t\"./kn.js\": \"3e92\",\n\t\"./ko\": \"22f8\",\n\t\"./ko.js\": \"22f8\",\n\t\"./ku\": \"2421\",\n\t\"./ku.js\": \"2421\",\n\t\"./ky\": \"9609\",\n\t\"./ky.js\": \"9609\",\n\t\"./lb\": \"440c\",\n\t\"./lb.js\": \"440c\",\n\t\"./lo\": \"b29d\",\n\t\"./lo.js\": \"b29d\",\n\t\"./lt\": \"26f9\",\n\t\"./lt.js\": \"26f9\",\n\t\"./lv\": \"b97c\",\n\t\"./lv.js\": \"b97c\",\n\t\"./me\": \"293c\",\n\t\"./me.js\": \"293c\",\n\t\"./mi\": \"688b\",\n\t\"./mi.js\": \"688b\",\n\t\"./mk\": \"6909\",\n\t\"./mk.js\": \"6909\",\n\t\"./ml\": \"02fb\",\n\t\"./ml.js\": \"02fb\",\n\t\"./mn\": \"958b\",\n\t\"./mn.js\": \"958b\",\n\t\"./mr\": \"39bd\",\n\t\"./mr.js\": \"39bd\",\n\t\"./ms\": \"ebe4\",\n\t\"./ms-my\": \"6403\",\n\t\"./ms-my.js\": \"6403\",\n\t\"./ms.js\": \"ebe4\",\n\t\"./mt\": \"1b45\",\n\t\"./mt.js\": \"1b45\",\n\t\"./my\": \"8689\",\n\t\"./my.js\": \"8689\",\n\t\"./nb\": \"6ce3\",\n\t\"./nb.js\": \"6ce3\",\n\t\"./ne\": \"3a39\",\n\t\"./ne.js\": \"3a39\",\n\t\"./nl\": \"facd\",\n\t\"./nl-be\": \"db29\",\n\t\"./nl-be.js\": \"db29\",\n\t\"./nl.js\": \"facd\",\n\t\"./nn\": \"b84c\",\n\t\"./nn.js\": \"b84c\",\n\t\"./pa-in\": \"f3ff\",\n\t\"./pa-in.js\": \"f3ff\",\n\t\"./pl\": \"8d57\",\n\t\"./pl.js\": \"8d57\",\n\t\"./pt\": \"f260\",\n\t\"./pt-br\": \"d2d4\",\n\t\"./pt-br.js\": \"d2d4\",\n\t\"./pt.js\": \"f260\",\n\t\"./ro\": \"972c\",\n\t\"./ro.js\": \"972c\",\n\t\"./ru\": \"957c\",\n\t\"./ru.js\": \"957c\",\n\t\"./sd\": \"6784\",\n\t\"./sd.js\": \"6784\",\n\t\"./se\": \"ffff\",\n\t\"./se.js\": \"ffff\",\n\t\"./si\": \"eda5\",\n\t\"./si.js\": \"eda5\",\n\t\"./sk\": \"7be6\",\n\t\"./sk.js\": \"7be6\",\n\t\"./sl\": \"8155\",\n\t\"./sl.js\": \"8155\",\n\t\"./sq\": \"c8f3\",\n\t\"./sq.js\": \"c8f3\",\n\t\"./sr\": \"cf1e\",\n\t\"./sr-cyrl\": \"13e9\",\n\t\"./sr-cyrl.js\": \"13e9\",\n\t\"./sr.js\": \"cf1e\",\n\t\"./ss\": \"52bd\",\n\t\"./ss.js\": \"52bd\",\n\t\"./sv\": \"5fbd\",\n\t\"./sv.js\": \"5fbd\",\n\t\"./sw\": \"74dc\",\n\t\"./sw.js\": \"74dc\",\n\t\"./ta\": \"3de5\",\n\t\"./ta.js\": \"3de5\",\n\t\"./te\": \"5cbb\",\n\t\"./te.js\": \"5cbb\",\n\t\"./tet\": \"576c\",\n\t\"./tet.js\": \"576c\",\n\t\"./tg\": \"3b1b\",\n\t\"./tg.js\": \"3b1b\",\n\t\"./th\": \"10e8\",\n\t\"./th.js\": \"10e8\",\n\t\"./tl-ph\": \"0f38\",\n\t\"./tl-ph.js\": \"0f38\",\n\t\"./tlh\": \"cf75\",\n\t\"./tlh.js\": \"cf75\",\n\t\"./tr\": \"0e81\",\n\t\"./tr.js\": \"0e81\",\n\t\"./tzl\": \"cf51\",\n\t\"./tzl.js\": \"cf51\",\n\t\"./tzm\": \"c109\",\n\t\"./tzm-latn\": \"b53d\",\n\t\"./tzm-latn.js\": \"b53d\",\n\t\"./tzm.js\": \"c109\",\n\t\"./ug-cn\": \"6117\",\n\t\"./ug-cn.js\": \"6117\",\n\t\"./uk\": \"ada2\",\n\t\"./uk.js\": \"ada2\",\n\t\"./ur\": \"5294\",\n\t\"./ur.js\": \"5294\",\n\t\"./uz\": \"2e8c\",\n\t\"./uz-latn\": \"010e\",\n\t\"./uz-latn.js\": \"010e\",\n\t\"./uz.js\": \"2e8c\",\n\t\"./vi\": \"2921\",\n\t\"./vi.js\": \"2921\",\n\t\"./x-pseudo\": \"fd7e\",\n\t\"./x-pseudo.js\": \"fd7e\",\n\t\"./yo\": \"7f33\",\n\t\"./yo.js\": \"7f33\",\n\t\"./zh-cn\": \"5c3a\",\n\t\"./zh-cn.js\": \"5c3a\",\n\t\"./zh-hk\": \"49ab\",\n\t\"./zh-hk.js\": \"49ab\",\n\t\"./zh-tw\": \"90ea\",\n\t\"./zh-tw.js\": \"90ea\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"4678\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.isShowPageLoading)?_c('div',{staticClass:\"mini-im-loading\",class:{'pc-mini-im-loading': !_vm.isMobile}},[_c('mt-spinner',{attrs:{\"type\":\"triple-bounce\",\"color\":\"#26a2ff\"}})],1):_vm._e(),_c('router-view')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div>\n <div\n class=\"mini-im-loading\"\n :class=\"{'pc-mini-im-loading': !isMobile}\"\n v-if=\"isShowPageLoading\"\n >\n <mt-spinner type=\"triple-bounce\" color=\"#26a2ff\"></mt-spinner>\n </div>\n <router-view />\n </div>\n</template>\n\n<script>\nimport { mapGetters } from \"vuex\";\nexport default {\n name: \"app\",\n data() {\n return {};\n },\n computed: {\n ...mapGetters([\n \"isShowPageLoading\",\n \"userAccount\",\n \"isArtificial\",\n \"isMobile\",\n \"artificialAccount\",\n \"robotAccount\",\n \"platform\",\n \"userLocal\",\n \"uid\",\n \"uid\",\n ])\n },\n created() {\n this.getLocal();\n setTimeout(() => {\n this.handelUrl()\n this.runApp()\n }, 500);\n // 判断是否被踢出对话\n this.onCheckIsOutSession();\n },\n methods: {\n runApp() {\n const user = this.$mimcInstance.getLocalCacheUser();\n if (\n user &&\n this.userAccount != null &&\n this.userAccount != user.id &&\n this.userAccount != 0\n ) {\n localStorage.clear();\n }\n this.$mimcInstance.init(\n {\n type: 0, // 默认0\n address: this.userLocal,\n uid: this.uid || 0, // 预留字段扩展自己平台业务\n platform: this.platform, // 渠道(平台)\n account_id: this.userAccount || 0 // 用户ID\n // 初始化完成这里返回一个user\n },\n user => {\n\n // 上报活动时间\n this.upLastActivity();\n\n // 获取公司信息\n this.$store.dispatch(\"onGetCompanyInfo\");\n\n // 获取上传配置信息\n this.$store.dispatch(\"onGetUploadSecret\");\n\n // 获取工单类型\n this.$store.dispatch(\"onGetWorkorderTypes\");\n\n // 获取工单列表\n this.$store.dispatch(\"onGetWorkorders\");\n\n // 重试\n if (!user) {\n setTimeout(() => this.runApp(), 1000);\n return;\n }\n\n // user\n this.$store.commit(\"updateState\", {\n userAccount: user.id,\n userInfo: user\n });\n\n // robot\n var robot = this.$mimcInstance.robot;\n localStorage.setItem(\"robot_\" + robot.id, JSON.stringify(robot));\n this.$store.commit(\"updateState\", {\n robotAccount: robot.id,\n robotInfo: robot\n });\n\n // 登录mimc\n this.$mimcInstance.login();\n\n // 发送一条握手消息给机器人\n var sentHandshake =() =>{\n if (this.$mimcInstance.user == null || !this.$mimcInstance.user.isLogin()) {\n setTimeout(() => sentHandshake(), 200);\n return\n }\n if (!this.artificialAccount) {\n console.log(\"握手消息\");\n this.$mimcInstance.sendMessage(\n \"handshake\",\n this.robotAccount,\n \"\"\n );\n }\n }\n sentHandshake()\n\n\n }\n );\n },\n // Handelurl\n handelUrl() {\n // url query 介绍\n // h == header 0 不显示 1显示 默认值显示,PC端不显示\n // m == mobile 0 不是移动端 1是移动端\n // p == platform 平台ID(渠道)\n // r == robot 0 当前为为客服 1机器人(对应的账号为a)\n // a == account 当前提供对话服务的账号,即客服账号,或机器人\n // u == userAccount 会话用户账号\n // uid == userId 业务平台的ID\n // c = 1 清除本地缓存\n var isShowHeader,\n isMobile,\n userAccount,\n uid,\n isArtificial,\n artificialAccount,\n robotAccount,\n platform;\n var query = this.$route.query;\n if (query && query.c) localStorage.clear();\n // 获取本地缓存\n var urlQuery = this.queryToJson(localStorage.getItem(\"urlQuery\"));\n if (urlQuery) {\n query = Object.assign({}, urlQuery, query);\n }\n if (query) {\n if (query.h == \"0\") isShowHeader = false;\n if (query.m == \"0\") {\n isMobile = false;\n isShowHeader = false;\n }\n if (query.u) userAccount = parseInt(query.u);\n if (query.p) platform = parseInt(query.p);\n if (query.uid) uid = parseInt(query.uid);\n if (query.r == \"0\") {\n isArtificial = true;\n artificialAccount = parseInt(query.a);\n } else {\n robotAccount = parseInt(query.a);\n }\n }\n var isArtificialString = localStorage.getItem(\"isArtificial\");\n var artificialAccountString = localStorage.getItem(\"artificialAccount\");\n if (isArtificialString == \"true\") {\n isArtificial = true;\n artificialAccount = parseInt(artificialAccountString);\n }\n this.$store.commit(\"updateState\", {\n isShowHeader,\n isMobile,\n userAccount,\n uid,\n isArtificial,\n artificialAccount,\n robotAccount,\n platform\n });\n },\n // query 转json\n queryToJson(str) {\n if (!str || str == \"\") return null;\n var query = str.substr(1, str.length).split(\"&\");\n if (!query) return null;\n var mapData = {};\n for (let i = 0; i < query.length; i++) {\n var temArr = query[i].split(\"=\");\n mapData[temArr[0]] = temArr[1];\n }\n return mapData;\n },\n // 根据IP获取用户地理位置\n getLocal() {\n this.$store.dispatch(\"onGetLocal\", this.$store.state.AmapAPPKey);\n },\n // 上报最后活动时间\n upLastActivity() {\n this.onCheckIsOutSession();\n const user = this.$mimcInstance.getLocalCacheUser();\n if (user) this.$store.dispatch(\"onUpdateLastActivity\");\n if (this.isArtificial) {\n localStorage.setItem(\"artificialTime\", Date.now());\n }\n setTimeout(() => this.upLastActivity(), 1000 * 60);\n },\n // 判断是否被踢出对话\n onCheckIsOutSession() {\n var artificialTime = localStorage.getItem(\"artificialTime\");\n if (artificialTime) {\n artificialTime = parseInt(artificialTime);\n if (Date.now() > artificialTime + 60 * 1000 * 10) {\n this.$store.commit(\"updateState\", {\n isArtificial: false,\n artificialAccount: null\n });\n }\n }\n },\n }\n};\n</script>\n\n<style lang=\"stylus\">\nbody {\n min-width: 240px;\n overflow: hidden;\n height: 100vh;\n background-color: #f3f3f3;\n}\n\n.mint-header.is-fixed {\n height: 50px !important;\n background: -webkit-linear-gradient(to right, #26a2ff, #736cde);\n background: -o-linear-gradient(to right, #26a2ff, #736cde);\n background: -moz-linear-gradient(to right, #26a2ff, #736cde);\n background: linear-gradient(to right, #26a2ff, #736cde);\n\n .mint-header-title {\n font-size: 15px;\n }\n}\n\n.mint-header, .mint-tabbar {\n min-width: 240px;\n z-index: 999999999 !important;\n}\n\n.mint-header .is-right {\n img {\n width: 25px;\n }\n}\n\n.mint-header .mint-button .mintui {\n font-size: 23px !important;\n}\n\n.mini-im-loading {\n display: flex;\n width: 100%;\n position: fixed;\n height: 100vh;\n top: 0;\n left: 0;\n z-index: 9;\n right: 0;\n background-color: #fff !important;\n margin: auto;\n align-items: center;\n justify-content: center;\n\n &.pc-mini-im-loading {\n width: 360px !important;\n height: 360px !important;\n top: -48px;\n bottom: 0;\n margin: auto !important;\n }\n}\n.workorder-create-picker .picker-item{\n font-size 15px\n}\n</style>\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=8724d2a4&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\nimport Router from 'vue-router'\n\nVue.use(Router)\nconst router = new Router({\n base: process.env.BASE_URL,\n routes: [\n {\n path: '/',\n redirect: '/index'\n },\n {\n path: '/index',\n name: 'index',\n component: () => import('./views/kefu.vue')\n },\n {\n path: '/workorder',\n name: 'workorder',\n component: () => import('./views/workorder.vue')\n },\n {\n path: '/workorder/create',\n name: 'workorder_create',\n component: () => import('./views/workorder_create.vue')\n },\n {\n path: '/workorder/detail/:id',\n name: 'workorder_detail',\n component: () => import('./views/workorder_detail.vue')\n },\n ]\n})\n\nexport default router\n","import axios from \"axios\";\nexport default {\n // 获取消息列表\n // params.timestamp\n // params.callback\n // params.oldMsg old msgs\n onGetMessages(context, params) {\n const pageSize = 20;\n axios\n .post(\"/public/messages\", {\n timestamp: params.timestamp,\n page_size: pageSize\n })\n .then(response => {\n let newMessage = [];\n let messages = response.data.data.list || [];\n if (messages.length < pageSize || messages.length == 0) {\n context.commit('updateState', { isLoadMorEnd: true })\n }\n if (params.oldMsg.length == 0 && messages.length > 0) {\n newMessage = response.data.data.list\n } else if (messages.length > 0) {\n newMessage = messages.concat(params.oldMsg);\n }else{\n newMessage = params.oldMsg\n }\n context.commit('updateState', { messages: newMessage })\n if (params.callback) params.callback()\n })\n .catch(error => {\n console.log(error);\n });\n },\n // 获取用户位置\n // APPKey 高德地图web应用key\n onGetLocal(context, APPKey) {\n axios\n .get(\"https://restapi.amap.com/v3/ip?key=\" + APPKey)\n .then(response => {\n if (response.data.province) {\n context.commit('updateState', { userLocal: response.data.province + response.data.city })\n }\n })\n .catch(error => {\n console.error(error);\n });\n },\n // 清除未读消息\n onCleanRead() {\n axios.get(\"/public/clean_read/\");\n },\n // 上报最后活动时间\n onUpdateLastActivity() {\n axios.get(\"/public/activity/\");\n },\n // 用户是否在当前聊天页面\n onToggleWindow(context, window) {\n axios.put(\"/public/window/\", { window });\n },\n // 用户是否在当前聊天页面\n onGetCompanyInfo(context) {\n axios\n .get(\"/public/company\")\n .then(response => {\n context.commit('updateState', { companyInfo: response.data.data })\n })\n .catch(error => {\n console.error(error);\n });\n },\n // 获取上传配置\n onGetUploadSecret(context){\n axios.get(\"/public/secret\").then(response => {\n context.commit('updateState', { uploadToken: response.data.data })\n });\n },\n // 获取工单类型\n onGetWorkorderTypes(context){\n axios.get(\"/public/workorder/types\").then(response => {\n context.commit('updateState', { workorderTypes: response.data.data })\n });\n },\n // 获取工单列表\n onGetWorkorders(context){\n axios.get(\"/public/workorders\").then(response => {\n context.commit('updateState', { workorders: response.data.data })\n });\n }\n}","export default {\n updateState(state, newObj){\n var oldState = state\n for (var i in newObj) {\n if(newObj[i] == undefined) continue\n oldState[i] = newObj[i]\n }\n\n state = oldState\n\n }\n}","export default {\n platform(state) {\n return state.platform;\n },\n isArtificial(state) {\n return state.isArtificial;\n },\n isShowHeader(state) {\n return state.isShowHeader;\n },\n isMobile(state) {\n return state.isMobile;\n },\n uid(state) {\n return state.uid;\n },\n userAccount(state) {\n return state.userAccount;\n },\n artificialAccount(state) {\n return state.artificialAccount;\n },\n robotInfo(state) {\n return state.robotInfo\n },\n robotAccount(state) {\n return state.robotAccount\n },\n isLoadMorEnd(state) {\n return state.isLoadMorEnd\n },\n messages(state) {\n return state.messages || []\n },\n userLocal(state) {\n return state.userLocal\n },\n isLoadMorLoading(state) {\n return state.isLoadMorLoading\n },\n userInfo(state) {\n return state.userInfo\n },\n companyInfo(state) {\n return state.companyInfo\n },\n uploadToken(state) {\n return state.uploadToken\n },\n isIOS() {\n return !!navigator.userAgent.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/);\n },\n isSafari() {\n return (\n navigator.userAgent.indexOf(\"Safari\") > -1 &&\n navigator.userAgent.indexOf(\"Chrome\") < 1\n );\n },\n isJudgeBigScreen() {\n let yes = false;\n const rate = window.screen.height / window.screen.width;\n let limit = window.screen.height == window.screen.availHeight ? 1.8 : 1.65;\n if (rate > limit) yes = true;\n return yes;\n },\n isShowPageLoading(state){\n return state.isShowPageLoading\n },\n workorders(state){\n return state.workorders\n },\n workorderTypes(state){\n return state.workorderTypes\n }\n}","export default {\n platform: 5, // 平台(渠道)\n isShowPageLoading: false, // page loading\n isShowHeader: true, // 是否显示header\n isMobile: true, // 是否是移动端\n isArtificial: false, // 是否是人工服务\n uid: 0, // 业务平台的ID\n userAccount: 0, // 用户账号\n artificialAccount: null, // 客服账号ID\n robotInfo: null, // 机器人信息\n robotAccount: null, // 机器人账号ID\n messages: [], // 消息列表\n isLoadMorEnd: false, // 是否已经到末尾\n userLocal: \"\", // 用户地理位置\n AmapAPPKey: \"\", // 高德地图web appkey\n isLoadMorLoading: false, // 是否在加装更多消息loading\n userInfo: {}, // 用户信息\n companyInfo: null, // 公司信息\n uploadToken: null, // 上传token\n\n // workorder\n workorders: [], // 工单列表\n workorderTypes: [], // 工单类型列表\n \n}","import Vue from 'vue'\nimport Vuex from 'vuex'\nimport actions from './actions'\nimport mutations from './mutations'\nimport getters from './getters'\nimport state from './state'\nVue.use(Vuex)\nexport default new Vuex.Store({\n state: state,\n getters: getters,\n mutations: mutations,\n actions: actions\n})","var moment = require('moment');\nimport axios from \"axios\";\nimport * as qiniu from \"qiniu-js\";\n// eslint-disable-next-line no-undef\nvar Helps = {};\nHelps.install = function (Vue, options) {\n Vue.prototype.$myMethod = function () {\n console.log(options)\n }\n // 格式化日期\n Vue.prototype.$formatUnixDate = function (unix, format) {\n return moment(parseInt(unix + '000')).format(format)\n }\n // 格式化日期(相对日期)\n Vue.prototype.$formatFromNowDate = function (unix, format = \"YYYY-MM-DD HH:mm\") {\n if (moment().format(\"YYYYMMDD\") == moment(parseInt(unix + '000')).format(\"YYYYMMDD\")) {\n return \"今天 \" + moment(parseInt(unix + '000')).format(\"HH:mm\")\n }\n return moment(parseInt(unix + '000')).format(format)\n }\n // 格式化日期(相对日期)\n Vue.prototype.$formatDate = function (unix, format = \"YYYY-MM-DD HH:mm:ss\") {\n return moment(parseInt(unix + '000')).format(format)\n }\n Vue.prototype.$robotNickname = function (id) {\n var nickname\n var robots = this.$store.getters.robots\n for (let i = 0; i < robots.length; i++) {\n if (robots[i].id == id) {\n nickname = robots[i].nickname\n }\n }\n return nickname\n }\n\n // 上传文件\n Vue.prototype.$uploadFile = function ({ mode, file, percent, success, fail }) {\n var qiniuObservable = null;\n const fileName = parseInt(Math.random() * 10000 * new Date().getTime()) + file.name.substr(file.name.lastIndexOf(\".\"));\n // 系统内置\n if (mode == 1) {\n let fd = new FormData();\n fd.append(\"file\", file);\n fd.append(\"file_name\", fileName);\n axios\n .post(\"/public/upload\", fd)\n .then(res => {\n if (success) success(res.data.data);\n })\n .catch((e) => {\n if (fail) fail(e);\n });\n }\n // 七牛云\n else if (mode == 2) {\n let options = {\n quality: 0.92,\n noCompressIfLarger: true,\n maxWidth: 1500\n };\n qiniu.compressImage(file, options).then(data => {\n const observable = qiniu.upload(\n data.dist,\n fileName,\n self.uploadToken.secret,\n {},\n {\n mimeType: null\n }\n );\n qiniuObservable = observable.subscribe({\n next: function (res) {\n if (percent) percent(res)\n },\n error: function () {\n // 失败后再次使用FormData上传\n var formData = new FormData();\n formData.append(\"fileType\", \"image\");\n formData.append(\"fileName\", \"file\");\n formData.append(\"key\", fileName);\n formData.append(\"token\", self.uploadToken.secret);\n formData.append(\"file\", file);\n axios\n .post(\"https://upload.qiniup.com\", formData)\n .then(() => {\n if (success) success(fileName);\n })\n .catch((e) => {\n if (fail) fail(e);\n });\n },\n complete: function (res) {\n if (success) success(res.key);\n }\n });\n });\n }\n\n return qiniuObservable\n\n }\n\n\n}\nexport default Helps;","import axios from \"axios\";\nimport { Toast } from 'mint-ui';\nvar MimcPlugin = {};\nMimcPlugin.install = function (Vue, options) {\n\n console.log(options)\n\n // 获取单个平台数据\n Vue.MimcInstance = Vue.prototype.$mimcInstance = {\n user: null,\n robot: null,\n platform: 5,\n fetchMIMCTokenResult: null,\n _receiveP2PMsgCallback: null,\n _statusChangeCallback: null,\n _serverAckCallback: null,\n _disconnectCallback: null,\n // 初始化\n init(request, callback){\n this.platform = request.platform\n this.fetchMIMCToken(request, callback)\n },\n // 获取本地已经登录过的User\n getLocalCacheUser(){\n const userString = localStorage.getItem(\"user\")\n if(userString) return JSON.parse(userString)\n return null\n },\n // 获取token\n // request 登录参数\n // 登录回调 callback bool 是否成功\n fetchMIMCToken(request, callback){\n axios.post('/public/register', request)\n .then(response => {\n this.fetchMIMCTokenResult = response.data.data.token\n localStorage.setItem(\"user\", JSON.stringify(response.data.data.user))\n localStorage.setItem(\"Token\", response.data.data.user.token)\n console.log(\"MIMC初始化成功\")\n this.getRobot(()=>{\n if(callback) callback(response.data.data.user)\n })\n })\n .catch((error)=>{\n if(callback) callback(null)\n console.log(error)\n })\n },\n // 获取机器人\n getRobot(callback){\n axios.get('/public/robot/'+this.platform)\n .then(response => {\n this.robot = response.data.data\n if(callback)callback()\n }) \n .catch((error)=>{\n console.log(\"mimc初始化失败,请刷新重试\", error)\n })\n },\n // pushMessage\n pushMessage(payload){\n axios.post('/public/message/push', {\n \"msgType\": \"NORMAL_MSG\",\n \"payload\": payload\n })\n .then(response => {\n console.log(response.data)\n if(response.data['code'] != 200){\n setTimeout(()=> this.pushMessage(payload), 300)\n }\n })\n .catch(()=>{\n setTimeout(()=> this.pushMessage(payload), 300)\n })\n },\n // 登录\n login(callback){\n try{\n if(this.user) return\n var fetchMIMCTokenResult = this.fetchMIMCTokenResult\n // eslint-disable-next-line no-undef\n this.user = new MIMCUser(fetchMIMCTokenResult.data.appId, fetchMIMCTokenResult.data.appAccount, \"666\");\n this.user.registerP2PMsgHandler((message)=>{\n var msg = JSON.parse(window.Base64.decode(message.getPayload()));\n if(this._receiveP2PMsgCallback) this._receiveP2PMsgCallback(msg)\n });\n this.user.registerFetchToken(() => {\n return fetchMIMCTokenResult;\n });\n this.user.registerStatusChange((bindResult, errType, errReason, errDesc)=>{\n if(this._statusChangeCallback) this._statusChangeCallback(bindResult, errType, errReason, errDesc)\n });\n this.user.registerServerAckHandler((packetId, sequence, timeStamp, errMsg)=>{\n if(this._serverAckCallback) this._serverAckCallback(packetId, sequence, timeStamp, errMsg)\n });\n this.user.registerDisconnHandler(() => {\n if(this._disconnectCallback) this._disconnectCallback()\n });\n this.user.login();\n window.mimcInstance = this\n if(callback) callback()\n console.log(\"MIMC登录成功\")\n }catch(e){\n console.log(\"MIMC登录失败\")\n // 重新尝试\n setTimeout(()=>{\n this.login()\n }, 1000)\n }\n },\n // 退出\n logout(){\n if(this.user){\n this.user.logout()\n this.user = null\n }\n },\n // 注册监听器\n addEventListener(type, callback){\n switch(type){\n case \"receiveP2PMsg\":\n this._receiveP2PMsgCallback = callback\n break\n case \"statusChange\":\n this._statusChangeCallback = callback\n break\n case \"serverAck\":\n this._serverAckCallback = callback\n break\n case \"disconnect\":\n this._disconnectCallback = callback\n break\n }\n },\n // 发送消息\n sendMessage(type, toAccount, payload = \"\"){\n if(!this.user){\n Toast({\n message: \"服务异常,请刷新重试!\"\n })\n return\n }\n var messageJson = {\n \"from_account\": parseInt(this.fetchMIMCTokenResult.data.appAccount),\n \"to_account\": parseInt(toAccount),\n \"biz_type\": type,\n \"version\": \"0\",\n \"timestamp\": parseInt((new Date().getTime() + \" \").substr(0, 10)),\n \"key\": new Date().getTime(),\n \"read\": 0,\n \"platform\": this.platform,\n \"transfer_account\": 0,\n \"payload\": payload + ''\n }\n \n var jsonBase64Msg = window.Base64.encode(JSON.stringify(messageJson))\n \n // 过滤不入库\n if(!(type == \"contacts\" || type == \"pong\" || type == \"welcome\" || type == \"handshake\" || type == \"search_knowledge\")){\n // 发送给机器人中专入库\n // const intoMessageJson = {\n // \"biz_type\": \"into\",\n // \"payload\": jsonBase64Msg\n // }\n // const intoJsonBase64Msg = window.Base64.encode(JSON.stringify(intoMessageJson))\n // this.user.sendMessage(this.robot.id.toString(), intoJsonBase64Msg);\n // 消息入库\n this.pushMessage(window.Base64.encode(jsonBase64Msg))\n }\n\n setTimeout(()=>{\n // 发送给对方\n this.user.sendMessage(toAccount.toString(), jsonBase64Msg);\n // console.log(\"发送给对方\", jsonBase64Msg)\n },150)\n\n return messageJson\n },\n // 创建本地消息\n createLocalMessage(type, toAccount, payload = \"\", transferAccount = 0){\n const messageJson = {\n \"from_account\": parseInt(this.fetchMIMCTokenResult.data.appAccount),\n \"to_account\": parseInt(toAccount),\n \"biz_type\": type,\n \"version\": \"0\",\n \"platform\": this.platform,\n \"timestamp\": parseInt((new Date().getTime() + \" \").substr(0, 10)),\n \"key\": new Date().getTime(),\n \"read\": 0,\n \"transfer_account\": parseInt(transferAccount),\n \"payload\": payload + ''\n }\n return messageJson\n }\n \n\n }\n}\nexport default MimcPlugin;","export default {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY年MM月DD日',\n LLL: 'YYYY年MM月DD日Ah点mm分',\n LLLL: 'YYYY年MM月DD日ddddAh点mm分',\n l: 'YYYY-M-D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm'\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' ||\n meridiem === '上午') {\n return hour;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n } else {\n // '中午'\n return hour >= 11 ? hour : hour + 12;\n }\n },\n meridiem: function (hour, minute) {\n const hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天]LT',\n nextDay: '[明天]LT',\n nextWeek: '[下]ddddLT',\n lastDay: '[昨天]LT',\n lastWeek: '[上]ddddLT',\n sameElse: 'L'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|周)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '周';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s内',\n past: '%s前',\n s: '几秒',\n ss: '%d秒',\n m: '1分钟',\n mm: '%d分钟',\n h: '1小时',\n hh: '%d小时',\n d: '1天',\n dd: '%d天',\n M: '1个月',\n MM: '%d个月',\n y: '1年',\n yy: '%d年'\n },\n week: {\n dow: 1,\n doy: 4\n }\n}","import Vue from 'vue'\nimport App from './App.vue'\nimport preview from 'vue-photo-preview'\nimport router from \"./router\"\nimport store from './store'\nimport 'vue-photo-preview/dist/skin.css'\nimport MintUI from 'mint-ui'\nimport 'mint-ui/lib/style.css'\nimport Helps from \"../plugins/help\"\nimport MimcPlugin from \"../plugins/mimc\"\nimport momentLocal from '../resource/moment_locale'\nvar moment = require('moment');\nmoment.locale(\"zh-cn\", momentLocal)\n\nimport axios from 'axios'\n\naxios.defaults.baseURL = '/api'\n\n// axios添加请求拦截器\naxios.interceptors.request.use(function (config) {\n const token = localStorage.getItem('Token') || \"\"\n config.headers = Object.assign({}, {\n 'Token': token,\n }, config.headers)\n return config;\n}, function (error) {\n // eslint-disable-next-line no-console\n console.log(error)\n return Promise.reject(error);\n});\n\nvar options={\n clickToCloseNonZoomable: false,\n fullscreenEl:false, //关闭全屏按钮\n}\nVue.use(preview, options)\nVue.use(Helps)\nVue.use(MimcPlugin)\nVue.use(MintUI)\nVue.config.productionTip = false\nnew Vue({\n router,\n store,\n render: h => h(App)\n}).$mount('#app')\n","import mod from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=stylus&\"; export default mod; export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=stylus&\""],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-046fefd3"],{"269c":function(t,e,o){t.exports=o.p+"img/fujian1.083cd8b7.png"},3818:function(t,e,o){"use strict";var s=o("cd19"),r=o.n(s);r.a},4033:function(t,e,o){"use strict";o.r(e);var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"container"},[t.isShowHeader?s("mt-header",{attrs:{fixed:"",title:"工单详细"}},[s("div",{attrs:{slot:"left"},slot:"left"},[s("mt-button",{attrs:{icon:"back"},on:{click:function(e){return t.$router.go(-1)}}})],1),3!=t.workorder.status?s("mt-button",{attrs:{slot:"right"},on:{click:function(e){return t.close()}},slot:"right"},[s("span",[t._v("关闭工单")])]):s("mt-button",{attrs:{slot:"right"},on:{click:function(e){return t.del()}},slot:"right"},[s("span",[t._v("删除")])])],1):t._e(),s("div",{staticClass:"content",class:{"hide-header":!t.isShowHeader}},[s("div",{staticClass:"head"},[s("div",{staticClass:"con"},[s("span",[t._v("标题:")]),s("span",[t._v(t._s(t.workorder.title))])]),s("div",{staticClass:"con"},[s("span",[t._v("内容:")]),s("span",{domProps:{innerHTML:t._s(t.workorder.content)}})]),s("div",{staticClass:"con"},[s("span",[t._v("电话:")]),s("span",[t._v(t._s(t.workorder.phone||"未预留电话号码"))])]),s("div",{staticClass:"con"},[s("span",[t._v("邮箱:")]),s("span",[t._v(t._s(t.workorder.email||"未预留邮箱"))])]),s("div",{staticClass:"con"},[s("span",[t._v("时间:")]),s("span",[t._v(t._s(t.$formatDate(t.workorder.create_at)))])]),s("div",{staticClass:"con"},[s("span",[t._v("类型:")]),s("span",[t._v(t._s(t.typeName||"---"))])]),s("div",{staticClass:"con"},[s("span",[t._v("状态:")]),s("span",[1==t.workorder.status?s("i",{staticStyle:{color:"#8bc34a"}},[t._v("已回复")]):t._e(),3==t.workorder.status?s("i",{staticStyle:{color:"#ccc"}},[t._v("已结束")]):t._e(),0==t.workorder.status?s("i",{staticStyle:{color:"#FF9800"}},[t._v("待处理")]):t._e(),2==t.workorder.status?s("i",{staticStyle:{color:"#FF9800"}},[t._v("待回复")]):t._e()])])]),s("div",{staticClass:"comments"},[t.comments.length<=0?s("div",{staticClass:"no-data"},[t._v("暂无回复内容,请您耐心等待~")]):t._l(t.comments,(function(e,o){return[s("div",{key:o,staticClass:"item"},[s("div",{staticClass:"avatar"},[0==e.aid?s("img",{attrs:{src:t.userInfo.avatar||"http://qiniu.cmp520.com/avatar_degault_3.png",alt:""}}):s("img",{attrs:{src:e.a_avatar||"http://qiniu.cmp520.com/avatar_degault_3.png",alt:""}})]),s("div",{staticClass:"right"},[0==e.aid?s("div",{staticClass:"nickname"},[t._v("我")]):s("div",{staticClass:"nickname"},[t._v(t._s(e.a_nickname))]),s("div",{staticClass:"detail",domProps:{innerHTML:t._s(e.content)}}),s("div",{staticClass:"date"},[t._v(t._s(t.$formatDate(e.create_at)))])])])]})),3==t.workorder.status?s("div",{staticClass:"workorder-close"},[t._v("工单已结束~")]):t._e()],2),""!=t.request.source||t.isShowUploadLoading?s("div",{staticClass:"file-view"},[t.isShowUploadLoading?s("span",[s("img",{attrs:{src:o("cf1c"),alt:""}}),s("i",[t._v("上传中~")])]):s("span",[s("img",{attrs:{src:o("269c"),alt:""}}),s("i",[t._v("你已成功添加附件,重新上传可替换~")])])]):t._e(),3!=t.workorder.status?s("div",{staticClass:"input-form"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.request.content,expression:"request.content"}],attrs:{placeholder:"请输入内容~"},domProps:{value:t.request.content},on:{blur:function(e){return t.inputBlur()},input:function(e){e.target.composing||t.$set(t.request,"content",e.target.value)}}}),s("span",{staticClass:"icon-btn"},[s("input",{attrs:{title:"添加附件",type:"file",onclick:"this.value = null"},on:{change:t.uploadFile}})]),s("span",{staticClass:"sub-btn",on:{click:function(e){return t.reply()}}},[t._v("提交")])]):t._e()])],1)},r=[],n=(o("8e6e"),o("ac6a"),o("456d"),o("bd86")),a=o("2f62"),i=o("76a0"),c=o("bc3a"),l=o.n(c);function u(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,s)}return o}function d(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?u(Object(o),!0).forEach((function(e){Object(n["a"])(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var p={name:"workorder_detail",components:{},data:function(){return{isShowUploadLoading:!1,isSubmit:!1,workorder:{},comments:[],fileType:"",request:{source:"",content:""}}},computed:d({},Object(a["b"])(["isShowHeader","workorders","userInfo","workorderTypes","uploadToken"]),{typeName:function(){var t=this;try{return this.workorderTypes.filter((function(e){return e.id==t.workorder.tid}))[0].title}catch(e){return console.log(e),""}}}),created:function(){var t=this;document.title="工单详细";var e=this.$route.params.id;this.$store.commit("updateState",{isShowPageLoading:!0}),l.a.all([this.getWorkOrder(e),this.getComments(e)]).then(l.a.spread((function(){t.$store.commit("updateState",{isShowPageLoading:!1})})))},methods:{getWorkOrder:function(t){var e=this;return l.a.get("/public/workorder/"+t).then((function(t){e.workorder=t.data.data,setTimeout((function(){return e.$previewRefresh()}),200)})).catch((function(t){console.log(t)}))},getComments:function(t){var e=this;return l.a.get("/public/workorder/comments/"+t).then((function(t){null!=t.data.data&&(e.comments=t.data.data,setTimeout((function(){return e.$previewRefresh()}),200))})).catch((function(t){console.log(t)}))},reply:function(){var t=this,e=this.request.content+this.request.source;if(""!=e.trim()){if(!this.isSubmit){this.isSubmit=!0;var o=this.workorder.id;l.a.post("/public/workorder/reply",{wid:o,content:e}).then((function(e){t.isSubmit=!1,console.log(e),t.getComments(o),t.request={source:"",content:""},setTimeout((function(){var t=document.querySelector(".container").clientHeight,e=document.querySelector(".content").clientHeight;document.querySelector(".container").scrollTop=e-t+20}),500)})).catch((function(e){t.isSubmit=!1,console.log(e),Object(i["Toast"])({message:"提交失败~"})}))}}else Object(i["Toast"])({message:"请输入内容~"})},inputBlur:function(){setTimeout((function(){document.body.scrollTo=0,window.scrollTo(0,0)}),100)},uploadFile:function(t){var e=t.target,o=e.files[0];this.isShowUploadLoading=!0;var s=this;this.$uploadFile({file:o,secret:s.uploadToken.secret,mode:this.uploadToken.mode,percent:function(){},success:function(t){var e;s.isShowUploadLoading=!1;var o=s.uploadToken.host+"/"+t,r=t.substr(t.lastIndexOf(".")+1);-1!="jpg,jpeg,png,JPG,JPEG,PNG".indexOf(r)?e="<br><img style='max-width:45%' preview='1' src='"+o+"' />":(e="<br><img style='width:20px;height:20px;top:3px; right:3px;position: relative;' preview='1' src='http://qiniu.cmp520.com/fj.png' />",e+="<a target='_blank' style='color: #2e9dfc;' href='"+o+"'>下载附件</a>"),s.request.source=e,Object(i["Toast"])({message:"上传成功~"})},fail:function(t){s.isShowUploadLoading=!1,t.response&&t.response.data&&Object(i["Toast"])({message:t.response.data.message})}})},close:function(){var t=this,e=this.workorder.id;i["MessageBox"].confirm("您确定关闭该工单吗?").then((function(){l.a.put("/public/workorder/close/"+e).then((function(o){console.log(o),Object(i["Toast"])({message:"工单已关闭~"}),t.getWorkOrder(e)})).catch((function(t){Object(i["Toast"])({message:"工单关闭失败~"}),console.log(t)}))}))},del:function(){var t=this,e=this.workorder.id;i["MessageBox"].confirm("您确定删除该工单吗?").then((function(){l.a.delete("/public/workorder/"+e).then((function(e){console.log(e),Object(i["Toast"])({message:"工单已删除~"}),setTimeout((function(){return t.$router.go(-1)}))})).catch((function(t){Object(i["Toast"])({message:"工单关闭失败~"}),console.log(t)}))}))}}},A=p,m=(o("3818"),o("2877")),g=Object(m["a"])(A,s,r,!1,null,"6f1ffd80",null);e["default"]=g.exports},cd19:function(t,e,o){},cf1c:function(t,e){t.exports="data:image/gif;base64,R0lGODlhEAAQAKIGAMLY8YSx5HOm4Mjc88/g9Ofw+v///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAGACwAAAAAEAAQAAADMGi6RbUwGjKIXCAA016PgRBElAVlG/RdLOO0X9nK61W39qvqiwz5Ls/rRqrggsdkAgAh+QQFCgAGACwCAAAABwAFAAADD2hqELAmiFBIYY4MAutdCQAh+QQFCgAGACwGAAAABwAFAAADD1hU1kaDOKMYCGAGEeYFCQAh+QQFCgAGACwKAAIABQAHAAADEFhUZjSkKdZqBQG0IELDQAIAIfkEBQoABgAsCgAGAAUABwAAAxBoVlRKgyjmlAIBqCDCzUoCACH5BAUKAAYALAYACgAHAAUAAAMPaGpFtYYMAgJgLogA610JACH5BAUKAAYALAIACgAHAAUAAAMPCAHWFiI4o1ghZZJB5i0JACH5BAUKAAYALAAABgAFAAcAAAMQCAFmIaEp1motpDQySMNFAgA7"}}]);
//# sourceMappingURL=chunk-046fefd3.4711921f.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/assets/fujian1.png","webpack:///./src/views/workorder_detail.vue?c6bd","webpack:///./src/views/workorder_detail.vue?de44","webpack:///src/views/workorder_detail.vue","webpack:///./src/views/workorder_detail.vue?9869","webpack:///./src/views/workorder_detail.vue","webpack:///./src/assets/loading.gif"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","on","$event","$router","go","workorder","status","close","_v","del","_e","class","isShowHeader","_s","title","domProps","content","phone","email","$formatDate","create_at","typeName","staticStyle","comments","length","_l","item","index","key","aid","userInfo","avatar","a_avatar","a_nickname","request","source","isShowUploadLoading","directives","name","rawName","value","expression","inputBlur","target","composing","$set","uploadFile","reply","staticRenderFns","components","data","isSubmit","fileType","computed","console","log","e","created","document","$store","commit","methods","getWorkOrder","getComments","trim","message","setTimeout","body","scrollTo","window","fileDom","file","files","$uploadFile","secret","self","uploadToken","mode","percent","success","html","fullPath","host","src","substr","lastIndexOf","indexOf","fail","response","wid","id","component"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,4B,kCCA3C,yBAA+iB,EAAG,G,yCCAljB,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,aAAa,CAAEN,EAAgB,aAAEI,EAAG,YAAY,CAACG,MAAM,CAAC,MAAQ,GAAG,MAAQ,SAAS,CAACH,EAAG,MAAM,CAACG,MAAM,CAAC,KAAO,QAAQC,KAAK,QAAQ,CAACJ,EAAG,YAAY,CAACG,MAAM,CAAC,KAAO,QAAQE,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,QAAQC,IAAI,QAAQ,GAA4B,GAAxBZ,EAAIa,UAAUC,OAAaV,EAAG,YAAY,CAACG,MAAM,CAAC,KAAO,SAASE,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIe,UAAUP,KAAK,SAAS,CAACJ,EAAG,OAAO,CAACJ,EAAIgB,GAAG,YAAYZ,EAAG,YAAY,CAACG,MAAM,CAAC,KAAO,SAASE,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIiB,QAAQT,KAAK,SAAS,CAACJ,EAAG,OAAO,CAACJ,EAAIgB,GAAG,WAAW,GAAGhB,EAAIkB,KAAKd,EAAG,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MAAM,GACzB/E,KAAK2C,qBAAsB,EAC3B,IAAN,OACM3C,KAAKgF,YAAY,CACfF,KAAR,EACQG,OAAQC,EAAKC,YAAYF,OACzBG,KAAMpF,KAAKmF,YAAYC,KAEvBC,QALR,aAMQC,QANR,SAMA,GAGU,IAAIC,EADJL,EAAKvC,qBAAsB,EAE3B,IAAI6C,EAAWN,EAAKC,YAAYM,KAAO,IAAMC,EACzC/B,EAAW+B,EAAIC,OAAOD,EAAIE,YAAY,KAAO,IACK,GAAlD,4BAA4BC,QAAQlC,GACtC,EAAZ,6DAEY,EAAZ,qIACY,GAAZ,oEAEUuB,EAAKzC,QAAQC,OAAS6C,EACtB,OAAV,WAAU,CAAV,CACYf,QAAS,WAGbsB,KAvBR,SAuBA,GACUZ,EAAKvC,qBAAsB,EACvBoB,EAAEgC,UAAYhC,EAAEgC,SAAStC,MAC3B,OAAZ,WAAY,CAAZ,CACce,QAAST,EAAEgC,SAAStC,KAAKe,cAOnC1D,MAxGJ,WAwGA,WACUkF,EAAMhG,KAAKY,UAAUqF,GACzB,EAAN,qDACQ,EAAR,EACA,kCACA,kBACU,QAAV,OACU,OAAV,WAAU,CAAV,CACY,QAAZ,WAEU,EAAV,mBAEA,mBACU,OAAV,WAAU,CAAV,CACY,QAAZ,YAEU,QAAV,cAIIjF,IA5HJ,WA4HA,WACUgF,EAAMhG,KAAKY,UAAUqF,GACzB,EAAN,qDACQ,EAAR,EACA,+BACA,kBACU,QAAV,OACU,OAAV,WAAU,CAAV,CACY,QAAZ,WAEU,YAAV,WAAY,OAAZ,uBAEA,mBACU,OAAV,WAAU,CAAV,CACY,QAAZ,YAEU,QAAV,gBCtR6X,I,wBCQzXC,EAAY,eACd,EACApG,EACAyD,GACA,EACA,KACA,WACA,MAIa,aAAA2C,E,mDCnBftG,EAAOC,QAAU","file":"js/chunk-046fefd3.4711921f.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/fujian1.083cd8b7.png\";","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder_detail.vue?vue&type=style&index=0&id=6f1ffd80&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder_detail.vue?vue&type=style&index=0&id=6f1ffd80&lang=stylus&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[(_vm.isShowHeader)?_c('mt-header',{attrs:{\"fixed\":\"\",\"title\":\"工单详细\"}},[_c('div',{attrs:{\"slot\":\"left\"},slot:\"left\"},[_c('mt-button',{attrs:{\"icon\":\"back\"},on:{\"click\":function($event){return _vm.$router.go(-1)}}})],1),(_vm.workorder.status != 3)?_c('mt-button',{attrs:{\"slot\":\"right\"},on:{\"click\":function($event){return _vm.close()}},slot:\"right\"},[_c('span',[_vm._v(\"关闭工单\")])]):_c('mt-button',{attrs:{\"slot\":\"right\"},on:{\"click\":function($event){return _vm.del()}},slot:\"right\"},[_c('span',[_vm._v(\"删除\")])])],1):_vm._e(),_c('div',{staticClass:\"content\",class:{'hide-header': !_vm.isShowHeader}},[_c('div',{staticClass:\"head\"},[_c('div',{staticClass:\"con\"},[_c('span',[_vm._v(\"标题:\")]),_c('span',[_vm._v(_vm._s(_vm.workorder.title))])]),_c('div',{staticClass:\"con\"},[_c('span',[_vm._v(\"内容:\")]),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.workorder.content)}})]),_c('div',{staticClass:\"con\"},[_c('span',[_vm._v(\"电话:\")]),_c('span',[_vm._v(_vm._s(_vm.workorder.phone || '未预留电话号码'))])]),_c('div',{staticClass:\"con\"},[_c('span',[_vm._v(\"邮箱:\")]),_c('span',[_vm._v(_vm._s(_vm.workorder.email || '未预留邮箱'))])]),_c('div',{staticClass:\"con\"},[_c('span',[_vm._v(\"时间:\")]),_c('span',[_vm._v(_vm._s(_vm.$formatDate(_vm.workorder.create_at)))])]),_c('div',{staticClass:\"con\"},[_c('span',[_vm._v(\"类型:\")]),_c('span',[_vm._v(_vm._s(_vm.typeName || \"---\"))])]),_c('div',{staticClass:\"con\"},[_c('span',[_vm._v(\"状态:\")]),_c('span',[(_vm.workorder.status == 1)?_c('i',{staticStyle:{\"color\":\"#8bc34a\"}},[_vm._v(\"已回复\")]):_vm._e(),(_vm.workorder.status == 3)?_c('i',{staticStyle:{\"color\":\"#ccc\"}},[_vm._v(\"已结束\")]):_vm._e(),(_vm.workorder.status == 0)?_c('i',{staticStyle:{\"color\":\"#FF9800\"}},[_vm._v(\"待处理\")]):_vm._e(),(_vm.workorder.status == 2)?_c('i',{staticStyle:{\"color\":\"#FF9800\"}},[_vm._v(\"待回复\")]):_vm._e()])])]),_c('div',{staticClass:\"comments\"},[(_vm.comments.length <= 0)?_c('div',{staticClass:\"no-data\"},[_vm._v(\"暂无回复内容,请您耐心等待~\")]):_vm._l((_vm.comments),function(item,index){return [_c('div',{key:index,staticClass:\"item\"},[_c('div',{staticClass:\"avatar\"},[(item.aid == 0)?_c('img',{attrs:{\"src\":_vm.userInfo.avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png',\"alt\":\"\"}}):_c('img',{attrs:{\"src\":item.a_avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png',\"alt\":\"\"}})]),_c('div',{staticClass:\"right\"},[(item.aid == 0)?_c('div',{staticClass:\"nickname\"},[_vm._v(\"我\")]):_c('div',{staticClass:\"nickname\"},[_vm._v(_vm._s(item.a_nickname))]),_c('div',{staticClass:\"detail\",domProps:{\"innerHTML\":_vm._s(item.content)}}),_c('div',{staticClass:\"date\"},[_vm._v(_vm._s(_vm.$formatDate(item.create_at)))])])])]}),(_vm.workorder.status == 3)?_c('div',{staticClass:\"workorder-close\"},[_vm._v(\"工单已结束~\")]):_vm._e()],2),(_vm.request.source != '' || _vm.isShowUploadLoading)?_c('div',{staticClass:\"file-view\"},[(_vm.isShowUploadLoading)?_c('span',[_c('img',{attrs:{\"src\":require(\"./../assets/loading.gif\"),\"alt\":\"\"}}),_c('i',[_vm._v(\"上传中~\")])]):_c('span',[_c('img',{attrs:{\"src\":require(\"./../assets/fujian1.png\"),\"alt\":\"\"}}),_c('i',[_vm._v(\"你已成功添加附件,重新上传可替换~\")])])]):_vm._e(),(_vm.workorder.status != 3)?_c('div',{staticClass:\"input-form\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.request.content),expression:\"request.content\"}],attrs:{\"placeholder\":\"请输入内容~\"},domProps:{\"value\":(_vm.request.content)},on:{\"blur\":function($event){return _vm.inputBlur()},\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, \"content\", $event.target.value)}}}),_c('span',{staticClass:\"icon-btn\"},[_c('input',{attrs:{\"title\":\"添加附件\",\"type\":\"file\",\"onclick\":\"this.value = null\"},on:{\"change\":_vm.uploadFile}})]),_c('span',{staticClass:\"sub-btn\",on:{\"click\":function($event){return _vm.reply()}}},[_vm._v(\"提交\")])]):_vm._e()])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"container\">\n <mt-header v-if=\"isShowHeader\" fixed title=\"工单详细\">\n <div slot=\"left\">\n <mt-button @click=\"$router.go(-1)\" icon=\"back\"></mt-button>\n </div>\n <mt-button @click=\"close()\" v-if=\"workorder.status != 3\" slot=\"right\">\n <span>关闭工单</span>\n </mt-button>\n <mt-button @click=\"del()\" v-else slot=\"right\">\n <span>删除</span>\n </mt-button>\n </mt-header>\n <div class=\"content\" :class=\"{'hide-header': !isShowHeader}\">\n <div class=\"head\">\n <div class=\"con\">\n <span>标题:</span>\n <span>{{workorder.title}}</span>\n </div>\n <div class=\"con\">\n <span>内容:</span>\n <span v-html=\"workorder.content\"></span>\n </div>\n <div class=\"con\">\n <span>电话:</span>\n <span>{{workorder.phone || '未预留电话号码'}}</span>\n </div>\n <div class=\"con\">\n <span>邮箱:</span>\n <span>{{workorder.email || '未预留邮箱'}}</span>\n </div>\n <div class=\"con\">\n <span>时间:</span>\n <span>{{$formatDate(workorder.create_at)}}</span>\n </div>\n <div class=\"con\">\n <span>类型:</span>\n <span>{{typeName || \"---\"}}</span>\n </div>\n <div class=\"con\">\n <span>状态:</span>\n <span>\n <i v-if=\"workorder.status == 1\" style=\"color:#8bc34a;\">已回复</i>\n <i v-if=\"workorder.status == 3\" style=\"color:#ccc\">已结束</i>\n <i v-if=\"workorder.status == 0\" style=\"color:#FF9800\">待处理</i>\n <i v-if=\"workorder.status == 2\" style=\"color:#FF9800\">待回复</i>\n </span>\n </div>\n </div>\n <div class=\"comments\">\n <div class=\"no-data\" v-if=\"comments.length <= 0\">暂无回复内容,请您耐心等待~</div>\n <template v-else v-for=\"(item,index) in comments\">\n <div :key=\"index\" class=\"item\">\n <div class=\"avatar\">\n <img\n v-if=\"item.aid == 0\"\n :src=\"userInfo.avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png'\"\n alt\n />\n <img v-else :src=\"item.a_avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png'\" alt />\n </div>\n <div class=\"right\">\n <div class=\"nickname\" v-if=\"item.aid == 0\">我</div>\n <div class=\"nickname\" v-else>{{item.a_nickname}}</div>\n <div class=\"detail\" v-html=\"item.content\"></div>\n <div class=\"date\">{{$formatDate(item.create_at)}}</div>\n </div>\n </div>\n </template>\n <div class=\"workorder-close\" v-if=\"workorder.status == 3\">工单已结束~</div>\n </div>\n <div class=\"file-view\" v-if=\"request.source != '' || isShowUploadLoading\">\n <span v-if=\"isShowUploadLoading\">\n <img src=\"./../assets/loading.gif\" alt />\n <i>上传中~</i>\n </span>\n <span v-else>\n <img src=\"./../assets/fujian1.png\" alt />\n <i>你已成功添加附件,重新上传可替换~</i>\n </span>\n </div>\n <div class=\"input-form\" v-if=\"workorder.status != 3\">\n <textarea v-model=\"request.content\" @blur=\"inputBlur()\" placeholder=\"请输入内容~\"></textarea>\n <span class=\"icon-btn\">\n <input title=\"添加附件\" type=\"file\" @change=\"uploadFile\" onclick=\"this.value = null\" />\n </span>\n <span class=\"sub-btn\" @click=\"reply()\">提交</span>\n </div>\n </div>\n </div>\n</template>\n<script>\nimport { mapGetters } from \"vuex\";\nimport { Toast, MessageBox } from \"mint-ui\";\nimport axios from \"axios\";\nexport default {\n name: \"workorder_detail\",\n components: {},\n data() {\n return {\n isShowUploadLoading: false,\n isSubmit: false,\n workorder: {},\n comments: [],\n fileType: \"\",\n request: {\n source: \"\",\n content: \"\"\n }\n };\n },\n computed: {\n ...mapGetters([\n \"isShowHeader\",\n \"workorders\",\n \"userInfo\",\n \"workorderTypes\",\n \"uploadToken\"\n ]),\n typeName(){\n try{\n return this.workorderTypes.filter((i)=>i.id == this.workorder.tid)[0].title\n }catch(e){\n console.log(e)\n return \"\"\n }\n }\n },\n created() {\n document.title = \"工单详细\";\n const id = this.$route.params.id;\n this.$store.commit(\"updateState\", { isShowPageLoading: true });\n axios.all([this.getWorkOrder(id), this.getComments(id)]).then(\n axios.spread(() => {\n this.$store.commit(\"updateState\", { isShowPageLoading: false });\n })\n );\n },\n methods: {\n getWorkOrder(id) {\n return axios\n .get(\"/public/workorder/\" + id)\n .then(response => {\n this.workorder = response.data.data;\n setTimeout(()=>this.$previewRefresh(), 200)\n })\n .catch(error => {\n console.log(error);\n });\n },\n getComments(id) {\n return axios\n .get(\"/public/workorder/comments/\" + id)\n .then(response => {\n if (response.data.data == null) return;\n this.comments = response.data.data;\n setTimeout(()=>this.$previewRefresh(), 200)\n })\n .catch(error => {\n console.log(error);\n });\n },\n reply() {\n const content = this.request.content + this.request.source;\n if (content.trim() == \"\") {\n Toast({\n message: \"请输入内容~\"\n });\n return;\n }\n if (this.isSubmit) return;\n this.isSubmit = true;\n const wid = this.workorder.id;\n axios\n .post(\"/public/workorder/reply\", { wid, content })\n .then(response => {\n this.isSubmit = false\n console.log(response);\n this.getComments(wid);\n this.request = {\n source: \"\",\n content: \"\"\n };\n setTimeout(()=>{\n var sBoxHeight = document.querySelector(\".container\").clientHeight\n var sHeight = document.querySelector(\".content\").clientHeight\n document.querySelector(\".container\").scrollTop = sHeight - sBoxHeight + 20\n }, 500)\n })\n .catch(error => {\n this.isSubmit = false\n console.log(error);\n Toast({\n message: \"提交失败~\"\n });\n });\n },\n inputBlur() {\n setTimeout(() => {\n document.body.scrollTo = 0;\n window.scrollTo(0, 0);\n }, 100);\n },\n uploadFile(e) {\n var fileDom = e.target;\n var file = fileDom.files[0];\n this.isShowUploadLoading = true;\n const self = this;\n this.$uploadFile({\n file,\n secret: self.uploadToken.secret,\n mode: this.uploadToken.mode,\n // 七牛才会执行\n percent() {},\n success(src) {\n\n self.isShowUploadLoading = false;\n var html\n var fullPath = self.uploadToken.host + \"/\" + src;\n var fileType = src.substr(src.lastIndexOf(\".\") + 1);\n if (\"jpg,jpeg,png,JPG,JPEG,PNG\".indexOf(fileType) != -1) {\n html = \"<br><img style='max-width:45%' preview='1' src='\" + fullPath + \"' />\"\n }else{\n html = \"<br><img style='width:20px;height:20px;top:3px; right:3px;position: relative;' preview='1' src='http://qiniu.cmp520.com/fj.png' />\"\n html += \"<a target='_blank' style='color: #2e9dfc;' href='\"+fullPath+\"'>下载附件</a>\"\n }\n self.request.source = html\n Toast({\n message: \"上传成功~\"\n });\n },\n fail(e) {\n self.isShowUploadLoading = false;\n if (e.response && e.response.data) {\n Toast({\n message: e.response.data.message\n });\n return;\n }\n }\n });\n },\n close() {\n var wid = this.workorder.id;\n MessageBox.confirm(\"您确定关闭该工单吗?\").then(() => {\n axios\n .put(\"/public/workorder/close/\" + wid)\n .then(response => {\n console.log(response);\n Toast({\n message: \"工单已关闭~\"\n });\n this.getWorkOrder(wid);\n })\n .catch(error => {\n Toast({\n message: \"工单关闭失败~\"\n });\n console.log(error);\n });\n });\n },\n del() {\n var wid = this.workorder.id;\n MessageBox.confirm(\"您确定删除该工单吗?\").then(() => {\n axios\n .delete(\"/public/workorder/\" + wid)\n .then(response => {\n console.log(response);\n Toast({\n message: \"工单已删除~\"\n });\n setTimeout(() => this.$router.go(-1));\n })\n .catch(error => {\n Toast({\n message: \"工单关闭失败~\"\n });\n console.log(error);\n });\n });\n }\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n.container {\n height: 100vh;\n overflow: hidden;\n overflow-y: auto;\n}\n\n.content {\n padding-top: 50px;\n padding-bottom: 90px;\n\n .no-data {\n color: #666;\n font-size: 14px;\n }\n\n .workorder-close {\n text-align: center;\n color: #666;\n font-size: 14px;\n padding: 10px;\n }\n\n &.hide-header {\n padding-top: 0;\n }\n\n .head {\n margin: 0 10px;\n padding: 10px 0;\n border-bottom: 1px solid rgba(158, 158, 158, 0.13);\n\n .con {\n font-size: 15px;\n color: #333;\n display: flex;\n margin-bottom: 8px;\n\n span {\n flex-flow: 1;\n }\n\n span:first-child {\n flex-flow: 0;\n flex-shrink: 0;\n width: 45px;\n }\n\n i {\n font-style: normal;\n }\n }\n }\n\n .comments {\n padding: 10px;\n\n .item {\n display: flex;\n\n .avatar {\n padding-top: 10px;\n\n img {\n width: 30px;\n height: 30px;\n border-radius: 100px;\n display: block;\n }\n\n border-bottom: 1px solid rgba(158, 158, 158, 0.13);\n }\n\n .right {\n padding: 10px 5px;\n flex-grow: 1;\n border-bottom: 1px solid rgba(158, 158, 158, 0.13);\n\n .nickname {\n font-size: 15px;\n color: #333;\n }\n\n .detail {\n font-size: 15px;\n color: #333;\n margin-top: 5px;\n }\n\n .date {\n color: #999;\n font-size: 14px;\n margin-top: 5px;\n }\n }\n\n &:last-child {\n .right, .avatar {\n border-bottom: 0;\n }\n }\n }\n }\n\n .file-view {\n position: fixed;\n bottom: 80px;\n left: 0;\n right: 0;\n padding: 5px 10px;\n margin: 0 auto;\n font-size: 13px;\n color: #8bc34a;\n\n span {\n display: flex;\n align-content: center;\n align-items: center;\n\n img {\n width: 20px;\n height: 20px;\n }\n\n i {\n font-style: normal;\n margin-left: 5px;\n }\n }\n }\n\n .input-form {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n margin: 0 auto;\n width: 100%;\n height: 80px;\n background-color: #fff;\n border-top: 1px solid rgba(158, 158, 158, 0.13);\n display: flex;\n justify-content: space-between;\n padding: 0 10px;\n box-sizing: border-box;\n align-content: center;\n align-items: center;\n\n textarea {\n height: 45px;\n flex-grow: 1;\n border-radius: 0;\n border: 0;\n color: #333;\n font-size: 14px;\n resize: none;\n }\n\n .icon-btn {\n background: url('./../assets/upload.png') center center no-repeat;\n background-size: 30px;\n width: 55px;\n height: 55px;\n overflow: hidden;\n\n input {\n display: block;\n width: 100%;\n height: 100%;\n font-size: 100px;\n opacity: 0;\n }\n }\n\n .sub-btn {\n display: block;\n width: 55px;\n height: 30px;\n color: #fff;\n line-height: 30px;\n text-align: center;\n border-radius: 3px;\n border: none;\n font-size: 14px;\n background: linear-gradient(to right, #26a2ff, #736cde);\n flex-shrink: 0;\n\n &:active {\n opacity: 0.8;\n }\n }\n }\n}\n</style>\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder_detail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder_detail.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./workorder_detail.vue?vue&type=template&id=6f1ffd80&scoped=true&\"\nimport script from \"./workorder_detail.vue?vue&type=script&lang=js&\"\nexport * from \"./workorder_detail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./workorder_detail.vue?vue&type=style&index=0&id=6f1ffd80&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6f1ffd80\",\n null\n \n)\n\nexport default component.exports","module.exports = \"data:image/gif;base64,R0lGODlhEAAQAKIGAMLY8YSx5HOm4Mjc88/g9Ofw+v///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAGACwAAAAAEAAQAAADMGi6RbUwGjKIXCAA016PgRBElAVlG/RdLOO0X9nK61W39qvqiwz5Ls/rRqrggsdkAgAh+QQFCgAGACwCAAAABwAFAAADD2hqELAmiFBIYY4MAutdCQAh+QQFCgAGACwGAAAABwAFAAADD1hU1kaDOKMYCGAGEeYFCQAh+QQFCgAGACwKAAIABQAHAAADEFhUZjSkKdZqBQG0IELDQAIAIfkEBQoABgAsCgAGAAUABwAAAxBoVlRKgyjmlAIBqCDCzUoCACH5BAUKAAYALAYACgAHAAUAAAMPaGpFtYYMAgJgLogA610JACH5BAUKAAYALAIACgAHAAUAAAMPCAHWFiI4o1ghZZJB5i0JACH5BAUKAAYALAAABgAFAAcAAAMQCAFmIaEp1motpDQySMNFAgA7\""],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e6009ff"],{"21fb":function(t,i,e){t.exports=e.p+"img/expression.73c98a16.png"},"382d":function(t,i,e){},"5dbc":function(t,i,e){var s=e("d3f4"),o=e("8b97").set;t.exports=function(t,i,e){var n,r=i.constructor;return r!==e&&"function"==typeof r&&(n=r.prototype)!==e.prototype&&s(n)&&o&&o(t,n),t}},"7d02":function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAEMklEQVR4Xu2dbXbaMBBFFVZWnyysYWEcJRtzetzQpglftuaJ8jSXv8jD6M3Vk4SFeSq8UivwlLr3dL4AQHIIAAAAkiuQvPs4AAAkVyB593EAAEiuQPLu4wAAkFyB5N3HAQDAR4Fa67tDttM02Qwsm0SXwgOAHn8A0GtacIAOouIAfUTFATroigN0EPWKA7x2+ri1YX98bwgAa6Xb2O7CIvB1mqZpYyhJ81prLaUAgETNFUEAYIVIG5tI1gC11mUULKPhf7wezgHuIcI8z/vn5+eX6GcBQEDBS1NAIOTqSwHgUyocYDU2pw1xgIB4OMBRPNYAAYoaL3WZAtR79JMtVynlEaeA7v22AECV5J9B4rINLGW5HTBJIKi1/iylnKz2Vdp2XQOokrwFQKOLqi4750oyAA6Hw8tut1sg+PJSaTsCAKpCKuPIAMAB/imLy3kApoBj0VQ2dWMKUI5cVSwcYFESAOI8MQUwBbALiI8j3wg4gG/tJJkDgERG3yAA4Fs7SeYAIJHRNwgA+NZOkjkASGT0DQIAvrWTZA4AEhl9gwCAb+0kmQOAREbfIADgWztJ5gAgkdE3CAD41k6SOQBIZPQNkhKAS532LePvzJtOCaUE4NJJWAD4VEB12uohTwXjAJ+FTukAAAAAZ8/BMQXkmgLO/eLGmYF9y8/FUk4BzlVW5w4AakXN4gGAWcHU6QKAWlGzeABgVjB1ugCgVtQsHgCYFUydLgCoFTWLBwBmBVOnCwBqRc3iAYBZwdTppgTg2OnlCSM3b1fvdrv3a+2W988VZbnm0nvqIh7jvXEvYKWy3A5OfjuYE0GDALA84XKapv3Kgf+3GQAMAkDruTUAGAQAHOCL9+U7FdwKALuAQRygdQrYumYYuX3K7wFGLujWvgHAVsUGaw8AgxV0a3esAWhdBG4VaeT21gCwCIyjaQ0ADgAATV8Fx2UbJ4K1AzAFxEEEgLiG1hGsAWANEGfPGoBRp4DjfwZvqu48z28tf/duDcCoDtDy93WtgwEANo2z+zQGgG86X/r38Fbq71PG9k8BAAA4e9L4GlKtg8F6CmjtdPvYvM+VOAAO0PT8onS/Cxh1F3Afn/n4FOspAADiqABAXEPrCABgXb548tYAjLoLiJd1fQQAWK/VkC2tAWARGGfSGgCmgOQA4AAAwJnAIAPWUwAOEKw+3wTGBXSPYO0ALALj+F15XpJker35FK41Xch2IGSNJqo21g7AGiCOgTUATAHJAcABAECyUInL6BvBegrAAeLgWe8CAKAfAKr1VddtYCnlNS4BEUopJ4dQXQCgep0UAIBOwrqEBQCXSnXKEwA6CWsUVrLF7r0INNLTK9VHdAAvBQfItuWnZt+7LXGAAbRM2wUASFv6j44DAAAkVyB593EAAEiuQPLu4wAAkFyB5N3HAQAguQLJu48DJAfgF+1bWNtJgJDcAAAAAElFTkSuQmCC"},"8b97":function(t,i,e){var s=e("d3f4"),o=e("cb7c"),n=function(t,i){if(o(t),!s(i)&&null!==i)throw TypeError(i+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,i,s){try{s=e("9b43")(Function.call,e("11e9").f(Object.prototype,"__proto__").set,2),s(t,[]),i=!(t instanceof Array)}catch(o){i=!0}return function(t,e){return n(t,e),i?t.__proto__=e:s(t,e),t}}({},!1):void 0),check:n}},aa77:function(t,i,e){var s=e("5ca1"),o=e("be13"),n=e("79e5"),r=e("fdef"),a="["+r+"]",h="​…",l=RegExp("^"+a+a+"*"),c=RegExp(a+a+"*$"),p=function(t,i,e){var o={},a=n((function(){return!!r[t]()||h[t]()!=h})),l=o[t]=a?i(u):r[t];e&&(o[e]=l),s(s.P+s.F*a,"String",o)},u=p.trim=function(t,i){return t=String(o(t)),1&i&&(t=t.replace(l,"")),2&i&&(t=t.replace(c,"")),t};t.exports=p},bb7f:function(t,i){var e=["😀","😁","😂","🤣","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","🙂","🤗","🤩","🤔","🤨","😐","😑","😶","🙄","😏","😣","😥","😮","🤐","😯","😪","😫","😴","😌","😛","😜","😝","🤤","😒","😓","😔","😕","🙃","🤑","😲","🙁","😖","😞","😟","😤","😢","😭","😦","😧","😨","😩","🤯","😬","😰","😱","😳","🤪","😵","😡","😠","🤬","😷","🤒","🤕","🤢","🤮","🤧","😇","🤠","🤡","🤥","🤫","🤭","🧐","🤓","😈","👿","👹","👺","💀","👻","👽","🤖","💩","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🤲","👐","🙌","👏","🤝","👍","👎","👊","✊","🤛","🤜","🤞","✌️","🤟","🤘","👌","👈","👉","👆","👇","☝️","✋","🤚","🖐","🖖","👋","🤙","💪","🖕","✍️","🙏"];i.emojiData=e},bed0:function(t,i,e){t.exports=e.p+"img/photo_btn.c337b681.png"},c5f6:function(t,i,e){"use strict";var s=e("7726"),o=e("69a8"),n=e("2d95"),r=e("5dbc"),a=e("6a99"),h=e("79e5"),l=e("9093").f,c=e("11e9").f,p=e("86cc").f,u=e("aa77").trim,d="Number",m=s[d],f=m,g=m.prototype,v=n(e("2aeb")(g))==d,y="trim"in String.prototype,w=function(t){var i=a(t,!1);if("string"==typeof i&&i.length>2){i=y?i.trim():u(i,3);var e,s,o,n=i.charCodeAt(0);if(43===n||45===n){if(e=i.charCodeAt(2),88===e||120===e)return NaN}else if(48===n){switch(i.charCodeAt(1)){case 66:case 98:s=2,o=49;break;case 79:case 111:s=8,o=55;break;default:return+i}for(var r,h=i.slice(2),l=0,c=h.length;l<c;l++)if(r=h.charCodeAt(l),r<48||r>o)return NaN;return parseInt(h,s)}}return+i};if(!m(" 0o1")||!m("0b1")||m("+0x1")){m=function(t){var i=arguments.length<1?0:t,e=this;return e instanceof m&&(v?h((function(){g.valueOf.call(e)})):n(e)!=d)?r(new f(w(i)),e,m):w(i)};for(var b,A=e("9e1e")?l(f):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;A.length>S;S++)o(f,b=A[S])&&!o(m,b)&&p(m,b,c(f,b));m.prototype=g,g.constructor=m,e("2aba")(s,d,m)}},cde7:function(t,i,e){"use strict";var s=e("382d"),o=e.n(s);o.a},cf1c:function(t,i){t.exports="data:image/gif;base64,R0lGODlhEAAQAKIGAMLY8YSx5HOm4Mjc88/g9Ofw+v///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAGACwAAAAAEAAQAAADMGi6RbUwGjKIXCAA016PgRBElAVlG/RdLOO0X9nK61W39qvqiwz5Ls/rRqrggsdkAgAh+QQFCgAGACwCAAAABwAFAAADD2hqELAmiFBIYY4MAutdCQAh+QQFCgAGACwGAAAABwAFAAADD1hU1kaDOKMYCGAGEeYFCQAh+QQFCgAGACwKAAIABQAHAAADEFhUZjSkKdZqBQG0IELDQAIAIfkEBQoABgAsCgAGAAUABwAAAxBoVlRKgyjmlAIBqCDCzUoCACH5BAUKAAYALAYACgAHAAUAAAMPaGpFtYYMAgJgLogA610JACH5BAUKAAYALAIACgAHAAUAAAMPCAHWFiI4o1ghZZJB5i0JACH5BAUKAAYALAAABgAFAAcAAAMQCAFmIaEp1motpDQySMNFAgA7"},e0a0:function(t,i,e){"use strict";e.r(i);var s=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"mini-im-container",class:{"mini-im-pc-container":!t.isMobile,"mini-im-container-no-pto":!t.isShowHeader}},[s("span",{directives:[{name:"show",rawName:"v-show",value:t.isMobile&&t.isInputPongIng&&!t.isShowHeader,expression:"isMobile && (isInputPongIng && !isShowHeader)"}],staticClass:"input-ing"},[t._v(t._s(t.inputPongIngString))]),t.isShowHeader?s("mt-header",{attrs:{fixed:"",title:t.isInputPongIng?t.inputPongIngString:"在线客服"}},[s("div",{attrs:{slot:"left"},slot:"left"},[s("mt-button",{attrs:{icon:"back"},on:{click:function(i){return t.$router.go(-1)}}})],1),s("mt-button",{attrs:{slot:"right"},on:{click:t.headRightBtn},slot:"right"},[t.isArtificial?s("span",[t._v("结束会话")]):s("img",{attrs:{title:"人工客服",src:"http://qiniu.cmp520.com/kefu_icon_2000.png",alt:""}})])],1):t._e(),t.isMobile?t._e():s("div",{staticClass:"mini-im-pc-header"},[t._m(0),s("span",{directives:[{name:"show",rawName:"v-show",value:t.isInputPongIng,expression:"isInputPongIng"}]},[t._v(t._s(t.inputPongIngString))]),s("div",{staticClass:"right"},[t.isArtificial?t._e():s("img",{attrs:{title:"人工客服",src:"http://qiniu.cmp520.com/kefu_icon_2000.png",alt:""},on:{click:t.headRightBtn}}),t.isArtificial?s("span",{on:{click:t.headRightBtn}},[t._v("结束会话")]):t._e(),s("div",{staticClass:"close-btn",on:{click:t.clickCloseWindow}},[t._v("ㄨ")])])]),s("div",{ref:"miniImBody",staticClass:"mini-im-body"},[s("ul",{staticClass:"mini-im-chat-list"},[t.isLoadMorLoading?s("li",{staticClass:"message-loading"},[s("mt-spinner",{attrs:{color:"#26a2ff",size:20,type:"triple-bounce"}})],1):t._e(),t._l(t.viewMessage,(function(i,e){return s("li",{key:e},[i.isShowDate?[s("div",{staticClass:"mini-im-chat-item"},[s("div",{staticClass:"chat-content"},[s("div",{staticClass:"chat-body"},[[s("div",{staticClass:"system"},[s("div",{staticClass:"content"},[s("span",[t._v(t._s(t.$formatFromNowDate(i.timestamp,"YYYY年MM月DD日 HH:mm")))])])])]],2)])])]:t._e(),s("div",{staticClass:"mini-im-chat-item",class:{self:i.from_account==t.userInfo.id}},[t.isShowInfo(i.biz_type)?s("div",{staticClass:"chat-avatar"},[s("img",{attrs:{src:i.avatar}})]):t._e(),s("div",{staticClass:"chat-content"},[s("div",{staticClass:"chat-body"},[i.isShowCancel?[i.from_account==t.userInfo.id&&t.isShowInfo(i.biz_type)?s("span",{staticClass:"cancel-btn",on:{click:function(){return t.cancelMessage(i.key)}}},[t._v("撤回")]):t._e()]:t._e(),"text"==i.biz_type||"welcome"==i.biz_type?[s("div",{staticClass:"text"},[s("span",{domProps:{innerHTML:t._s(i.payload.replace(/\n/gi,"<br />"))}})])]:t._e(),"photo"==i.biz_type?[s("div",{staticClass:"photo"},[i.percent&&100!=i.percent?s("span",[t._v("上传中"+t._s(i.percent)+"%")]):t._e(),t.isMobile?s("img",{attrs:{src:i.payload,preview:"1"}}):s("img",{attrs:{src:i.payload},on:{click:function(e){return t.clickPhoto(i.payload)}}})])]:t._e(),"knowledge"==i.biz_type?[s("div",{staticClass:"knowledge"},[s("div",{staticClass:"title"},[t._v("以下是您关心的相关问题?")]),t._l(JSON.parse(i.payload),(function(i,e){return s("a",{key:e,attrs:{href:"javascript:void(0);"},on:{click:function(){return t.sendKnowledgeMessage(i.title)}}},[s("span",[t._v("• "+t._s(i.title))])])})),s("a",{on:{click:t.headRightBtn}},[t._v("• 以上都不是?我要找人工")])],2)]:t._e(),"end"==i.biz_type?[t._m(1,!0)]:t._e(),"timeout"==i.biz_type?[s("div",{staticClass:"system"},[s("div",{staticClass:"content"},[s("span",[t._v(t._s(i.payload))])])])]:t._e(),"system"==i.biz_type?[s("div",{staticClass:"system"},[s("div",{staticClass:"content"},[s("span",{domProps:{innerHTML:t._s(i.payload)}})])])]:t._e(),"cancel"==i.biz_type?[s("div",{staticClass:"system"},[s("div",{staticClass:"content"},[i.from_account==t.userInfo.id?s("span",[t._v("您撤回了一条消息")]):s("span",[t._v("对方撤回了一条消息")])])])]:t._e(),"transfer"==i.biz_type?[s("div",{staticClass:"system"},[s("div",{staticClass:"content"},[s("span",[t._v("已为您转接"+t._s(i.transfer_account)+"号客服")])])])]:t._e()],2)])])],2)}))],2),t.isShowTopLoading?s("div",{staticClass:"top-loading"},[s("img",{attrs:{src:e("cf1c"),alt:""}}),s("span",[t._v("正在连接中~")])]):t._e()]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.showEmoji,expression:"showEmoji"}],staticClass:"mini-im-emoji"},[s("div",{staticClass:"mini-im-emoji-content"},t._l(t.emojis,(function(i,e){return s("span",{key:e,on:{click:function(){return t.clickEmoji(i)}}},[t._v(t._s(i))])})),0)]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.handshakeKeywordList.length>0,expression:"handshakeKeywordList.length > 0"}],staticClass:"mini-im-knowledge"},[s("div",{staticClass:"mask",on:{click:function(i){t.handshakeKeywordList=[]}}}),s("span",[t._v("以下是您关心的相关问题?")]),s("ul",t._l(t.handshakeKeywordList,(function(i,e){return s("li",{key:e,staticClass:"sendKnowledgeMessage",attrs:{data:i.title},on:{click:function(e){!t.isIOS&&t.sendKnowledgeMessage(i.title)}}},[t._v("• "+t._s(i.title))])})),0)]),s("div",{staticClass:"mini-im-tabbar-input"},[s("span",{staticClass:"photo-btn"},[s("img",{attrs:{src:e("bed0"),alt:""}}),s("input",{attrs:{onclick:"this.value = null",type:"file",accept:"image/*"},on:{change:t.sendPhotoMessageEvent}})]),s("span",{staticClass:"expression-btn",on:{click:function(i){t.showEmoji=!t.showEmoji}}},[s("img",{attrs:{src:e("21fb"),alt:""}})]),s("span",{staticClass:"workorder-btn",class:{"show-header":!t.isShowHeader&&t.isMobile},on:{click:function(i){return t.$router.push("/workorder")}}},[s("img",{attrs:{src:e("7d02")}}),s("i",[t._v("工单")])]),s("span",{directives:[{name:"show",rawName:"v-show",value:t.isMobile&&!t.isShowHeader,expression:"isMobile && !isShowHeader"}],staticClass:"serverci",class:{on:!t.isArtificial},on:{click:t.headRightBtn}},[t.isArtificial?s("span",[t._v("结束会话")]):s("img",{attrs:{title:"人工客服",src:"http://qiniu.cmp520.com/bfbfbf.png",alt:""}})]),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.chatValue,expression:"chatValue"}],ref:"textarea",staticStyle:{"vertical-align":"top",outline:"none"},attrs:{maxlength:"200",placeholder:"请用一句话描述您的问题~"},domProps:{value:t.chatValue},on:{keyup:[function(i){return i.ctrlKey||i.shiftKey||i.altKey||i.metaKey?null:t.keyUpEvent(i)},function(i){return!i.type.indexOf("key")&&13!==i.keyCode&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:i.shiftKey?t.enterShift(i):null},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")||i.ctrlKey||i.shiftKey||i.altKey||i.metaKey?null:t.enterSendMessage(i)}],submit:t.sendTextMessage,focus:t.chatInputFocus,blur:t.chatInputBlur,input:function(i){i.target.composing||(t.chatValue=i.target.value)}}}),s("button",{ref:"sendButton",staticClass:"mini-input-send",attrs:{type:"button"}},[t._v("发送")])])],1)},o=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"title"},[e("img",{attrs:{src:"http://qiniu.cmp520.com/kefu_icon_2000.png",alt:""}}),e("span",[t._v("在线客服")])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"system"},[e("div",{staticClass:"content"},[e("span",[t._v("本次会话结束,感谢您的支持!")])])])}],n=(e("8e6e"),e("ac6a"),e("456d"),e("c5f6"),e("4917"),e("7f7f"),e("bd86")),r=e("76a0");
/*!
* better-normal-scroll v1.15.2
* (c) 2016-2019 ustbhuangyi
* Released under the MIT License.
*/
function a(t,i){for(;i+1<t.length;i++)t[i]=t[i+1];t.pop()}var h=function(){function t(t,i){var e=[],s=!0,o=!1,n=void 0;try{for(var r,a=t[Symbol.iterator]();!(s=(r=a.next()).done);s=!0)if(e.push(r.value),i&&e.length===i)break}catch(h){o=!0,n=h}finally{try{!s&&a["return"]&&a["return"]()}finally{if(o)throw n}}return e}return function(i,e){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return t(i,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(t){if(Array.isArray(t)){for(var i=0,e=Array(t.length);i<t.length;i++)e[i]=t[i];return e}return Array.from(t)};function c(t){t.prototype.on=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events[t]||(this._events[t]=[]),this._events[t].push([i,e])},t.prototype.once=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;function s(){this.off(t,s),i.apply(e,arguments)}s.fn=i,this.on(t,s)},t.prototype.off=function(t,i){var e=this._events[t];if(e){var s=e.length;while(s--)(e[s][0]===i||e[s][0]&&e[s][0].fn===i)&&a(e,s)}},t.prototype.trigger=function(t){var i=this._events[t];if(i)for(var e=i.length,s=[].concat(l(i)),o=0;o<e;o++){var n=s[o],r=h(n,2),a=r[0],c=r[1];a&&a.apply(c,[].slice.call(arguments,1))}}}var p="undefined"!==typeof window,u=p&&navigator.userAgent.toLowerCase(),d=u&&/wechatdevtools/.test(u),m=u&&u.indexOf("android")>0;function f(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function g(t){for(var i=arguments.length,e=Array(i>1?i-1:0),s=1;s<i;s++)e[s-1]=arguments[s];for(var o=0;o<e.length;o++){var n=e[o];for(var r in n)t[r]=n[r]}return t}function v(t){return void 0===t||null===t}function y(t,i){return Math.sqrt(t*t+i*i)}var w=p&&document.createElement("div").style,b=function(){if(!p)return!1;var t={standard:"transform",webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform"};for(var i in t)if(void 0!==w[t[i]])return i;return!1}();function A(t){return!1!==b&&("standard"===b?"transitionEnd"===t?"transitionend":t:b+t.charAt(0).toUpperCase()+t.substr(1))}function S(t,i,e,s){t.addEventListener(i,e,{passive:!1,capture:!!s})}function T(t,i,e,s){t.removeEventListener(i,e,{passive:!1,capture:!!s})}function _(t){var i=0,e=0;while(t)i-=t.offsetLeft,e-=t.offsetTop,t=t.offsetParent;return{left:i,top:e}}function x(t){var i=t.getBoundingClientRect();return{left:-(i.left+window.pageXOffset),top:-(i.top+window.pageYOffset)}}var M=b&&"standard"!==b?"-"+b.toLowerCase()+"-":"",I=A("transform"),P=A("transition"),k=p&&A("perspective")in w,Y=p&&("ontouchstart"in window||d),E=!1!==I,C=p&&P in w,X={transform:I,transition:P,transitionTimingFunction:A("transitionTimingFunction"),transitionDuration:A("transitionDuration"),transitionDelay:A("transitionDelay"),transformOrigin:A("transformOrigin"),transitionEnd:A("transitionEnd")},D=1,L=2,O={touchstart:D,touchmove:D,touchend:D,mousedown:L,mousemove:L,mouseup:L};function B(t){if(t instanceof window.SVGElement){var i=t.getBoundingClientRect();return{top:i.top,left:i.left,width:i.width,height:i.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function H(t,i){for(var e in i)if(i[e].test(t[e]))return!0;return!1}function W(t,i){var e=document.createEvent("Event");e.initEvent(i,!0,!0),e.pageX=t.pageX,e.pageY=t.pageY,t.target.dispatchEvent(e)}function z(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",e=void 0;"mouseup"===t.type||"mousecancel"===t.type?e=t:"touchend"!==t.type&&"touchcancel"!==t.type||(e=t.changedTouches[0]);var s={};e&&(s.screenX=e.screenX||0,s.screenY=e.screenY||0,s.clientX=e.clientX||0,s.clientY=e.clientY||0);var o=void 0,n=!0,r=!0;if("undefined"!==typeof MouseEvent)try{o=new MouseEvent(i,g({bubbles:n,cancelable:r},s))}catch(t){a()}else a();function a(){o=document.createEvent("Event"),o.initEvent(i,n,r),g(o,s)}o.forwardedTouchEvent=!0,o._constructed=!0,t.target.dispatchEvent(o)}function N(t){z(t,"dblclick")}function F(t,i){i.firstChild?R(t,i.firstChild):i.appendChild(t)}function R(t,i){i.parentNode.insertBefore(t,i)}function U(t,i){t.removeChild(i)}var V={startX:0,startY:0,scrollX:!1,scrollY:!0,freeScroll:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!0,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.0015,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:0,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:!1,disableMouse:Y,disableTouch:!Y,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1,stopPropagation:!1,zoom:!1,infinity:!1,dblclick:!1};function j(t){t.prototype._init=function(t){this._handleOptions(t),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype.setScale=function(t){this.lastScale=v(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=g({},V,t),this.translateZ=this.options.HWCompositing&&k?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&C,this.options.useTransform=this.options.useTransform&&E,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},t.prototype._addDOMEvents=function(){var t=S;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=T;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){var i=this.options.bindToWrapper?this.wrapper:window;t(window,"orientationchange",this),t(window,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(i,"mousemove",this),t(i,"mousecancel",this),t(i,"mouseup",this)),Y&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(i,"touchmove",this),t(i,"touchcancel",this),t(i,"touchend",this)),t(this.scroller,X.transitionEnd,this)},t.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel(),this.options.zoom&&this._initZoom(),this.options.infinity&&this._initInfinite()},t.prototype._watchTransition=function(){if("function"===typeof Object.defineProperty){var t=this,i=!1,e=this.options.useTransition?"isInTransition":"isAnimating";Object.defineProperty(this,e,{get:function(){return i},set:function(e){i=e;for(var s=t.scroller.children.length?t.scroller.children:[t.scroller],o=i&&!t.pulling?"none":"auto",n=0;n<s.length;n++)s[n].style.pointerEvents=o}})}},t.prototype._handleAutoBlur=function(){this.on("scrollStart",(function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()}))},t.prototype._initDOMObserver=function(){var t=this;if("undefined"!==typeof MutationObserver){var i=void 0,e=new MutationObserver((function(e){if(!t._shouldNotRefresh()){for(var s=!1,o=!1,n=0;n<e.length;n++){var r=e[n];if("attributes"!==r.type){s=!0;break}if(r.target!==t.scroller){o=!0;break}}s?t.refresh():o&&(clearTimeout(i),i=setTimeout((function(){t._shouldNotRefresh()||t.refresh()}),60))}})),s={attributes:!0,childList:!0,subtree:!0};e.observe(this.scroller,s),this.on("destroy",(function(){e.disconnect()}))}else this._checkDOMUpdate()},t.prototype._shouldNotRefresh=function(){var t=this.x>this.minScrollX||this.x<this.maxScrollX||this.y>this.minScrollY||this.y<this.maxScrollY;return this.isInTransition||this.stopFromTransition||t},t.prototype._checkDOMUpdate=function(){var t=B(this.scroller),i=t.width,e=t.height;function s(){if(!this.destroyed){t=B(this.scroller);var s=t.width,n=t.height;i===s&&e===n||this.refresh(),i=s,e=n,o.call(this)}}function o(){var t=this;setTimeout((function(){s.call(t)}),1e3)}o.call(this)},t.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t),this.options.zoom&&t.touches&&t.touches.length>1&&this._zoomStart(t);break;case"touchmove":case"mousemove":this.options.zoom&&t.touches&&t.touches.length>1?this._zoom(t):this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.scaled?this._zoomEnd(t):this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"click":this.enabled&&!t._constructed&&(H(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation()));break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._onMouseWheel(t);break}},t.prototype.refresh=function(){var t="static"===window.getComputedStyle(this.wrapper,null).position,i=B(this.wrapper);this.wrapperWidth=i.width,this.wrapperHeight=i.height;var e=B(this.scroller);this.scrollerWidth=Math.round(e.width*this.scale),this.scrollerHeight=Math.round(e.height*this.scale),this.relativeX=e.left,this.relativeY=e.top,t&&(this.relativeX-=i.left,this.relativeY-=i.top),this.minScrollX=0,this.minScrollY=0;var s=this.options.wheel;s?(this.items=this.scroller.children,this._checkWheelAllDisabled(),this.options.itemHeight=this.itemHeight=this.items.length?this.scrollerHeight/this.items.length:0,void 0===this.selectedIndex&&(this.selectedIndex=s.selectedIndex||0),this.options.startY=-this.selectedIndex*this.itemHeight,this.maxScrollX=0,this.maxScrollY=-this.itemHeight*(this.items.length-1)):(this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.options.infinity||(this.maxScrollY=this.wrapperHeight-this.scrollerHeight),this.maxScrollX<0?(this.maxScrollX-=this.relativeX,this.minScrollX=-this.relativeX):this.scale>1&&(this.maxScrollX=this.maxScrollX/2-this.relativeX,this.minScrollX=this.maxScrollX),this.maxScrollY<0?(this.maxScrollY-=this.relativeY,this.minScrollY=-this.relativeY):this.scale>1&&(this.maxScrollY=this.maxScrollY/2-this.relativeY,this.minScrollY=this.maxScrollY)),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<this.minScrollX,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<this.minScrollY,this.hasHorizontalScroll||(this.maxScrollX=this.minScrollX,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=this.minScrollY,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=_(this.wrapper),this.trigger("refresh"),!this.scaled&&this.resetPosition()},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1}}var K={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}};function Q(t,i,e,s,o,n,r,a){var h=t-i,l=Math.abs(h)/e,c=r.deceleration,p=r.itemHeight,u=r.swipeBounceTime,d=r.wheel,m=r.swipeTime,f=m,g=d?4:15,v=t+l/c*(h<0?-1:1);return d&&p&&(v=a._findNearestValidWheel(v).y),v<s?(v=n?Math.max(s-n/4,s-n/g*l):s,f=u):v>o&&(v=n?Math.min(o+n/4,o+n/g*l):o,f=u),{destination:Math.round(v),duration:f}}var G=100/60;function $(){}var q=function(){return p?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||G)/2)}:$}(),J=function(){return p?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:$}(),Z=1,tt=-1,it=1,et=-1,st=1,ot=3;function nt(t){console.error("[BScroll warn]: "+t)}function rt(t,i){if(!t)throw new Error("[BScroll] "+i)}function at(t){t.prototype._start=function(t){var i=O[t.type];if((i===D||0===t.button)&&!(!this.enabled||this.destroyed||this.initiated&&this.initiated!==i)){this.initiated=i,this.options.preventDefault&&!H(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.movingDirectionX=0,this.movingDirectionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=f(),this.options.wheel&&(this.target=t.target),this.stop();var e=t.touches?t.touches[0]:t;this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=e.pageX,this.pointY=e.pageY,this.trigger("beforeScrollStart")}},t.prototype._move=function(t){if(this.enabled&&!this.destroyed&&O[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var i=t.touches?t.touches[0]:t,e=i.pageX-this.pointX,s=i.pageY-this.pointY;this.pointX=i.pageX,this.pointY=i.pageY,this.distX+=e,this.distY+=s;var o=Math.abs(this.distX),n=Math.abs(this.distY),r=f();if(!(r-this.endTime>this.options.momentumLimitTime&&!this.moved&&n<this.options.momentumLimitDistance&&o<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(o>n+this.options.directionLockThreshold?this.directionLocked="h":n>=o+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);s=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);e=0}e=this.hasHorizontalScroll?e:0,s=this.hasVerticalScroll?s:0,this.movingDirectionX=e>0?et:e<0?it:0,this.movingDirectionY=s>0?tt:s<0?Z:0;var a=this.x+e,h=this.y+s,l=!1,c=!1,p=!1,u=!1,d=this.options.bounce;!1!==d&&(l=void 0===d.top||d.top,c=void 0===d.bottom||d.bottom,p=void 0===d.left||d.left,u=void 0===d.right||d.right),(a>this.minScrollX||a<this.maxScrollX)&&(a=a>this.minScrollX&&p||a<this.maxScrollX&&u?this.x+e/3:a>this.minScrollX?this.minScrollX:this.maxScrollX),(h>this.minScrollY||h<this.maxScrollY)&&(h=h>this.minScrollY&&l||h<this.maxScrollY&&c?this.y+s/3:h>this.minScrollY?this.minScrollY:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(a,h),r-this.startTime>this.options.momentumLimitTime&&(this.startTime=r,this.startX=this.x,this.startY=this.y,this.options.probeType===st&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>st&&this.trigger("scroll",{x:this.x,y:this.y});var m=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,g=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,v=this.pointX-m,y=this.pointY-g;(v>document.documentElement.clientWidth-this.options.momentumLimitDistance||v<this.options.momentumLimitDistance||y<this.options.momentumLimitDistance||y>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)}}},t.prototype._end=function(t){if(this.enabled&&!this.destroyed&&O[t.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!H(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var i=Math.round(this.x),e=Math.round(this.y),s=i-this.absStartX,o=e-this.absStartY;if(this.directionX=s>0?et:s<0?it:0,this.directionY=o>0?tt:o<0?Z:0,!this.options.pullDownRefresh||!this._checkPullDown())if(this._checkClick(t))this.trigger("scrollCancel");else if(!this.resetPosition(this.options.bounceTime,K.bounce)){this._translate(i,e),this.endTime=f();var n=this.endTime-this.startTime,r=Math.abs(i-this.startX),a=Math.abs(e-this.startY);if(this._events.flick&&n<this.options.flickLimitTime&&r<this.options.flickLimitDistance&&a<this.options.flickLimitDistance)this.trigger("flick");else{var h=0;if(this.options.momentum&&n<this.options.momentumLimitTime&&(a>this.options.momentumLimitDistance||r>this.options.momentumLimitDistance)){var l=!1,c=!1,p=!1,u=!1,d=this.options.bounce;!1!==d&&(l=void 0===d.top||d.top,c=void 0===d.bottom||d.bottom,p=void 0===d.left||d.left,u=void 0===d.right||d.right);var m=this.directionX===et&&p||this.directionX===it&&u?this.wrapperWidth:0,g=this.directionY===tt&&l||this.directionY===Z&&c?this.wrapperHeight:0,v=this.hasHorizontalScroll?Q(this.x,this.startX,n,this.maxScrollX,this.minScrollX,m,this.options,this):{destination:i,duration:0},y=this.hasVerticalScroll?Q(this.y,this.startY,n,this.maxScrollY,this.minScrollY,g,this.options,this):{destination:e,duration:0};i=v.destination,e=y.destination,h=Math.max(v.duration,y.duration),this.isInTransition=!0}else this.options.wheel&&(e=this._findNearestValidWheel(e).y,h=this.options.wheel.adjustTime||400);var w=K.swipe;if(this.options.snap){var b=this._nearestSnap(i,e);this.currentPage=b,h=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(i-b.x),1e3),Math.min(Math.abs(e-b.y),1e3)),300),i=b.x,e=b.y,this.directionX=0,this.directionY=0,w=this.options.snap.easing||K.bounce}if(i!==this.x||e!==this.y)return(i>this.minScrollX||i<this.maxScrollX||e>this.minScrollY||e<this.maxScrollY)&&(w=K.swipeBounce),void this.scrollTo(i,e,h,w);this.options.wheel&&(this.selectedIndex=this._findNearestValidWheel(this.y).index),this.trigger("scrollEnd",{x:this.x,y:this.y})}}}},t.prototype._checkClick=function(t){var i=this.stopFromTransition&&!this.pulling;if(this.stopFromTransition=!1,!this.moved){if(this.options.wheel){if(this.target&&this.target.className===this.options.wheel.wheelWrapperClass){var e=this._findNearestValidWheel(this.y).index,s=Math.round((this.pointY+x(this.wrapper).top-this.wrapperHeight/2)/this.itemHeight);this.target=this.items[e+s]}var o=_(this.target).top,n=_(this.target).left;return o-=this.wrapperOffset.top,o-=Math.round(this.target.offsetHeight/2-this.wrapper.offsetHeight/2)||0,n-=this.wrapperOffset.left,n-=Math.round(this.target.offsetWidth/2-this.wrapper.offsetWidth/2)||0,o=this._findNearestValidWheel(o).y,this.scrollTo(n,o,this.options.wheel.adjustTime||400,K.swipe),!0}if(!i){var r=this.options.dblclick,a=!1;if(r&&this.lastClickTime){var h=r.delay,l=void 0===h?300:h;f()-this.lastClickTime<l&&(a=!0,N(t))}return this.options.tap&&W(t,this.options.tap),this.options.click&&!H(t.target,this.options.preventDefaultException)&&z(t),this.lastClickTime=a?null:f(),!0}return!1}return!1},t.prototype._resize=function(){var t=this;this.enabled&&(m&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((function(){t.refresh()}),this.options.resizePolling))},t.prototype._startProbe=function(){J(this.probeTimer),this.probeTimer=q(i);var t=this;function i(){var e=t.getComputedPosition();t.trigger("scroll",e),t.isInTransition?t.probeTimer=q(i):t.trigger("scrollEnd",e)}},t.prototype._transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[X.transitionDuration]=t+"ms",this.options.wheel)for(var i=0;i<this.items.length;i++)this.items[i].style[X.transitionDuration]=t+"ms";if(this.indicators)for(var e=0;e<this.indicators.length;e++)this.indicators[e].transitionTime(t)},t.prototype._transitionTimingFunction=function(t){if(this.scrollerStyle[X.transitionTimingFunction]=t,this.options.wheel)for(var i=0;i<this.items.length;i++)this.items[i].style[X.transitionTimingFunction]=t;if(this.indicators)for(var e=0;e<this.indicators.length;e++)this.indicators[e].transitionTimingFunction(t)},t.prototype._transitionEnd=function(t){if(t.target===this.scroller&&this.isInTransition){this._transitionTime();var i=!this.pulling||this.movingDirectionY===Z;i&&!this.resetPosition(this.options.bounceTime,K.bounce)&&(this.isInTransition=!1,this.options.probeType!==ot&&this.trigger("scrollEnd",{x:this.x,y:this.y}))}},t.prototype._translate=function(t,i,e){if(rt(!v(t)&&!v(i),"Translate x or y is null or undefined."),v(e)&&(e=this.scale),this.options.useTransform?this.scrollerStyle[X.transform]="translate("+t+"px,"+i+"px) scale("+e+")"+this.translateZ:(t=Math.round(t),i=Math.round(i),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=i+"px"),this.options.wheel)for(var s=this.options.wheel.rotate,o=void 0===s?25:s,n=0;n<this.items.length;n++){var r=o*(i/this.itemHeight+n);this.items[n].style[X.transform]="rotateX("+r+"deg)"}if(this.x=t,this.y=i,this.setScale(e),this.indicators)for(var a=0;a<this.indicators.length;a++)this.indicators[a].updatePosition()},t.prototype._animate=function(t,i,e,s){var o=this,n=this.x,r=this.y,a=this.lastScale,h=this.scale,l=f(),c=l+e;function p(){var u=f();if(u>=c)return o.isAnimating=!1,o._translate(t,i,h),o.trigger("scroll",{x:o.x,y:o.y}),void(o.pulling||o.resetPosition(o.options.bounceTime)||o.trigger("scrollEnd",{x:o.x,y:o.y}));u=(u-l)/e;var d=s(u),m=(t-n)*d+n,g=(i-r)*d+r,v=(h-a)*d+a;o._translate(m,g,v),o.isAnimating&&(o.animateTimer=q(p)),o.options.probeType===ot&&o.trigger("scroll",{x:o.x,y:o.y})}this.isAnimating=!0,J(this.animateTimer),p()},t.prototype.scrollBy=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:K.bounce;t=this.x+t,i=this.y+i,this.scrollTo(t,i,e,s)},t.prototype.scrollTo=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:K.bounce,o=arguments[4];if(this.options.wheel&&(i=this._findNearestValidWheel(i).y),t!==this.x||i!==this.y)if(this.isInTransition=this.options.useTransition&&e>0&&(this.x!==t||this.y!==i),!e||this.options.useTransition){if(this._transitionTimingFunction(s.style),this._transitionTime(e),this._translate(t,i),e&&this.options.probeType===ot&&this._startProbe(),!e&&!o){if(this.options.zoom)return;this.trigger("scroll",{x:t,y:i}),this._reflow=document.body.offsetHeight,this.resetPosition(this.options.bounceTime,K.bounce)||this.trigger("scrollEnd",{x:t,y:i})}this.options.wheel&&(this.selectedIndex=this._findNearestValidWheel(i).index)}else this._animate(t,i,e,s.fn)},t.prototype.scrollToElement=function(t,i,e,s,o){if(t&&(t=t.nodeType?t:this.scroller.querySelector(t),!this.options.wheel||t.classList.contains(this.options.wheel.wheelItemClass))){var n=_(t);n.left-=this.wrapperOffset.left,n.top-=this.wrapperOffset.top,!0===e&&(e=Math.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===s&&(s=Math.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),n.left-=e||0,n.top-=s||0,n.left=n.left>this.minScrollX?this.minScrollX:n.left<this.maxScrollX?this.maxScrollX:n.left,n.top=n.top>this.minScrollY?this.minScrollY:n.top<this.maxScrollY?this.maxScrollY:n.top,this.options.wheel&&(n.top=this._findNearestValidWheel(n.top).y),this.scrollTo(n.left,n.top,i,o)}},t.prototype.resetPosition=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K.bounce,e=this.x,s=Math.round(e);!this.hasHorizontalScroll||s>this.minScrollX?e=this.minScrollX:s<this.maxScrollX&&(e=this.maxScrollX);var o=this.y,n=Math.round(o);return!this.hasVerticalScroll||n>this.minScrollY?o=this.minScrollY:n<this.maxScrollY&&(o=this.maxScrollY),(e!==this.x||o!==this.y)&&(this.scrollTo(e,o,t,i),!0)},t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.scroller,null),i=void 0,e=void 0;return this.options.useTransform?(t=t[X.transform].split(")")[0].split(", "),i=+(t[12]||t[4]),e=+(t[13]||t[5])):(i=+t.left.replace(/[^-\d.]/g,""),e=+t.top.replace(/[^-\d.]/g,"")),{x:i,y:e}},t.prototype.stop=function(){if(this.options.useTransition&&this.isInTransition){this.isInTransition=!1,J(this.probeTimer);var t=this.getComputedPosition();this._translate(t.x,t.y),this.options.wheel?this.target=this.items[this._findNearestValidWheel(t.y).index]:this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0}else!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,J(this.animateTimer),this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0)},t.prototype.destroy=function(){this.destroyed=!0,this.trigger("destroy"),this.options.useTransition?J(this.probeTimer):J(this.animateTimer),this._removeDOMEvents(),this._events={}}}function ht(t){t.prototype._initSnap=function(){var t=this;this.currentPage={};var i=this.options.snap;if(i.loop){var e=this.scroller.children;e.length>1?(F(e[e.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(e[1].cloneNode(!0))):i.loop=!1}var s=i.el;"string"===typeof s&&(s=this.scroller.querySelectorAll(s)),this.on("refresh",(function(){if(t.pages=[],t.wrapperWidth&&t.wrapperHeight&&t.scrollerWidth&&t.scrollerHeight){var e=i.stepX||t.wrapperWidth,o=i.stepY||t.wrapperHeight,n=0,r=void 0,a=void 0,h=void 0,l=0,c=void 0,p=0,u=void 0,d=void 0;if(s)for(c=s.length,u=-1;l<c;l++)d=B(s[l]),(0===l||d.left<=B(s[l-1]).left)&&(p=0,u++),t.pages[p]||(t.pages[p]=[]),n=Math.max(-d.left,t.maxScrollX),r=Math.max(-d.top,t.maxScrollY),a=n-Math.round(d.width/2),h=r-Math.round(d.height/2),t.pages[p][u]={x:n,y:r,width:d.width,height:d.height,cx:a,cy:h},n>t.maxScrollX&&p++;else{a=Math.round(e/2),h=Math.round(o/2);while(n>-t.scrollerWidth){t.pages[l]=[],c=0,r=0;while(r>-t.scrollerHeight)t.pages[l][c]={x:Math.max(n,t.maxScrollX),y:Math.max(r,t.maxScrollY),width:e,height:o,cx:n-a,cy:r-h},r-=o,c++;n-=e,l++}}t._checkSnapLoop();var m=i._loopX?1:0,f=i._loopY?1:0;t._goToPage(t.currentPage.pageX||m,t.currentPage.pageY||f,0,void 0,!0);var g=i.threshold;g%1===0?(t.snapThresholdX=g,t.snapThresholdY=g):(t.snapThresholdX=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].width*g),t.snapThresholdY=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].height*g))}})),this.on("scrollEnd",(function(){i.loop&&(i._loopX?(0===t.currentPage.pageX&&t._goToPage(t.pages.length-2,t.currentPage.pageY,0,void 0,!0),t.currentPage.pageX===t.pages.length-1&&t._goToPage(1,t.currentPage.pageY,0,void 0,!0)):(0===t.currentPage.pageY&&t._goToPage(t.currentPage.pageX,t.pages[0].length-2,0,void 0,!0),t.currentPage.pageY===t.pages[0].length-1&&t._goToPage(t.currentPage.pageX,1,0,void 0,!0)))})),!1!==i.listenFlick&&this.on("flick",(function(){var e=i.speed||Math.max(Math.max(Math.min(Math.abs(t.x-t.startX),1e3),Math.min(Math.abs(t.y-t.startY),1e3)),300);t._goToPage(t.currentPage.pageX+t.directionX,t.currentPage.pageY+t.directionY,e)})),this.on("destroy",(function(){if(i.loop){var e=t.scroller.children;e.length>2&&(U(t.scroller,e[e.length-1]),U(t.scroller,e[0]))}}))},t.prototype._checkSnapLoop=function(){var t=this.options.snap;t.loop&&this.pages&&this.pages.length&&(this.pages.length>1&&(t._loopX=!0),this.pages[0]&&this.pages[0].length>1&&(t._loopY=!0),t._loopX&&t._loopY&&nt("Loop does not support two direction at the same time."))},t.prototype._nearestSnap=function(t,i){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var e=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(i-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>this.minScrollX?t=this.minScrollX:t<this.maxScrollX&&(t=this.maxScrollX),i>this.minScrollY?i=this.minScrollY:i<this.maxScrollY&&(i=this.maxScrollY);for(var s=this.pages.length;e<s;e++)if(t>=this.pages[e][0].cx){t=this.pages[e][0].x;break}s=this.pages[e].length;for(var o=0;o<s;o++)if(i>=this.pages[0][o].cy){i=this.pages[0][o].y;break}return e===this.currentPage.pageX&&(e+=this.directionX,e<0?e=0:e>=this.pages.length&&(e=this.pages.length-1),t=this.pages[e][0].x),o===this.currentPage.pageY&&(o+=this.directionY,o<0?o=0:o>=this.pages[0].length&&(o=this.pages[0].length-1),i=this.pages[0][o].y),{x:t,y:i,pageX:e,pageY:o}},t.prototype._goToPage=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments[2],s=arguments[3],o=arguments[4],n=this.options.snap;if(n&&this.pages&&this.pages.length&&(s=s||n.easing||K.bounce,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),this.pages[t])){i>=this.pages[t].length?i=this.pages[t].length-1:i<0&&(i=0);var r=this.pages[t][i].x,a=this.pages[t][i].y;e=void 0===e?n.speed||Math.max(Math.max(Math.min(Math.abs(r-this.x),1e3),Math.min(Math.abs(a-this.y),1e3)),300):e,this.currentPage={x:r,y:a,pageX:t,pageY:i},this.scrollTo(r,a,e,s,o)}},t.prototype.goToPage=function(t,i,e,s){var o=this.options.snap;if(o&&this.pages&&this.pages.length){if(o.loop){var n=void 0;o._loopX?(n=this.pages.length-2,t>=n?t=n-1:t<0&&(t=0),t+=1):(n=this.pages[0].length-2,i>=n?i=n-1:i<0&&(i=0),i+=1)}this._goToPage(t,i,e,s)}},t.prototype.next=function(t,i){var e=this.options.snap;if(e){var s=this.currentPage.pageX,o=this.currentPage.pageY;s++,s>=this.pages.length&&this.hasVerticalScroll&&(s=0,o++),this._goToPage(s,o,t,i)}},t.prototype.prev=function(t,i){var e=this.options.snap;if(e){var s=this.currentPage.pageX,o=this.currentPage.pageY;s--,s<0&&this.hasVerticalScroll&&(s=0,o--),this._goToPage(s,o,t,i)}},t.prototype.getCurrentPage=function(){var t=this.options.snap;if(!t)return null;if(t.loop){var i=void 0;return i=t._loopX?g({},this.currentPage,{pageX:this.currentPage.pageX-1}):g({},this.currentPage,{pageY:this.currentPage.pageY-1}),i}return this.currentPage}}function lt(t){t.prototype.wheelTo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.options.wheel){var i=-t*this.itemHeight;this.scrollTo(0,i)}},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){var t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),t.wheelDisabledItemClass||(t.wheelDisabledItemClass="wheel-disabled-item"),void 0===t.selectedIndex&&(t.selectedIndex=0)},t.prototype._findNearestValidWheel=function(t){t=t>0?0:t<this.maxScrollY?this.maxScrollY:t;var i=this.options.wheel,e=Math.abs(Math.round(-t/this.itemHeight)),s=e,o=this.items;while(e>=0){if(-1===o[e].className.indexOf(i.wheelDisabledItemClass))break;e--}if(e<0){e=s;while(e<=o.length-1){if(-1===o[e].className.indexOf(i.wheelDisabledItemClass))break;e++}}return e===o.length&&(e=s),{index:this.wheelItemsAllDisabled?-1:e,y:-e*this.itemHeight}},t.prototype._checkWheelAllDisabled=function(){var t=this.options.wheel,i=this.items;this.wheelItemsAllDisabled=!0;for(var e=0;e<i.length;e++)if(-1===i[e].className.indexOf(t.wheelDisabledItemClass)){this.wheelItemsAllDisabled=!1;break}}}var ct=8;function pt(t){t.prototype._initScrollbar=function(){var t=this,i=this.options.scrollbar,e=i.fade,s=void 0===e||e,o=i.interactive,n=void 0!==o&&o;this.indicators=[];var r=void 0;this.options.scrollX&&(r={el:ut("horizontal"),direction:"horizontal",fade:s,interactive:n},this._insertScrollBar(r.el),this.indicators.push(new dt(this,r))),this.options.scrollY&&(r={el:ut("vertical"),direction:"vertical",fade:s,interactive:n},this._insertScrollBar(r.el),this.indicators.push(new dt(this,r))),this.on("refresh",(function(){for(var i=0;i<t.indicators.length;i++)t.indicators[i].refresh()})),s&&(this.on("scrollEnd",(function(){for(var i=0;i<t.indicators.length;i++)t.indicators[i].fade()})),this.on("scrollCancel",(function(){for(var i=0;i<t.indicators.length;i++)t.indicators[i].fade()})),this.on("scrollStart",(function(){for(var i=0;i<t.indicators.length;i++)t.indicators[i].fade(!0)})),this.on("beforeScrollStart",(function(){for(var i=0;i<t.indicators.length;i++)t.indicators[i].fade(!0,!0)}))),this.on("destroy",(function(){t._removeScrollBars()}))},t.prototype._insertScrollBar=function(t){this.wrapper.appendChild(t)},t.prototype._removeScrollBars=function(){for(var t=0;t<this.indicators.length;t++)this.indicators[t].destroy()}}function ut(t){var i=document.createElement("div"),e=document.createElement("div");return i.style.cssText="position:absolute;z-index:9999;pointerEvents:none",e.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",e.className="bscroll-indicator","horizontal"===t?(i.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",e.style.height="100%",i.className="bscroll-horizontal-scrollbar"):(i.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",e.style.width="100%",i.className="bscroll-vertical-scrollbar"),i.style.cssText+=";overflow:hidden",i.appendChild(e),i}function dt(t,i){this.wrapper=i.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=i.direction,i.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,i.interactive&&this._addDOMEvents()}function mt(t){t.prototype._initPullDown=function(){this.options.probeType=ot},t.prototype._checkPullDown=function(){var t=this.options.pullDownRefresh,i=t.threshold,e=void 0===i?90:i,s=t.stop,o=void 0===s?40:s;return!(this.directionY!==tt||this.y<e)&&(this.pulling||(this.pulling=!0,this.trigger("pullingDown")),this.scrollTo(this.x,o,this.options.bounceTime,K.bounce),this.pulling)},t.prototype.finishPullDown=function(){this.pulling=!1,this.resetPosition(this.options.bounceTime,K.bounce)},t.prototype.openPullDown=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullDownRefresh=t,this._initPullDown()},t.prototype.closePullDown=function(){this.options.pullDownRefresh=!1},t.prototype.autoPullDownRefresh=function(){var t=this.options.pullDownRefresh,i=t.threshold,e=void 0===i?90:i,s=t.stop,o=void 0===s?40:s;this.pulling||(this.pulling=!0,this.scrollTo(this.x,e),this.trigger("pullingDown"),this.scrollTo(this.x,o,this.options.bounceTime,K.bounce))}}function ft(t){t.prototype._initPullUp=function(){this.options.probeType=ot,this.pullupWatching=!1,this._watchPullUp()},t.prototype._watchPullUp=function(){this.pullupWatching||(this.pullupWatching=!0,this.on("scroll",this._checkToEnd))},t.prototype._checkToEnd=function(t){var i=this,e=this.options.pullUpLoad.threshold,s=void 0===e?0:e;this.movingDirectionY===Z&&t.y<=this.maxScrollY+s&&(this.once("scrollEnd",(function(){i.pullupWatching=!1})),this.trigger("pullingUp"),this.off("scroll",this._checkToEnd))},t.prototype.finishPullUp=function(){var t=this;this.pullupWatching?this.once("scrollEnd",(function(){t._watchPullUp()})):this._watchPullUp()},t.prototype.openPullUp=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullUpLoad=t,this._initPullUp()},t.prototype.closePullUp=function(){this.options.pullUpLoad=!1,this.pullupWatching&&(this.pullupWatching=!1,this.off("scroll",this._checkToEnd))}}function gt(t){t.prototype._initMouseWheel=function(){var t=this;this._handleMouseWheelEvent(S),this.on("destroy",(function(){clearTimeout(t.mouseWheelTimer),clearTimeout(t.mouseWheelEndTimer),t._handleMouseWheelEvent(T)})),this.firstWheelOpreation=!0},t.prototype._handleMouseWheelEvent=function(t){t(this.wrapper,"wheel",this),t(this.wrapper,"mousewheel",this),t(this.wrapper,"DOMMouseScroll",this)},t.prototype._onMouseWheel=function(t){var i=this;if(this.enabled){t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.firstWheelOpreation&&this.trigger("scrollStart"),this.firstWheelOpreation=!1;var e=this.options.mouseWheel,s=e.speed,o=void 0===s?20:s,n=e.invert,r=void 0!==n&&n,a=e.easeTime,h=void 0===a?300:a;clearTimeout(this.mouseWheelTimer),this.mouseWheelTimer=setTimeout((function(){i.options.snap||h||i.trigger("scrollEnd",{x:i.x,y:i.y}),i.firstWheelOpreation=!0}),400);var l=void 0,c=void 0;switch(!0){case"deltaX"in t:1===t.deltaMode?(l=-t.deltaX*o,c=-t.deltaY*o):(l=-t.deltaX,c=-t.deltaY);break;case"wheelDeltaX"in t:l=t.wheelDeltaX/120*o,c=t.wheelDeltaY/120*o;break;case"wheelDelta"in t:l=c=t.wheelDelta/120*o;break;case"detail"in t:l=c=-t.detail/3*o;break;default:return}var p=r?-1:1;l*=p,c*=p,this.hasVerticalScroll||(l=c,c=0);var u=void 0,d=void 0;if(this.options.snap)return u=this.currentPage.pageX,d=this.currentPage.pageY,l>0?u--:l<0&&u++,c>0?d--:c<0&&d++,void this._goToPage(u,d);u=this.x+Math.round(this.hasHorizontalScroll?l:0),d=this.y+Math.round(this.hasVerticalScroll?c:0),this.movingDirectionX=this.directionX=l>0?-1:l<0?1:0,this.movingDirectionY=this.directionY=c>0?-1:c<0?1:0,u>this.minScrollX?u=this.minScrollX:u<this.maxScrollX&&(u=this.maxScrollX),d>this.minScrollY?d=this.minScrollY:d<this.maxScrollY&&(d=this.maxScrollY);var m=this.y===d;this.scrollTo(u,d,h,K.swipe),this.trigger("scroll",{x:this.x,y:this.y}),clearTimeout(this.mouseWheelEndTimer),m&&(this.mouseWheelEndTimer=setTimeout((function(){i.trigger("scrollEnd",{x:i.x,y:i.y})}),h))}}}function vt(t){t.prototype._initZoom=function(){var t=this.options.zoom,i=t.start,e=void 0===i?1:i,s=t.min,o=void 0===s?1:s,n=t.max,r=void 0===n?4:n;this.scale=Math.min(Math.max(e,o),r),this.setScale(this.scale),this.scrollerStyle[X.transformOrigin]="0 0"},t.prototype._zoomTo=function(t,i,e,s){this.scaled=!0;var o=t/(s||this.scale);this.setScale(t),this.refresh();var n=Math.round(this.startX-(i-this.relativeX)*(o-1)),r=Math.round(this.startY-(e-this.relativeY)*(o-1));n>this.minScrollX?n=this.minScrollX:n<this.maxScrollX&&(n=this.maxScrollX),r>this.minScrollY?r=this.minScrollY:r<this.maxScrollY&&(r=this.maxScrollY),this.x===n&&this.y===r||this.scrollTo(n,r,this.options.bounceTime),this.scaled=!1},t.prototype.zoomTo=function(t,i,e){var s=x(this.wrapper),o=s.left,n=s.top,r=i+o-this.x,a=e+n-this.y;this._zoomTo(t,r,a)},t.prototype._zoomStart=function(t){var i=t.touches[0],e=t.touches[1],s=Math.abs(i.pageX-e.pageX),o=Math.abs(i.pageY-e.pageY);this.startDistance=y(s,o),this.startScale=this.scale;var n=x(this.wrapper),r=n.left,a=n.top;this.originX=Math.abs(i.pageX+e.pageX)/2+r-this.x,this.originY=Math.abs(i.pageY+e.pageY)/2+a-this.y,this.trigger("zoomStart")},t.prototype._zoom=function(t){if(this.enabled&&!this.destroyed&&O[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var i=t.touches[0],e=t.touches[1],s=Math.abs(i.pageX-e.pageX),o=Math.abs(i.pageY-e.pageY),n=y(s,o),r=n/this.startDistance*this.startScale;this.scaled=!0;var a=this.options.zoom,h=a.min,l=void 0===h?1:h,c=a.max,p=void 0===c?4:c;r<l?r=.5*l*Math.pow(2,r/l):r>p&&(r=2*p*Math.pow(.5,p/r));var u=r/this.startScale,d=this.startX-(this.originX-this.relativeX)*(u-1),m=this.startY-(this.originY-this.relativeY)*(u-1);this.setScale(r),this.scrollTo(d,m,0)}},t.prototype._zoomEnd=function(t){if(this.enabled&&!this.destroyed&&O[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.isInTransition=!1,this.isAnimating=!1,this.initiated=0;var i=this.options.zoom,e=i.min,s=void 0===e?1:e,o=i.max,n=void 0===o?4:o,r=this.scale>n?n:this.scale<s?s:this.scale;this._zoomTo(r,this.originX,this.originY,this.startScale),this.trigger("zoomEnd")}}}dt.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t);break;case"touchmove":case"mousemove":this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this._end(t);break}},dt.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},dt.prototype.fade=function(t,i){var e=this;if(!i||this.visible){var s=t?250:500;t=t?"1":"0",this.wrapperStyle[X.transitionDuration]=s+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout((function(){e.wrapperStyle.opacity=t,e.visible=+t}),0)}},dt.prototype.updatePosition=function(){if("vertical"===this.direction){var t=Math.round(this.sizeRatioY*this.scroller.y);if(t<0){this.transitionTime(500);var i=Math.max(this.indicatorHeight+3*t,ct);this.indicatorStyle.height=i+"px",t=0}else if(t>this.maxPosY){this.transitionTime(500);var e=Math.max(this.indicatorHeight-3*(t-this.maxPosY),ct);this.indicatorStyle.height=e+"px",t=this.maxPosY+this.indicatorHeight-e}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[X.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var s=Math.round(this.sizeRatioX*this.scroller.x);if(s<0){this.transitionTime(500);var o=Math.max(this.indicatorWidth+3*s,ct);this.indicatorStyle.width=o+"px",s=0}else if(s>this.maxPosX){this.transitionTime(500);var n=Math.max(this.indicatorWidth-3*(s-this.maxPosX),ct);this.indicatorStyle.width=n+"px",s=this.maxPosX+this.indicatorWidth-n}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=s,this.scroller.options.useTransform?this.indicatorStyle[X.transform]="translateX("+s+"px)"+this.scroller.translateZ:this.indicatorStyle.left=s+"px"}},dt.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[X.transitionDuration]=t+"ms"},dt.prototype.transitionTimingFunction=function(t){this.indicatorStyle[X.transitionTimingFunction]=t},dt.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},dt.prototype._start=function(t){var i=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=i.pageX,this.lastPointY=i.pageY,this.startTime=f(),this._handleMoveEvents(S),this.scroller.trigger("beforeScrollStart")},dt.prototype._move=function(t){var i=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart"),this.moved=!0;var e=i.pageX-this.lastPointX;this.lastPointX=i.pageX;var s=i.pageY-this.lastPointY;this.lastPointY=i.pageY;var o=this.x+e,n=this.y+s;this._pos(o,n)},dt.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(T);var i=this.scroller.options.snap;if(i){var e=i.speed,s=i.easing,o=void 0===s?K.bounce:s,n=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),r=e||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-n.x),1e3),Math.min(Math.abs(this.scroller.y-n.y),1e3)),300);this.scroller.x===n.x&&this.scroller.y===n.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=n,this.scroller.scrollTo(n.x,n.y,r,o))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},dt.prototype._pos=function(t,i){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),i<0?i=0:i>this.maxPosY&&(i=this.maxPosY),t=Math.round(t/this.sizeRatioX),i=Math.round(i/this.sizeRatioY),this.scroller.scrollTo(t,i),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},dt.prototype._shouldShow=function(){return"vertical"===this.direction&&this.scroller.hasVerticalScroll||"horizontal"===this.direction&&this.scroller.hasHorizontalScroll?(this.wrapper.style.display="",!0):(this.wrapper.style.display="none",!1)},dt.prototype._calculate=function(){if("vertical"===this.direction){var t=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(t*t/(this.scroller.scrollerHeight||t||1)),ct),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=t-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{var i=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(i*i/(this.scroller.scrollerWidth||i||1)),ct),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=i-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},dt.prototype._addDOMEvents=function(){var t=S;this._handleDOMEvents(t)},dt.prototype._removeDOMEvents=function(){var t=T;this._handleDOMEvents(t),this._handleMoveEvents(t)},dt.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},dt.prototype._handleDOMEvents=function(t){this.scroller.options.disableTouch||(t(this.indicator,"touchstart",this),t(window,"touchend",this)),this.scroller.options.disableMouse||(t(this.indicator,"mousedown",this),t(window,"mouseup",this))};var yt=30,wt=10,bt=200,At=2e3;function St(t){t.prototype._initInfinite=function(){this.options.probeType=3,this.maxScrollY=-At,this.infiniteScroller=new _t(this,this.options.infinity)}}function Tt(t){if(t&&t.classList)return t.classList.contains("tombstone")}function _t(t,i){var e=this;this.options=i,rt("function"===typeof this.options.createTombstone,"Infinite scroll need createTombstone Function to create tombstone"),rt("function"===typeof this.options.fetch,"Infinite scroll need fetch Function to fetch new data."),rt("function"===typeof this.options.render,"Infinite scroll need render Function to render each item."),this.firstAttachedItem=0,this.lastAttachedItem=0,this.anchorScrollTop=0,this.anchorItem={index:0,offset:0},this.tombstoneHeight=0,this.tombstoneWidth=0,this.tombstones=[],this.tombstonesAnimationHandlers=[],this.items=[],this.loadedItems=0,this.requestInProgress=!1,this.hasMore=!0,this.scroller=t,this.wrapperEl=this.scroller.wrapper,this.scrollerEl=this.scroller.scroller,this.scroller.on("resize",(function(){e.onResize()})),this.scroller.on("destroy",(function(){e.destroy()})),this._onResizeHandler=setTimeout((function(){e.onResize(),e.scroller.on("scroll",(function(){e.onScroll()}))}))}function xt(t,i){this.wrapper="string"===typeof t?document.querySelector(t):t,this.wrapper||nt("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||nt("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(i)}_t.prototype.destroy=function(){var t=this;clearTimeout(this._onResizeHandler),this.tombstonesAnimationHandlers.forEach((function(t){clearTimeout(t)})),this.tombstonesAnimationHandlers=null,this.items.forEach((function(i){i.node&&(t.scrollerEl.removeChild(i.node),i.node=null)})),this.scroller.infiniteScroller=null,this.scroller=null,this.wrapperEl=null,this.scrollerEl=null,this.items=null,this.tombstones=null},_t.prototype.onScroll=function(){var t=-this.scroller.y,i=t-this.anchorScrollTop;this.anchorItem=0===t?{index:0,offset:0}:this._calculateAnchoredItem(this.anchorItem,i),this.anchorScrollTop=t;var e=this._calculateAnchoredItem(this.anchorItem,this.scroller.wrapperHeight),s=this.anchorItem.index,o=e.index;i<0?(s-=yt,o+=wt):(s-=wt,o+=yt),this.fill(s,o),this.maybeRequestContent()},_t.prototype.onResize=function(){var t=this.options.createTombstone();t.style.position="absolute",this.scrollerEl.appendChild(t),t.style.display="",this.tombstoneHeight=t.offsetHeight,this.tombstoneWidth=t.offsetWidth,this.scrollerEl.removeChild(t);for(var i=0;i<this.items.length;i++)this.items[i].height=this.items[i].width=0;this.onScroll()},_t.prototype.fill=function(t,i){this.firstAttachedItem=Math.max(0,t),this.hasMore||(i=Math.min(i,this.items.length)),this.lastAttachedItem=i,this.attachContent()},_t.prototype.maybeRequestContent=function(){var t=this;if(!this.requestInProgress&&this.hasMore){var i=this.lastAttachedItem-this.loadedItems;i<=0||(this.requestInProgress=!0,this.options.fetch(i).then((function(i){if(t.requestInProgress=!1,i)t.addContent(i);else{t.hasMore=!1;var e=t._removeTombstones(),s=0;t.anchorItem.index<=t.items.length?(s=t._fixScrollPosition(),t._setupAnimations({},s),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=e,s=t._fixScrollPosition(),t._setupAnimations({},s),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}})))}},_t.prototype.addContent=function(t){for(var i=0;i<t.length;i++)this.items.length<=this.loadedItems&&this._addItem(),this.items[this.loadedItems++].data=t[i];this.attachContent(),this.maybeRequestContent()},_t.prototype.attachContent=function(){var t=this._collectUnusedNodes(),i=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var e=this._fixScrollPosition();this._setupAnimations(i,e)},_t.prototype.resetMore=function(){this.hasMore=!0},_t.prototype._removeTombstones=function(){for(var t=void 0,i=0,e=this.items.length,s=0;s<e;s++){var o=this.items[s].node,n=this.items[s].data;o&&!Tt(o)||n||(void 0===t&&(t=s),o&&this.scrollerEl.removeChild(o))}return i=e-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),i},_t.prototype._collectUnusedNodes=function(){for(var t=[],i=0;i<this.items.length;i++)if(i!==this.firstAttachedItem){var e=this.items[i].node;e&&(Tt(e)?(this.tombstones.push(e),this.tombstones[this.tombstones.length-1].style.display="none"):t.push(e)),this.items[i].node=null}else i=this.lastAttachedItem-1;return t},_t.prototype._createDOMNodes=function(t){for(var i={},e=this.firstAttachedItem;e<this.lastAttachedItem;e++){while(this.items.length<=e)this._addItem();var s=this.items[e].node,o=this.items[e].data;if(s){if(!Tt(s)||!o)continue;s.style.zIndex=1,i[e]=[s,this.items[e].top-this.anchorScrollTop],this.items[e].node=null}var n=o?this.options.render(o,t.pop()):this._getTombStone();n.style.position="absolute",this.items[e].top=-1,this.scrollerEl.appendChild(n),this.items[e].node=n}return i},_t.prototype._cleanupUnusedNodes=function(t){while(t.length)this.scrollerEl.removeChild(t.pop())},_t.prototype._cacheNodeSize=function(){for(var t=this.firstAttachedItem;t<this.lastAttachedItem;t++){var i=this.items[t];if(i.data&&!i.height){var e=Tt(i.node);i.height=e?this.tombstoneHeight:i.node.offsetHeight,i.width=e?this.tombstoneWidth:i.node.offsetWidth}}},_t.prototype._fixScrollPosition=function(){this.anchorScrollTop=0;for(var t=0;t<this.anchorItem.index;t++)this.anchorScrollTop+=this.items[t].height||this.tombstoneHeight;this.anchorScrollTop+=this.anchorItem.offset;var i=this.anchorScrollTop-this.anchorItem.offset,e=this.anchorItem.index;while(e>this.firstAttachedItem)i-=this.items[e-1].height||this.tombstoneHeight,e--;return i},_t.prototype._setupAnimations=function(t,i){var e=this;for(var s in t){var o=t[s];this.items[s].node.style[X.transform]="translateY("+(this.anchorScrollTop+o[1])+"px) scale("+this.tombstoneWidth/this.items[s].width+", "+this.tombstoneHeight/this.items[s].height+")",this.items[s].node.offsetTop,o[0].offsetTop,this.items[s].node.style[X.transition]=M+"transform "+bt+"ms"}for(var n=this.firstAttachedItem;n<this.lastAttachedItem;n++){var r=t[n];if(r){var a=r[0];a.style[X.transition]=M+"transform "+bt+"ms, opacity "+bt+"ms",a.style[X.transform]="translateY("+i+"px) scale("+this.items[n].width/this.tombstoneWidth+", "+this.items[n].height/this.tombstoneHeight+")",a.style.opacity=0}i!==this.items[n].top&&(r||(this.items[n].node.style[X.transition]=""),this.items[n].node.style[X.transform]="translateY("+i+"px)"),this.items[n].top=i,i+=this.items[n].height||this.tombstoneHeight}this.scroller.maxScrollY=-(i-this.scroller.wrapperHeight+(this.hasMore?At:0));var h=setTimeout((function(){for(var i in t){var s=t[i];s[0].style.display="none",e.tombstones.push(s[0])}}),bt);this.tombstonesAnimationHandlers.push(h)},_t.prototype._getTombStone=function(){var t=this.tombstones.pop();return t?(t.style.display="",t.style.opacity=1,t.style[X.transform]="",t.style[X.transition]="",t):this.options.createTombstone()},_t.prototype._addItem=function(){this.items.push({data:null,node:null,height:0,width:0,top:0})},_t.prototype._calculateAnchoredItem=function(t,i){if(0===i)return t;var e=t.index,s=0;if(i+=t.offset,i<0){while(i<0&&e>0&&this.items[e-1].height)i+=this.items[e-1].height,e--;s=Math.max(-e,Math.ceil(Math.min(i,0)/this.tombstoneHeight))}else{while(i>0&&e<this.items.length&&this.items[e].height&&this.items[e].height<i)i-=this.items[e].height,e++;(e>=this.items.length||!this.items[e].height)&&(s=Math.floor(Math.max(i,0)/this.tombstoneHeight))}return e+=s,i-=s*this.tombstoneHeight,{index:e,offset:i}},j(xt),at(xt),c(xt),ht(xt),lt(xt),pt(xt),mt(xt),ft(xt),gt(xt),vt(xt),St(xt),xt.Version="1.15.2";var Mt=xt,It=e("2f62");function Pt(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);i&&(s=s.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,s)}return e}function kt(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?Pt(Object(e),!0).forEach((function(i){Object(n["a"])(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Pt(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}var Yt=e("bb7f"),Et={name:"app",data:function(){return{isShowTopLoading:!1,isFirstGetMessage:!0,chatValue:"",emojis:Yt.emojiData,showEmoji:!1,isUserSendLongTimeSystemMessage:!1,isAdminSendLongTimeSystemMessage:!1,isInputPongIng:!1,isSendPong:!1,qiniuObservable:null,inputPongIngString:"对方正在输入...",scroll:null,handshakeKeywordList:[],searchHandshakeTimer:null}},created:function(){this.init()},computed:kt({account:function(){return this.isArtificial?this.artificialAccount:this.robotAccount},viewMessage:function(){for(var t=this.messages,i=0;i<t.length;i++)0==i&&(t[i].isShowDate=!0),i<t.length-1&&(t[i+1].isShowDate=!1,t[i+1].timestamp-120>t[i].timestamp&&(t[i+1].isShowDate=!0));return t},messages:function(){var t=this;return this.$store.getters.messages.map((function(i){return t.handlerMessage(i)}))}},Object(It["b"])(["platform","isArtificial","isShowHeader","isMobile","uid","userAccount","artificialAccount","robotInfo","robotAccount","isLoadMorEnd","userLocal","isLoadMorLoading","userInfo","isSafari","isIOS","isJudgeBigScreen"])),mounted:function(){var t=this;document.title="在线客服",setTimeout((function(){t.scroll=new Mt(t.$refs.miniImBody,{click:!0,tab:!0,scrollY:!0,scrollbar:!0,bounceTime:400,preventDefaultException:{className:/(^|\s)text(\s|$)/},mouseWheel:!0}),t.scroll.on("touchEnd",(function(i){i.y>30&&t.loadMorData()})),t.addSendButtonTouchEventListener(),t.createLinkQuery(),t.scrollIntoBottom()}),500),document.addEventListener("paste",this.inputPaste,!1)},beforeDestroy:function(){this.$store.dispatch("onToggleWindow",0)},methods:{init:function(){var t=this;this.$store.commit("updateState",{isShowPageLoading:!0}),null!=this.$mimcInstance.user&&this.$mimcInstance.user.isLogin()?(this.handelEvent(),this.$store.dispatch("onCleanRead"),this.$store.dispatch("onToggleWindow",1),this.getMessageRecord(),this.scrollIntoBottom(),setTimeout((function(){return t.$store.commit("updateState",{isShowPageLoading:!1})}),500),this.onServciceLastMessageTimeNotCallBack()):setTimeout((function(){return t.init()}),1e3)},handelEvent:function(){var t=this;this.$mimcInstance.addEventListener("receiveP2PMsg",this.receiveP2PMsg),this.$mimcInstance.addEventListener("disconnect",(function(){console.log("链接断开!"),t.isShowTopLoading=!0})),this.$mimcInstance.addEventListener("statusChange",(function(i,e,s,o){i&&(t.isShowTopLoading=!1),console.log("状态发生变化",i,e,s,o)})),this.$mimcInstance.addEventListener("serverAck",(function(i,e,s,o){console.log("发送消息服务器ack",i,e,s,o),localStorage.setItem("userLastCallBackMessageTime",Date.now()),t.isUserSendLongTimeSystemMessage=!1})),this.onCheckIsloogTimeNotCallBack(),setTimeout((function(){return t.isShowTopLoading=!1}),1e3)},enterShift:function(t){this.isMobile||"Enter"!=t.code&&(this.chatValue=this.chatValue+"\n")},addSendButtonTouchEventListener:function(){var t=this;this.isIOS?document.addEventListener("touchstart",(function(i){"mini-input-send"==i.target.getAttribute("class")&&t.sendTextMessage(),"sendKnowledgeMessage"==i.target.getAttribute("class")&&(console.log("监听发送按钮触摸事件",i.target.getAttribute("data")),t.sendKnowledgeMessage(i.target.getAttribute("data")))}),!1):this.$refs.sendButton.addEventListener("click",this.sendTextMessage,!1)},isShowInfo:function(t){return-1==["end","transfer","cancel","timeout","system"].indexOf(t)},clickPhoto:function(t){if(-1==t.indexOf("http")){var i=new Image;i.src=t;var e=window.open("","_blank");e.document.write(i.outerHTML),e.document.title="图片",e.document.close()}else window.open(t)},loadMorData:function(){var t=this;this.isLoadMorLoading||this.isLoadMorEnd||(this.$store.commit("updateState",{isLoadMorLoading:!0}),setTimeout((function(){t.getMessageRecord(),t.$store.commit("updateState",{isLoadMorLoading:!1})}),1e3))},localAdmin:function(t){var i=localStorage.getItem("admin_"+t);return i?JSON.parse(i):null},localRobot:function(t){var i=localStorage.getItem("robot_"+t);return i?JSON.parse(i):null},clickEmoji:function(t){this.showEmoji=!1,this.chatValue=this.chatValue+t,this.scrollIntoBottom()},sendPhotoMessageEvent:function(t){var i=t.target,e=i.files[0];this.sendPhotoMessage(e)},sendPhotoMessage:function(t){var i=new FileReader;i.readAsDataURL(t);var e,s=this,o=parseInt(1e4*Math.random()*(new Date).getTime())+t.name.substr(t.name.lastIndexOf("."));i.onload=function(){var i=function(){e.percent=0,s.qiniuObservable=null,s.removeMessage(s.userInfo.id,e.key),Object(r["Toast"])({message:"上传失败,请重新上传!"});var t=this.$mimcInstance.createLocalMessage("system",s.account,"您刚刚上传的图片失败了,请重新上传!");s.messages.push(s.handlerMessage(t)),s.scrollIntoBottom()},n=function(t){s.qiniuObservable=null,e.percent=100;var i=s.uploadToken.host+"/"+t;s.$mimcInstance.sendMessage("photo",s.account,i)};e=s.$mimcInstance.createLocalMessage("photo",s.account,this.result),e["percent"]=0,e.isShowCancel=!0,setTimeout((function(){e.isShowCancel=!1}),1e4),s.messages.push(s.handlerMessage(e));var a=Object.assign({},e);a.payload=s.uploadToken.host+"/"+o,s.$previewRefresh(),s.scrollIntoBottom(),s.qiniuObservable=s.$uploadFile({file:t,mode:s.uploadToken.mode,percent:function(t){e.percent=Math.ceil(t.total.percent),t.total.size<1&&(s.qiniuObservable.unsubscribe(),s.cancelMessage(e.key),Object(r["Toast"])({message:"上传失败,该图片已损坏!"}))},success:function(t){n(t)},fail:function(){i()}})}},scrollIntoBottom:function(){var t=this;setTimeout((function(){var i=t.$refs.miniImBody.querySelectorAll("li");t.scroll&&t.scroll.scrollToElement(i[i.length-1])}),50)},chatInputFocus:function(){this.scrollIntoBottom(),this.showEmoji=!1},chatInputBlur:function(){window.chatInputInterval=null,window.scroll(0,0)},receiveP2PMsg:function(t){if(console.log(t),"transfer"==t.biz_type){this.$store.commit("updateState",{isArtificial:!0,artificialAccount:t.transfer_account});var i=JSON.parse(t.payload);localStorage.setItem("admin_"+i.id,JSON.stringify(i)),localStorage.setItem("adminLastCallBackMessageTime_"+i.id,Date.now()),this.isAdminSendLongTimeSystemMessage=!1}if(!this.isArtificial||"text"!=t.biz_type&&"photo"!=t.biz_type&&"cancel"!=t.biz_type||(localStorage.setItem("adminLastCallBackMessageTime_"+this.account,Date.now()),this.isAdminSendLongTimeSystemMessage=!1),"cancel"==t.biz_type&&this.removeMessage(t.from_account,t.payload),"end"!=t.biz_type&&"timeout"!=t.biz_type||this.$store.commit("updateState",{isArtificial:!1,artificialAccount:null}),"pong"!=t.biz_type){if("search_knowledge"==t.biz_type)return this.handshakeKeywordList=[],void(""!=t.payload&&(this.handshakeKeywordList=JSON.parse(t.payload)));this.messagesPushMemory(t),this.scrollIntoBottom(),this.$previewRefresh(),window.parent.postMessage({newMessage:1},"*")}else this.inputPongIng()},inputPongIng:function(){var t=this;this.isInputPongIng||(this.isInputPongIng=!0,setTimeout((function(){t.inputPongIngString="对方正在输入."}),500),setTimeout((function(){t.inputPongIngString="对方正在输入.."}),1500),setTimeout((function(){t.inputPongIngString="对方正在输入...",t.isInputPongIng=!1}),3e3))},enterSendMessage:function(){this.isMobile||(this.sendTextMessage(),this.$refs.textarea.focus())},sendTextMessage:function(){if(0!=this.userInfo.online){var t=this.chatValue.trim();if(""!=t){var i=this.$mimcInstance.sendMessage("text",this.account,t);i.isShowCancel=!0,setTimeout((function(){return i.isShowCancel=!1}),1e4),this.messagesPushMemory(i),this.chatValue="",this.handshakeKeywordList=[]}}else Object(r["Toast"])({message:"您貌似掉线了"})},cancelMessage:function(t){var i=this.$mimcInstance.sendMessage("cancel",this.account,t);this.messagesPushMemory(i),this.removeMessage(this.userInfo.id,t),this.qiniuObservable&&this.qiniuObservable.unsubscribe()},sendKnowledgeMessage:function(t){this.handshakeKeywordList=[];var i=this.$mimcInstance.sendMessage("text",this.account,t);this.messagesPushMemory(i),this.chatValue=""},headRightBtn:function(){var t=this;if(!window.isClickHeadRightBtn){window.isClickHeadRightBtn=!0;var i=this.$mimcInstance;if(this.isArtificial)return r["MessageBox"].confirm("您确定关闭此次会话吗?","温馨提示! ").then((function(){var e=i.sendMessage("end",t.account,"");t.messagesPushMemory(e),t.$store.commit("updateState",{isArtificial:!1,artificialAccount:null})})),void setTimeout((function(){return window.isClickHeadRightBtn=!1}),3e3);var e=i.sendMessage("text",this.account,"人工");this.messagesPushMemory(e),setTimeout((function(){return window.isClickHeadRightBtn=!1}),3e3)}},messagesPushMemory:function(t){if("pong"!=t.biz_type&&"handshake"!=t.biz_type&&"into"!=t.biz_type){var i=JSON.parse(JSON.stringify(this.messages));i.push(this.handlerMessage(t)),this.$store.commit("updateState",{messages:i}),this.scrollIntoBottom()}},handlerMessage:function(t){var i="http://qiniu.cmp520.com/avatar_degault_3.png",e=this.localAdmin(t.from_account),s=this.localRobot(t.from_account);return e&&t.from_account==e.id?(t.nickname=e.nickname,t.avatar=""==e.avatar?i:e.avatar):s&&t.from_account==s.id?(t.nickname=s.nickname,t.avatar=""==s.avatar?i:s.avatar):t.from_account==this.userInfo.id&&(t.nickname=this.userInfo.nickname,-1!=this.userInfo.nickname.indexOf(this.userInfo.id)&&(t.nickname="我"),t.avatar=""==this.userInfo.avatar?i:this.userInfo.avatar),t},getMessageRecord:function(){var t=this,i=0==this.messages.length?parseInt(((new Date).getTime()+" ").substr(0,10)):this.messages[0].timestamp,e=this.messages;this.$store.dispatch("onGetMessages",{timestamp:i,oldMsg:e,callback:function(){return t.scrollIntoBottom()}})},keyUpEvent:function(){var t=this;this.isArtificial&&(this.isSendPong||(this.isSendPong=!0,setTimeout((function(){return t.isSendPong=!1}),100),this.$mimcInstance.sendMessage("pong",this.account,this.chatValue)))},removeMessage:function(t,i){for(var e=[],s=0;s<this.messages.length;s++)this.messages[s].key==i&&this.messages[s].from_account==t||e.push(this.messages[s]);this.$store.commit("updateState",{messages:e})},createLinkQuery:function(){var t=this.isArtificial?0:1,i=0==t?this.artificialAccount:this.robotAccount,e=this.isMobile?1:0,s=this.isShowHeader?1:0,o=this.platform?this.platform:1,n=this.userAccount?"&u="+this.userAccount:"",r=this.uid?"&uid="+this.uid:"",a="?h="+s+"&m="+e+"&p="+o+"&r="+t+"&a="+i+n+r;history.replaceState(null,null,location.origin+"/#"+this.$route.path+a),null!=this.userAccount&&"null"!=this.userAccount&&""!=this.userAccount&&localStorage.setItem("urlQuery",a)},clickCloseWindow:function(){window.parent.postMessage({clickCloseWindow:!0},"*")},onCheckIsloogTimeNotCallBack:function(){var t=this,i=localStorage.getItem("userLastCallBackMessageTime")||Date.now();if(this.isArtificial&&!this.isUserSendLongTimeSystemMessage&&Date.now()-i>=3e5){var e=this.$mimcInstance.createLocalMessage("system",this.account,"您已超过5分钟未回复消息,系统3分钟后将结束对话");this.messages.push(this.handlerMessage(e)),this.isUserSendLongTimeSystemMessage=!0,this.scrollIntoBottom()}setTimeout((function(){return t.onCheckIsloogTimeNotCallBack()}),1e4)},onServciceLastMessageTimeNotCallBack:function(){var t=this;if(this.robotInfo){var i=this.robotInfo.loog_time_wait_text,e=localStorage.getItem("adminLastCallBackMessageTime_"+this.account)||Date.now();if(this.isArtificial&&!this.isAdminSendLongTimeSystemMessage&&""!=i.trim()&&Date.now()-e>=12e4){var s=this.$mimcInstance.createLocalMessage("text",this.account,i);s.from_account=this.robotAccount,this.messages.push(this.handlerMessage(s)),this.isAdminSendLongTimeSystemMessage=!0,this.scrollIntoBottom()}setTimeout((function(){return t.onServciceLastMessageTimeNotCallBack()}),1e4)}},onSearchHandshake:function(){var t=this;this.chatValue&&!this.isArtificial?(this.searchHandshakeTimer&&clearTimeout(this.searchHandshakeTimer),this.searchHandshakeTimer=setTimeout((function(){t.$mimcInstance.sendMessage("search_knowledge",t.robotAccount,t.chatValue),t.searchHandshakeTimer=null}),500)):this.handshakeKeywordList=[]},inputPaste:function(t){if(!this.isMobile){var i=this,e=t.clipboardData,s=window.navigator.userAgent;if(t.clipboardData&&t.clipboardData.items&&!(e.items&&2===e.items.length&&"string"===e.items[0].kind&&"file"===e.items[1].kind&&e.types&&2===e.types.length&&"text/plain"===e.types[0]&&"Files"===e.types[1]&&s.match(/Macintosh/i)&&Number(s.match(/Chrome\/(\d{2})/i)[1])<49))for(var o=0;o<e.items.length;o++){var n=e.items[o];if("file"==n.kind){var r=n.getAsFile();if(0===r.size)return;i.sendPhotoMessage(r)}}}}},watch:{messages:function(){var t=this;setTimeout((function(){t.scroll&&t.scroll.refresh(),t.$previewRefresh()}),50)},isArtificial:function(t){this.createLinkQuery(),localStorage.setItem("isArtificial",t),localStorage.setItem("artificialTime",Date.now()),t||localStorage.removeItem("artificialTime")},artificialAccount:function(){localStorage.setItem("artificialAccount",this.artificialAccount)},userInfo:function(){this.createLinkQuery()},chatValue:function(){this.onSearchHandshake()}}},Ct=Et,Xt=(e("cde7"),e("2877")),Dt=Object(Xt["a"])(Ct,s,o,!1,null,null,null);i["default"]=Dt.exports},fdef:function(t,i){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
//# sourceMappingURL=chunk-5e6009ff.d7088d94.js.map
\ No newline at end of file
This diff could not be displayed because it is too large.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-963a14da"],{"21fb":function(t,i,e){t.exports=e.p+"img/expression.73c98a16.png"},"382d":function(t,i,e){},"5dbc":function(t,i,e){var s=e("d3f4"),o=e("8b97").set;t.exports=function(t,i,e){var n,r=i.constructor;return r!==e&&"function"==typeof r&&(n=r.prototype)!==e.prototype&&s(n)&&o&&o(t,n),t}},"8b97":function(t,i,e){var s=e("d3f4"),o=e("cb7c"),n=function(t,i){if(o(t),!s(i)&&null!==i)throw TypeError(i+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,i,s){try{s=e("9b43")(Function.call,e("11e9").f(Object.prototype,"__proto__").set,2),s(t,[]),i=!(t instanceof Array)}catch(o){i=!0}return function(t,e){return n(t,e),i?t.__proto__=e:s(t,e),t}}({},!1):void 0),check:n}},aa77:function(t,i,e){var s=e("5ca1"),o=e("be13"),n=e("79e5"),r=e("fdef"),a="["+r+"]",h="​…",l=RegExp("^"+a+a+"*"),c=RegExp(a+a+"*$"),p=function(t,i,e){var o={},a=n((function(){return!!r[t]()||h[t]()!=h})),l=o[t]=a?i(u):r[t];e&&(o[e]=l),s(s.P+s.F*a,"String",o)},u=p.trim=function(t,i){return t=String(o(t)),1&i&&(t=t.replace(l,"")),2&i&&(t=t.replace(c,"")),t};t.exports=p},bb7f:function(t,i){var e=["😀","😁","😂","🤣","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","🙂","🤗","🤩","🤔","🤨","😐","😑","😶","🙄","😏","😣","😥","😮","🤐","😯","😪","😫","😴","😌","😛","😜","😝","🤤","😒","😓","😔","😕","🙃","🤑","😲","🙁","😖","😞","😟","😤","😢","😭","😦","😧","😨","😩","🤯","😬","😰","😱","😳","🤪","😵","😡","😠","🤬","😷","🤒","🤕","🤢","🤮","🤧","😇","🤠","🤡","🤥","🤫","🤭","🧐","🤓","😈","👿","👹","👺","💀","👻","👽","🤖","💩","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🤲","👐","🙌","👏","🤝","👍","👎","👊","✊","🤛","🤜","🤞","✌️","🤟","🤘","👌","👈","👉","👆","👇","☝️","✋","🤚","🖐","🖖","👋","🤙","💪","🖕","✍️","🙏"];i.emojiData=e},bed0:function(t,i,e){t.exports=e.p+"img/photo_btn.c337b681.png"},c5f6:function(t,i,e){"use strict";var s=e("7726"),o=e("69a8"),n=e("2d95"),r=e("5dbc"),a=e("6a99"),h=e("79e5"),l=e("9093").f,c=e("11e9").f,p=e("86cc").f,u=e("aa77").trim,d="Number",m=s[d],f=m,g=m.prototype,v=n(e("2aeb")(g))==d,y="trim"in String.prototype,w=function(t){var i=a(t,!1);if("string"==typeof i&&i.length>2){i=y?i.trim():u(i,3);var e,s,o,n=i.charCodeAt(0);if(43===n||45===n){if(e=i.charCodeAt(2),88===e||120===e)return NaN}else if(48===n){switch(i.charCodeAt(1)){case 66:case 98:s=2,o=49;break;case 79:case 111:s=8,o=55;break;default:return+i}for(var r,h=i.slice(2),l=0,c=h.length;l<c;l++)if(r=h.charCodeAt(l),r<48||r>o)return NaN;return parseInt(h,s)}}return+i};if(!m(" 0o1")||!m("0b1")||m("+0x1")){m=function(t){var i=arguments.length<1?0:t,e=this;return e instanceof m&&(v?h((function(){g.valueOf.call(e)})):n(e)!=d)?r(new f(w(i)),e,m):w(i)};for(var b,S=e("9e1e")?l(f):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;S.length>_;_++)o(f,b=S[_])&&!o(m,b)&&p(m,b,c(f,b));m.prototype=g,g.constructor=m,e("2aba")(s,d,m)}},cde7:function(t,i,e){"use strict";var s=e("382d"),o=e.n(s);o.a},cf1c:function(t,i){t.exports="data:image/gif;base64,R0lGODlhEAAQAKIGAMLY8YSx5HOm4Mjc88/g9Ofw+v///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAGACwAAAAAEAAQAAADMGi6RbUwGjKIXCAA016PgRBElAVlG/RdLOO0X9nK61W39qvqiwz5Ls/rRqrggsdkAgAh+QQFCgAGACwCAAAABwAFAAADD2hqELAmiFBIYY4MAutdCQAh+QQFCgAGACwGAAAABwAFAAADD1hU1kaDOKMYCGAGEeYFCQAh+QQFCgAGACwKAAIABQAHAAADEFhUZjSkKdZqBQG0IELDQAIAIfkEBQoABgAsCgAGAAUABwAAAxBoVlRKgyjmlAIBqCDCzUoCACH5BAUKAAYALAYACgAHAAUAAAMPaGpFtYYMAgJgLogA610JACH5BAUKAAYALAIACgAHAAUAAAMPCAHWFiI4o1ghZZJB5i0JACH5BAUKAAYALAAABgAFAAcAAAMQCAFmIaEp1motpDQySMNFAgA7"},e0a0:function(t,i,e){"use strict";e.r(i);var s=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"mini-im-container",class:{"mini-im-pc-container":!t.isMobile,"mini-im-container-no-pto":!t.isShowHeader}},[s("span",{directives:[{name:"show",rawName:"v-show",value:t.isMobile&&t.isInputPongIng&&!t.isShowHeader,expression:"isMobile && (isInputPongIng && !isShowHeader)"}],staticClass:"input-ing"},[t._v(t._s(t.inputPongIngString))]),t.isShowHeader?s("mt-header",{attrs:{fixed:"",title:t.isInputPongIng?t.inputPongIngString:"在线客服"}},[s("div",{attrs:{slot:"left"},slot:"left"},[s("mt-button",{attrs:{icon:"back"},on:{click:function(i){return t.$router.go(-1)}}})],1),s("mt-button",{attrs:{slot:"right"},on:{click:t.headRightBtn},slot:"right"},[t.isArtificial?s("span",[t._v("结束会话")]):s("img",{attrs:{title:"人工客服",src:"http://qiniu.cmp520.com/kefu_icon_2000.png",alt:""}})])],1):t._e(),t.isMobile?t._e():s("div",{staticClass:"mini-im-pc-header"},[t._m(0),s("span",{directives:[{name:"show",rawName:"v-show",value:t.isInputPongIng,expression:"isInputPongIng"}]},[t._v(t._s(t.inputPongIngString))]),s("div",{staticClass:"right"},[t.isArtificial?t._e():s("img",{attrs:{title:"人工客服",src:"http://qiniu.cmp520.com/kefu_icon_2000.png",alt:""},on:{click:t.headRightBtn}}),t.isArtificial?s("span",{on:{click:t.headRightBtn}},[t._v("结束会话")]):t._e(),s("div",{staticClass:"close-btn",on:{click:t.clickCloseWindow}},[t._v("ㄨ")])])]),s("div",{ref:"miniImBody",staticClass:"mini-im-body"},[s("ul",{staticClass:"mini-im-chat-list"},[t.isLoadMorLoading?s("li",{staticClass:"message-loading"},[s("mt-spinner",{attrs:{color:"#26a2ff",size:20,type:"triple-bounce"}})],1):t._e(),t._l(t.viewMessage,(function(i,e){return s("li",{key:e},[i.isShowDate?[s("div",{staticClass:"mini-im-chat-item"},[s("div",{staticClass:"chat-content"},[s("div",{staticClass:"chat-body"},[[s("div",{staticClass:"system"},[s("div",{staticClass:"content"},[s("span",[t._v(t._s(t.$formatFromNowDate(i.timestamp,"YYYY年MM月DD日 HH:mm")))])])])]],2)])])]:t._e(),s("div",{staticClass:"mini-im-chat-item",class:{self:i.from_account==t.userInfo.id}},[t.isShowInfo(i.biz_type)?s("div",{staticClass:"chat-avatar"},[s("img",{attrs:{src:i.avatar}})]):t._e(),s("div",{staticClass:"chat-content"},[s("div",{staticClass:"chat-body"},[i.isShowCancel?[i.from_account==t.userInfo.id&&t.isShowInfo(i.biz_type)?s("span",{staticClass:"cancel-btn",on:{click:function(){return t.cancelMessage(i.key)}}},[t._v("撤回")]):t._e()]:t._e(),"text"==i.biz_type||"welcome"==i.biz_type?[s("div",{staticClass:"text"},[s("span",{domProps:{innerHTML:t._s(i.payload.replace(/\n/gi,"<br />"))}})])]:t._e(),"photo"==i.biz_type?[s("div",{staticClass:"photo"},[i.percent&&100!=i.percent?s("span",[t._v("上传中"+t._s(i.percent)+"%")]):t._e(),t.isMobile?s("img",{attrs:{src:i.payload,preview:"1"}}):s("img",{attrs:{src:i.payload},on:{click:function(e){return t.clickPhoto(i.payload)}}})])]:t._e(),"knowledge"==i.biz_type?[s("div",{staticClass:"knowledge"},[s("div",{staticClass:"title"},[t._v("以下是您关心的相关问题?")]),t._l(JSON.parse(i.payload),(function(i,e){return s("a",{key:e,attrs:{href:"javascript:void(0);"},on:{click:function(){return t.sendKnowledgeMessage(i.title)}}},[s("span",[t._v("• "+t._s(i.title))])])})),s("a",{on:{click:t.headRightBtn}},[t._v("• 以上都不是?我要找人工")])],2)]:t._e(),"end"==i.biz_type?[t._m(1,!0)]:t._e(),"timeout"==i.biz_type?[s("div",{staticClass:"system"},[s("div",{staticClass:"content"},[s("span",[t._v(t._s(i.payload))])])])]:t._e(),"system"==i.biz_type?[s("div",{staticClass:"system"},[s("div",{staticClass:"content"},[s("span",{domProps:{innerHTML:t._s(i.payload)}})])])]:t._e(),"cancel"==i.biz_type?[s("div",{staticClass:"system"},[s("div",{staticClass:"content"},[i.from_account==t.userInfo.id?s("span",[t._v("您撤回了一条消息")]):s("span",[t._v("对方撤回了一条消息")])])])]:t._e(),"transfer"==i.biz_type?[s("div",{staticClass:"system"},[s("div",{staticClass:"content"},[s("span",[t._v("已为您转接"+t._s(i.transfer_account)+"号客服")])])])]:t._e()],2)])])],2)}))],2),t.isShowTopLoading?s("div",{staticClass:"top-loading"},[s("img",{attrs:{src:e("cf1c"),alt:""}}),s("span",[t._v("正在连接中~")])]):t._e()]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.showEmoji,expression:"showEmoji"}],staticClass:"mini-im-emoji"},[s("div",{staticClass:"mini-im-emoji-content"},t._l(t.emojis,(function(i,e){return s("span",{key:e,on:{click:function(){return t.clickEmoji(i)}}},[t._v(t._s(i))])})),0)]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.handshakeKeywordList.length>0,expression:"handshakeKeywordList.length > 0"}],staticClass:"mini-im-knowledge"},[s("div",{staticClass:"mask",on:{click:function(i){t.handshakeKeywordList=[]}}}),s("span",[t._v("以下是您关心的相关问题?")]),s("ul",t._l(t.handshakeKeywordList,(function(i,e){return s("li",{key:e,staticClass:"sendKnowledgeMessage",attrs:{data:i.title},on:{click:function(e){!t.isIOS&&t.sendKnowledgeMessage(i.title)}}},[t._v("• "+t._s(i.title))])})),0)]),s("div",{staticClass:"mini-im-tabbar-input"},[s("span",{staticClass:"photo-btn"},[s("img",{attrs:{src:e("bed0"),alt:""}}),s("input",{attrs:{onclick:"this.value = null",type:"file",accept:"image/*"},on:{change:t.sendPhotoMessageEvent}})]),s("span",{staticClass:"expression-btn",on:{click:function(i){t.showEmoji=!t.showEmoji}}},[s("img",{attrs:{src:e("21fb"),alt:""}})]),s("span",{directives:[{name:"show",rawName:"v-show",value:t.isMobile&&!t.isShowHeader,expression:"isMobile && !isShowHeader"}],staticClass:"serverci",class:{on:!t.isArtificial},on:{click:t.headRightBtn}},[t.isArtificial?s("span",[t._v("结束会话")]):s("img",{attrs:{title:"人工客服",src:"http://qiniu.cmp520.com/bfbfbf.png",alt:""}})]),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.chatValue,expression:"chatValue"}],ref:"textarea",staticStyle:{"vertical-align":"top",outline:"none"},attrs:{maxlength:"200",placeholder:"请用一句话描述您的问题~"},domProps:{value:t.chatValue},on:{keyup:[function(i){return i.ctrlKey||i.shiftKey||i.altKey||i.metaKey?null:t.keyUpEvent(i)},function(i){return!i.type.indexOf("key")&&13!==i.keyCode&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:i.shiftKey?t.enterShift(i):null},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")||i.ctrlKey||i.shiftKey||i.altKey||i.metaKey?null:t.enterSendMessage(i)}],submit:t.sendTextMessage,focus:t.chatInputFocus,blur:t.chatInputBlur,input:function(i){i.target.composing||(t.chatValue=i.target.value)}}}),s("button",{ref:"sendButton",staticClass:"mini-input-send",attrs:{type:"button"}},[t._v("发送")])])],1)},o=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"title"},[e("img",{attrs:{src:"http://qiniu.cmp520.com/kefu_icon_2000.png",alt:""}}),e("span",[t._v("在线客服")])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"system"},[e("div",{staticClass:"content"},[e("span",[t._v("本次会话结束,感谢您的支持!")])])])}],n=(e("8e6e"),e("ac6a"),e("456d"),e("c5f6"),e("4917"),e("7f7f"),e("bd86")),r=e("76a0");
/*!
* better-normal-scroll v1.15.2
* (c) 2016-2019 ustbhuangyi
* Released under the MIT License.
*/
function a(t,i){for(;i+1<t.length;i++)t[i]=t[i+1];t.pop()}var h=function(){function t(t,i){var e=[],s=!0,o=!1,n=void 0;try{for(var r,a=t[Symbol.iterator]();!(s=(r=a.next()).done);s=!0)if(e.push(r.value),i&&e.length===i)break}catch(h){o=!0,n=h}finally{try{!s&&a["return"]&&a["return"]()}finally{if(o)throw n}}return e}return function(i,e){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return t(i,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(t){if(Array.isArray(t)){for(var i=0,e=Array(t.length);i<t.length;i++)e[i]=t[i];return e}return Array.from(t)};function c(t){t.prototype.on=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events[t]||(this._events[t]=[]),this._events[t].push([i,e])},t.prototype.once=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;function s(){this.off(t,s),i.apply(e,arguments)}s.fn=i,this.on(t,s)},t.prototype.off=function(t,i){var e=this._events[t];if(e){var s=e.length;while(s--)(e[s][0]===i||e[s][0]&&e[s][0].fn===i)&&a(e,s)}},t.prototype.trigger=function(t){var i=this._events[t];if(i)for(var e=i.length,s=[].concat(l(i)),o=0;o<e;o++){var n=s[o],r=h(n,2),a=r[0],c=r[1];a&&a.apply(c,[].slice.call(arguments,1))}}}var p="undefined"!==typeof window,u=p&&navigator.userAgent.toLowerCase(),d=u&&/wechatdevtools/.test(u),m=u&&u.indexOf("android")>0;function f(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function g(t){for(var i=arguments.length,e=Array(i>1?i-1:0),s=1;s<i;s++)e[s-1]=arguments[s];for(var o=0;o<e.length;o++){var n=e[o];for(var r in n)t[r]=n[r]}return t}function v(t){return void 0===t||null===t}function y(t,i){return Math.sqrt(t*t+i*i)}var w=p&&document.createElement("div").style,b=function(){if(!p)return!1;var t={standard:"transform",webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform"};for(var i in t)if(void 0!==w[t[i]])return i;return!1}();function S(t){return!1!==b&&("standard"===b?"transitionEnd"===t?"transitionend":t:b+t.charAt(0).toUpperCase()+t.substr(1))}function _(t,i,e,s){t.addEventListener(i,e,{passive:!1,capture:!!s})}function T(t,i,e,s){t.removeEventListener(i,e,{passive:!1,capture:!!s})}function x(t){var i=0,e=0;while(t)i-=t.offsetLeft,e-=t.offsetTop,t=t.offsetParent;return{left:i,top:e}}function M(t){var i=t.getBoundingClientRect();return{left:-(i.left+window.pageXOffset),top:-(i.top+window.pageYOffset)}}var A=b&&"standard"!==b?"-"+b.toLowerCase()+"-":"",I=S("transform"),P=S("transition"),k=p&&S("perspective")in w,Y=p&&("ontouchstart"in window||d),X=!1!==I,E=p&&P in w,C={transform:I,transition:P,transitionTimingFunction:S("transitionTimingFunction"),transitionDuration:S("transitionDuration"),transitionDelay:S("transitionDelay"),transformOrigin:S("transformOrigin"),transitionEnd:S("transitionEnd")},D=1,L=2,O={touchstart:D,touchmove:D,touchend:D,mousedown:L,mousemove:L,mouseup:L};function H(t){if(t instanceof window.SVGElement){var i=t.getBoundingClientRect();return{top:i.top,left:i.left,width:i.width,height:i.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function z(t,i){for(var e in i)if(i[e].test(t[e]))return!0;return!1}function W(t,i){var e=document.createEvent("Event");e.initEvent(i,!0,!0),e.pageX=t.pageX,e.pageY=t.pageY,t.target.dispatchEvent(e)}function N(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",e=void 0;"mouseup"===t.type||"mousecancel"===t.type?e=t:"touchend"!==t.type&&"touchcancel"!==t.type||(e=t.changedTouches[0]);var s={};e&&(s.screenX=e.screenX||0,s.screenY=e.screenY||0,s.clientX=e.clientX||0,s.clientY=e.clientY||0);var o=void 0,n=!0,r=!0;if("undefined"!==typeof MouseEvent)try{o=new MouseEvent(i,g({bubbles:n,cancelable:r},s))}catch(t){a()}else a();function a(){o=document.createEvent("Event"),o.initEvent(i,n,r),g(o,s)}o.forwardedTouchEvent=!0,o._constructed=!0,t.target.dispatchEvent(o)}function B(t){N(t,"dblclick")}function R(t,i){i.firstChild?F(t,i.firstChild):i.appendChild(t)}function F(t,i){i.parentNode.insertBefore(t,i)}function $(t,i){t.removeChild(i)}var U={startX:0,startY:0,scrollX:!1,scrollY:!0,freeScroll:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!0,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.0015,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:0,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:!1,disableMouse:Y,disableTouch:!Y,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1,stopPropagation:!1,zoom:!1,infinity:!1,dblclick:!1};function V(t){t.prototype._init=function(t){this._handleOptions(t),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype.setScale=function(t){this.lastScale=v(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=g({},U,t),this.translateZ=this.options.HWCompositing&&k?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&E,this.options.useTransform=this.options.useTransform&&X,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},t.prototype._addDOMEvents=function(){var t=_;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=T;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){var i=this.options.bindToWrapper?this.wrapper:window;t(window,"orientationchange",this),t(window,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(i,"mousemove",this),t(i,"mousecancel",this),t(i,"mouseup",this)),Y&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(i,"touchmove",this),t(i,"touchcancel",this),t(i,"touchend",this)),t(this.scroller,C.transitionEnd,this)},t.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel(),this.options.zoom&&this._initZoom(),this.options.infinity&&this._initInfinite()},t.prototype._watchTransition=function(){if("function"===typeof Object.defineProperty){var t=this,i=!1,e=this.options.useTransition?"isInTransition":"isAnimating";Object.defineProperty(this,e,{get:function(){return i},set:function(e){i=e;for(var s=t.scroller.children.length?t.scroller.children:[t.scroller],o=i&&!t.pulling?"none":"auto",n=0;n<s.length;n++)s[n].style.pointerEvents=o}})}},t.prototype._handleAutoBlur=function(){this.on("scrollStart",(function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()}))},t.prototype._initDOMObserver=function(){var t=this;if("undefined"!==typeof MutationObserver){var i=void 0,e=new MutationObserver((function(e){if(!t._shouldNotRefresh()){for(var s=!1,o=!1,n=0;n<e.length;n++){var r=e[n];if("attributes"!==r.type){s=!0;break}if(r.target!==t.scroller){o=!0;break}}s?t.refresh():o&&(clearTimeout(i),i=setTimeout((function(){t._shouldNotRefresh()||t.refresh()}),60))}})),s={attributes:!0,childList:!0,subtree:!0};e.observe(this.scroller,s),this.on("destroy",(function(){e.disconnect()}))}else this._checkDOMUpdate()},t.prototype._shouldNotRefresh=function(){var t=this.x>this.minScrollX||this.x<this.maxScrollX||this.y>this.minScrollY||this.y<this.maxScrollY;return this.isInTransition||this.stopFromTransition||t},t.prototype._checkDOMUpdate=function(){var t=H(this.scroller),i=t.width,e=t.height;function s(){if(!this.destroyed){t=H(this.scroller);var s=t.width,n=t.height;i===s&&e===n||this.refresh(),i=s,e=n,o.call(this)}}function o(){var t=this;setTimeout((function(){s.call(t)}),1e3)}o.call(this)},t.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t),this.options.zoom&&t.touches&&t.touches.length>1&&this._zoomStart(t);break;case"touchmove":case"mousemove":this.options.zoom&&t.touches&&t.touches.length>1?this._zoom(t):this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.scaled?this._zoomEnd(t):this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"click":this.enabled&&!t._constructed&&(z(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation()));break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._onMouseWheel(t);break}},t.prototype.refresh=function(){var t="static"===window.getComputedStyle(this.wrapper,null).position,i=H(this.wrapper);this.wrapperWidth=i.width,this.wrapperHeight=i.height;var e=H(this.scroller);this.scrollerWidth=Math.round(e.width*this.scale),this.scrollerHeight=Math.round(e.height*this.scale),this.relativeX=e.left,this.relativeY=e.top,t&&(this.relativeX-=i.left,this.relativeY-=i.top),this.minScrollX=0,this.minScrollY=0;var s=this.options.wheel;s?(this.items=this.scroller.children,this._checkWheelAllDisabled(),this.options.itemHeight=this.itemHeight=this.items.length?this.scrollerHeight/this.items.length:0,void 0===this.selectedIndex&&(this.selectedIndex=s.selectedIndex||0),this.options.startY=-this.selectedIndex*this.itemHeight,this.maxScrollX=0,this.maxScrollY=-this.itemHeight*(this.items.length-1)):(this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.options.infinity||(this.maxScrollY=this.wrapperHeight-this.scrollerHeight),this.maxScrollX<0?(this.maxScrollX-=this.relativeX,this.minScrollX=-this.relativeX):this.scale>1&&(this.maxScrollX=this.maxScrollX/2-this.relativeX,this.minScrollX=this.maxScrollX),this.maxScrollY<0?(this.maxScrollY-=this.relativeY,this.minScrollY=-this.relativeY):this.scale>1&&(this.maxScrollY=this.maxScrollY/2-this.relativeY,this.minScrollY=this.maxScrollY)),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<this.minScrollX,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<this.minScrollY,this.hasHorizontalScroll||(this.maxScrollX=this.minScrollX,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=this.minScrollY,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=x(this.wrapper),this.trigger("refresh"),!this.scaled&&this.resetPosition()},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1}}var j={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}};function K(t,i,e,s,o,n,r,a){var h=t-i,l=Math.abs(h)/e,c=r.deceleration,p=r.itemHeight,u=r.swipeBounceTime,d=r.wheel,m=r.swipeTime,f=m,g=d?4:15,v=t+l/c*(h<0?-1:1);return d&&p&&(v=a._findNearestValidWheel(v).y),v<s?(v=n?Math.max(s-n/4,s-n/g*l):s,f=u):v>o&&(v=n?Math.min(o+n/4,o+n/g*l):o,f=u),{destination:Math.round(v),duration:f}}var q=100/60;function Q(){}var G=function(){return p?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||q)/2)}:Q}(),J=function(){return p?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:Q}(),Z=1,tt=-1,it=1,et=-1,st=1,ot=3;function nt(t){console.error("[BScroll warn]: "+t)}function rt(t,i){if(!t)throw new Error("[BScroll] "+i)}function at(t){t.prototype._start=function(t){var i=O[t.type];if((i===D||0===t.button)&&!(!this.enabled||this.destroyed||this.initiated&&this.initiated!==i)){this.initiated=i,this.options.preventDefault&&!z(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.movingDirectionX=0,this.movingDirectionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=f(),this.options.wheel&&(this.target=t.target),this.stop();var e=t.touches?t.touches[0]:t;this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=e.pageX,this.pointY=e.pageY,this.trigger("beforeScrollStart")}},t.prototype._move=function(t){if(this.enabled&&!this.destroyed&&O[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var i=t.touches?t.touches[0]:t,e=i.pageX-this.pointX,s=i.pageY-this.pointY;this.pointX=i.pageX,this.pointY=i.pageY,this.distX+=e,this.distY+=s;var o=Math.abs(this.distX),n=Math.abs(this.distY),r=f();if(!(r-this.endTime>this.options.momentumLimitTime&&!this.moved&&n<this.options.momentumLimitDistance&&o<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(o>n+this.options.directionLockThreshold?this.directionLocked="h":n>=o+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);s=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);e=0}e=this.hasHorizontalScroll?e:0,s=this.hasVerticalScroll?s:0,this.movingDirectionX=e>0?et:e<0?it:0,this.movingDirectionY=s>0?tt:s<0?Z:0;var a=this.x+e,h=this.y+s,l=!1,c=!1,p=!1,u=!1,d=this.options.bounce;!1!==d&&(l=void 0===d.top||d.top,c=void 0===d.bottom||d.bottom,p=void 0===d.left||d.left,u=void 0===d.right||d.right),(a>this.minScrollX||a<this.maxScrollX)&&(a=a>this.minScrollX&&p||a<this.maxScrollX&&u?this.x+e/3:a>this.minScrollX?this.minScrollX:this.maxScrollX),(h>this.minScrollY||h<this.maxScrollY)&&(h=h>this.minScrollY&&l||h<this.maxScrollY&&c?this.y+s/3:h>this.minScrollY?this.minScrollY:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(a,h),r-this.startTime>this.options.momentumLimitTime&&(this.startTime=r,this.startX=this.x,this.startY=this.y,this.options.probeType===st&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>st&&this.trigger("scroll",{x:this.x,y:this.y});var m=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,g=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,v=this.pointX-m,y=this.pointY-g;(v>document.documentElement.clientWidth-this.options.momentumLimitDistance||v<this.options.momentumLimitDistance||y<this.options.momentumLimitDistance||y>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)}}},t.prototype._end=function(t){if(this.enabled&&!this.destroyed&&O[t.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!z(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var i=Math.round(this.x),e=Math.round(this.y),s=i-this.absStartX,o=e-this.absStartY;if(this.directionX=s>0?et:s<0?it:0,this.directionY=o>0?tt:o<0?Z:0,!this.options.pullDownRefresh||!this._checkPullDown())if(this._checkClick(t))this.trigger("scrollCancel");else if(!this.resetPosition(this.options.bounceTime,j.bounce)){this._translate(i,e),this.endTime=f();var n=this.endTime-this.startTime,r=Math.abs(i-this.startX),a=Math.abs(e-this.startY);if(this._events.flick&&n<this.options.flickLimitTime&&r<this.options.flickLimitDistance&&a<this.options.flickLimitDistance)this.trigger("flick");else{var h=0;if(this.options.momentum&&n<this.options.momentumLimitTime&&(a>this.options.momentumLimitDistance||r>this.options.momentumLimitDistance)){var l=!1,c=!1,p=!1,u=!1,d=this.options.bounce;!1!==d&&(l=void 0===d.top||d.top,c=void 0===d.bottom||d.bottom,p=void 0===d.left||d.left,u=void 0===d.right||d.right);var m=this.directionX===et&&p||this.directionX===it&&u?this.wrapperWidth:0,g=this.directionY===tt&&l||this.directionY===Z&&c?this.wrapperHeight:0,v=this.hasHorizontalScroll?K(this.x,this.startX,n,this.maxScrollX,this.minScrollX,m,this.options,this):{destination:i,duration:0},y=this.hasVerticalScroll?K(this.y,this.startY,n,this.maxScrollY,this.minScrollY,g,this.options,this):{destination:e,duration:0};i=v.destination,e=y.destination,h=Math.max(v.duration,y.duration),this.isInTransition=!0}else this.options.wheel&&(e=this._findNearestValidWheel(e).y,h=this.options.wheel.adjustTime||400);var w=j.swipe;if(this.options.snap){var b=this._nearestSnap(i,e);this.currentPage=b,h=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(i-b.x),1e3),Math.min(Math.abs(e-b.y),1e3)),300),i=b.x,e=b.y,this.directionX=0,this.directionY=0,w=this.options.snap.easing||j.bounce}if(i!==this.x||e!==this.y)return(i>this.minScrollX||i<this.maxScrollX||e>this.minScrollY||e<this.maxScrollY)&&(w=j.swipeBounce),void this.scrollTo(i,e,h,w);this.options.wheel&&(this.selectedIndex=this._findNearestValidWheel(this.y).index),this.trigger("scrollEnd",{x:this.x,y:this.y})}}}},t.prototype._checkClick=function(t){var i=this.stopFromTransition&&!this.pulling;if(this.stopFromTransition=!1,!this.moved){if(this.options.wheel){if(this.target&&this.target.className===this.options.wheel.wheelWrapperClass){var e=this._findNearestValidWheel(this.y).index,s=Math.round((this.pointY+M(this.wrapper).top-this.wrapperHeight/2)/this.itemHeight);this.target=this.items[e+s]}var o=x(this.target).top,n=x(this.target).left;return o-=this.wrapperOffset.top,o-=Math.round(this.target.offsetHeight/2-this.wrapper.offsetHeight/2)||0,n-=this.wrapperOffset.left,n-=Math.round(this.target.offsetWidth/2-this.wrapper.offsetWidth/2)||0,o=this._findNearestValidWheel(o).y,this.scrollTo(n,o,this.options.wheel.adjustTime||400,j.swipe),!0}if(!i){var r=this.options.dblclick,a=!1;if(r&&this.lastClickTime){var h=r.delay,l=void 0===h?300:h;f()-this.lastClickTime<l&&(a=!0,B(t))}return this.options.tap&&W(t,this.options.tap),this.options.click&&!z(t.target,this.options.preventDefaultException)&&N(t),this.lastClickTime=a?null:f(),!0}return!1}return!1},t.prototype._resize=function(){var t=this;this.enabled&&(m&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((function(){t.refresh()}),this.options.resizePolling))},t.prototype._startProbe=function(){J(this.probeTimer),this.probeTimer=G(i);var t=this;function i(){var e=t.getComputedPosition();t.trigger("scroll",e),t.isInTransition?t.probeTimer=G(i):t.trigger("scrollEnd",e)}},t.prototype._transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[C.transitionDuration]=t+"ms",this.options.wheel)for(var i=0;i<this.items.length;i++)this.items[i].style[C.transitionDuration]=t+"ms";if(this.indicators)for(var e=0;e<this.indicators.length;e++)this.indicators[e].transitionTime(t)},t.prototype._transitionTimingFunction=function(t){if(this.scrollerStyle[C.transitionTimingFunction]=t,this.options.wheel)for(var i=0;i<this.items.length;i++)this.items[i].style[C.transitionTimingFunction]=t;if(this.indicators)for(var e=0;e<this.indicators.length;e++)this.indicators[e].transitionTimingFunction(t)},t.prototype._transitionEnd=function(t){if(t.target===this.scroller&&this.isInTransition){this._transitionTime();var i=!this.pulling||this.movingDirectionY===Z;i&&!this.resetPosition(this.options.bounceTime,j.bounce)&&(this.isInTransition=!1,this.options.probeType!==ot&&this.trigger("scrollEnd",{x:this.x,y:this.y}))}},t.prototype._translate=function(t,i,e){if(rt(!v(t)&&!v(i),"Translate x or y is null or undefined."),v(e)&&(e=this.scale),this.options.useTransform?this.scrollerStyle[C.transform]="translate("+t+"px,"+i+"px) scale("+e+")"+this.translateZ:(t=Math.round(t),i=Math.round(i),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=i+"px"),this.options.wheel)for(var s=this.options.wheel.rotate,o=void 0===s?25:s,n=0;n<this.items.length;n++){var r=o*(i/this.itemHeight+n);this.items[n].style[C.transform]="rotateX("+r+"deg)"}if(this.x=t,this.y=i,this.setScale(e),this.indicators)for(var a=0;a<this.indicators.length;a++)this.indicators[a].updatePosition()},t.prototype._animate=function(t,i,e,s){var o=this,n=this.x,r=this.y,a=this.lastScale,h=this.scale,l=f(),c=l+e;function p(){var u=f();if(u>=c)return o.isAnimating=!1,o._translate(t,i,h),o.trigger("scroll",{x:o.x,y:o.y}),void(o.pulling||o.resetPosition(o.options.bounceTime)||o.trigger("scrollEnd",{x:o.x,y:o.y}));u=(u-l)/e;var d=s(u),m=(t-n)*d+n,g=(i-r)*d+r,v=(h-a)*d+a;o._translate(m,g,v),o.isAnimating&&(o.animateTimer=G(p)),o.options.probeType===ot&&o.trigger("scroll",{x:o.x,y:o.y})}this.isAnimating=!0,J(this.animateTimer),p()},t.prototype.scrollBy=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j.bounce;t=this.x+t,i=this.y+i,this.scrollTo(t,i,e,s)},t.prototype.scrollTo=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j.bounce,o=arguments[4];if(this.options.wheel&&(i=this._findNearestValidWheel(i).y),t!==this.x||i!==this.y)if(this.isInTransition=this.options.useTransition&&e>0&&(this.x!==t||this.y!==i),!e||this.options.useTransition){if(this._transitionTimingFunction(s.style),this._transitionTime(e),this._translate(t,i),e&&this.options.probeType===ot&&this._startProbe(),!e&&!o){if(this.options.zoom)return;this.trigger("scroll",{x:t,y:i}),this._reflow=document.body.offsetHeight,this.resetPosition(this.options.bounceTime,j.bounce)||this.trigger("scrollEnd",{x:t,y:i})}this.options.wheel&&(this.selectedIndex=this._findNearestValidWheel(i).index)}else this._animate(t,i,e,s.fn)},t.prototype.scrollToElement=function(t,i,e,s,o){if(t&&(t=t.nodeType?t:this.scroller.querySelector(t),!this.options.wheel||t.classList.contains(this.options.wheel.wheelItemClass))){var n=x(t);n.left-=this.wrapperOffset.left,n.top-=this.wrapperOffset.top,!0===e&&(e=Math.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===s&&(s=Math.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),n.left-=e||0,n.top-=s||0,n.left=n.left>this.minScrollX?this.minScrollX:n.left<this.maxScrollX?this.maxScrollX:n.left,n.top=n.top>this.minScrollY?this.minScrollY:n.top<this.maxScrollY?this.maxScrollY:n.top,this.options.wheel&&(n.top=this._findNearestValidWheel(n.top).y),this.scrollTo(n.left,n.top,i,o)}},t.prototype.resetPosition=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.bounce,e=this.x,s=Math.round(e);!this.hasHorizontalScroll||s>this.minScrollX?e=this.minScrollX:s<this.maxScrollX&&(e=this.maxScrollX);var o=this.y,n=Math.round(o);return!this.hasVerticalScroll||n>this.minScrollY?o=this.minScrollY:n<this.maxScrollY&&(o=this.maxScrollY),(e!==this.x||o!==this.y)&&(this.scrollTo(e,o,t,i),!0)},t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.scroller,null),i=void 0,e=void 0;return this.options.useTransform?(t=t[C.transform].split(")")[0].split(", "),i=+(t[12]||t[4]),e=+(t[13]||t[5])):(i=+t.left.replace(/[^-\d.]/g,""),e=+t.top.replace(/[^-\d.]/g,"")),{x:i,y:e}},t.prototype.stop=function(){if(this.options.useTransition&&this.isInTransition){this.isInTransition=!1,J(this.probeTimer);var t=this.getComputedPosition();this._translate(t.x,t.y),this.options.wheel?this.target=this.items[this._findNearestValidWheel(t.y).index]:this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0}else!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,J(this.animateTimer),this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0)},t.prototype.destroy=function(){this.destroyed=!0,this.trigger("destroy"),this.options.useTransition?J(this.probeTimer):J(this.animateTimer),this._removeDOMEvents(),this._events={}}}function ht(t){t.prototype._initSnap=function(){var t=this;this.currentPage={};var i=this.options.snap;if(i.loop){var e=this.scroller.children;e.length>1?(R(e[e.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(e[1].cloneNode(!0))):i.loop=!1}var s=i.el;"string"===typeof s&&(s=this.scroller.querySelectorAll(s)),this.on("refresh",(function(){if(t.pages=[],t.wrapperWidth&&t.wrapperHeight&&t.scrollerWidth&&t.scrollerHeight){var e=i.stepX||t.wrapperWidth,o=i.stepY||t.wrapperHeight,n=0,r=void 0,a=void 0,h=void 0,l=0,c=void 0,p=0,u=void 0,d=void 0;if(s)for(c=s.length,u=-1;l<c;l++)d=H(s[l]),(0===l||d.left<=H(s[l-1]).left)&&(p=0,u++),t.pages[p]||(t.pages[p]=[]),n=Math.max(-d.left,t.maxScrollX),r=Math.max(-d.top,t.maxScrollY),a=n-Math.round(d.width/2),h=r-Math.round(d.height/2),t.pages[p][u]={x:n,y:r,width:d.width,height:d.height,cx:a,cy:h},n>t.maxScrollX&&p++;else{a=Math.round(e/2),h=Math.round(o/2);while(n>-t.scrollerWidth){t.pages[l]=[],c=0,r=0;while(r>-t.scrollerHeight)t.pages[l][c]={x:Math.max(n,t.maxScrollX),y:Math.max(r,t.maxScrollY),width:e,height:o,cx:n-a,cy:r-h},r-=o,c++;n-=e,l++}}t._checkSnapLoop();var m=i._loopX?1:0,f=i._loopY?1:0;t._goToPage(t.currentPage.pageX||m,t.currentPage.pageY||f,0,void 0,!0);var g=i.threshold;g%1===0?(t.snapThresholdX=g,t.snapThresholdY=g):(t.snapThresholdX=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].width*g),t.snapThresholdY=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].height*g))}})),this.on("scrollEnd",(function(){i.loop&&(i._loopX?(0===t.currentPage.pageX&&t._goToPage(t.pages.length-2,t.currentPage.pageY,0,void 0,!0),t.currentPage.pageX===t.pages.length-1&&t._goToPage(1,t.currentPage.pageY,0,void 0,!0)):(0===t.currentPage.pageY&&t._goToPage(t.currentPage.pageX,t.pages[0].length-2,0,void 0,!0),t.currentPage.pageY===t.pages[0].length-1&&t._goToPage(t.currentPage.pageX,1,0,void 0,!0)))})),!1!==i.listenFlick&&this.on("flick",(function(){var e=i.speed||Math.max(Math.max(Math.min(Math.abs(t.x-t.startX),1e3),Math.min(Math.abs(t.y-t.startY),1e3)),300);t._goToPage(t.currentPage.pageX+t.directionX,t.currentPage.pageY+t.directionY,e)})),this.on("destroy",(function(){if(i.loop){var e=t.scroller.children;e.length>2&&($(t.scroller,e[e.length-1]),$(t.scroller,e[0]))}}))},t.prototype._checkSnapLoop=function(){var t=this.options.snap;t.loop&&this.pages&&this.pages.length&&(this.pages.length>1&&(t._loopX=!0),this.pages[0]&&this.pages[0].length>1&&(t._loopY=!0),t._loopX&&t._loopY&&nt("Loop does not support two direction at the same time."))},t.prototype._nearestSnap=function(t,i){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var e=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(i-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>this.minScrollX?t=this.minScrollX:t<this.maxScrollX&&(t=this.maxScrollX),i>this.minScrollY?i=this.minScrollY:i<this.maxScrollY&&(i=this.maxScrollY);for(var s=this.pages.length;e<s;e++)if(t>=this.pages[e][0].cx){t=this.pages[e][0].x;break}s=this.pages[e].length;for(var o=0;o<s;o++)if(i>=this.pages[0][o].cy){i=this.pages[0][o].y;break}return e===this.currentPage.pageX&&(e+=this.directionX,e<0?e=0:e>=this.pages.length&&(e=this.pages.length-1),t=this.pages[e][0].x),o===this.currentPage.pageY&&(o+=this.directionY,o<0?o=0:o>=this.pages[0].length&&(o=this.pages[0].length-1),i=this.pages[0][o].y),{x:t,y:i,pageX:e,pageY:o}},t.prototype._goToPage=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments[2],s=arguments[3],o=arguments[4],n=this.options.snap;if(n&&this.pages&&this.pages.length&&(s=s||n.easing||j.bounce,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),this.pages[t])){i>=this.pages[t].length?i=this.pages[t].length-1:i<0&&(i=0);var r=this.pages[t][i].x,a=this.pages[t][i].y;e=void 0===e?n.speed||Math.max(Math.max(Math.min(Math.abs(r-this.x),1e3),Math.min(Math.abs(a-this.y),1e3)),300):e,this.currentPage={x:r,y:a,pageX:t,pageY:i},this.scrollTo(r,a,e,s,o)}},t.prototype.goToPage=function(t,i,e,s){var o=this.options.snap;if(o&&this.pages&&this.pages.length){if(o.loop){var n=void 0;o._loopX?(n=this.pages.length-2,t>=n?t=n-1:t<0&&(t=0),t+=1):(n=this.pages[0].length-2,i>=n?i=n-1:i<0&&(i=0),i+=1)}this._goToPage(t,i,e,s)}},t.prototype.next=function(t,i){var e=this.options.snap;if(e){var s=this.currentPage.pageX,o=this.currentPage.pageY;s++,s>=this.pages.length&&this.hasVerticalScroll&&(s=0,o++),this._goToPage(s,o,t,i)}},t.prototype.prev=function(t,i){var e=this.options.snap;if(e){var s=this.currentPage.pageX,o=this.currentPage.pageY;s--,s<0&&this.hasVerticalScroll&&(s=0,o--),this._goToPage(s,o,t,i)}},t.prototype.getCurrentPage=function(){var t=this.options.snap;if(!t)return null;if(t.loop){var i=void 0;return i=t._loopX?g({},this.currentPage,{pageX:this.currentPage.pageX-1}):g({},this.currentPage,{pageY:this.currentPage.pageY-1}),i}return this.currentPage}}function lt(t){t.prototype.wheelTo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.options.wheel){var i=-t*this.itemHeight;this.scrollTo(0,i)}},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){var t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),t.wheelDisabledItemClass||(t.wheelDisabledItemClass="wheel-disabled-item"),void 0===t.selectedIndex&&(t.selectedIndex=0)},t.prototype._findNearestValidWheel=function(t){t=t>0?0:t<this.maxScrollY?this.maxScrollY:t;var i=this.options.wheel,e=Math.abs(Math.round(-t/this.itemHeight)),s=e,o=this.items;while(e>=0){if(-1===o[e].className.indexOf(i.wheelDisabledItemClass))break;e--}if(e<0){e=s;while(e<=o.length-1){if(-1===o[e].className.indexOf(i.wheelDisabledItemClass))break;e++}}return e===o.length&&(e=s),{index:this.wheelItemsAllDisabled?-1:e,y:-e*this.itemHeight}},t.prototype._checkWheelAllDisabled=function(){var t=this.options.wheel,i=this.items;this.wheelItemsAllDisabled=!0;for(var e=0;e<i.length;e++)if(-1===i[e].className.indexOf(t.wheelDisabledItemClass)){this.wheelItemsAllDisabled=!1;break}}}var ct=8;function pt(t){t.prototype._initScrollbar=function(){var t=this,i=this.options.scrollbar,e=i.fade,s=void 0===e||e,o=i.interactive,n=void 0!==o&&o;this.indicators=[];var r=void 0;this.options.scrollX&&(r={el:ut("horizontal"),direction:"horizontal",fade:s,interactive:n},this._insertScrollBar(r.el),this.indicators.push(new dt(this,r))),this.options.scrollY&&(r={el:ut("vertical"),direction:"vertical",fade:s,interactive:n},this._insertScrollBar(r.el),this.indicators.push(new dt(this,r))),this.on("refresh",(function(){for(var i=0;i<t.indicators.length;i++)t.indicators[i].refresh()})),s&&(this.on("scrollEnd",(function(){for(var i=0;i<t.indicators.length;i++)t.indicators[i].fade()})),this.on("scrollCancel",(function(){for(var i=0;i<t.indicators.length;i++)t.indicators[i].fade()})),this.on("scrollStart",(function(){for(var i=0;i<t.indicators.length;i++)t.indicators[i].fade(!0)})),this.on("beforeScrollStart",(function(){for(var i=0;i<t.indicators.length;i++)t.indicators[i].fade(!0,!0)}))),this.on("destroy",(function(){t._removeScrollBars()}))},t.prototype._insertScrollBar=function(t){this.wrapper.appendChild(t)},t.prototype._removeScrollBars=function(){for(var t=0;t<this.indicators.length;t++)this.indicators[t].destroy()}}function ut(t){var i=document.createElement("div"),e=document.createElement("div");return i.style.cssText="position:absolute;z-index:9999;pointerEvents:none",e.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",e.className="bscroll-indicator","horizontal"===t?(i.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",e.style.height="100%",i.className="bscroll-horizontal-scrollbar"):(i.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",e.style.width="100%",i.className="bscroll-vertical-scrollbar"),i.style.cssText+=";overflow:hidden",i.appendChild(e),i}function dt(t,i){this.wrapper=i.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=i.direction,i.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,i.interactive&&this._addDOMEvents()}function mt(t){t.prototype._initPullDown=function(){this.options.probeType=ot},t.prototype._checkPullDown=function(){var t=this.options.pullDownRefresh,i=t.threshold,e=void 0===i?90:i,s=t.stop,o=void 0===s?40:s;return!(this.directionY!==tt||this.y<e)&&(this.pulling||(this.pulling=!0,this.trigger("pullingDown")),this.scrollTo(this.x,o,this.options.bounceTime,j.bounce),this.pulling)},t.prototype.finishPullDown=function(){this.pulling=!1,this.resetPosition(this.options.bounceTime,j.bounce)},t.prototype.openPullDown=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullDownRefresh=t,this._initPullDown()},t.prototype.closePullDown=function(){this.options.pullDownRefresh=!1},t.prototype.autoPullDownRefresh=function(){var t=this.options.pullDownRefresh,i=t.threshold,e=void 0===i?90:i,s=t.stop,o=void 0===s?40:s;this.pulling||(this.pulling=!0,this.scrollTo(this.x,e),this.trigger("pullingDown"),this.scrollTo(this.x,o,this.options.bounceTime,j.bounce))}}function ft(t){t.prototype._initPullUp=function(){this.options.probeType=ot,this.pullupWatching=!1,this._watchPullUp()},t.prototype._watchPullUp=function(){this.pullupWatching||(this.pullupWatching=!0,this.on("scroll",this._checkToEnd))},t.prototype._checkToEnd=function(t){var i=this,e=this.options.pullUpLoad.threshold,s=void 0===e?0:e;this.movingDirectionY===Z&&t.y<=this.maxScrollY+s&&(this.once("scrollEnd",(function(){i.pullupWatching=!1})),this.trigger("pullingUp"),this.off("scroll",this._checkToEnd))},t.prototype.finishPullUp=function(){var t=this;this.pullupWatching?this.once("scrollEnd",(function(){t._watchPullUp()})):this._watchPullUp()},t.prototype.openPullUp=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullUpLoad=t,this._initPullUp()},t.prototype.closePullUp=function(){this.options.pullUpLoad=!1,this.pullupWatching&&(this.pullupWatching=!1,this.off("scroll",this._checkToEnd))}}function gt(t){t.prototype._initMouseWheel=function(){var t=this;this._handleMouseWheelEvent(_),this.on("destroy",(function(){clearTimeout(t.mouseWheelTimer),clearTimeout(t.mouseWheelEndTimer),t._handleMouseWheelEvent(T)})),this.firstWheelOpreation=!0},t.prototype._handleMouseWheelEvent=function(t){t(this.wrapper,"wheel",this),t(this.wrapper,"mousewheel",this),t(this.wrapper,"DOMMouseScroll",this)},t.prototype._onMouseWheel=function(t){var i=this;if(this.enabled){t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.firstWheelOpreation&&this.trigger("scrollStart"),this.firstWheelOpreation=!1;var e=this.options.mouseWheel,s=e.speed,o=void 0===s?20:s,n=e.invert,r=void 0!==n&&n,a=e.easeTime,h=void 0===a?300:a;clearTimeout(this.mouseWheelTimer),this.mouseWheelTimer=setTimeout((function(){i.options.snap||h||i.trigger("scrollEnd",{x:i.x,y:i.y}),i.firstWheelOpreation=!0}),400);var l=void 0,c=void 0;switch(!0){case"deltaX"in t:1===t.deltaMode?(l=-t.deltaX*o,c=-t.deltaY*o):(l=-t.deltaX,c=-t.deltaY);break;case"wheelDeltaX"in t:l=t.wheelDeltaX/120*o,c=t.wheelDeltaY/120*o;break;case"wheelDelta"in t:l=c=t.wheelDelta/120*o;break;case"detail"in t:l=c=-t.detail/3*o;break;default:return}var p=r?-1:1;l*=p,c*=p,this.hasVerticalScroll||(l=c,c=0);var u=void 0,d=void 0;if(this.options.snap)return u=this.currentPage.pageX,d=this.currentPage.pageY,l>0?u--:l<0&&u++,c>0?d--:c<0&&d++,void this._goToPage(u,d);u=this.x+Math.round(this.hasHorizontalScroll?l:0),d=this.y+Math.round(this.hasVerticalScroll?c:0),this.movingDirectionX=this.directionX=l>0?-1:l<0?1:0,this.movingDirectionY=this.directionY=c>0?-1:c<0?1:0,u>this.minScrollX?u=this.minScrollX:u<this.maxScrollX&&(u=this.maxScrollX),d>this.minScrollY?d=this.minScrollY:d<this.maxScrollY&&(d=this.maxScrollY);var m=this.y===d;this.scrollTo(u,d,h,j.swipe),this.trigger("scroll",{x:this.x,y:this.y}),clearTimeout(this.mouseWheelEndTimer),m&&(this.mouseWheelEndTimer=setTimeout((function(){i.trigger("scrollEnd",{x:i.x,y:i.y})}),h))}}}function vt(t){t.prototype._initZoom=function(){var t=this.options.zoom,i=t.start,e=void 0===i?1:i,s=t.min,o=void 0===s?1:s,n=t.max,r=void 0===n?4:n;this.scale=Math.min(Math.max(e,o),r),this.setScale(this.scale),this.scrollerStyle[C.transformOrigin]="0 0"},t.prototype._zoomTo=function(t,i,e,s){this.scaled=!0;var o=t/(s||this.scale);this.setScale(t),this.refresh();var n=Math.round(this.startX-(i-this.relativeX)*(o-1)),r=Math.round(this.startY-(e-this.relativeY)*(o-1));n>this.minScrollX?n=this.minScrollX:n<this.maxScrollX&&(n=this.maxScrollX),r>this.minScrollY?r=this.minScrollY:r<this.maxScrollY&&(r=this.maxScrollY),this.x===n&&this.y===r||this.scrollTo(n,r,this.options.bounceTime),this.scaled=!1},t.prototype.zoomTo=function(t,i,e){var s=M(this.wrapper),o=s.left,n=s.top,r=i+o-this.x,a=e+n-this.y;this._zoomTo(t,r,a)},t.prototype._zoomStart=function(t){var i=t.touches[0],e=t.touches[1],s=Math.abs(i.pageX-e.pageX),o=Math.abs(i.pageY-e.pageY);this.startDistance=y(s,o),this.startScale=this.scale;var n=M(this.wrapper),r=n.left,a=n.top;this.originX=Math.abs(i.pageX+e.pageX)/2+r-this.x,this.originY=Math.abs(i.pageY+e.pageY)/2+a-this.y,this.trigger("zoomStart")},t.prototype._zoom=function(t){if(this.enabled&&!this.destroyed&&O[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var i=t.touches[0],e=t.touches[1],s=Math.abs(i.pageX-e.pageX),o=Math.abs(i.pageY-e.pageY),n=y(s,o),r=n/this.startDistance*this.startScale;this.scaled=!0;var a=this.options.zoom,h=a.min,l=void 0===h?1:h,c=a.max,p=void 0===c?4:c;r<l?r=.5*l*Math.pow(2,r/l):r>p&&(r=2*p*Math.pow(.5,p/r));var u=r/this.startScale,d=this.startX-(this.originX-this.relativeX)*(u-1),m=this.startY-(this.originY-this.relativeY)*(u-1);this.setScale(r),this.scrollTo(d,m,0)}},t.prototype._zoomEnd=function(t){if(this.enabled&&!this.destroyed&&O[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.isInTransition=!1,this.isAnimating=!1,this.initiated=0;var i=this.options.zoom,e=i.min,s=void 0===e?1:e,o=i.max,n=void 0===o?4:o,r=this.scale>n?n:this.scale<s?s:this.scale;this._zoomTo(r,this.originX,this.originY,this.startScale),this.trigger("zoomEnd")}}}dt.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t);break;case"touchmove":case"mousemove":this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this._end(t);break}},dt.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},dt.prototype.fade=function(t,i){var e=this;if(!i||this.visible){var s=t?250:500;t=t?"1":"0",this.wrapperStyle[C.transitionDuration]=s+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout((function(){e.wrapperStyle.opacity=t,e.visible=+t}),0)}},dt.prototype.updatePosition=function(){if("vertical"===this.direction){var t=Math.round(this.sizeRatioY*this.scroller.y);if(t<0){this.transitionTime(500);var i=Math.max(this.indicatorHeight+3*t,ct);this.indicatorStyle.height=i+"px",t=0}else if(t>this.maxPosY){this.transitionTime(500);var e=Math.max(this.indicatorHeight-3*(t-this.maxPosY),ct);this.indicatorStyle.height=e+"px",t=this.maxPosY+this.indicatorHeight-e}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[C.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var s=Math.round(this.sizeRatioX*this.scroller.x);if(s<0){this.transitionTime(500);var o=Math.max(this.indicatorWidth+3*s,ct);this.indicatorStyle.width=o+"px",s=0}else if(s>this.maxPosX){this.transitionTime(500);var n=Math.max(this.indicatorWidth-3*(s-this.maxPosX),ct);this.indicatorStyle.width=n+"px",s=this.maxPosX+this.indicatorWidth-n}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=s,this.scroller.options.useTransform?this.indicatorStyle[C.transform]="translateX("+s+"px)"+this.scroller.translateZ:this.indicatorStyle.left=s+"px"}},dt.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[C.transitionDuration]=t+"ms"},dt.prototype.transitionTimingFunction=function(t){this.indicatorStyle[C.transitionTimingFunction]=t},dt.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},dt.prototype._start=function(t){var i=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=i.pageX,this.lastPointY=i.pageY,this.startTime=f(),this._handleMoveEvents(_),this.scroller.trigger("beforeScrollStart")},dt.prototype._move=function(t){var i=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart"),this.moved=!0;var e=i.pageX-this.lastPointX;this.lastPointX=i.pageX;var s=i.pageY-this.lastPointY;this.lastPointY=i.pageY;var o=this.x+e,n=this.y+s;this._pos(o,n)},dt.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(T);var i=this.scroller.options.snap;if(i){var e=i.speed,s=i.easing,o=void 0===s?j.bounce:s,n=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),r=e||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-n.x),1e3),Math.min(Math.abs(this.scroller.y-n.y),1e3)),300);this.scroller.x===n.x&&this.scroller.y===n.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=n,this.scroller.scrollTo(n.x,n.y,r,o))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},dt.prototype._pos=function(t,i){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),i<0?i=0:i>this.maxPosY&&(i=this.maxPosY),t=Math.round(t/this.sizeRatioX),i=Math.round(i/this.sizeRatioY),this.scroller.scrollTo(t,i),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},dt.prototype._shouldShow=function(){return"vertical"===this.direction&&this.scroller.hasVerticalScroll||"horizontal"===this.direction&&this.scroller.hasHorizontalScroll?(this.wrapper.style.display="",!0):(this.wrapper.style.display="none",!1)},dt.prototype._calculate=function(){if("vertical"===this.direction){var t=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(t*t/(this.scroller.scrollerHeight||t||1)),ct),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=t-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{var i=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(i*i/(this.scroller.scrollerWidth||i||1)),ct),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=i-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},dt.prototype._addDOMEvents=function(){var t=_;this._handleDOMEvents(t)},dt.prototype._removeDOMEvents=function(){var t=T;this._handleDOMEvents(t),this._handleMoveEvents(t)},dt.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},dt.prototype._handleDOMEvents=function(t){this.scroller.options.disableTouch||(t(this.indicator,"touchstart",this),t(window,"touchend",this)),this.scroller.options.disableMouse||(t(this.indicator,"mousedown",this),t(window,"mouseup",this))};var yt=30,wt=10,bt=200,St=2e3;function _t(t){t.prototype._initInfinite=function(){this.options.probeType=3,this.maxScrollY=-St,this.infiniteScroller=new xt(this,this.options.infinity)}}function Tt(t){if(t&&t.classList)return t.classList.contains("tombstone")}function xt(t,i){var e=this;this.options=i,rt("function"===typeof this.options.createTombstone,"Infinite scroll need createTombstone Function to create tombstone"),rt("function"===typeof this.options.fetch,"Infinite scroll need fetch Function to fetch new data."),rt("function"===typeof this.options.render,"Infinite scroll need render Function to render each item."),this.firstAttachedItem=0,this.lastAttachedItem=0,this.anchorScrollTop=0,this.anchorItem={index:0,offset:0},this.tombstoneHeight=0,this.tombstoneWidth=0,this.tombstones=[],this.tombstonesAnimationHandlers=[],this.items=[],this.loadedItems=0,this.requestInProgress=!1,this.hasMore=!0,this.scroller=t,this.wrapperEl=this.scroller.wrapper,this.scrollerEl=this.scroller.scroller,this.scroller.on("resize",(function(){e.onResize()})),this.scroller.on("destroy",(function(){e.destroy()})),this._onResizeHandler=setTimeout((function(){e.onResize(),e.scroller.on("scroll",(function(){e.onScroll()}))}))}function Mt(t,i){this.wrapper="string"===typeof t?document.querySelector(t):t,this.wrapper||nt("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||nt("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(i)}xt.prototype.destroy=function(){var t=this;clearTimeout(this._onResizeHandler),this.tombstonesAnimationHandlers.forEach((function(t){clearTimeout(t)})),this.tombstonesAnimationHandlers=null,this.items.forEach((function(i){i.node&&(t.scrollerEl.removeChild(i.node),i.node=null)})),this.scroller.infiniteScroller=null,this.scroller=null,this.wrapperEl=null,this.scrollerEl=null,this.items=null,this.tombstones=null},xt.prototype.onScroll=function(){var t=-this.scroller.y,i=t-this.anchorScrollTop;this.anchorItem=0===t?{index:0,offset:0}:this._calculateAnchoredItem(this.anchorItem,i),this.anchorScrollTop=t;var e=this._calculateAnchoredItem(this.anchorItem,this.scroller.wrapperHeight),s=this.anchorItem.index,o=e.index;i<0?(s-=yt,o+=wt):(s-=wt,o+=yt),this.fill(s,o),this.maybeRequestContent()},xt.prototype.onResize=function(){var t=this.options.createTombstone();t.style.position="absolute",this.scrollerEl.appendChild(t),t.style.display="",this.tombstoneHeight=t.offsetHeight,this.tombstoneWidth=t.offsetWidth,this.scrollerEl.removeChild(t);for(var i=0;i<this.items.length;i++)this.items[i].height=this.items[i].width=0;this.onScroll()},xt.prototype.fill=function(t,i){this.firstAttachedItem=Math.max(0,t),this.hasMore||(i=Math.min(i,this.items.length)),this.lastAttachedItem=i,this.attachContent()},xt.prototype.maybeRequestContent=function(){var t=this;if(!this.requestInProgress&&this.hasMore){var i=this.lastAttachedItem-this.loadedItems;i<=0||(this.requestInProgress=!0,this.options.fetch(i).then((function(i){if(t.requestInProgress=!1,i)t.addContent(i);else{t.hasMore=!1;var e=t._removeTombstones(),s=0;t.anchorItem.index<=t.items.length?(s=t._fixScrollPosition(),t._setupAnimations({},s),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=e,s=t._fixScrollPosition(),t._setupAnimations({},s),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}})))}},xt.prototype.addContent=function(t){for(var i=0;i<t.length;i++)this.items.length<=this.loadedItems&&this._addItem(),this.items[this.loadedItems++].data=t[i];this.attachContent(),this.maybeRequestContent()},xt.prototype.attachContent=function(){var t=this._collectUnusedNodes(),i=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var e=this._fixScrollPosition();this._setupAnimations(i,e)},xt.prototype.resetMore=function(){this.hasMore=!0},xt.prototype._removeTombstones=function(){for(var t=void 0,i=0,e=this.items.length,s=0;s<e;s++){var o=this.items[s].node,n=this.items[s].data;o&&!Tt(o)||n||(void 0===t&&(t=s),o&&this.scrollerEl.removeChild(o))}return i=e-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),i},xt.prototype._collectUnusedNodes=function(){for(var t=[],i=0;i<this.items.length;i++)if(i!==this.firstAttachedItem){var e=this.items[i].node;e&&(Tt(e)?(this.tombstones.push(e),this.tombstones[this.tombstones.length-1].style.display="none"):t.push(e)),this.items[i].node=null}else i=this.lastAttachedItem-1;return t},xt.prototype._createDOMNodes=function(t){for(var i={},e=this.firstAttachedItem;e<this.lastAttachedItem;e++){while(this.items.length<=e)this._addItem();var s=this.items[e].node,o=this.items[e].data;if(s){if(!Tt(s)||!o)continue;s.style.zIndex=1,i[e]=[s,this.items[e].top-this.anchorScrollTop],this.items[e].node=null}var n=o?this.options.render(o,t.pop()):this._getTombStone();n.style.position="absolute",this.items[e].top=-1,this.scrollerEl.appendChild(n),this.items[e].node=n}return i},xt.prototype._cleanupUnusedNodes=function(t){while(t.length)this.scrollerEl.removeChild(t.pop())},xt.prototype._cacheNodeSize=function(){for(var t=this.firstAttachedItem;t<this.lastAttachedItem;t++){var i=this.items[t];if(i.data&&!i.height){var e=Tt(i.node);i.height=e?this.tombstoneHeight:i.node.offsetHeight,i.width=e?this.tombstoneWidth:i.node.offsetWidth}}},xt.prototype._fixScrollPosition=function(){this.anchorScrollTop=0;for(var t=0;t<this.anchorItem.index;t++)this.anchorScrollTop+=this.items[t].height||this.tombstoneHeight;this.anchorScrollTop+=this.anchorItem.offset;var i=this.anchorScrollTop-this.anchorItem.offset,e=this.anchorItem.index;while(e>this.firstAttachedItem)i-=this.items[e-1].height||this.tombstoneHeight,e--;return i},xt.prototype._setupAnimations=function(t,i){var e=this;for(var s in t){var o=t[s];this.items[s].node.style[C.transform]="translateY("+(this.anchorScrollTop+o[1])+"px) scale("+this.tombstoneWidth/this.items[s].width+", "+this.tombstoneHeight/this.items[s].height+")",this.items[s].node.offsetTop,o[0].offsetTop,this.items[s].node.style[C.transition]=A+"transform "+bt+"ms"}for(var n=this.firstAttachedItem;n<this.lastAttachedItem;n++){var r=t[n];if(r){var a=r[0];a.style[C.transition]=A+"transform "+bt+"ms, opacity "+bt+"ms",a.style[C.transform]="translateY("+i+"px) scale("+this.items[n].width/this.tombstoneWidth+", "+this.items[n].height/this.tombstoneHeight+")",a.style.opacity=0}i!==this.items[n].top&&(r||(this.items[n].node.style[C.transition]=""),this.items[n].node.style[C.transform]="translateY("+i+"px)"),this.items[n].top=i,i+=this.items[n].height||this.tombstoneHeight}this.scroller.maxScrollY=-(i-this.scroller.wrapperHeight+(this.hasMore?St:0));var h=setTimeout((function(){for(var i in t){var s=t[i];s[0].style.display="none",e.tombstones.push(s[0])}}),bt);this.tombstonesAnimationHandlers.push(h)},xt.prototype._getTombStone=function(){var t=this.tombstones.pop();return t?(t.style.display="",t.style.opacity=1,t.style[C.transform]="",t.style[C.transition]="",t):this.options.createTombstone()},xt.prototype._addItem=function(){this.items.push({data:null,node:null,height:0,width:0,top:0})},xt.prototype._calculateAnchoredItem=function(t,i){if(0===i)return t;var e=t.index,s=0;if(i+=t.offset,i<0){while(i<0&&e>0&&this.items[e-1].height)i+=this.items[e-1].height,e--;s=Math.max(-e,Math.ceil(Math.min(i,0)/this.tombstoneHeight))}else{while(i>0&&e<this.items.length&&this.items[e].height&&this.items[e].height<i)i-=this.items[e].height,e++;(e>=this.items.length||!this.items[e].height)&&(s=Math.floor(Math.max(i,0)/this.tombstoneHeight))}return e+=s,i-=s*this.tombstoneHeight,{index:e,offset:i}},V(Mt),at(Mt),c(Mt),ht(Mt),lt(Mt),pt(Mt),mt(Mt),ft(Mt),gt(Mt),vt(Mt),_t(Mt),Mt.Version="1.15.2";var At=Mt,It=e("2f62");function Pt(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);i&&(s=s.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,s)}return e}function kt(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?Pt(Object(e),!0).forEach((function(i){Object(n["a"])(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Pt(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}var Yt=e("bb7f"),Xt={name:"app",data:function(){return{isShowTopLoading:!1,isFirstGetMessage:!0,chatValue:"",emojis:Yt.emojiData,showEmoji:!1,isUserSendLongTimeSystemMessage:!1,isAdminSendLongTimeSystemMessage:!1,isInputPongIng:!1,isSendPong:!1,qiniuObservable:null,inputPongIngString:"对方正在输入...",scroll:null,handshakeKeywordList:[],searchHandshakeTimer:null}},created:function(){this.init()},computed:kt({account:function(){return this.isArtificial?this.artificialAccount:this.robotAccount},viewMessage:function(){for(var t=this.messages,i=0;i<t.length;i++)0==i&&(t[i].isShowDate=!0),i<t.length-1&&(t[i+1].isShowDate=!1,t[i+1].timestamp-120>t[i].timestamp&&(t[i+1].isShowDate=!0));return t},messages:function(){var t=this;return this.$store.getters.messages.map((function(i){return t.handlerMessage(i)}))}},Object(It["b"])(["platform","isArtificial","isShowHeader","isMobile","uid","userAccount","artificialAccount","robotInfo","robotAccount","isLoadMorEnd","userLocal","isLoadMorLoading","userInfo","isSafari","isIOS","uploadToken","isJudgeBigScreen"])),mounted:function(){var t=this;document.title="在线客服",setTimeout((function(){t.scroll=new At(t.$refs.miniImBody,{click:!0,tab:!0,scrollY:!0,scrollbar:!0,bounceTime:400,preventDefaultException:{className:/(^|\s)text(\s|$)/},mouseWheel:!0}),t.scroll.on("touchEnd",(function(i){i.y>30&&t.loadMorData()})),t.addSendButtonTouchEventListener(),t.createLinkQuery(),t.scrollIntoBottom()}),500),document.addEventListener("paste",this.inputPaste,!1)},beforeDestroy:function(){this.$store.dispatch("onToggleWindow",0)},methods:{init:function(){var t=this;this.$store.commit("updateState",{isShowPageLoading:!0}),null!=this.$mimcInstance.user&&this.$mimcInstance.user.isLogin()?(this.handelEvent(),this.$store.dispatch("onCleanRead"),this.$store.dispatch("onToggleWindow",1),this.getMessageRecord(),this.scrollIntoBottom(),setTimeout((function(){return t.$store.commit("updateState",{isShowPageLoading:!1})}),500),this.onServciceLastMessageTimeNotCallBack()):setTimeout((function(){return t.init()}),1e3)},handelEvent:function(){var t=this;this.$mimcInstance.addEventListener("receiveP2PMsg",this.receiveP2PMsg),this.$mimcInstance.addEventListener("disconnect",(function(){console.log("链接断开!"),t.isShowTopLoading=!0})),this.$mimcInstance.addEventListener("statusChange",(function(i,e,s,o){i&&(t.isShowTopLoading=!1),console.log("状态发生变化",i,e,s,o)})),this.$mimcInstance.addEventListener("serverAck",(function(i,e,s,o){console.log("发送消息服务器ack",i,e,s,o),localStorage.setItem("userLastCallBackMessageTime",Date.now()),t.isUserSendLongTimeSystemMessage=!1})),this.onCheckIsloogTimeNotCallBack(),setTimeout((function(){return t.isShowTopLoading=!1}),1e3)},enterShift:function(t){this.isMobile||"Enter"!=t.code&&(this.chatValue=this.chatValue+"\n")},addSendButtonTouchEventListener:function(){var t=this;this.isIOS?document.addEventListener("touchstart",(function(i){"mini-input-send"==i.target.getAttribute("class")&&t.sendTextMessage(),"sendKnowledgeMessage"==i.target.getAttribute("class")&&(console.log("监听发送按钮触摸事件",i.target.getAttribute("data")),t.sendKnowledgeMessage(i.target.getAttribute("data")))}),!1):this.$refs.sendButton.addEventListener("click",this.sendTextMessage,!1)},isShowInfo:function(t){return-1==["end","transfer","cancel","timeout","system"].indexOf(t)},clickPhoto:function(t){if(-1==t.indexOf("http")){var i=new Image;i.src=t;var e=window.open("","_blank");e.document.write(i.outerHTML),e.document.title="图片",e.document.close()}else window.open(t)},loadMorData:function(){var t=this;this.isLoadMorLoading||this.isLoadMorEnd||(this.$store.commit("updateState",{isLoadMorLoading:!0}),setTimeout((function(){t.getMessageRecord(),t.$store.commit("updateState",{isLoadMorLoading:!1})}),1e3))},localAdmin:function(t){var i=localStorage.getItem("admin_"+t);return i?JSON.parse(i):null},localRobot:function(t){var i=localStorage.getItem("robot_"+t);return i?JSON.parse(i):null},clickEmoji:function(t){this.showEmoji=!1,this.chatValue=this.chatValue+t,this.scrollIntoBottom()},sendPhotoMessageEvent:function(t){var i=t.target,e=i.files[0];this.sendPhotoMessage(e)},sendPhotoMessage:function(t){var i=new FileReader;i.readAsDataURL(t);var e,s=this,o=parseInt(1e4*Math.random()*(new Date).getTime())+t.name.substr(t.name.lastIndexOf("."));i.onload=function(){var i=function(){e.percent=0,s.qiniuObservable=null,s.removeMessage(s.userInfo.id,e.key),Object(r["Toast"])({message:"上传失败,请重新上传!"});var t=this.$mimcInstance.createLocalMessage("system",s.account,"您刚刚上传的图片失败了,请重新上传!");s.messages.push(s.handlerMessage(t)),s.scrollIntoBottom()},n=function(t){s.qiniuObservable=null,e.percent=100;var i=s.uploadToken.host+"/"+t;s.$mimcInstance.sendMessage("photo",s.account,i)};e=s.$mimcInstance.createLocalMessage("photo",s.account,this.result),e["percent"]=0,e.isShowCancel=!0,setTimeout((function(){e.isShowCancel=!1}),1e4),s.messages.push(s.handlerMessage(e));var a=Object.assign({},e);a.payload=s.uploadToken.host+"/"+o,s.$previewRefresh(),s.scrollIntoBottom(),s.qiniuObservable=s.$uploadFile({file:t,secret:s.uploadToken.secret,mode:s.uploadToken.mode,percent:function(t){e.percent=Math.ceil(t.total.percent),t.total.size<1&&(s.qiniuObservable.unsubscribe(),s.cancelMessage(e.key),Object(r["Toast"])({message:"上传失败,该图片已损坏!"}))},success:function(t){n(t)},fail:function(){i()}})}},scrollIntoBottom:function(){var t=this;setTimeout((function(){var i=t.$refs.miniImBody.querySelectorAll("li");t.scroll&&t.scroll.scrollToElement(i[i.length-1])}),50)},chatInputFocus:function(){this.scrollIntoBottom(),this.showEmoji=!1},chatInputBlur:function(){window.chatInputInterval=null,window.scroll(0,0)},receiveP2PMsg:function(t){if(console.log(t),"contacts"!=t.biz_type){if("transfer"==t.biz_type){this.$store.commit("updateState",{isArtificial:!0,artificialAccount:t.transfer_account});var i=JSON.parse(t.payload);localStorage.setItem("admin_"+i.id,JSON.stringify(i)),localStorage.setItem("adminLastCallBackMessageTime_"+i.id,Date.now()),this.isAdminSendLongTimeSystemMessage=!1}if(!this.isArtificial||"text"!=t.biz_type&&"photo"!=t.biz_type&&"cancel"!=t.biz_type||(localStorage.setItem("adminLastCallBackMessageTime_"+this.account,Date.now()),this.isAdminSendLongTimeSystemMessage=!1),"cancel"==t.biz_type&&this.removeMessage(t.from_account,t.payload),"end"!=t.biz_type&&"timeout"!=t.biz_type||this.$store.commit("updateState",{isArtificial:!1,artificialAccount:null}),"pong"!=t.biz_type){if("search_knowledge"==t.biz_type)return this.handshakeKeywordList=[],void(""!=t.payload&&(this.handshakeKeywordList=JSON.parse(t.payload)));this.messagesPushMemory(t),this.scrollIntoBottom(),this.$previewRefresh(),window.parent.postMessage({newMessage:1},"*")}else this.inputPongIng()}},inputPongIng:function(){var t=this;this.isInputPongIng||(this.isInputPongIng=!0,setTimeout((function(){t.inputPongIngString="对方正在输入."}),500),setTimeout((function(){t.inputPongIngString="对方正在输入.."}),1500),setTimeout((function(){t.inputPongIngString="对方正在输入...",t.isInputPongIng=!1}),3e3))},enterSendMessage:function(){this.isMobile||(this.sendTextMessage(),this.$refs.textarea.focus())},sendTextMessage:function(){if(0!=this.userInfo.online){var t=this.chatValue.trim();if(""!=t){var i=this.$mimcInstance.sendMessage("text",this.account,t);i.isShowCancel=!0,setTimeout((function(){return i.isShowCancel=!1}),1e4),this.messagesPushMemory(i),this.chatValue="",this.handshakeKeywordList=[]}}else Object(r["Toast"])({message:"您貌似掉线了"})},cancelMessage:function(t){var i=this.$mimcInstance.sendMessage("cancel",this.account,t);this.messagesPushMemory(i),this.removeMessage(this.userInfo.id,t),this.qiniuObservable&&this.qiniuObservable.unsubscribe()},sendKnowledgeMessage:function(t){this.handshakeKeywordList=[];var i=this.$mimcInstance.sendMessage("text",this.account,t);this.messagesPushMemory(i),this.chatValue=""},headRightBtn:function(){var t=this;if(!window.isClickHeadRightBtn){window.isClickHeadRightBtn=!0;var i=this.$mimcInstance;if(this.isArtificial)return r["MessageBox"].confirm("您确定关闭此次会话吗?","温馨提示! ").then((function(){var e=i.sendMessage("end",t.account,"");t.messagesPushMemory(e),t.$store.commit("updateState",{isArtificial:!1,artificialAccount:null})})),void setTimeout((function(){return window.isClickHeadRightBtn=!1}),3e3);var e=i.sendMessage("text",this.account,"人工");this.messagesPushMemory(e),setTimeout((function(){return window.isClickHeadRightBtn=!1}),3e3)}},messagesPushMemory:function(t){if("pong"!=t.biz_type&&"handshake"!=t.biz_type&&"into"!=t.biz_type){var i=JSON.parse(JSON.stringify(this.messages));i.push(this.handlerMessage(t)),this.$store.commit("updateState",{messages:i}),this.scrollIntoBottom()}},handlerMessage:function(t){var i="http://qiniu.cmp520.com/avatar_degault_3.png",e=this.localAdmin(t.from_account),s=this.localRobot(t.from_account);return e&&t.from_account==e.id?(t.nickname=e.nickname,t.avatar=""==e.avatar?i:e.avatar):s&&t.from_account==s.id?(t.nickname=s.nickname,t.avatar=""==s.avatar?i:s.avatar):t.from_account==this.userInfo.id&&(t.nickname=this.userInfo.nickname,-1!=this.userInfo.nickname.indexOf(this.userInfo.id)&&(t.nickname="我"),t.avatar=""==this.userInfo.avatar?i:this.userInfo.avatar),t},getMessageRecord:function(){var t=this,i=0==this.messages.length?parseInt(((new Date).getTime()+" ").substr(0,10)):this.messages[0].timestamp,e=this.messages;this.$store.dispatch("onGetMessages",{timestamp:i,oldMsg:e,callback:function(){return t.scrollIntoBottom()}})},keyUpEvent:function(){var t=this;this.isArtificial&&(this.isSendPong||(this.isSendPong=!0,setTimeout((function(){return t.isSendPong=!1}),100),this.$mimcInstance.sendMessage("pong",this.account,this.chatValue)))},removeMessage:function(t,i){for(var e=[],s=0;s<this.messages.length;s++)this.messages[s].key==i&&this.messages[s].from_account==t||e.push(this.messages[s]);this.$store.commit("updateState",{messages:e})},createLinkQuery:function(){var t=this.isArtificial?0:1,i=0==t?this.artificialAccount:this.robotAccount,e=this.isMobile?1:0,s=this.isShowHeader?1:0,o=this.platform?this.platform:1,n=this.userAccount?"&u="+this.userAccount:"",r=this.uid?"&uid="+this.uid:"",a="?h="+s+"&m="+e+"&p="+o+"&r="+t+"&a="+i+n+r;history.replaceState(null,null,location.origin+"/#"+this.$route.path+a),null!=this.userAccount&&"null"!=this.userAccount&&""!=this.userAccount&&localStorage.setItem("urlQuery",a)},clickCloseWindow:function(){window.parent.postMessage({clickCloseWindow:!0},"*")},onCheckIsloogTimeNotCallBack:function(){var t=this,i=localStorage.getItem("userLastCallBackMessageTime")||Date.now();if(this.isArtificial&&!this.isUserSendLongTimeSystemMessage&&Date.now()-i>=3e5){var e=this.$mimcInstance.createLocalMessage("system",this.account,"您已超过5分钟未回复消息,系统3分钟后将结束对话");this.messages.push(this.handlerMessage(e)),this.isUserSendLongTimeSystemMessage=!0,this.scrollIntoBottom()}setTimeout((function(){return t.onCheckIsloogTimeNotCallBack()}),1e4)},onServciceLastMessageTimeNotCallBack:function(){var t=this;if(this.robotInfo){var i=this.robotInfo.loog_time_wait_text,e=localStorage.getItem("adminLastCallBackMessageTime_"+this.account)||Date.now();if(this.isArtificial&&!this.isAdminSendLongTimeSystemMessage&&""!=i.trim()&&Date.now()-e>=12e4){var s=this.$mimcInstance.createLocalMessage("text",this.account,i);s.from_account=this.robotAccount,this.messages.push(this.handlerMessage(s)),this.isAdminSendLongTimeSystemMessage=!0,this.scrollIntoBottom()}setTimeout((function(){return t.onServciceLastMessageTimeNotCallBack()}),1e4)}},onSearchHandshake:function(){var t=this;this.chatValue&&!this.isArtificial?(this.searchHandshakeTimer&&clearTimeout(this.searchHandshakeTimer),this.searchHandshakeTimer=setTimeout((function(){t.$mimcInstance.sendMessage("search_knowledge",t.robotAccount,t.chatValue),t.searchHandshakeTimer=null}),500)):this.handshakeKeywordList=[]},inputPaste:function(t){if(!this.isMobile){var i=this,e=t.clipboardData,s=window.navigator.userAgent;if(t.clipboardData&&t.clipboardData.items&&!(e.items&&2===e.items.length&&"string"===e.items[0].kind&&"file"===e.items[1].kind&&e.types&&2===e.types.length&&"text/plain"===e.types[0]&&"Files"===e.types[1]&&s.match(/Macintosh/i)&&Number(s.match(/Chrome\/(\d{2})/i)[1])<49))for(var o=0;o<e.items.length;o++){var n=e.items[o];if("file"==n.kind){var r=n.getAsFile();if(0===r.size)return;i.sendPhotoMessage(r)}}}}},watch:{messages:function(){var t=this;setTimeout((function(){t.scroll&&t.scroll.refresh(),t.$previewRefresh()}),50)},isArtificial:function(t){this.createLinkQuery(),localStorage.setItem("isArtificial",t),localStorage.setItem("artificialTime",Date.now()),t||localStorage.removeItem("artificialTime")},artificialAccount:function(){localStorage.setItem("artificialAccount",this.artificialAccount)},userInfo:function(){this.createLinkQuery()},chatValue:function(){this.onSearchHandshake()}}},Et=Xt,Ct=(e("cde7"),e("2877")),Dt=Object(Ct["a"])(Et,s,o,!1,null,null,null);i["default"]=Dt.exports},fdef:function(t,i){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
//# sourceMappingURL=chunk-963a14da.2d59ffcb.js.map
\ No newline at end of file
This diff could not be displayed because it is too large.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9ec58ea8"],{"0c51":function(t,e,o){},"269c":function(t,e,o){t.exports=o.p+"img/fujian1.083cd8b7.png"},4033:function(t,e,o){"use strict";o.r(e);var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"container"},[t.isShowHeader?s("mt-header",{attrs:{fixed:"",title:"工单详细"}},[s("div",{attrs:{slot:"left"},slot:"left"},[s("mt-button",{attrs:{icon:"back"},on:{click:function(e){return t.$router.go(-1)}}})],1),3!=t.workorder.status?s("mt-button",{attrs:{slot:"right"},on:{click:function(e){return t.close()}},slot:"right"},[s("span",[t._v("关闭工单")])]):s("mt-button",{attrs:{slot:"right"},on:{click:function(e){return t.del()}},slot:"right"},[s("span",[t._v("删除")])])],1):t._e(),s("div",{staticClass:"content",class:{"hide-header":!t.isShowHeader}},[s("div",{staticClass:"head"},[s("div",{staticClass:"con"},[s("span",[t._v("标题:")]),s("span",[t._v(t._s(t.workorder.title))])]),s("div",{staticClass:"con"},[s("span",[t._v("内容:")]),s("span",{domProps:{innerHTML:t._s(t.workorder.content)}})]),s("div",{staticClass:"con"},[s("span",[t._v("电话:")]),s("span",[t._v(t._s(t.workorder.phone||"未预留电话号码"))])]),s("div",{staticClass:"con"},[s("span",[t._v("邮箱:")]),s("span",[t._v(t._s(t.workorder.email||"未预留邮箱"))])]),s("div",{staticClass:"con"},[s("span",[t._v("时间:")]),s("span",[t._v(t._s(t.$formatDate(t.workorder.create_at)))])]),s("div",{staticClass:"con"},[s("span",[t._v("类型:")]),s("span",[t._v(t._s(t.typeName||"---"))])]),s("div",{staticClass:"con"},[s("span",[t._v("状态:")]),s("span",[1==t.workorder.status?s("i",{staticStyle:{color:"#8bc34a"}},[t._v("已回复")]):t._e(),3==t.workorder.status?s("i",{staticStyle:{color:"#ccc"}},[t._v("已结束")]):t._e(),0==t.workorder.status?s("i",{staticStyle:{color:"#FF9800"}},[t._v("待处理")]):t._e(),2==t.workorder.status?s("i",{staticStyle:{color:"#FF9800"}},[t._v("待回复")]):t._e()])])]),s("div",{staticClass:"comments"},[t.comments.length<=0?s("div",{staticClass:"no-data"},[t._v("暂无回复内容,请您耐心等待~")]):t._l(t.comments,(function(e,o){return[s("div",{key:o,staticClass:"item"},[s("div",{staticClass:"avatar"},[0==e.aid?s("img",{attrs:{src:t.userInfo.avatar||"http://qiniu.cmp520.com/avatar_degault_3.png",alt:""}}):s("img",{attrs:{src:e.a_avatar||"http://qiniu.cmp520.com/avatar_degault_3.png",alt:""}})]),s("div",{staticClass:"right"},[0==e.aid?s("div",{staticClass:"nickname"},[t._v("我")]):s("div",{staticClass:"nickname"},[t._v(t._s(e.a_nickname))]),s("div",{staticClass:"detail",domProps:{innerHTML:t._s(e.content)}}),s("div",{staticClass:"date"},[t._v(t._s(t.$formatDate(e.create_at)))])])])]})),3==t.workorder.status?s("div",{staticClass:"workorder-close"},[t._v("工单已结束~")]):t._e()],2),""!=t.request.source||t.isShowUploadLoading?s("div",{staticClass:"file-view"},[t.isShowUploadLoading?s("span",[s("img",{attrs:{src:o("cf1c"),alt:""}}),s("i",[t._v("上传中~")])]):s("span",[s("img",{attrs:{src:o("269c"),alt:""}}),s("i",[t._v("你已成功添加附件,重新上传可替换~")])])]):t._e(),3!=t.workorder.status?s("div",{staticClass:"input-form"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.request.content,expression:"request.content"}],attrs:{placeholder:"请输入内容~"},domProps:{value:t.request.content},on:{blur:function(e){return t.inputBlur()},input:function(e){e.target.composing||t.$set(t.request,"content",e.target.value)}}}),s("span",{staticClass:"icon-btn"},[s("input",{attrs:{title:"添加附件",type:"file",onclick:"this.value = null"},on:{change:t.uploadFile}})]),s("span",{staticClass:"sub-btn",on:{click:function(e){return t.reply()}}},[t._v("提交")])]):t._e()])],1)},r=[],n=(o("8e6e"),o("ac6a"),o("456d"),o("bd86")),a=o("2f62"),i=o("76a0"),c=o("bc3a"),l=o.n(c);function u(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,s)}return o}function d(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?u(Object(o),!0).forEach((function(e){Object(n["a"])(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var p={name:"workorder_detail",components:{},data:function(){return{isShowUploadLoading:!1,isSubmit:!1,workorder:{},comments:[],fileType:"",request:{source:"",content:""}}},computed:d({},Object(a["b"])(["isShowHeader","workorders","userInfo","workorderTypes","uploadToken"]),{typeName:function(){var t=this;try{return this.workorderTypes.filter((function(e){return e.id==t.workorder.tid}))[0].title}catch(e){return console.log(e),""}}}),created:function(){var t=this;document.title="工单详细";var e=this.$route.params.id;this.$store.commit("updateState",{isShowPageLoading:!0}),l.a.all([this.getWorkOrder(e),this.getComments(e)]).then(l.a.spread((function(){t.$store.commit("updateState",{isShowPageLoading:!1})})))},methods:{getWorkOrder:function(t){var e=this;return l.a.get("/public/workorder/"+t).then((function(t){e.workorder=t.data.data,setTimeout((function(){return e.$previewRefresh()}),200)})).catch((function(t){console.log(t)}))},getComments:function(t){var e=this;return l.a.get("/public/workorder/comments/"+t).then((function(t){null!=t.data.data&&(e.comments=t.data.data,setTimeout((function(){return e.$previewRefresh()}),200))})).catch((function(t){console.log(t)}))},reply:function(){var t=this,e=this.request.content+this.request.source;if(""!=e.trim()){if(!this.isSubmit){this.isSubmit=!0;var o=this.workorder.id;l.a.post("/public/workorder/reply",{wid:o,content:e}).then((function(e){t.isSubmit=!1,console.log(e),t.getComments(o),t.request={source:"",content:""},setTimeout((function(){var t=document.querySelector(".container").clientHeight,e=document.querySelector(".content").clientHeight;document.querySelector(".container").scrollTop=e-t+20}),500)})).catch((function(e){t.isSubmit=!1,console.log(e),Object(i["Toast"])({message:"提交失败~"})}))}}else Object(i["Toast"])({message:"请输入内容~"})},inputBlur:function(){setTimeout((function(){document.body.scrollTo=0,window.scrollTo(0,0)}),100)},uploadFile:function(t){var e=t.target,o=e.files[0];this.isShowUploadLoading=!0;var s=this;this.$uploadFile({file:o,mode:this.uploadToken.mode,percent:function(){},success:function(t){var e;s.isShowUploadLoading=!1;var o=s.uploadToken.host+"/"+t,r=t.substr(t.lastIndexOf(".")+1);-1!="jpg,jpeg,png,JPG,JPEG,PNG".indexOf(r)?e="<br><img style='max-width:45%' preview='1' src='"+o+"' />":(e="<br><img style='width:20px;height:20px;top:3px; right:3px;position: relative;' preview='1' src='http://qiniu.cmp520.com/fj.png' />",e+="<a target='_blank' style='color: #2e9dfc;' href='"+o+"'>下载附件</a>"),s.request.source=e,Object(i["Toast"])({message:"上传成功~"})},fail:function(t){s.isShowUploadLoading=!1,t.response&&t.response.data&&Object(i["Toast"])({message:t.response.data.message})}})},close:function(){var t=this,e=this.workorder.id;i["MessageBox"].confirm("您确定关闭该工单吗?").then((function(){l.a.put("/public/workorder/close/"+e).then((function(o){console.log(o),Object(i["Toast"])({message:"工单已关闭~"}),t.getWorkOrder(e)})).catch((function(t){Object(i["Toast"])({message:"工单关闭失败~"}),console.log(t)}))}))},del:function(){var t=this,e=this.workorder.id;i["MessageBox"].confirm("您确定删除该工单吗?").then((function(){l.a.delete("/public/workorder/"+e).then((function(e){console.log(e),Object(i["Toast"])({message:"工单已删除~"}),setTimeout((function(){return t.$router.go(-1)}))})).catch((function(t){Object(i["Toast"])({message:"工单关闭失败~"}),console.log(t)}))}))}}},A=p,m=(o("da20"),o("2877")),g=Object(m["a"])(A,s,r,!1,null,"ac0a42f8",null);e["default"]=g.exports},cf1c:function(t,e){t.exports="data:image/gif;base64,R0lGODlhEAAQAKIGAMLY8YSx5HOm4Mjc88/g9Ofw+v///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAGACwAAAAAEAAQAAADMGi6RbUwGjKIXCAA016PgRBElAVlG/RdLOO0X9nK61W39qvqiwz5Ls/rRqrggsdkAgAh+QQFCgAGACwCAAAABwAFAAADD2hqELAmiFBIYY4MAutdCQAh+QQFCgAGACwGAAAABwAFAAADD1hU1kaDOKMYCGAGEeYFCQAh+QQFCgAGACwKAAIABQAHAAADEFhUZjSkKdZqBQG0IELDQAIAIfkEBQoABgAsCgAGAAUABwAAAxBoVlRKgyjmlAIBqCDCzUoCACH5BAUKAAYALAYACgAHAAUAAAMPaGpFtYYMAgJgLogA610JACH5BAUKAAYALAIACgAHAAUAAAMPCAHWFiI4o1ghZZJB5i0JACH5BAUKAAYALAAABgAFAAcAAAMQCAFmIaEp1motpDQySMNFAgA7"},da20:function(t,e,o){"use strict";var s=o("0c51"),r=o.n(s);r.a}}]);
//# sourceMappingURL=chunk-9ec58ea8.59b56ff9.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/assets/fujian1.png","webpack:///./src/views/workorder_detail.vue?05c4","webpack:///src/views/workorder_detail.vue","webpack:///./src/views/workorder_detail.vue?9869","webpack:///./src/views/workorder_detail.vue","webpack:///./src/assets/loading.gif","webpack:///./src/views/workorder_detail.vue?c7ba"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","on","$event","$router","go","workorder","status","close","_v","del","_e","class","isShowHeader","_s","title","domProps","content","phone","email","$formatDate","create_at","typeName","staticStyle","comments","length","_l","item","index","key","aid","userInfo","avatar","a_avatar","a_nickname","request","source","isShowUploadLoading","directives","name","rawName","value","expression","inputBlur","target","composing","$set","uploadFile","reply","staticRenderFns","components","data","isSubmit","fileType","computed","console","log","e","created","document","$store","commit","methods","getWorkOrder","getComments","trim","message","setTimeout","body","scrollTo","window","fileDom","file","files","$uploadFile","mode","uploadToken","percent","success","html","self","fullPath","host","src","substr","lastIndexOf","indexOf","fail","response","wid","id","component"],"mappings":"8HAAAA,EAAOC,QAAU,IAA0B,4B,yCCA3C,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,aAAa,CAAEN,EAAgB,aAAEI,EAAG,YAAY,CAACG,MAAM,CAAC,MAAQ,GAAG,MAAQ,SAAS,CAACH,EAAG,MAAM,CAACG,MAAM,CAAC,KAAO,QAAQC,KAAK,QAAQ,CAACJ,EAAG,YAAY,CAACG,MAAM,CAAC,KAAO,QAAQE,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,QAAQC,IAAI,QAAQ,GAA4B,GAAxBZ,EAAIa,UAAUC,OAAaV,EAAG,YAAY,CAACG,MAAM,CAAC,KAAO,SAASE,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIe,UAAUP,KAAK,SAAS,CAACJ,EAAG,OAAO,CAACJ,EAAIgB,GAAG,YAAYZ,EAAG,YAAY,CAACG,MAAM,CAAC,KAAO,SAASE,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIiB,QAAQT,KAAK,SAAS,CAACJ,EAAG,OAAO,CAACJ,EAAIgB,GAAG,WAAW,GAAGhB,EAAIkB,KAAKd,EAAG,MAAM,CAACE,YAAY,UAAUa,MAAM,CAAC,eAAgBnB,EAAIoB,eAAe,CAAChB,EAAG,MAAM,CA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,KAAMjF,KAAKkF,YAAYD,KAEvBE,QAJR,aAKQC,QALR,SAKA,GAGU,IAAIC,EADJC,EAAK3C,qBAAsB,EAE3B,IAAI4C,EAAWD,EAAKJ,YAAYM,KAAO,IAAMC,EACzC9B,EAAW8B,EAAIC,OAAOD,EAAIE,YAAY,KAAO,IACK,GAAlD,4BAA4BC,QAAQjC,GACtC,EAAZ,6DAEY,EAAZ,qIACY,GAAZ,oEAEU2B,EAAK7C,QAAQC,OAAS2C,EACtB,OAAV,WAAU,CAAV,CACYb,QAAS,WAGbqB,KAtBR,SAsBA,GACUP,EAAK3C,qBAAsB,EACvBoB,EAAE+B,UAAY/B,EAAE+B,SAASrC,MAC3B,OAAZ,WAAY,CAAZ,CACce,QAAST,EAAE+B,SAASrC,KAAKe,cAOnC1D,MAvGJ,WAuGA,WACUiF,EAAM/F,KAAKY,UAAUoF,GACzB,EAAN,qDACQ,EAAR,EACA,kCACA,kBACU,QAAV,OACU,OAAV,WAAU,CAAV,CACY,QAAZ,WAEU,EAAV,mBAEA,mBACU,OAAV,WAAU,CAAV,CACY,QAAZ,YAEU,QAAV,cAIIhF,IA3HJ,WA2HA,WACU+E,EAAM/F,KAAKY,UAAUoF,GACzB,EAAN,qDACQ,EAAR,EACA,+BACA,kBACU,QAAV,OACU,OAAV,WAAU,CAAV,CACY,QAAZ,WAEU,YAAV,WAAY,OAAZ,uBAEA,mBACU,OAAV,WAAU,CAAV,CACY,QAAZ,YAEU,QAAV,gBCrR6X,I,wBCQzXC,EAAY,eACd,EACAnG,EACAyD,GACA,EACA,KACA,WACA,MAIa,aAAA0C,E,4BCnBfrG,EAAOC,QAAU,shB,kCCAjB,yBAA+iB,EAAG","file":"js/chunk-9ec58ea8.59b56ff9.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/fujian1.083cd8b7.png\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[(_vm.isShowHeader)?_c('mt-header',{attrs:{\"fixed\":\"\",\"title\":\"工单详细\"}},[_c('div',{attrs:{\"slot\":\"left\"},slot:\"left\"},[_c('mt-button',{attrs:{\"icon\":\"back\"},on:{\"click\":function($event){return _vm.$router.go(-1)}}})],1),(_vm.workorder.status != 3)?_c('mt-button',{attrs:{\"slot\":\"right\"},on:{\"click\":function($event){return _vm.close()}},slot:\"right\"},[_c('span',[_vm._v(\"关闭工单\")])]):_c('mt-button',{attrs:{\"slot\":\"right\"},on:{\"click\":function($event){return _vm.del()}},slot:\"right\"},[_c('span',[_vm._v(\"删除\")])])],1):_vm._e(),_c('div',{staticClass:\"content\",class:{'hide-header': !_vm.isShowHeader}},[_c('div',{staticClass:\"head\"},[_c('div',{staticClass:\"con\"},[_c('span',[_vm._v(\"标题:\")]),_c('span',[_vm._v(_vm._s(_vm.workorder.title))])]),_c('div',{staticClass:\"con\"},[_c('span',[_vm._v(\"内容:\")]),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.workorder.content)}})]),_c('div',{staticClass:\"con\"},[_c('span',[_vm._v(\"电话:\")]),_c('span',[_vm._v(_vm._s(_vm.workorder.phone || '未预留电话号码'))])]),_c('div',{staticClass:\"con\"},[_c('span',[_vm._v(\"邮箱:\")]),_c('span',[_vm._v(_vm._s(_vm.workorder.email || '未预留邮箱'))])]),_c('div',{staticClass:\"con\"},[_c('span',[_vm._v(\"时间:\")]),_c('span',[_vm._v(_vm._s(_vm.$formatDate(_vm.workorder.create_at)))])]),_c('div',{staticClass:\"con\"},[_c('span',[_vm._v(\"类型:\")]),_c('span',[_vm._v(_vm._s(_vm.typeName || \"---\"))])]),_c('div',{staticClass:\"con\"},[_c('span',[_vm._v(\"状态:\")]),_c('span',[(_vm.workorder.status == 1)?_c('i',{staticStyle:{\"color\":\"#8bc34a\"}},[_vm._v(\"已回复\")]):_vm._e(),(_vm.workorder.status == 3)?_c('i',{staticStyle:{\"color\":\"#ccc\"}},[_vm._v(\"已结束\")]):_vm._e(),(_vm.workorder.status == 0)?_c('i',{staticStyle:{\"color\":\"#FF9800\"}},[_vm._v(\"待处理\")]):_vm._e(),(_vm.workorder.status == 2)?_c('i',{staticStyle:{\"color\":\"#FF9800\"}},[_vm._v(\"待回复\")]):_vm._e()])])]),_c('div',{staticClass:\"comments\"},[(_vm.comments.length <= 0)?_c('div',{staticClass:\"no-data\"},[_vm._v(\"暂无回复内容,请您耐心等待~\")]):_vm._l((_vm.comments),function(item,index){return [_c('div',{key:index,staticClass:\"item\"},[_c('div',{staticClass:\"avatar\"},[(item.aid == 0)?_c('img',{attrs:{\"src\":_vm.userInfo.avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png',\"alt\":\"\"}}):_c('img',{attrs:{\"src\":item.a_avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png',\"alt\":\"\"}})]),_c('div',{staticClass:\"right\"},[(item.aid == 0)?_c('div',{staticClass:\"nickname\"},[_vm._v(\"我\")]):_c('div',{staticClass:\"nickname\"},[_vm._v(_vm._s(item.a_nickname))]),_c('div',{staticClass:\"detail\",domProps:{\"innerHTML\":_vm._s(item.content)}}),_c('div',{staticClass:\"date\"},[_vm._v(_vm._s(_vm.$formatDate(item.create_at)))])])])]}),(_vm.workorder.status == 3)?_c('div',{staticClass:\"workorder-close\"},[_vm._v(\"工单已结束~\")]):_vm._e()],2),(_vm.request.source != '' || _vm.isShowUploadLoading)?_c('div',{staticClass:\"file-view\"},[(_vm.isShowUploadLoading)?_c('span',[_c('img',{attrs:{\"src\":require(\"./../assets/loading.gif\"),\"alt\":\"\"}}),_c('i',[_vm._v(\"上传中~\")])]):_c('span',[_c('img',{attrs:{\"src\":require(\"./../assets/fujian1.png\"),\"alt\":\"\"}}),_c('i',[_vm._v(\"你已成功添加附件,重新上传可替换~\")])])]):_vm._e(),(_vm.workorder.status != 3)?_c('div',{staticClass:\"input-form\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.request.content),expression:\"request.content\"}],attrs:{\"placeholder\":\"请输入内容~\"},domProps:{\"value\":(_vm.request.content)},on:{\"blur\":function($event){return _vm.inputBlur()},\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, \"content\", $event.target.value)}}}),_c('span',{staticClass:\"icon-btn\"},[_c('input',{attrs:{\"title\":\"添加附件\",\"type\":\"file\",\"onclick\":\"this.value = null\"},on:{\"change\":_vm.uploadFile}})]),_c('span',{staticClass:\"sub-btn\",on:{\"click\":function($event){return _vm.reply()}}},[_vm._v(\"提交\")])]):_vm._e()])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"container\">\n <mt-header v-if=\"isShowHeader\" fixed title=\"工单详细\">\n <div slot=\"left\">\n <mt-button @click=\"$router.go(-1)\" icon=\"back\"></mt-button>\n </div>\n <mt-button @click=\"close()\" v-if=\"workorder.status != 3\" slot=\"right\">\n <span>关闭工单</span>\n </mt-button>\n <mt-button @click=\"del()\" v-else slot=\"right\">\n <span>删除</span>\n </mt-button>\n </mt-header>\n <div class=\"content\" :class=\"{'hide-header': !isShowHeader}\">\n <div class=\"head\">\n <div class=\"con\">\n <span>标题:</span>\n <span>{{workorder.title}}</span>\n </div>\n <div class=\"con\">\n <span>内容:</span>\n <span v-html=\"workorder.content\"></span>\n </div>\n <div class=\"con\">\n <span>电话:</span>\n <span>{{workorder.phone || '未预留电话号码'}}</span>\n </div>\n <div class=\"con\">\n <span>邮箱:</span>\n <span>{{workorder.email || '未预留邮箱'}}</span>\n </div>\n <div class=\"con\">\n <span>时间:</span>\n <span>{{$formatDate(workorder.create_at)}}</span>\n </div>\n <div class=\"con\">\n <span>类型:</span>\n <span>{{typeName || \"---\"}}</span>\n </div>\n <div class=\"con\">\n <span>状态:</span>\n <span>\n <i v-if=\"workorder.status == 1\" style=\"color:#8bc34a;\">已回复</i>\n <i v-if=\"workorder.status == 3\" style=\"color:#ccc\">已结束</i>\n <i v-if=\"workorder.status == 0\" style=\"color:#FF9800\">待处理</i>\n <i v-if=\"workorder.status == 2\" style=\"color:#FF9800\">待回复</i>\n </span>\n </div>\n </div>\n <div class=\"comments\">\n <div class=\"no-data\" v-if=\"comments.length <= 0\">暂无回复内容,请您耐心等待~</div>\n <template v-else v-for=\"(item,index) in comments\">\n <div :key=\"index\" class=\"item\">\n <div class=\"avatar\">\n <img\n v-if=\"item.aid == 0\"\n :src=\"userInfo.avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png'\"\n alt\n />\n <img v-else :src=\"item.a_avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png'\" alt />\n </div>\n <div class=\"right\">\n <div class=\"nickname\" v-if=\"item.aid == 0\">我</div>\n <div class=\"nickname\" v-else>{{item.a_nickname}}</div>\n <div class=\"detail\" v-html=\"item.content\"></div>\n <div class=\"date\">{{$formatDate(item.create_at)}}</div>\n </div>\n </div>\n </template>\n <div class=\"workorder-close\" v-if=\"workorder.status == 3\">工单已结束~</div>\n </div>\n <div class=\"file-view\" v-if=\"request.source != '' || isShowUploadLoading\">\n <span v-if=\"isShowUploadLoading\">\n <img src=\"./../assets/loading.gif\" alt />\n <i>上传中~</i>\n </span>\n <span v-else>\n <img src=\"./../assets/fujian1.png\" alt />\n <i>你已成功添加附件,重新上传可替换~</i>\n </span>\n </div>\n <div class=\"input-form\" v-if=\"workorder.status != 3\">\n <textarea v-model=\"request.content\" @blur=\"inputBlur()\" placeholder=\"请输入内容~\"></textarea>\n <span class=\"icon-btn\">\n <input title=\"添加附件\" type=\"file\" @change=\"uploadFile\" onclick=\"this.value = null\" />\n </span>\n <span class=\"sub-btn\" @click=\"reply()\">提交</span>\n </div>\n </div>\n </div>\n</template>\n<script>\nimport { mapGetters } from \"vuex\";\nimport { Toast, MessageBox } from \"mint-ui\";\nimport axios from \"axios\";\nexport default {\n name: \"workorder_detail\",\n components: {},\n data() {\n return {\n isShowUploadLoading: false,\n isSubmit: false,\n workorder: {},\n comments: [],\n fileType: \"\",\n request: {\n source: \"\",\n content: \"\"\n }\n };\n },\n computed: {\n ...mapGetters([\n \"isShowHeader\",\n \"workorders\",\n \"userInfo\",\n \"workorderTypes\",\n \"uploadToken\"\n ]),\n typeName(){\n try{\n return this.workorderTypes.filter((i)=>i.id == this.workorder.tid)[0].title\n }catch(e){\n console.log(e)\n return \"\"\n }\n }\n },\n created() {\n document.title = \"工单详细\";\n const id = this.$route.params.id;\n this.$store.commit(\"updateState\", { isShowPageLoading: true });\n axios.all([this.getWorkOrder(id), this.getComments(id)]).then(\n axios.spread(() => {\n this.$store.commit(\"updateState\", { isShowPageLoading: false });\n })\n );\n },\n methods: {\n getWorkOrder(id) {\n return axios\n .get(\"/public/workorder/\" + id)\n .then(response => {\n this.workorder = response.data.data;\n setTimeout(()=>this.$previewRefresh(), 200)\n })\n .catch(error => {\n console.log(error);\n });\n },\n getComments(id) {\n return axios\n .get(\"/public/workorder/comments/\" + id)\n .then(response => {\n if (response.data.data == null) return;\n this.comments = response.data.data;\n setTimeout(()=>this.$previewRefresh(), 200)\n })\n .catch(error => {\n console.log(error);\n });\n },\n reply() {\n const content = this.request.content + this.request.source;\n if (content.trim() == \"\") {\n Toast({\n message: \"请输入内容~\"\n });\n return;\n }\n if (this.isSubmit) return;\n this.isSubmit = true;\n const wid = this.workorder.id;\n axios\n .post(\"/public/workorder/reply\", { wid, content })\n .then(response => {\n this.isSubmit = false\n console.log(response);\n this.getComments(wid);\n this.request = {\n source: \"\",\n content: \"\"\n };\n setTimeout(()=>{\n var sBoxHeight = document.querySelector(\".container\").clientHeight\n var sHeight = document.querySelector(\".content\").clientHeight\n document.querySelector(\".container\").scrollTop = sHeight - sBoxHeight + 20\n }, 500)\n })\n .catch(error => {\n this.isSubmit = false\n console.log(error);\n Toast({\n message: \"提交失败~\"\n });\n });\n },\n inputBlur() {\n setTimeout(() => {\n document.body.scrollTo = 0;\n window.scrollTo(0, 0);\n }, 100);\n },\n uploadFile(e) {\n var fileDom = e.target;\n var file = fileDom.files[0];\n this.isShowUploadLoading = true;\n const self = this;\n this.$uploadFile({\n file,\n mode: this.uploadToken.mode,\n // 七牛才会执行\n percent() {},\n success(src) {\n\n self.isShowUploadLoading = false;\n var html\n var fullPath = self.uploadToken.host + \"/\" + src;\n var fileType = src.substr(src.lastIndexOf(\".\") + 1);\n if (\"jpg,jpeg,png,JPG,JPEG,PNG\".indexOf(fileType) != -1) {\n html = \"<br><img style='max-width:45%' preview='1' src='\" + fullPath + \"' />\"\n }else{\n html = \"<br><img style='width:20px;height:20px;top:3px; right:3px;position: relative;' preview='1' src='http://qiniu.cmp520.com/fj.png' />\"\n html += \"<a target='_blank' style='color: #2e9dfc;' href='\"+fullPath+\"'>下载附件</a>\"\n }\n self.request.source = html\n Toast({\n message: \"上传成功~\"\n });\n },\n fail(e) {\n self.isShowUploadLoading = false;\n if (e.response && e.response.data) {\n Toast({\n message: e.response.data.message\n });\n return;\n }\n }\n });\n },\n close() {\n var wid = this.workorder.id;\n MessageBox.confirm(\"您确定关闭该工单吗?\").then(() => {\n axios\n .put(\"/public/workorder/close/\" + wid)\n .then(response => {\n console.log(response);\n Toast({\n message: \"工单已关闭~\"\n });\n this.getWorkOrder(wid);\n })\n .catch(error => {\n Toast({\n message: \"工单关闭失败~\"\n });\n console.log(error);\n });\n });\n },\n del() {\n var wid = this.workorder.id;\n MessageBox.confirm(\"您确定删除该工单吗?\").then(() => {\n axios\n .delete(\"/public/workorder/\" + wid)\n .then(response => {\n console.log(response);\n Toast({\n message: \"工单已删除~\"\n });\n setTimeout(() => this.$router.go(-1));\n })\n .catch(error => {\n Toast({\n message: \"工单关闭失败~\"\n });\n console.log(error);\n });\n });\n }\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n.container {\n height: 100vh;\n overflow: hidden;\n overflow-y: auto;\n}\n\n.content {\n padding-top: 50px;\n padding-bottom: 90px;\n\n .no-data {\n color: #666;\n font-size: 14px;\n }\n\n .workorder-close {\n text-align: center;\n color: #666;\n font-size: 14px;\n padding: 10px;\n }\n\n &.hide-header {\n padding-top: 0;\n }\n\n .head {\n margin: 0 10px;\n padding: 10px 0;\n border-bottom: 1px solid rgba(158, 158, 158, 0.13);\n\n .con {\n font-size: 15px;\n color: #333;\n display: flex;\n margin-bottom: 8px;\n\n span {\n flex-flow: 1;\n }\n\n span:first-child {\n flex-flow: 0;\n flex-shrink: 0;\n width: 45px;\n }\n\n i {\n font-style: normal;\n }\n }\n }\n\n .comments {\n padding: 10px;\n\n .item {\n display: flex;\n\n .avatar {\n padding-top: 10px;\n\n img {\n width: 30px;\n height: 30px;\n border-radius: 100px;\n display: block;\n }\n\n border-bottom: 1px solid rgba(158, 158, 158, 0.13);\n }\n\n .right {\n padding: 10px 5px;\n flex-grow: 1;\n border-bottom: 1px solid rgba(158, 158, 158, 0.13);\n\n .nickname {\n font-size: 15px;\n color: #333;\n }\n\n .detail {\n font-size: 15px;\n color: #333;\n margin-top: 5px;\n }\n\n .date {\n color: #999;\n font-size: 14px;\n margin-top: 5px;\n }\n }\n\n &:last-child {\n .right, .avatar {\n border-bottom: 0;\n }\n }\n }\n }\n\n .file-view {\n position: fixed;\n bottom: 80px;\n left: 0;\n right: 0;\n padding: 5px 10px;\n margin: 0 auto;\n font-size: 13px;\n color: #8bc34a;\n\n span {\n display: flex;\n align-content: center;\n align-items: center;\n\n img {\n width: 20px;\n height: 20px;\n }\n\n i {\n font-style: normal;\n margin-left: 5px;\n }\n }\n }\n\n .input-form {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n margin: 0 auto;\n width: 100%;\n height: 80px;\n background-color: #fff;\n border-top: 1px solid rgba(158, 158, 158, 0.13);\n display: flex;\n justify-content: space-between;\n padding: 0 10px;\n box-sizing: border-box;\n align-content: center;\n align-items: center;\n\n textarea {\n height: 45px;\n flex-grow: 1;\n border-radius: 0;\n border: 0;\n color: #333;\n font-size: 14px;\n resize: none;\n }\n\n .icon-btn {\n background: url('./../assets/upload.png') center center no-repeat;\n background-size: 30px;\n width: 55px;\n height: 55px;\n overflow: hidden;\n\n input {\n display: block;\n width: 100%;\n height: 100%;\n font-size: 100px;\n opacity: 0;\n }\n }\n\n .sub-btn {\n display: block;\n width: 55px;\n height: 30px;\n color: #fff;\n line-height: 30px;\n text-align: center;\n border-radius: 3px;\n border: none;\n font-size: 14px;\n background: linear-gradient(to right, #26a2ff, #736cde);\n flex-shrink: 0;\n\n &:active {\n opacity: 0.8;\n }\n }\n }\n}\n</style>\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder_detail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder_detail.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./workorder_detail.vue?vue&type=template&id=ac0a42f8&scoped=true&\"\nimport script from \"./workorder_detail.vue?vue&type=script&lang=js&\"\nexport * from \"./workorder_detail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./workorder_detail.vue?vue&type=style&index=0&id=ac0a42f8&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"ac0a42f8\",\n null\n \n)\n\nexport default component.exports","module.exports = \"data:image/gif;base64,R0lGODlhEAAQAKIGAMLY8YSx5HOm4Mjc88/g9Ofw+v///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAGACwAAAAAEAAQAAADMGi6RbUwGjKIXCAA016PgRBElAVlG/RdLOO0X9nK61W39qvqiwz5Ls/rRqrggsdkAgAh+QQFCgAGACwCAAAABwAFAAADD2hqELAmiFBIYY4MAutdCQAh+QQFCgAGACwGAAAABwAFAAADD1hU1kaDOKMYCGAGEeYFCQAh+QQFCgAGACwKAAIABQAHAAADEFhUZjSkKdZqBQG0IELDQAIAIfkEBQoABgAsCgAGAAUABwAAAxBoVlRKgyjmlAIBqCDCzUoCACH5BAUKAAYALAYACgAHAAUAAAMPaGpFtYYMAgJgLogA610JACH5BAUKAAYALAIACgAHAAUAAAMPCAHWFiI4o1ghZZJB5i0JACH5BAUKAAYALAAABgAFAAcAAAMQCAFmIaEp1motpDQySMNFAgA7\"","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder_detail.vue?vue&type=style&index=0&id=ac0a42f8&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder_detail.vue?vue&type=style&index=0&id=ac0a42f8&lang=stylus&scoped=true&\""],"sourceRoot":""}
\ No newline at end of file
......@@ -31,6 +31,11 @@ func routers(prefix string) *beego.Namespace {
beego.NSRouter("/read", &controllers.PublicController{}, "get:Read"),
beego.NSRouter("/secret", &controllers.PublicController{}, "get:UploadSecret"),
beego.NSRouter("/activity", &controllers.PublicController{}, "get:LastActivity"),
// compatible
beego.NSRouter("/activity/?:id", &controllers.PublicController{}, "get:LastActivity"),
beego.NSRouter("/clean_read/?:id", &controllers.PublicController{}, "get:CleanRead"),
beego.NSRouter("/company", &controllers.PublicController{}, "get:GetCompanyInfo"),
beego.NSRouter("/robot_info/:id", &controllers.PublicController{}, "get:RobotInfo"),
beego.NSRouter("/clean_read", &controllers.PublicController{}, "get:CleanRead"),
......
......@@ -14,7 +14,7 @@ import (
func appTask() {
// Task scheduling (will be executed once every 5 minute)
checkOnLineTk := toolbox.NewTask("checkOnLine", "0 */1 * * * *", func() error {
checkOnLineTk := toolbox.NewTask("checkOnLine", "0 */5 * * * *", func() error {
// timers
userOffLineUnixTimer := time.Now().Unix() - (60 * 10) // User's last activity time T out online status rule
......
......@@ -29,7 +29,7 @@ export default {
this.upLastActivity()
// 获取会话表
this.getContacts()
setInterval(()=>this.getContacts(), 2000)
// Mimc 初始化
this.initMimc()
......
......@@ -24,14 +24,14 @@
</div>
</el-badge>
</el-menu-item>
<el-menu-item index="/workorder">
<!-- <el-menu-item index="/workorder">
<el-badge :hidden="$store.getters.readCount == 0" :value="$store.getters.readCount" :max="99" style="width: 100%;">
<div>
<i class="el-icon-tickets"></i>
<span slot="title">工单管理</span>
</div>
</el-badge>
</el-menu-item>
</el-menu-item> -->
<el-menu-item index="/knowledge">
<i class="el-icon-reading"></i>
<span slot="title">知识库</span>
......@@ -58,12 +58,12 @@
</el-menu-item>
</el-menu>
<div class="fix-bottom">
<!-- <div class="fix-bottom">
<a title="去给作者Star" target="_blank" href="https://github.com/chenxianqi/kefu_server.git">
<svg class="github-logo" height="23" viewBox="0 0 16 16" version="1.1" width="23" aria-hidden="true"><path fill="#fff" fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg>
<span> Github</span>
</a>
</div>
</div> -->
</el-aside>
</template>
<script>
......
......@@ -34,7 +34,7 @@ Helps.install = function (Vue, options) {
}
// 上传文件
Vue.prototype.$uploadFile = function ({ mode, file, percent, success, fail }) {
Vue.prototype.$uploadFile = function ({ mode,secret, file, percent, success, fail }) {
var qiniuObservable = null;
const fileName = parseInt(Math.random() * 10000 * new Date().getTime()) + file.name.substr(file.name.lastIndexOf("."));
// 系统内置
......@@ -62,7 +62,7 @@ Helps.install = function (Vue, options) {
const observable = qiniu.upload(
data.dist,
fileName,
self.uploadToken.secret,
secret,
{},
{
mimeType: null
......@@ -78,7 +78,7 @@ Helps.install = function (Vue, options) {
formData.append("fileType", "image");
formData.append("fileName", "file");
formData.append("key", fileName);
formData.append("token", self.uploadToken.secret);
formData.append("token", secret);
formData.append("file", file);
axios
.post("https://upload.qiniup.com", formData)
......
......@@ -12,7 +12,7 @@ export default {
messages: [], // 消息列表
isLoadMorEnd: false, // 是否已经到末尾
userLocal: "", // 用户地理位置
AmapAPPKey: "", // 高德地图web appkey
AmapAPPKey: "73ef1dc5c5ea086e7330b95aede42953", // 高德地图web appkey
isLoadMorLoading: false, // 是否在加装更多消息loading
userInfo: {}, // 用户信息
companyInfo: null, // 公司信息
......
......@@ -193,14 +193,14 @@
<span class="expression-btn" @click="showEmoji = !showEmoji">
<img src="../assets/expression.png" alt />
</span>
<span
<!-- <span
class="workorder-btn"
:class="{'show-header': !isShowHeader && isMobile}"
@click="$router.push('/workorder')"
>
<img src="../assets/workorder.png" />
<i>工单</i>
</span>
</span> -->
<span
v-show="isMobile && !isShowHeader"
@click="headRightBtn"
......@@ -291,6 +291,7 @@ export default {
"userInfo",
"isSafari",
"isIOS",
"uploadToken",
"isJudgeBigScreen"
])
},
......@@ -547,10 +548,10 @@ export default {
cacheMsg.payload = self.uploadToken.host + "/" + fileName;
self.$previewRefresh();
self.scrollIntoBottom();
// 上传
self.qiniuObservable = self.$uploadFile({
file,
secret: self.uploadToken.secret,
mode: self.uploadToken.mode,
// 七牛才会执行
percent(res) {
......@@ -592,6 +593,7 @@ export default {
// 接收消息
receiveP2PMsg(message) {
console.log(message);
if(message.biz_type == "contacts") return
// 是否是转接客服消息
if (message.biz_type == "transfer") {
this.$store.commit("updateState", {
......
......@@ -208,6 +208,7 @@ export default {
const self = this;
this.$uploadFile({
file,
secret: self.uploadToken.secret,
mode: this.uploadToken.mode,
// 七牛才会执行
percent() {},
......
......@@ -26,30 +26,31 @@ func MessageInto(message models.Message) {
// content内容转base64
message.Payload = base64.StdEncoding.EncodeToString([]byte(message.Payload))
// UserRepository instance
userRepository := services.GetUserRepositoryInstance()
user := userRepository.GetUser(message.ToAccount)
// 接收者是客服
admin := services.GetAdminRepositoryInstance().GetAdmin(message.ToAccount)
// 接收者是用户
if user != nil {
// 接收者是客服
if admin != nil {
// 默认已读消息
message.Read = 0
user := userRepository.GetUser(message.ToAccount)
if user != nil && (user.Online == 0 || user.IsWindow == 0) {
if admin.Online == 0 || admin.CurrentConUser != message.FromAccount {
message.Read = 1
}
// 处理是否已回复
services.GetStatisticalRepositoryInstance().CheckIsReplyAndSetReply(user.ID, message.FromAccount, user.Platform)
} else {
// 接收者是客服
admin := services.GetAdminRepositoryInstance().GetAdmin(message.ToAccount)
if admin != nil && admin.CurrentConUser != message.FromAccount {
// UserRepository instance
userRepository := services.GetUserRepositoryInstance()
user := userRepository.GetUser(message.ToAccount)
if user != nil {
message.Read = 0
if user.IsWindow == 0 {
message.Read = 1
}
// 处理是否已回复
services.GetStatisticalRepositoryInstance().CheckIsReplyAndSetReply(user.ID, message.FromAccount, user.Platform)
}
}
......@@ -97,9 +98,8 @@ func MessageInto(message models.Message) {
})
}
if user != nil {
PushNewContacts(message.FromAccount)
} else {
// 接收者是客服就推送
if admin != nil {
PushNewContacts(message.ToAccount)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment