Authored by htoooth

fix

... ... @@ -15,6 +15,7 @@
{"name":"tao.huang","message":"签到成功 {\"result\":\"签到成功\",\"msg\":\"如因工作原因迟到或早退请提交相应流程,签到(签退)时间:2018-11-30 17:00:15\"}","createdAt":"2018-11-30 17:00:28","_id":"a9seczSVGvcVKKz3"}
{"name":"tao.huang","message":"签到成功 {\"result\":\"签到成功\",\"msg\":\"如因工作原因迟到或早退请提交相应流程,签到(签退)时间:2018-11-30 16:41:55\"}","createdAt":"2018-11-30 16:42:07","_id":"bVhX5ufMGgcQr8j1"}
{"name":"tao.huang","message":"用户名,密码或设备id 错误,请改正","createdAt":"2018-11-30 17:00:20","_id":"efnBVkMFts1AVDCG"}
{"name":"jam.wang","message":"签到成功 {\"result\":\"签到成功\",\"msg\":\"如因工作原因迟到或早退请提交相应流程,签到(签退)时间:2018-11-30 17:24:54\"}","createdAt":"2018-11-30 17:25:07","_id":"fWSX0oPr2hlEV81Y"}
{"name":"tao.huang","message":"用户名,密码或设备id 错误,请改正","createdAt":"2018-11-30 16:59:40","_id":"jbFO2up4HgWeceWg"}
{"name":"tao.huang","message":"签出成功 {\"result\":\"签出成功\",\"msg\":\"如因工作原因迟到或早退请提交相应流程,签到(签退)时间:2018-11-30 16:42:27\"}","createdAt":"2018-11-30 16:42:40","_id":"m6ElrOjciJHbJ5GP"}
{"name":"jam.wang","message":"用户名,密码或设备id 错误,请改正","createdAt":"2018-11-30 17:09:15","_id":"rqXh9UgVVUS6a7PH"}
... ... @@ -23,4 +24,5 @@
{"name":"tao.huang","message":"用户名,密码或设备id 错误,请改正","createdAt":"2018-11-30 17:02:16","_id":"uZhrqBfR7egIv4S4"}
{"name":"tao.huang","message":"用户名,密码或设备id 错误,请改正","createdAt":"2018-11-30 17:02:13","_id":"w4k8LrrZo2qnvevh"}
{"name":"tao.huang","message":"签到成功 {\"result\":\"签到成功\",\"msg\":\"如因工作原因迟到或早退请提交相应流程,签到(签退)时间:2018-11-30 17:00:27\"}","createdAt":"2018-11-30 17:00:39","_id":"yGurlS9KYm1eqweS"}
{"name":"jam.wang","message":"签到成功 {\"result\":\"签到成功\",\"msg\":\"如因工作原因迟到或早退请提交相应流程,签到(签退)时间:2018-11-30 17:24:54\"}","createdAt":"2018-11-30 17:25:07","_id":"fWSX0oPr2hlEV81Y"}
{"name":"tao.huang","message":"签到成功 {\"result\":\"签到成功\",\"msg\":\"如因工作原因迟到或早退请提交相应流程,签到(签退)时间:2018-11-30 17:37:29\"}","createdAt":"2018-11-30 17:37:41","_id":"tOkyg7uLXanaAbOO"}
{"name":"jam.wang","message":"签到成功 {\"result\":\"签到成功\",\"msg\":\"如因工作原因迟到或早退请提交相应流程,签到(签退)时间:2018-11-30 17:37:32\"}","createdAt":"2018-11-30 17:37:45","_id":"JkMQreEU38FpQCcf"}
... ...
webpackJsonp([0],{42:function(t,e,n){"use strict";function i(t){a||n(44)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(43),o=n(46),a=!1,c=n(14),s=i,u=c(r.a,o.a,!1,s,"data-v-14e4fede",null);u.options.__file="src\\views\\layout.vue",e.default=u.exports},43:function(t,e,n){"use strict";var i=n(45);e.a={data:function(){var t=this;this.$createElement;return{columns:[{title:"Name",key:"name"},{title:"Udid",key:"udid"},{title:"自动上午签到",render:function(e,n){return e("div",null,[e("i-switch",{attrs:{value:1===n.row.autoCheckin},on:{"on-change":function(e){return t.troggleAutoAm(e,n.row)}}},[e("span",{slot:"open"},["开"]),e("span",{slot:"close"},["关"])])])}},{title:"自动下午签到",render:function(e,n){return e("div",null,[e("i-switch",{attrs:{value:1===n.row.autoCheckout},on:{"on-change":function(e){return t.troggleAutoPm(e,n.row)}}},[e("span",{slot:"open"},["开"]),e("span",{slot:"close"},["关"])])])}},{title:"手动签到",render:function(e,n){return e("div",null,[e("i-button",{attrs:{type:"primary"},style:"margin-right: 10px;",on:{click:function(){return t.clickAm(n.row)}}},["上午"]),e("i-button",{attrs:{type:"primary"},on:{click:function(){return t.clickPm(n.row)}}},["下午"])])}},{title:"操作",render:function(e,n){return e("div",null,[e("i-button",{attrs:{type:"primary"},style:"margin-right: 10px;",on:{click:function(){return t.clickEdit(n.row)}}},["编辑"]),e("i-button",{attrs:{type:"warning"},on:{click:function(){return t.clickDelete(n.row)}}},["删除"])])}}],list:[],modal:!1,modal1:!1,formItem:{name:"",password:"",udid:"",device:""},editId:""}},created:function(){this.userService=new i.a,this.getList()},methods:{troggleAutoAm:function(t,e){var n=this;this.userService.edit(e._id,{autoCheckin:t?1:0}).then(function(){n.getList()}).catch(function(){n.getList()})},troggleAutoPm:function(t,e){var n=this;this.userService.edit(e._id,{autoCheckout:t?1:0}).then(function(){n.getList()}).catch(function(){n.getList()})},clickAm:function(t){var e=this;this.userService.clickAm(t.name).then(function(t){e.getList(),e.$Message.info(JSON.stringify(t.data))}).catch(function(){e.getList()})},clickPm:function(t){var e=this;this.userService.clickPm(t.name).then(function(t){e.getList(),e.$Message.info(JSON.stringify(t.data))}).catch(function(){e.getList()})},clickDelete:function(t){var e=this;this.userService.remove(t._id).then(function(){e.getList()}).catch(function(){e.getList()})},clickCreate:function(){this.modal=!0},clickEdit:function(t){this.modal1=!0,this.formItem.name=t.name,this.formItem.udid=t.udid,this.editId=t._id},ok1:function(){var t=this;this.userService.edit(this.editId,{name:this.formItem.name,udid:this.formItem.udid}).then(function(e){t.reset(),t.getList()}).catch(function(){t.reset(),t.getList()})},cancel1:function(){this.modal1=!1,this.reset()},getList:function(){var t=this;this.userService.list().then(function(e){t.list=e.data})},ok:function(){var t=this;this.userService.create(this.formItem).then(function(){t.modal=!1,t.reset(),t.getList()}).catch(function(){t.reset(),t.getList()})},reset:function(){this.formItem.name="",this.formItem.password="",this.formItem.udid="",this.editId=""},cancel:function(){this.modal=!1,this.reset()}}}},44:function(t,e){},45:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=n(4),o=(n.n(r),function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}()),a=r.create({baseURL:"/api/v1/yoho/"}),c=function(){function t(){i(this,t),this.request=a}return o(t,[{key:"list",value:function(){return this.request.get("").then(function(t){return t.data})}},{key:"show",value:function(t){return this.request.get(t).then(function(t){return t.data})}},{key:"edit",value:function(t,e){return this.request.post(t,e).then(function(t){return t.data})}},{key:"create",value:function(t){return this.request.post("",t).then(function(t){return t.data})}},{key:"remove",value:function(t){return this.request.delete(t).then(function(t){return t.data})}},{key:"clickAm",value:function(t){return this.request.get(t+"/checkin").then(function(t){return t.data})}},{key:"clickPm",value:function(t){return this.request.get(t+"/checkout").then(function(t){return t.data})}}]),t}();e.a=c},46:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"layout"},[n("Layout",[n("Header",[n("Menu",{attrs:{mode:"horizontal",theme:"dark","active-name":"1"}},[n("div",{staticClass:"layout-logo"})])],1),t._v(" "),n("Content",{style:{padding:"0 50px"}},[n("Breadcrumb",{style:{margin:"20px 0"}},[n("BreadcrumbItem",[t._v("Home")]),t._v(" "),n("BreadcrumbItem",[t._v("List")])],1),t._v(" "),n("Card",[n("div",{staticStyle:{"min-height":"200px"}},[n("div",{staticStyle:{"margin-bottom":"10px"}},[n("Button",{on:{click:t.clickCreate}},[t._v("新建用户")])],1),t._v(" "),n("Table",{attrs:{columns:t.columns,data:t.list}}),t._v(" "),n("Alert",{attrs:{type:"success"}},[t._v("/api/v1/yoho/:name/checkin")])],1)])],1),t._v(" "),n("Footer",{staticClass:"layout-footer-center"},[t._v("2011-2018 © YOHO")]),t._v(" "),n("Modal",{attrs:{title:"新建用户"},on:{"on-ok":t.ok,"on-cancel":t.cancel},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[n("Form",{attrs:{model:t.formItem,"label-width":60}},[n("FormItem",{attrs:{label:"用户名"}},[n("Input",{model:{value:t.formItem.name,callback:function(e){t.$set(t.formItem,"name",e)},expression:"formItem.name"}})],1),t._v(" "),n("FormItem",{attrs:{label:"密码"}},[n("Input",{model:{value:t.formItem.password,callback:function(e){t.$set(t.formItem,"password",e)},expression:"formItem.password"}})],1),t._v(" "),n("FormItem",{attrs:{label:"设备ID"}},[n("Input",{model:{value:t.formItem.udid,callback:function(e){t.$set(t.formItem,"udid",e)},expression:"formItem.udid"}})],1),t._v(" "),n("FormItem",{attrs:{label:"设备类型"}},[n("Select",{model:{value:t.formItem.device,callback:function(e){t.$set(t.formItem,"device",e)},expression:"formItem.device"}},[n("Option",{attrs:{value:"android"}},[t._v("android")]),t._v(" "),n("Option",{attrs:{value:"iPhone"}},[t._v("iPhone")])],1)],1)],1)],1),t._v(" "),n("Modal",{attrs:{title:"编缉用户"},on:{"on-ok":t.ok1,"on-cancel":t.cancel1},model:{value:t.modal1,callback:function(e){t.modal1=e},expression:"modal1"}},[n("Form",{attrs:{model:t.formItem,"label-width":60}},[n("FormItem",{attrs:{label:"用户名"}},[n("Input",{model:{value:t.formItem.name,callback:function(e){t.$set(t.formItem,"name",e)},expression:"formItem.name"}})],1),t._v(" "),n("FormItem",{attrs:{label:"设备ID"}},[n("Input",{model:{value:t.formItem.udid,callback:function(e){t.$set(t.formItem,"udid",e)},expression:"formItem.udid"}})],1)],1)],1)],1)],1)},r=[];i._withStripped=!0;var o={render:i,staticRenderFns:r};e.a=o}});
\ No newline at end of file
... ...
webpackJsonp([0],{42:function(t,e,n){"use strict";function i(t){a||n(44)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(43),o=n(46),a=!1,c=n(14),s=i,u=c(r.a,o.a,!1,s,"data-v-14e4fede",null);u.options.__file="src\\views\\layout.vue",e.default=u.exports},43:function(t,e,n){"use strict";var i=n(45);e.a={data:function(){var t=this;this.$createElement;return{columns:[{title:"Name",key:"name"},{title:"Udid",key:"udid"},{title:"自动上午签到",render:function(e,n){return e("div",null,[e("i-switch",{attrs:{value:1===n.row.autoCheckin},on:{"on-change":function(e){return t.troggleAutoAm(e,n.row)}}},[e("span",{slot:"open"},["开"]),e("span",{slot:"close"},["关"])])])}},{title:"自动下午签到",render:function(e,n){return e("div",null,[e("i-switch",{attrs:{value:1===n.row.autoCheckout},on:{"on-change":function(e){return t.troggleAutoPm(e,n.row)}}},[e("span",{slot:"open"},["开"]),e("span",{slot:"close"},["关"])])])}},{title:"手动签到",render:function(e,n){return e("div",null,[e("i-button",{attrs:{type:"primary"},style:"margin-right: 10px;",on:{click:function(){return t.clickAm(n.row)}}},["上午"]),e("i-button",{attrs:{type:"primary"},on:{click:function(){return t.clickPm(n.row)}}},["下午"])])}},{title:"操作",render:function(e,n){return e("div",null,[e("i-button",{attrs:{type:"primary"},style:"margin-right: 10px;",on:{click:function(){return t.clickEdit(n.row)}}},["编辑"]),e("i-button",{attrs:{type:"warning"},on:{click:function(){return t.clickDelete(n.row)}}},["删除"])])}}],list:[],modal:!1,modal1:!1,formItem:{name:"",password:"",udid:""},editId:""}},created:function(){this.userService=new i.a,this.getList()},methods:{troggleAutoAm:function(t,e){var n=this;this.userService.edit(e._id,{autoCheckin:t?1:0}).then(function(){n.getList()}).catch(function(){n.getList()})},troggleAutoPm:function(t,e){var n=this;this.userService.edit(e._id,{autoCheckout:t?1:0}).then(function(){n.getList()}).catch(function(){n.getList()})},clickAm:function(t){var e=this;this.userService.clickAm(t.name).then(function(t){e.getList(),e.$Message.info(JSON.stringify(t.data))}).catch(function(){e.getList()})},clickPm:function(t){var e=this;this.userService.clickPm(t.name).then(function(t){e.getList(),e.$Message.info(JSON.stringify(t.data))}).catch(function(){e.getList()})},clickDelete:function(t){var e=this;this.userService.remove(t._id).then(function(){e.getList()}).catch(function(){e.getList()})},clickCreate:function(){this.modal=!0},clickEdit:function(t){this.modal1=!0,this.formItem.name=t.name,this.formItem.udid=t.udid,this.editId=t._id},ok1:function(){var t=this;this.userService.edit(this.editId,{name:this.formItem.name,udid:this.formItem.udid}).then(function(e){t.reset(),t.getList()}).catch(function(){t.reset(),t.getList()})},cancel1:function(){this.modal1=!1,this.reset()},getList:function(){var t=this;this.userService.list().then(function(e){t.list=e.data})},ok:function(){var t=this;this.userService.create(this.formItem).then(function(){t.modal=!1,t.reset(),t.getList()}).catch(function(){t.reset(),t.getList()})},reset:function(){this.formItem.name="",this.formItem.password="",this.formItem.udid="",this.editId=""},cancel:function(){this.modal=!1,this.reset()}}}},44:function(t,e){},45:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=n(4),o=(n.n(r),function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}()),a=r.create({baseURL:"/api/v1/yoho/"}),c=function(){function t(){i(this,t),this.request=a}return o(t,[{key:"list",value:function(){return this.request.get("").then(function(t){return t.data})}},{key:"show",value:function(t){return this.request.get(t).then(function(t){return t.data})}},{key:"edit",value:function(t,e){return this.request.post(t,e).then(function(t){return t.data})}},{key:"create",value:function(t){return this.request.post("",t).then(function(t){return t.data})}},{key:"remove",value:function(t){return this.request.delete(t).then(function(t){return t.data})}},{key:"clickAm",value:function(t){return this.request.get(t+"/checkin").then(function(t){return t.data})}},{key:"clickPm",value:function(t){return this.request.get(t+"/checkout").then(function(t){return t.data})}}]),t}();e.a=c},46:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"layout"},[n("Layout",[n("Header",[n("Menu",{attrs:{mode:"horizontal",theme:"dark","active-name":"1"}},[n("div",{staticClass:"layout-logo"})])],1),t._v(" "),n("Content",{style:{padding:"0 50px"}},[n("Breadcrumb",{style:{margin:"20px 0"}},[n("BreadcrumbItem",[t._v("Home")]),t._v(" "),n("BreadcrumbItem",[t._v("List")])],1),t._v(" "),n("Card",[n("div",{staticStyle:{"min-height":"200px"}},[n("div",{staticStyle:{"margin-bottom":"10px"}},[n("Button",{on:{click:t.clickCreate}},[t._v("新建用户")])],1),t._v(" "),n("Table",{attrs:{columns:t.columns,data:t.list}}),t._v(" "),n("Alert",{attrs:{type:"success"}},[t._v("/api/v1/yoho/:name/checkin")])],1)])],1),t._v(" "),n("Footer",{staticClass:"layout-footer-center"},[t._v("2011-2018 © YOHO")]),t._v(" "),n("Modal",{attrs:{title:"新建用户"},on:{"on-ok":t.ok,"on-cancel":t.cancel},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[n("Form",{attrs:{model:t.formItem,"label-width":60}},[n("FormItem",{attrs:{label:"用户名"}},[n("Input",{model:{value:t.formItem.name,callback:function(e){t.$set(t.formItem,"name",e)},expression:"formItem.name"}})],1),t._v(" "),n("FormItem",{attrs:{label:"密码"}},[n("Input",{model:{value:t.formItem.password,callback:function(e){t.$set(t.formItem,"password",e)},expression:"formItem.password"}})],1),t._v(" "),n("FormItem",{attrs:{label:"设备ID"}},[n("Input",{model:{value:t.formItem.udid,callback:function(e){t.$set(t.formItem,"udid",e)},expression:"formItem.udid"}})],1)],1)],1),t._v(" "),n("Modal",{attrs:{title:"编缉用户"},on:{"on-ok":t.ok1,"on-cancel":t.cancel1},model:{value:t.modal1,callback:function(e){t.modal1=e},expression:"modal1"}},[n("Form",{attrs:{model:t.formItem,"label-width":60}},[n("FormItem",{attrs:{label:"用户名"}},[n("Input",{model:{value:t.formItem.name,callback:function(e){t.$set(t.formItem,"name",e)},expression:"formItem.name"}})],1),t._v(" "),n("FormItem",{attrs:{label:"设备ID"}},[n("Input",{model:{value:t.formItem.udid,callback:function(e){t.$set(t.formItem,"udid",e)},expression:"formItem.udid"}})],1)],1)],1)],1)],1)},r=[];i._withStripped=!0;var o={render:i,staticRenderFns:r};e.a=o}});
\ No newline at end of file
webpackJsonp([0],{
/***/ 42:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_0_1_list_vue__ = __webpack_require__(43);
/* empty harmony namespace reexport */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_71089d5c_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_0_1_list_vue__ = __webpack_require__(45);
var disposed = false
function injectStyle (ssrContext) {
if (disposed) return
__webpack_require__(44)
}
var normalizeComponent = __webpack_require__(14)
/* script */
/* template */
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-71089d5c"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_0_1_list_vue__["a" /* default */],
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_71089d5c_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_0_1_list_vue__["a" /* default */],
__vue_template_functional__,
__vue_styles__,
__vue_scopeId__,
__vue_module_identifier__
)
Component.options.__file = "src\\views\\list.vue"
/* hot reload */
if (false) {(function () {
var hotAPI = require("vue-hot-reload-api")
hotAPI.install(require("vue"), false)
if (!hotAPI.compatible) return
module.hot.accept()
if (!module.hot.data) {
hotAPI.createRecord("data-v-71089d5c", Component.options)
} else {
hotAPI.reload("data-v-71089d5c", Component.options)
}
module.hot.dispose(function (data) {
disposed = true
})
})()}
/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
/***/ }),
/***/ 43:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["a"] = ({
methods: {
handleStart: function handleStart() {
this.$Modal.info({
title: 'Bravo',
content: 'Now, enjoy the convenience of iView.'
});
}
}
});
/***/ }),
/***/ 44:
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ 45:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{ staticClass: "index" },
[
_c(
"Row",
{ attrs: { type: "flex", justify: "center", align: "middle" } },
[
_c("Col", { attrs: { span: "24" } }, [
_c("h1", [
_c("img", {
attrs: {
src:
"https://raw.githubusercontent.com/iview/iview/master/assets/logo.png"
}
})
]),
_vm._v(" "),
_c(
"h2",
[
_c("p", [_vm._v("Welcome to your iView app!")]),
_vm._v(" "),
_c(
"Button",
{ attrs: { type: "ghost" }, on: { click: _vm.handleStart } },
[_vm._v("Start iView")]
)
],
1
)
])
],
1
)
],
1
)
}
var staticRenderFns = []
render._withStripped = true
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ __webpack_exports__["a"] = (esExports);
if (false) {
module.hot.accept()
if (module.hot.data) {
require("vue-hot-reload-api") .rerender("data-v-71089d5c", esExports)
}
}
/***/ })
});
//# sourceMappingURL=0.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/list.vue","webpack:///src/views/list.vue","webpack:///./src/views/list.vue?8bfb","webpack:///./src/views/list.vue?2ed4"],"names":[],"mappings":";;;;;;;;;AAAA;AAAA;AACA;AACA;AACA,wBAA8Q;AAC9Q;AACA;AACA;AACA;AACA;AACA;AACuK;AACvK;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACEA;;4CAGA;;uBAEA;yBAEA;AAHA;AAKA;AAPA;AADA,G;;;;;;;AChDA,yC;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,uBAAuB;AAC5B;AACA;AACA;AACA,SAAS,SAAS,mDAAmD,EAAE;AACvE;AACA,qBAAqB,SAAS,aAAa,EAAE;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS,gBAAgB,OAAO,yBAAyB,EAAE;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,C","file":"0.chunk.js","sourcesContent":["var disposed = false\nfunction injectStyle (ssrContext) {\n if (disposed) return\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-71089d5c\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!autoprefixer-loader!less-loader!../../node_modules/vue-loader/lib/selector?type=styles&index=0!../../node_modules/iview-loader/index.js??ref--0-1!./list.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!../../node_modules/iview-loader/index.js??ref--0-1!./list.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!../../node_modules/iview-loader/index.js??ref--0-1!./list.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-71089d5c\\\",\\\"hasScoped\\\":true,\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!../../node_modules/iview-loader/index.js??ref--0-1!./list.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-71089d5c\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\nComponent.options.__file = \"src\\\\views\\\\list.vue\"\n\n/* hot reload */\nif (module.hot) {(function () {\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), false)\n if (!hotAPI.compatible) return\n module.hot.accept()\n if (!module.hot.data) {\n hotAPI.createRecord(\"data-v-71089d5c\", Component.options)\n } else {\n hotAPI.reload(\"data-v-71089d5c\", Component.options)\n }\n module.hot.dispose(function (data) {\n disposed = true\n })\n})()}\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/list.vue\n// module id = 42\n// module chunks = 0","<style scoped>\n .index {\n width: 100%;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n text-align: center;\n }\n\n .index h1 {\n height: 150px;\n }\n\n .index h1 img {\n height: 100%;\n }\n\n .index h2 {\n color: #666;\n margin-bottom: 200px;\n }\n\n .index h2 p {\n margin: 0 0 50px;\n }\n\n .index .ivu-row-flex {\n height: 100%;\n }\n</style>\n<template>\n <div class=\"index\">\n <Row type=\"flex\" justify=\"center\" align=\"middle\">\n <Col span=\"24\">\n <h1>\n <img src=\"https://raw.githubusercontent.com/iview/iview/master/assets/logo.png\">\n </h1>\n <h2>\n <p>Welcome to your iView app!</p>\n <Button type=\"ghost\" @click=\"handleStart\">Start iView</Button>\n </h2>\n </Col>\n </Row>\n </div>\n</template>\n<script>\n export default {\n methods: {\n handleStart() {\n this.$Modal.info({\n title: 'Bravo',\n content: 'Now, enjoy the convenience of iView.'\n });\n }\n }\n };\n</script>\n\n\n// WEBPACK FOOTER //\n// src/views/list.vue","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/extract-text-webpack-plugin/dist/loader.js?{\"omit\":1,\"remove\":true}!./node_modules/vue-style-loader!./node_modules/css-loader!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-71089d5c\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/autoprefixer-loader!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./node_modules/iview-loader??ref--0-1!./src/views/list.vue\n// module id = 44\n// module chunks = 0","var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { staticClass: \"index\" },\n [\n _c(\n \"Row\",\n { attrs: { type: \"flex\", justify: \"center\", align: \"middle\" } },\n [\n _c(\"Col\", { attrs: { span: \"24\" } }, [\n _c(\"h1\", [\n _c(\"img\", {\n attrs: {\n src:\n \"https://raw.githubusercontent.com/iview/iview/master/assets/logo.png\"\n }\n })\n ]),\n _vm._v(\" \"),\n _c(\n \"h2\",\n [\n _c(\"p\", [_vm._v(\"Welcome to your iView app!\")]),\n _vm._v(\" \"),\n _c(\n \"Button\",\n { attrs: { type: \"ghost\" }, on: { click: _vm.handleStart } },\n [_vm._v(\"Start iView\")]\n )\n ],\n 1\n )\n ])\n ],\n 1\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\nif (module.hot) {\n module.hot.accept()\n if (module.hot.data) {\n require(\"vue-hot-reload-api\") .rerender(\"data-v-71089d5c\", esExports)\n }\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-71089d5c\",\"hasScoped\":true,\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./node_modules/iview-loader??ref--0-1!./src/views/list.vue\n// module id = 45\n// module chunks = 0"],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([0],{42:function(t,e,n){"use strict";function i(t){a||n(44)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(43),o=n(46),a=!1,c=n(14),s=i,u=c(r.a,o.a,!1,s,"data-v-14e4fede",null);u.options.__file="src\\views\\layout.vue",e.default=u.exports},43:function(t,e,n){"use strict";var i=n(45);e.a={data:function(){var t=this;this.$createElement;return{columns:[{title:"Name",key:"name"},{title:"Udid",key:"udid"},{title:"自动上午签到",render:function(e,n){return e("div",null,[e("i-switch",{attrs:{value:1===n.row.autoCheckin},on:{"on-change":function(e){return t.troggleAutoAm(e,n.row)}}},[e("span",{slot:"open"},["开"]),e("span",{slot:"close"},["关"])])])}},{title:"自动下午签到",render:function(e,n){return e("div",null,[e("i-switch",{attrs:{value:1===n.row.autoCheckout},on:{"on-change":function(e){return t.troggleAutoPm(e,n.row)}}},[e("span",{slot:"open"},["开"]),e("span",{slot:"close"},["关"])])])}},{title:"手动签到",render:function(e,n){return e("div",null,[e("i-button",{attrs:{type:"primary"},style:"margin-right: 10px;",on:{click:function(){return t.clickAm(n.row)}}},["上午"]),e("i-button",{attrs:{type:"primary"},on:{click:function(){return t.clickPm(n.row)}}},["下午"])])}},{title:"操作",render:function(e,n){return e("div",null,[e("i-button",{attrs:{type:"primary"},style:"margin-right: 10px;",on:{click:function(){return t.clickEdit(n.row)}}},["编辑"]),e("i-button",{attrs:{type:"warning"},on:{click:function(){return t.clickDelete(n.row)}}},["删除"])])}}],list:[],modal:!1,modal1:!1,formItem:{name:"",password:"",udid:""},editId:""}},created:function(){this.userService=new i.a,this.getList()},methods:{troggleAutoAm:function(t,e){var n=this;this.userService.edit(e._id,{autoCheckin:t?1:0}).then(function(){n.getList()}).catch(function(){n.getList()})},troggleAutoPm:function(t,e){var n=this;this.userService.edit(e._id,{autoCheckout:t?1:0}).then(function(){n.getList()}).catch(function(){n.getList()})},clickAm:function(t){var e=this;this.userService.clickAm(t.name).then(function(t){e.getList(),e.$Message.info(JSON.stringify(t.data))}).catch(function(){e.getList()})},clickPm:function(t){var e=this;this.userService.clickPm(t.name).then(function(t){e.getList(),e.$Message.info(JSON.stringify(t.data))}).catch(function(){e.getList()})},clickDelete:function(t){var e=this;this.userService.remove(t._id).then(function(){e.getList()}).catch(function(){e.getList()})},clickCreate:function(){this.modal=!0},clickEdit:function(t){this.modal1=!0,this.formItem.name=t.name,this.formItem.udid=t.udid,this.editId=t._id},ok1:function(){var t=this;this.userService.edit(this.editId,{name:this.formItem.name,udid:this.formItem.udid}).then(function(e){t.reset(),t.getList()}).catch(function(){t.reset(),t.getList()})},cancel1:function(){this.modal1=!1,this.reset()},getList:function(){var t=this;this.userService.list().then(function(e){t.list=e.data})},ok:function(){var t=this;this.userService.create(this.formItem).then(function(){t.modal=!1,t.reset(),t.getList()}).catch(function(){t.reset(),t.getList()})},reset:function(){this.formItem.name="",this.formItem.password="",this.formItem.udid="",this.editId=""},cancel:function(){this.modal=!1,this.reset()}}}},44:function(t,e){},45:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=n(4),o=(n.n(r),function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}()),a=r.create({baseURL:"/api/v1/yoho/"}),c=function(){function t(){i(this,t),this.request=a}return o(t,[{key:"list",value:function(){return this.request.get("").then(function(t){return t.data})}},{key:"show",value:function(t){return this.request.get(t).then(function(t){return t.data})}},{key:"edit",value:function(t,e){return this.request.post(t,e).then(function(t){return t.data})}},{key:"create",value:function(t){return this.request.post("",t).then(function(t){return t.data})}},{key:"remove",value:function(t){return this.request.delete(t).then(function(t){return t.data})}},{key:"clickAm",value:function(t){return this.request.get(t+"/checkin").then(function(t){return t.data})}},{key:"clickPm",value:function(t){return this.request.get(t+"/checkout").then(function(t){return t.data})}}]),t}();e.a=c},46:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"layout"},[n("Layout",[n("Header",[n("Menu",{attrs:{mode:"horizontal",theme:"dark","active-name":"1"}},[n("div",{staticClass:"layout-logo"})])],1),t._v(" "),n("Content",{style:{padding:"0 50px"}},[n("Breadcrumb",{style:{margin:"20px 0"}},[n("BreadcrumbItem",[t._v("Home")]),t._v(" "),n("BreadcrumbItem",[t._v("List")])],1),t._v(" "),n("Card",[n("div",{staticStyle:{"min-height":"200px"}},[n("div",{staticStyle:{"margin-bottom":"10px"}},[n("Button",{on:{click:t.clickCreate}},[t._v("新建用户")])],1),t._v(" "),n("Table",{attrs:{columns:t.columns,data:t.list}}),t._v(" "),n("Alert",{attrs:{type:"success"}},[t._v("/api/v1/yoho/:name/checkin")])],1)])],1),t._v(" "),n("Footer",{staticClass:"layout-footer-center"},[t._v("2011-2018 © htoooth")]),t._v(" "),n("Modal",{attrs:{title:"新建用户"},on:{"on-ok":t.ok,"on-cancel":t.cancel},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[n("Form",{attrs:{model:t.formItem,"label-width":60}},[n("FormItem",{attrs:{label:"用户名"}},[n("Input",{model:{value:t.formItem.name,callback:function(e){t.$set(t.formItem,"name",e)},expression:"formItem.name"}})],1),t._v(" "),n("FormItem",{attrs:{label:"密码"}},[n("Input",{model:{value:t.formItem.password,callback:function(e){t.$set(t.formItem,"password",e)},expression:"formItem.password"}})],1),t._v(" "),n("FormItem",{attrs:{label:"设备ID"}},[n("Input",{model:{value:t.formItem.udid,callback:function(e){t.$set(t.formItem,"udid",e)},expression:"formItem.udid"}})],1)],1)],1),t._v(" "),n("Modal",{attrs:{title:"编缉用户"},on:{"on-ok":t.ok1,"on-cancel":t.cancel1},model:{value:t.modal1,callback:function(e){t.modal1=e},expression:"modal1"}},[n("Form",{attrs:{model:t.formItem,"label-width":60}},[n("FormItem",{attrs:{label:"用户名"}},[n("Input",{model:{value:t.formItem.name,callback:function(e){t.$set(t.formItem,"name",e)},expression:"formItem.name"}})],1),t._v(" "),n("FormItem",{attrs:{label:"设备ID"}},[n("Input",{model:{value:t.formItem.udid,callback:function(e){t.$set(t.formItem,"udid",e)},expression:"formItem.udid"}})],1)],1)],1)],1)],1)},r=[];i._withStripped=!0;var o={render:i,staticRenderFns:r};e.a=o}});
\ No newline at end of file
This diff could not be displayed because it is too large.
{"version":3,"sources":[],"names":[],"mappings":"","file":"main.css","sourceRoot":""}
\ No newline at end of file
This diff could not be displayed because it is too large.
webpackJsonp([1],{13:function(t,e,n){"use strict";e.a={data:function(){return{}},mounted:function(){},beforeDestroy:function(){},methods:{}}},14:function(t,e){t.exports=function(t,e,n,r,o,a){var i,u=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(i=t,u=t.default);var c="function"==typeof u?u.options:u;e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId=o);var d;if(a?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=d):r&&(d=r),d){var f=c.functional,l=f?c.render:c.beforeCreate;f?(c._injectStyles=d,c.render=function(t,e){return d.call(e),l(t,e)}):c.beforeCreate=l?[].concat(l,d):[d]}return{esModule:i,exports:u,options:c}}},15:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=n(6),a=n.n(o),i=n(7),u=n(18),s=n(36),c=n(38),d=n(40);n.n(d);r.default.use(i.a),r.default.use(a.a);var f={mode:"history",routes:u.a},l=new i.a(f);l.beforeEach(function(t,e,n){a.a.LoadingBar.start(),s.a.title(t.meta.title),n()}),l.afterEach(function(){a.a.LoadingBar.finish(),window.scrollTo(0,0)}),new r.default({el:"#app",router:l,render:function(t){return t(c.a)}})},18:function(t,e,n){"use strict";var r=[{path:"/",meta:{title:""},component:function(t){return n.e(0).then(function(){var e=[n(42)];t.apply(null,e)}.bind(this)).catch(n.oe)}}];e.a=r},36:function(t,e,n){"use strict";var r=n(4),o=n.n(r),a=n(37),i={};i.title=function(t){t=t?t+" - Home":"Slowpoke 系统",window.document.title=t};var u="development"===a.a?"http://127.0.0.1:8888":"production"===a.a?"https://www.url.com":"https://debug.url.com";i.ajax=o.a.create({baseURL:u,timeout:3e4}),e.a=i},37:function(t,e,n){"use strict";e.a="production"},38:function(t,e,n){"use strict";var r=n(13),o=n(39),a=n(14),i=a(r.a,o.a,!1,null,null,null);i.options.__file="src\\app.vue",e.a=i.exports},39:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("router-view")],1)},o=[];r._withStripped=!0;var a={render:r,staticRenderFns:o};e.a=a},40:function(t,e){}},[15]);
\ No newline at end of file
webpackJsonp([1],{
/***/ 13:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
//
//
//
//
//
/* harmony default export */ __webpack_exports__["a"] = ({
data: function data() {
return {};
},
mounted: function mounted() {},
beforeDestroy: function beforeDestroy() {},
methods: {}
});
/***/ }),
/***/ 14:
/***/ (function(module, exports) {
/* globals __VUE_SSR_CONTEXT__ */
// IMPORTANT: Do NOT use ES2015 features in this file.
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.
module.exports = function normalizeComponent (
rawScriptExports,
compiledTemplate,
functionalTemplate,
injectStyles,
scopeId,
moduleIdentifier /* server only */
) {
var esModule
var scriptExports = rawScriptExports = rawScriptExports || {}
// ES6 modules interop
var type = typeof rawScriptExports.default
if (type === 'object' || type === 'function') {
esModule = rawScriptExports
scriptExports = rawScriptExports.default
}
// Vue.extend constructor export interop
var options = typeof scriptExports === 'function'
? scriptExports.options
: scriptExports
// render functions
if (compiledTemplate) {
options.render = compiledTemplate.render
options.staticRenderFns = compiledTemplate.staticRenderFns
options._compiled = true
}
// functional template
if (functionalTemplate) {
options.functional = true
}
// scopedId
if (scopeId) {
options._scopeId = scopeId
}
var hook
if (moduleIdentifier) { // server build
hook = function (context) {
// 2.3 injection
context =
context || // cached call
(this.$vnode && this.$vnode.ssrContext) || // stateful
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
// 2.2 with runInNewContext: true
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = __VUE_SSR_CONTEXT__
}
// inject component styles
if (injectStyles) {
injectStyles.call(this, context)
}
// register component module identifier for async chunk inferrence
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier)
}
}
// used by ssr in case component is cached and beforeCreate
// never gets called
options._ssrRegister = hook
} else if (injectStyles) {
hook = injectStyles
}
if (hook) {
var functional = options.functional
var existing = functional
? options.render
: options.beforeCreate
if (!functional) {
// inject component registration as beforeCreate hook
options.beforeCreate = existing
? [].concat(existing, hook)
: [hook]
} else {
// for template-only hot-reload because in that case the render fn doesn't
// go through the normalizer
options._injectStyles = hook
// register for functioal component in vue file
options.render = function renderWithStyleInjection (h, context) {
hook.call(context)
return existing(h, context)
}
}
}
return {
esModule: esModule,
exports: scriptExports,
options: options
}
}
/***/ }),
/***/ 15:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_iview__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_iview___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_iview__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue_router__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__router__ = __webpack_require__(18);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__libs_util__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_vue__ = __webpack_require__(38);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_iview_dist_styles_iview_css__ = __webpack_require__(40);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_iview_dist_styles_iview_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_iview_dist_styles_iview_css__);
__WEBPACK_IMPORTED_MODULE_0_vue__["default"].use(__WEBPACK_IMPORTED_MODULE_2_vue_router__["a" /* default */]);
__WEBPACK_IMPORTED_MODULE_0_vue__["default"].use(__WEBPACK_IMPORTED_MODULE_1_iview___default.a);
// 路由配置
var RouterConfig = {
mode: 'history',
routes: __WEBPACK_IMPORTED_MODULE_3__router__["a" /* default */]
};
var router = new __WEBPACK_IMPORTED_MODULE_2_vue_router__["a" /* default */](RouterConfig);
router.beforeEach(function (to, from, next) {
__WEBPACK_IMPORTED_MODULE_1_iview___default.a.LoadingBar.start();
__WEBPACK_IMPORTED_MODULE_4__libs_util__["a" /* default */].title(to.meta.title);
next();
});
router.afterEach(function () {
__WEBPACK_IMPORTED_MODULE_1_iview___default.a.LoadingBar.finish();
window.scrollTo(0, 0);
});
new __WEBPACK_IMPORTED_MODULE_0_vue__["default"]({
el: '#app',
router: router,
render: function render(h) {
return h(__WEBPACK_IMPORTED_MODULE_5__app_vue__["a" /* default */]);
}
});
/***/ }),
/***/ 18:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
var routers = [{
path: '/',
meta: {
title: ''
},
component: function component(resolve) {
return __webpack_require__.e/* require */(0).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(42)]; ((resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}.bind(this)).catch(__webpack_require__.oe);
}
}];
/* harmony default export */ __webpack_exports__["a"] = (routers);
/***/ }),
/***/ 19:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios__ = __webpack_require__(7);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__config_env__ = __webpack_require__(37);
var util = {};
util.title = function (title) {
title = title ? title + ' - Home' : 'iView project';
window.document.title = title;
};
var ajaxUrl = __WEBPACK_IMPORTED_MODULE_1__config_env__["a" /* default */] === 'development' ? 'http://127.0.0.1:8888' : __WEBPACK_IMPORTED_MODULE_1__config_env__["a" /* default */] === 'production' ? 'https://www.url.com' : 'https://debug.url.com';
util.ajax = __WEBPACK_IMPORTED_MODULE_0_axios___default.a.create({
baseURL: ajaxUrl,
timeout: 30000
});
/* harmony default export */ __webpack_exports__["a"] = (util);
/***/ }),
/***/ 37:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony default export */ __webpack_exports__["a"] = ("development");
/***/ }),
/***/ 38:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_0_1_app_vue__ = __webpack_require__(13);
/* unused harmony namespace reexport */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_bced26ea_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_0_1_app_vue__ = __webpack_require__(39);
var disposed = false
var normalizeComponent = __webpack_require__(14)
/* script */
/* template */
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_0_1_app_vue__["a" /* default */],
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_bced26ea_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_0_1_app_vue__["a" /* default */],
__vue_template_functional__,
__vue_styles__,
__vue_scopeId__,
__vue_module_identifier__
)
Component.options.__file = "src\\app.vue"
/* hot reload */
if (false) {(function () {
var hotAPI = require("vue-hot-reload-api")
hotAPI.install(require("vue"), false)
if (!hotAPI.compatible) return
module.hot.accept()
if (!module.hot.data) {
hotAPI.createRecord("data-v-bced26ea", Component.options)
} else {
hotAPI.reload("data-v-bced26ea", Component.options)
}
module.hot.dispose(function (data) {
disposed = true
})
})()}
/* harmony default export */ __webpack_exports__["a"] = (Component.exports);
/***/ }),
/***/ 39:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", [_c("router-view")], 1)
}
var staticRenderFns = []
render._withStripped = true
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ __webpack_exports__["a"] = (esExports);
if (false) {
module.hot.accept()
if (module.hot.data) {
require("vue-hot-reload-api") .rerender("data-v-bced26ea", esExports)
}
}
/***/ }),
/***/ 40:
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ })
},[15]);
//# sourceMappingURL=main.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/app.vue","webpack:///./node_modules/vue-loader/lib/component-normalizer.js","webpack:///./src/main.js","webpack:///./src/router.js","webpack:///./src/libs/util.js","webpack:///./src/config/env.js","webpack:///./src/app.vue","webpack:///./src/app.vue?0bdc","webpack:///./node_modules/iview/dist/styles/iview.css"],"names":["Vue","use","RouterConfig","mode","routes","Routers","router","beforeEach","to","from","next","iView","LoadingBar","start","Util","title","meta","afterEach","finish","window","scrollTo","el","render","h","routers","path","component","resolve","util","document","ajaxUrl","env","ajax","axios","create","baseURL","timeout"],"mappings":";;;;;;;;;;;;AAMA;0BAEA;eAGA;AACA;gCAEA,CACA;4CAEA,CACA;;aAGA;AAdA,G;;;;;;;ACPA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;ACtGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAGA,4CAAAA,CAAIC,GAAJ,CAAQ,2DAAR;;AAGA,4CAAAD,CAAIC,GAAJ,CAAQ,6CAAR;;AAIA;AACA,IAAMC,eAAe;AACjBC,UAAM,SADW;AAEjBC,YAAQ,wDAAAC;AAFS,CAArB;AAIA,IAAMC,SAAS,IAAI,2DAAJ,CAAcJ,YAAd,CAAf;;AAEAI,OAAOC,UAAP,CAAkB,UAACC,EAAD,EAAKC,IAAL,EAAWC,IAAX,EAAoB;AAClCC,IAAA,6CAAAA,CAAMC,UAAN,CAAiBC,KAAjB;AACAC,IAAA,2DAAAA,CAAKC,KAAL,CAAWP,GAAGQ,IAAH,CAAQD,KAAnB;AACAL;AACH,CAJD;;AAMAJ,OAAOW,SAAP,CAAiB,YAAM;AACnBN,IAAA,6CAAAA,CAAMC,UAAN,CAAiBM,MAAjB;AACAC,WAAOC,QAAP,CAAgB,CAAhB,EAAmB,CAAnB;AACH,CAHD;;AAOA,IAAI,4CAAJ,CAAQ;AACJC,QAAI,MADA;AAEJf,YAAQA,MAFJ;AAGJgB,YAAQ;AAAA,eAAKC,EAAE,yDAAF,CAAL;AAAA;AAHJ,CAAR,E;;;;;;;;ACrCA,IAAMC,UAAU,CAAC;AACbC,UAAM,GADO;AAEbT,UAAM;AACFD,eAAO;AADL,KAFO;AAKbW,eAAW,mBAACC,OAAD;AAAA,eAAa,wDAAQ,qCAAC,uBAAD,CAAR,IAA8BA,O,8CAA9B,2CAAb;AAAA;AALE,CAAD,CAAhB;AAOA,yDAAeH,OAAf,E;;;;;;;;;;;ACPA;AACA;;AAEA,IAAII,OAAO,EAAX;AAGAA,KAAKb,KAAL,GAAa,UAASA,KAAT,EAAgB;AACzBA,YAAQA,QAAQA,QAAQ,SAAhB,GAA4B,eAApC;AACAI,WAAOU,QAAP,CAAgBd,KAAhB,GAAwBA,KAAxB;AACH,CAHD;;AAKA,IAAMe,UAAU,4DAAAC,KAAQ,aAAR,GACZ,uBADY,GAEZ,4DAAAA,KAAQ,YAAR,GACA,qBADA,GAEA,uBAJJ;;AAMAH,KAAKI,IAAL,GAAY,6CAAAC,CAAMC,MAAN,CAAa;AACrBC,aAASL,OADY;AAErBM,aAAS;AAFY,CAAb,CAAZ;;AAKA,yDAAeR,IAAf,E;;;;;;;;ACtBA,yDAAe,aAAf,E;;;;;;;;;;ACAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACqK;AACrK;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;;AAED;;;;;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,C;;;;;;;ACfA,yC","file":"main.js","sourcesContent":["<template>\n <div>\n <router-view></router-view>\n </div>\n</template>\n<script>\n export default {\n data() {\n return {\n\n };\n },\n mounted() {\n\n },\n beforeDestroy() {\n\n },\n methods: {\n\n }\n };\n</script>\n\n\n// WEBPACK FOOTER //\n// src/app.vue","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file.\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nmodule.exports = function normalizeComponent (\n rawScriptExports,\n compiledTemplate,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */\n) {\n var esModule\n var scriptExports = rawScriptExports = rawScriptExports || {}\n\n // ES6 modules interop\n var type = typeof rawScriptExports.default\n if (type === 'object' || type === 'function') {\n esModule = rawScriptExports\n scriptExports = rawScriptExports.default\n }\n\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (compiledTemplate) {\n options.render = compiledTemplate.render\n options.staticRenderFns = compiledTemplate.staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = injectStyles\n }\n\n if (hook) {\n var functional = options.functional\n var existing = functional\n ? options.render\n : options.beforeCreate\n\n if (!functional) {\n // inject component registration as beforeCreate hook\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n } else {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return existing(h, context)\n }\n }\n }\n\n return {\n esModule: esModule,\n exports: scriptExports,\n options: options\n }\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/component-normalizer.js\n// module id = 14\n// module chunks = 1","import Vue from 'vue';\nimport iView from 'iview';\nimport VueRouter from 'vue-router';\nimport Routers from './router';\n\nimport Util from './libs/util';\nimport App from './app.vue';\nimport 'iview/dist/styles/iview.css';\n\n\nVue.use(VueRouter);\n\n\nVue.use(iView);\n\n\n\n// 路由配置\nconst RouterConfig = {\n mode: 'history',\n routes: Routers\n};\nconst router = new VueRouter(RouterConfig);\n\nrouter.beforeEach((to, from, next) => {\n iView.LoadingBar.start();\n Util.title(to.meta.title);\n next();\n});\n\nrouter.afterEach(() => {\n iView.LoadingBar.finish();\n window.scrollTo(0, 0);\n});\n\n\n\nnew Vue({\n el: '#app',\n router: router,\n render: h => h(App)\n});\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","const routers = [{\n path: '/',\n meta: {\n title: ''\n },\n component: (resolve) => require(['./views/list.vue'], resolve)\n}];\nexport default routers;\n\n\n// WEBPACK FOOTER //\n// ./src/router.js","import axios from 'axios';\nimport env from '../config/env';\n\nlet util = {\n\n};\nutil.title = function(title) {\n title = title ? title + ' - Home' : 'iView project';\n window.document.title = title;\n};\n\nconst ajaxUrl = env === 'development' ?\n 'http://127.0.0.1:8888' :\n env === 'production' ?\n 'https://www.url.com' :\n 'https://debug.url.com';\n\nutil.ajax = axios.create({\n baseURL: ajaxUrl,\n timeout: 30000\n});\n\nexport default util;\n\n\n// WEBPACK FOOTER //\n// ./src/libs/util.js","export default \"development\";\n\n\n// WEBPACK FOOTER //\n// ./src/config/env.js","var disposed = false\nvar normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!../node_modules/iview-loader/index.js??ref--0-1!./app.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!../node_modules/iview-loader/index.js??ref--0-1!./app.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-bced26ea\\\",\\\"hasScoped\\\":false,\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!../node_modules/iview-loader/index.js??ref--0-1!./app.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\nComponent.options.__file = \"src\\\\app.vue\"\n\n/* hot reload */\nif (module.hot) {(function () {\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), false)\n if (!hotAPI.compatible) return\n module.hot.accept()\n if (!module.hot.data) {\n hotAPI.createRecord(\"data-v-bced26ea\", Component.options)\n } else {\n hotAPI.reload(\"data-v-bced26ea\", Component.options)\n }\n module.hot.dispose(function (data) {\n disposed = true\n })\n})()}\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app.vue\n// module id = 38\n// module chunks = 1","var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", [_c(\"router-view\")], 1)\n}\nvar staticRenderFns = []\nrender._withStripped = true\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\nif (module.hot) {\n module.hot.accept()\n if (module.hot.data) {\n require(\"vue-hot-reload-api\") .rerender(\"data-v-bced26ea\", esExports)\n }\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-bced26ea\",\"hasScoped\":false,\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./node_modules/iview-loader??ref--0-1!./src/app.vue\n// module id = 39\n// module chunks = 1","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/iview/dist/styles/iview.css\n// module id = 40\n// module chunks = 1"],"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.
This diff could not be displayed because it is too large.
... ... @@ -5,13 +5,13 @@
<title>Slowpoke 系统</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
<link rel="stylesheet" href="/dist/main.8deecb0c2ac04cd4c724.css">
<link rel="stylesheet" href="/dist/main.679fda6bfe248e8ac246.css">
</head>
<body>
<div id="app"></div>
<script type="text/javascript" src="/dist/vendors.8deecb0c2ac04cd4c724.js"></script>
<script type="text/javascript" src="/dist/main.8deecb0c2ac04cd4c724.js"></script>
<script type="text/javascript" src="/dist/vendors.679fda6bfe248e8ac246.js"></script>
<script type="text/javascript" src="/dist/main.679fda6bfe248e8ac246.js"></script>
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -16,6 +16,7 @@ async function getWorkday(date) {
const now = new Date();
const n = now.getDay();
// 星期日,量期六
if ([0, 6].includes(n)) {
return resolve({
data: {
... ...