ecinc-cloud-moadesktop 9.6.272 → 9.6.274
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lang/en.js +2 -1
- package/lang/zhCN.js +2 -1
- package/lib/ecmoadesktop.common.js +66 -32
- package/lib/ecmoadesktop.umd.js +66 -32
- package/lib/ecmoadesktop.umd.min.js +4 -4
- package/package.json +1 -1
package/lang/en.js
CHANGED
|
@@ -40,7 +40,8 @@ module.exports = {
|
|
|
40
40
|
latestToDoList: 'Latest To-Do List',
|
|
41
41
|
officeDocument: 'Document Handling',
|
|
42
42
|
holdWork: 'Handle Affairs',
|
|
43
|
-
HoldMeeting: 'Hold Meeting'
|
|
43
|
+
HoldMeeting: 'Hold Meeting',
|
|
44
|
+
mapServiceError: 'Map service loading failed. Retry?'
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
}
|
package/lang/zhCN.js
CHANGED
|
@@ -131,7 +131,8 @@ module.exports = {
|
|
|
131
131
|
latestToDoList: 'Latest To-Do List',
|
|
132
132
|
officeDocument: 'Document Handling',
|
|
133
133
|
holdWork: 'Handle Affairs',
|
|
134
|
-
HoldMeeting: 'Hold Meeting'
|
|
134
|
+
HoldMeeting: 'Hold Meeting',
|
|
135
|
+
mapServiceError: 'Map service loading failed. Retry?'
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
138
|
};
|
|
@@ -227,7 +228,8 @@ module.exports = {
|
|
|
227
228
|
latestToDoList: '最新待办',
|
|
228
229
|
officeDocument: '办文',
|
|
229
230
|
holdWork: '办事',
|
|
230
|
-
HoldMeeting: '办会'
|
|
231
|
+
HoldMeeting: '办会',
|
|
232
|
+
mapServiceError: '地图服务加载失败,是否重试?'
|
|
231
233
|
}
|
|
232
234
|
}
|
|
233
235
|
};
|
|
@@ -256,7 +258,10 @@ var canDk = true;
|
|
|
256
258
|
var dakaType = ['不可打卡', '上班打卡', '下班打卡', '更新打卡']; // 打卡按钮状态
|
|
257
259
|
var loginUser = '';
|
|
258
260
|
var mapObj = null;
|
|
259
|
-
var lo =
|
|
261
|
+
var lo = null;
|
|
262
|
+
if (window.T) {
|
|
263
|
+
lo = new T.Geolocation();
|
|
264
|
+
}
|
|
260
265
|
var moment = __webpack_require__(5093);
|
|
261
266
|
|
|
262
267
|
/**
|
|
@@ -327,7 +332,7 @@ function getCurAddress(lng, lat) {
|
|
|
327
332
|
}
|
|
328
333
|
|
|
329
334
|
// 定位
|
|
330
|
-
function curLocationAndDis() {
|
|
335
|
+
function curLocationAndDis(timeSpanData) {
|
|
331
336
|
var device = js_cookie__WEBPACK_IMPORTED_MODULE_0___default().get('device');
|
|
332
337
|
return new Promise(function (resolve) {
|
|
333
338
|
var locationed = false;
|
|
@@ -367,8 +372,12 @@ function curLocationAndDis() {
|
|
|
367
372
|
}
|
|
368
373
|
}
|
|
369
374
|
if (!locationed) {
|
|
370
|
-
if (
|
|
375
|
+
if (!lo) {
|
|
376
|
+
//天地图服务加载失败
|
|
377
|
+
resolve(false);
|
|
378
|
+
} else if (window.mappType === 'ecinc') {
|
|
371
379
|
//APP定位
|
|
380
|
+
var locationTimeout = false;
|
|
372
381
|
$parent.$wv.getLocationInformation(function (res) {
|
|
373
382
|
if (typeof res === 'string') res = JSON.parse(res);
|
|
374
383
|
if (res && res.data) {
|
|
@@ -382,8 +391,11 @@ function curLocationAndDis() {
|
|
|
382
391
|
|
|
383
392
|
if (dis === null || dis > gpsScope) {
|
|
384
393
|
resolve(false);
|
|
385
|
-
} else {
|
|
394
|
+
} else if (!locationTimeout) {
|
|
386
395
|
resolve(true);
|
|
396
|
+
} else {
|
|
397
|
+
//超时后返回定位成功信息,更新打卡状态
|
|
398
|
+
$parent.dakaType = dakaType[timeSpanData.dakaType];
|
|
387
399
|
}
|
|
388
400
|
}
|
|
389
401
|
});
|
|
@@ -395,9 +407,10 @@ function curLocationAndDis() {
|
|
|
395
407
|
} else {
|
|
396
408
|
//console.log('$wv getCurrentPosition res =', res)
|
|
397
409
|
resolve(false);
|
|
410
|
+
locationTimeout = true;
|
|
398
411
|
}
|
|
399
412
|
}
|
|
400
|
-
},
|
|
413
|
+
}, 20000);
|
|
401
414
|
} else if (window.isOpenMapLocation === 1) {
|
|
402
415
|
lo.getCurrentPosition(h5Position);
|
|
403
416
|
} else if (device === 'qywx') {
|
|
@@ -489,7 +502,7 @@ var defaultMethods = {
|
|
|
489
502
|
$parent.$forceUpdate();
|
|
490
503
|
|
|
491
504
|
// 获取位置信息
|
|
492
|
-
curLocationAndDis().then(function (res) {
|
|
505
|
+
curLocationAndDis(timeSpanData).then(function (res) {
|
|
493
506
|
if (!res) {
|
|
494
507
|
$parent.dakaType = dakaType[0];
|
|
495
508
|
} else {
|
|
@@ -658,7 +671,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".no-data[data-v-ef203e2e]{display:-web
|
|
|
658
671
|
|
|
659
672
|
/***/ }),
|
|
660
673
|
|
|
661
|
-
/***/
|
|
674
|
+
/***/ 1951:
|
|
662
675
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
663
676
|
|
|
664
677
|
"use strict";
|
|
@@ -677,7 +690,7 @@ var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require
|
|
|
677
690
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
678
691
|
var ___CSS_LOADER_URL_REPLACEMENT_0___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
|
|
679
692
|
// Module
|
|
680
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
693
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-86bb0962] .van-ellipsis{font-size:18px;color:#fff}[data-v-86bb0962] .van-dropdown-menu__title{color:#fff!important;padding:0 8px 0 0!important}[data-v-86bb0962] .van-dropdown-menu .van-dropdown-menu__bar .van-dropdown-menu__title--active{color:#fff!important}[data-v-86bb0962] .van-dropdown-menu__title:after{border-color:transparent transparent #fff #fff!important;right:0}[data-v-86bb0962] .van-dropdown-menu__bar{background-color:unset!important;-webkit-box-shadow:unset!important;box-shadow:unset!important}[data-v-86bb0962] .van-dropdown-menu__item{-webkit-box-pack:left;-ms-flex-pack:left;justify-content:left}[data-v-86bb0962] .chat_icon .van-info{top:5px!important;right:-4px!important}.work_pageHeader[data-v-86bb0962]{background:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");padding:0 16px;height:123px;font-size:16px;color:#fff;background-repeat:no-repeat;background-size:cover;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:height .3s;transition:height .3s}.work_pageHeader[data-v-86bb0962],.work_pageHeader .flex-horizon-bw[data-v-86bb0962]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.work_pageHeader .flex-horizon-bw[data-v-86bb0962]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.work_pageHeader .pageHeader_compony[data-v-86bb0962]{font-size:18px;font-weight:500;color:#fff;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:10px;height:48px;line-height:48px}.work_pageHeader .pageHeader_name[data-v-86bb0962]{font-size:14px;margin-left:8px}.work_pageHeader .pageHeader_check_work[data-v-86bb0962]{width:122px;border-radius:15px;background:hsla(0,0%,100%,.8);padding:7px 10px;display:-webkit-box;display:-ms-flexbox;display:flex;color:#333;font-size:12px}.work_pageHeader .pageHeader_timer[data-v-86bb0962]{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:right;color:#fff;font-size:14px;line-height:30px;margin-right:16px}.work_pageHeader .more_compony[data-v-86bb0962]{position:relative;-webkit-transform:rotate(90deg);transform:rotate(90deg);font-size:10px;margin-left:6px}.check_time[data-v-86bb0962]{-webkit-box-flex:1;-ms-flex:1;flex:1;border-right:1px solid #999;text-align:left;font-size:13px;color:#333;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.check_time img[data-v-86bb0962]{width:14px;height:14px}.check_time span[data-v-86bb0962]{margin-left:5px}.check_button[data-v-86bb0962]{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:right;line-height:18px}", ""]);
|
|
681
694
|
// Exports
|
|
682
695
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
683
696
|
|
|
@@ -22705,19 +22718,19 @@ var update = add("b0496ae0", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
22705
22718
|
|
|
22706
22719
|
/***/ }),
|
|
22707
22720
|
|
|
22708
|
-
/***/
|
|
22721
|
+
/***/ 7989:
|
|
22709
22722
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
22710
22723
|
|
|
22711
22724
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
22712
22725
|
|
|
22713
22726
|
// load the styles
|
|
22714
|
-
var content = __webpack_require__(
|
|
22727
|
+
var content = __webpack_require__(1951);
|
|
22715
22728
|
if(content.__esModule) content = content.default;
|
|
22716
22729
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
22717
22730
|
if(content.locals) module.exports = content.locals;
|
|
22718
22731
|
// add the styles to the DOM
|
|
22719
22732
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
22720
|
-
var update = add("
|
|
22733
|
+
var update = add("40fdc02f", content, true, {"sourceMap":false,"shadowMode":false});
|
|
22721
22734
|
|
|
22722
22735
|
/***/ }),
|
|
22723
22736
|
|
|
@@ -27736,8 +27749,8 @@ var commonApps_component = normalizeComponent(
|
|
|
27736
27749
|
)
|
|
27737
27750
|
|
|
27738
27751
|
/* harmony default export */ var commonApps = (commonApps_component.exports);
|
|
27739
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/desktop/src/components/workHead.vue?vue&type=template&id=
|
|
27740
|
-
var
|
|
27752
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/desktop/src/components/workHead.vue?vue&type=template&id=86bb0962&scoped=true
|
|
27753
|
+
var workHeadvue_type_template_id_86bb0962_scoped_true_render = function render() {
|
|
27741
27754
|
var _vm = this,
|
|
27742
27755
|
_c = _vm._self._c;
|
|
27743
27756
|
return _c('div', {
|
|
@@ -27861,7 +27874,7 @@ var workHeadvue_type_template_id_209caa6f_scoped_true_render = function render()
|
|
|
27861
27874
|
staticClass: "pageHeader_timer"
|
|
27862
27875
|
}, [_c('span', [_vm._v(_vm._s(_vm.nowDay))])])])]);
|
|
27863
27876
|
};
|
|
27864
|
-
var
|
|
27877
|
+
var workHeadvue_type_template_id_86bb0962_scoped_true_staticRenderFns = [];
|
|
27865
27878
|
|
|
27866
27879
|
;// CONCATENATED MODULE: ./node_modules/vuex/dist/vuex.esm.js
|
|
27867
27880
|
/*!
|
|
@@ -29074,6 +29087,15 @@ var workClock = __webpack_require__(2396);
|
|
|
29074
29087
|
_this.organName = item.code;
|
|
29075
29088
|
}
|
|
29076
29089
|
});
|
|
29090
|
+
},
|
|
29091
|
+
$route: function $route(to, from) {
|
|
29092
|
+
var kqdkDis = sessionStorage.getItem('kqdk-dis');
|
|
29093
|
+
if (kqdkDis) {
|
|
29094
|
+
//从考勤打卡页面返回到首页,已经有定位成功信息,刷新打卡信息
|
|
29095
|
+
if (this.dakaType === '正在定位' && to.path === '/main' && from.path.indexOf('login') === -1) {
|
|
29096
|
+
workClock.freshData(this);
|
|
29097
|
+
}
|
|
29098
|
+
}
|
|
29077
29099
|
}
|
|
29078
29100
|
},
|
|
29079
29101
|
created: function created() {
|
|
@@ -29167,6 +29189,8 @@ var workClock = __webpack_require__(2396);
|
|
|
29167
29189
|
document.querySelector('.work_pageHeader').style.background = 'url(' + url + ')';
|
|
29168
29190
|
document.querySelector('.work_pageHeader').style.backgroundSize = 'cover';
|
|
29169
29191
|
document.querySelector('.work_pageHeader').style.backgroundRepeat = 'no-repeat';
|
|
29192
|
+
} else {
|
|
29193
|
+
document.querySelector('.work_pageHeader').style.background = 'url(./images/m-imgs/workBg/workBg.png)';
|
|
29170
29194
|
}
|
|
29171
29195
|
case 8:
|
|
29172
29196
|
case "end":
|
|
@@ -29224,13 +29248,13 @@ var workClock = __webpack_require__(2396);
|
|
|
29224
29248
|
},
|
|
29225
29249
|
loadH5apps: function loadH5apps() {
|
|
29226
29250
|
var _this5 = this;
|
|
29251
|
+
var productList = this.$store.getters.productCodeList;
|
|
29252
|
+
if (!productList) return;
|
|
29227
29253
|
var h5apps = this.routes.filter(function (route) {
|
|
29228
29254
|
if (route.meta && route.meta.h5Url) return true;
|
|
29229
29255
|
});
|
|
29230
|
-
var productList = this.$store.getters.productCodeList;
|
|
29231
29256
|
h5apps.forEach(function (route) {
|
|
29232
29257
|
var mapp = route.meta;
|
|
29233
|
-
if (!productList) return;
|
|
29234
29258
|
for (var key in productList) {
|
|
29235
29259
|
if (key === mapp.sysCode && productList[key] === 'ecykq') {
|
|
29236
29260
|
window.$user.findUserRolePermissions().then(function (res) {
|
|
@@ -29248,10 +29272,12 @@ var workClock = __webpack_require__(2396);
|
|
|
29248
29272
|
workClock.default.freshData(_this5);
|
|
29249
29273
|
}
|
|
29250
29274
|
_this5.curInterval = setInterval(function () {
|
|
29251
|
-
if (
|
|
29252
|
-
workClock.freshData
|
|
29253
|
-
|
|
29254
|
-
workClock.default
|
|
29275
|
+
if (_this5.$route.path == '/main') {
|
|
29276
|
+
if (workClock.freshData) {
|
|
29277
|
+
workClock.freshData(_this5);
|
|
29278
|
+
} else if (workClock.default) {
|
|
29279
|
+
workClock.default.freshData(_this5);
|
|
29280
|
+
}
|
|
29255
29281
|
}
|
|
29256
29282
|
}, 1000 * 60);
|
|
29257
29283
|
});
|
|
@@ -29264,10 +29290,18 @@ var workClock = __webpack_require__(2396);
|
|
|
29264
29290
|
},
|
|
29265
29291
|
// 检查打卡
|
|
29266
29292
|
checkWork: function checkWork() {
|
|
29267
|
-
if (
|
|
29268
|
-
workClock.dkEvent
|
|
29269
|
-
|
|
29270
|
-
workClock.default
|
|
29293
|
+
if (window.T) {
|
|
29294
|
+
if (workClock.dkEvent) {
|
|
29295
|
+
workClock.dkEvent(this);
|
|
29296
|
+
} else if (workClock.default) {
|
|
29297
|
+
workClock.default.dkEvent(this);
|
|
29298
|
+
}
|
|
29299
|
+
} else {
|
|
29300
|
+
this.$dialog.confirm({
|
|
29301
|
+
message: this.$tx('desktop.components.mapServiceError', '地图服务加载失败,是否重试?')
|
|
29302
|
+
}).then(function () {
|
|
29303
|
+
location.reload();
|
|
29304
|
+
});
|
|
29271
29305
|
}
|
|
29272
29306
|
},
|
|
29273
29307
|
formatNowDay: function formatNowDay() {
|
|
@@ -29347,9 +29381,9 @@ var workClock = __webpack_require__(2396);
|
|
|
29347
29381
|
});
|
|
29348
29382
|
;// CONCATENATED MODULE: ./packages/ecmoa/desktop/src/components/workHead.vue?vue&type=script&lang=js
|
|
29349
29383
|
/* harmony default export */ var components_workHeadvue_type_script_lang_js = (workHeadvue_type_script_lang_js);
|
|
29350
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/desktop/src/components/workHead.vue?vue&type=style&index=0&id=
|
|
29351
|
-
var
|
|
29352
|
-
;// CONCATENATED MODULE: ./packages/ecmoa/desktop/src/components/workHead.vue?vue&type=style&index=0&id=
|
|
29384
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/desktop/src/components/workHead.vue?vue&type=style&index=0&id=86bb0962&prod&scoped=true&lang=scss
|
|
29385
|
+
var workHeadvue_type_style_index_0_id_86bb0962_prod_scoped_true_lang_scss = __webpack_require__(7989);
|
|
29386
|
+
;// CONCATENATED MODULE: ./packages/ecmoa/desktop/src/components/workHead.vue?vue&type=style&index=0&id=86bb0962&prod&scoped=true&lang=scss
|
|
29353
29387
|
|
|
29354
29388
|
;// CONCATENATED MODULE: ./packages/ecmoa/desktop/src/components/workHead.vue
|
|
29355
29389
|
|
|
@@ -29362,11 +29396,11 @@ var workHeadvue_type_style_index_0_id_209caa6f_prod_scoped_true_lang_scss = __we
|
|
|
29362
29396
|
|
|
29363
29397
|
var workHead_component = normalizeComponent(
|
|
29364
29398
|
components_workHeadvue_type_script_lang_js,
|
|
29365
|
-
|
|
29366
|
-
|
|
29399
|
+
workHeadvue_type_template_id_86bb0962_scoped_true_render,
|
|
29400
|
+
workHeadvue_type_template_id_86bb0962_scoped_true_staticRenderFns,
|
|
29367
29401
|
false,
|
|
29368
29402
|
null,
|
|
29369
|
-
"
|
|
29403
|
+
"86bb0962",
|
|
29370
29404
|
null
|
|
29371
29405
|
|
|
29372
29406
|
)
|
package/lib/ecmoadesktop.umd.js
CHANGED
|
@@ -141,7 +141,8 @@ module.exports = {
|
|
|
141
141
|
latestToDoList: 'Latest To-Do List',
|
|
142
142
|
officeDocument: 'Document Handling',
|
|
143
143
|
holdWork: 'Handle Affairs',
|
|
144
|
-
HoldMeeting: 'Hold Meeting'
|
|
144
|
+
HoldMeeting: 'Hold Meeting',
|
|
145
|
+
mapServiceError: 'Map service loading failed. Retry?'
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
148
|
};
|
|
@@ -237,7 +238,8 @@ module.exports = {
|
|
|
237
238
|
latestToDoList: '最新待办',
|
|
238
239
|
officeDocument: '办文',
|
|
239
240
|
holdWork: '办事',
|
|
240
|
-
HoldMeeting: '办会'
|
|
241
|
+
HoldMeeting: '办会',
|
|
242
|
+
mapServiceError: '地图服务加载失败,是否重试?'
|
|
241
243
|
}
|
|
242
244
|
}
|
|
243
245
|
};
|
|
@@ -266,7 +268,10 @@ var canDk = true;
|
|
|
266
268
|
var dakaType = ['不可打卡', '上班打卡', '下班打卡', '更新打卡']; // 打卡按钮状态
|
|
267
269
|
var loginUser = '';
|
|
268
270
|
var mapObj = null;
|
|
269
|
-
var lo =
|
|
271
|
+
var lo = null;
|
|
272
|
+
if (window.T) {
|
|
273
|
+
lo = new T.Geolocation();
|
|
274
|
+
}
|
|
270
275
|
var moment = __webpack_require__(5093);
|
|
271
276
|
|
|
272
277
|
/**
|
|
@@ -337,7 +342,7 @@ function getCurAddress(lng, lat) {
|
|
|
337
342
|
}
|
|
338
343
|
|
|
339
344
|
// 定位
|
|
340
|
-
function curLocationAndDis() {
|
|
345
|
+
function curLocationAndDis(timeSpanData) {
|
|
341
346
|
var device = js_cookie__WEBPACK_IMPORTED_MODULE_0___default().get('device');
|
|
342
347
|
return new Promise(function (resolve) {
|
|
343
348
|
var locationed = false;
|
|
@@ -377,8 +382,12 @@ function curLocationAndDis() {
|
|
|
377
382
|
}
|
|
378
383
|
}
|
|
379
384
|
if (!locationed) {
|
|
380
|
-
if (
|
|
385
|
+
if (!lo) {
|
|
386
|
+
//天地图服务加载失败
|
|
387
|
+
resolve(false);
|
|
388
|
+
} else if (window.mappType === 'ecinc') {
|
|
381
389
|
//APP定位
|
|
390
|
+
var locationTimeout = false;
|
|
382
391
|
$parent.$wv.getLocationInformation(function (res) {
|
|
383
392
|
if (typeof res === 'string') res = JSON.parse(res);
|
|
384
393
|
if (res && res.data) {
|
|
@@ -392,8 +401,11 @@ function curLocationAndDis() {
|
|
|
392
401
|
|
|
393
402
|
if (dis === null || dis > gpsScope) {
|
|
394
403
|
resolve(false);
|
|
395
|
-
} else {
|
|
404
|
+
} else if (!locationTimeout) {
|
|
396
405
|
resolve(true);
|
|
406
|
+
} else {
|
|
407
|
+
//超时后返回定位成功信息,更新打卡状态
|
|
408
|
+
$parent.dakaType = dakaType[timeSpanData.dakaType];
|
|
397
409
|
}
|
|
398
410
|
}
|
|
399
411
|
});
|
|
@@ -405,9 +417,10 @@ function curLocationAndDis() {
|
|
|
405
417
|
} else {
|
|
406
418
|
//console.log('$wv getCurrentPosition res =', res)
|
|
407
419
|
resolve(false);
|
|
420
|
+
locationTimeout = true;
|
|
408
421
|
}
|
|
409
422
|
}
|
|
410
|
-
},
|
|
423
|
+
}, 20000);
|
|
411
424
|
} else if (window.isOpenMapLocation === 1) {
|
|
412
425
|
lo.getCurrentPosition(h5Position);
|
|
413
426
|
} else if (device === 'qywx') {
|
|
@@ -499,7 +512,7 @@ var defaultMethods = {
|
|
|
499
512
|
$parent.$forceUpdate();
|
|
500
513
|
|
|
501
514
|
// 获取位置信息
|
|
502
|
-
curLocationAndDis().then(function (res) {
|
|
515
|
+
curLocationAndDis(timeSpanData).then(function (res) {
|
|
503
516
|
if (!res) {
|
|
504
517
|
$parent.dakaType = dakaType[0];
|
|
505
518
|
} else {
|
|
@@ -668,7 +681,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".no-data[data-v-ef203e2e]{display:-web
|
|
|
668
681
|
|
|
669
682
|
/***/ }),
|
|
670
683
|
|
|
671
|
-
/***/
|
|
684
|
+
/***/ 4671:
|
|
672
685
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
673
686
|
|
|
674
687
|
"use strict";
|
|
@@ -687,7 +700,7 @@ var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require
|
|
|
687
700
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
688
701
|
var ___CSS_LOADER_URL_REPLACEMENT_0___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
|
|
689
702
|
// Module
|
|
690
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
703
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-86bb0962] .van-ellipsis{font-size:18px;color:#fff}[data-v-86bb0962] .van-dropdown-menu__title{color:#fff!important;padding:0 8px 0 0!important}[data-v-86bb0962] .van-dropdown-menu .van-dropdown-menu__bar .van-dropdown-menu__title--active{color:#fff!important}[data-v-86bb0962] .van-dropdown-menu__title:after{border-color:transparent transparent #fff #fff!important;right:0}[data-v-86bb0962] .van-dropdown-menu__bar{background-color:unset!important;-webkit-box-shadow:unset!important;box-shadow:unset!important}[data-v-86bb0962] .van-dropdown-menu__item{-webkit-box-pack:left;-ms-flex-pack:left;justify-content:left}[data-v-86bb0962] .chat_icon .van-info{top:5px!important;right:-4px!important}.work_pageHeader[data-v-86bb0962]{background:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");padding:0 16px;height:123px;font-size:16px;color:#fff;background-repeat:no-repeat;background-size:cover;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:height .3s;transition:height .3s}.work_pageHeader[data-v-86bb0962],.work_pageHeader .flex-horizon-bw[data-v-86bb0962]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.work_pageHeader .flex-horizon-bw[data-v-86bb0962]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.work_pageHeader .pageHeader_compony[data-v-86bb0962]{font-size:18px;font-weight:500;color:#fff;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:10px;height:48px;line-height:48px}.work_pageHeader .pageHeader_name[data-v-86bb0962]{font-size:14px;margin-left:8px}.work_pageHeader .pageHeader_check_work[data-v-86bb0962]{width:122px;border-radius:15px;background:hsla(0,0%,100%,.8);padding:7px 10px;display:-webkit-box;display:-ms-flexbox;display:flex;color:#333;font-size:12px}.work_pageHeader .pageHeader_timer[data-v-86bb0962]{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:right;color:#fff;font-size:14px;line-height:30px;margin-right:16px}.work_pageHeader .more_compony[data-v-86bb0962]{position:relative;-webkit-transform:rotate(90deg);transform:rotate(90deg);font-size:10px;margin-left:6px}.check_time[data-v-86bb0962]{-webkit-box-flex:1;-ms-flex:1;flex:1;border-right:1px solid #999;text-align:left;font-size:13px;color:#333;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.check_time img[data-v-86bb0962]{width:14px;height:14px}.check_time span[data-v-86bb0962]{margin-left:5px}.check_button[data-v-86bb0962]{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:right;line-height:18px}", ""]);
|
|
691
704
|
// Exports
|
|
692
705
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
693
706
|
|
|
@@ -22715,19 +22728,19 @@ var update = add("300ba1e0", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
22715
22728
|
|
|
22716
22729
|
/***/ }),
|
|
22717
22730
|
|
|
22718
|
-
/***/
|
|
22731
|
+
/***/ 4739:
|
|
22719
22732
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
22720
22733
|
|
|
22721
22734
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
22722
22735
|
|
|
22723
22736
|
// load the styles
|
|
22724
|
-
var content = __webpack_require__(
|
|
22737
|
+
var content = __webpack_require__(4671);
|
|
22725
22738
|
if(content.__esModule) content = content.default;
|
|
22726
22739
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
22727
22740
|
if(content.locals) module.exports = content.locals;
|
|
22728
22741
|
// add the styles to the DOM
|
|
22729
22742
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
22730
|
-
var update = add("
|
|
22743
|
+
var update = add("fdc6b6a2", content, true, {"sourceMap":false,"shadowMode":false});
|
|
22731
22744
|
|
|
22732
22745
|
/***/ }),
|
|
22733
22746
|
|
|
@@ -27746,8 +27759,8 @@ var commonApps_component = normalizeComponent(
|
|
|
27746
27759
|
)
|
|
27747
27760
|
|
|
27748
27761
|
/* harmony default export */ var commonApps = (commonApps_component.exports);
|
|
27749
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/desktop/src/components/workHead.vue?vue&type=template&id=
|
|
27750
|
-
var
|
|
27762
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/desktop/src/components/workHead.vue?vue&type=template&id=86bb0962&scoped=true
|
|
27763
|
+
var workHeadvue_type_template_id_86bb0962_scoped_true_render = function render() {
|
|
27751
27764
|
var _vm = this,
|
|
27752
27765
|
_c = _vm._self._c;
|
|
27753
27766
|
return _c('div', {
|
|
@@ -27871,7 +27884,7 @@ var workHeadvue_type_template_id_209caa6f_scoped_true_render = function render()
|
|
|
27871
27884
|
staticClass: "pageHeader_timer"
|
|
27872
27885
|
}, [_c('span', [_vm._v(_vm._s(_vm.nowDay))])])])]);
|
|
27873
27886
|
};
|
|
27874
|
-
var
|
|
27887
|
+
var workHeadvue_type_template_id_86bb0962_scoped_true_staticRenderFns = [];
|
|
27875
27888
|
|
|
27876
27889
|
;// CONCATENATED MODULE: ./node_modules/vuex/dist/vuex.esm.js
|
|
27877
27890
|
/*!
|
|
@@ -29084,6 +29097,15 @@ var workClock = __webpack_require__(2554);
|
|
|
29084
29097
|
_this.organName = item.code;
|
|
29085
29098
|
}
|
|
29086
29099
|
});
|
|
29100
|
+
},
|
|
29101
|
+
$route: function $route(to, from) {
|
|
29102
|
+
var kqdkDis = sessionStorage.getItem('kqdk-dis');
|
|
29103
|
+
if (kqdkDis) {
|
|
29104
|
+
//从考勤打卡页面返回到首页,已经有定位成功信息,刷新打卡信息
|
|
29105
|
+
if (this.dakaType === '正在定位' && to.path === '/main' && from.path.indexOf('login') === -1) {
|
|
29106
|
+
workClock.freshData(this);
|
|
29107
|
+
}
|
|
29108
|
+
}
|
|
29087
29109
|
}
|
|
29088
29110
|
},
|
|
29089
29111
|
created: function created() {
|
|
@@ -29177,6 +29199,8 @@ var workClock = __webpack_require__(2554);
|
|
|
29177
29199
|
document.querySelector('.work_pageHeader').style.background = 'url(' + url + ')';
|
|
29178
29200
|
document.querySelector('.work_pageHeader').style.backgroundSize = 'cover';
|
|
29179
29201
|
document.querySelector('.work_pageHeader').style.backgroundRepeat = 'no-repeat';
|
|
29202
|
+
} else {
|
|
29203
|
+
document.querySelector('.work_pageHeader').style.background = 'url(./images/m-imgs/workBg/workBg.png)';
|
|
29180
29204
|
}
|
|
29181
29205
|
case 8:
|
|
29182
29206
|
case "end":
|
|
@@ -29234,13 +29258,13 @@ var workClock = __webpack_require__(2554);
|
|
|
29234
29258
|
},
|
|
29235
29259
|
loadH5apps: function loadH5apps() {
|
|
29236
29260
|
var _this5 = this;
|
|
29261
|
+
var productList = this.$store.getters.productCodeList;
|
|
29262
|
+
if (!productList) return;
|
|
29237
29263
|
var h5apps = this.routes.filter(function (route) {
|
|
29238
29264
|
if (route.meta && route.meta.h5Url) return true;
|
|
29239
29265
|
});
|
|
29240
|
-
var productList = this.$store.getters.productCodeList;
|
|
29241
29266
|
h5apps.forEach(function (route) {
|
|
29242
29267
|
var mapp = route.meta;
|
|
29243
|
-
if (!productList) return;
|
|
29244
29268
|
for (var key in productList) {
|
|
29245
29269
|
if (key === mapp.sysCode && productList[key] === 'ecykq') {
|
|
29246
29270
|
window.$user.findUserRolePermissions().then(function (res) {
|
|
@@ -29258,10 +29282,12 @@ var workClock = __webpack_require__(2554);
|
|
|
29258
29282
|
workClock.default.freshData(_this5);
|
|
29259
29283
|
}
|
|
29260
29284
|
_this5.curInterval = setInterval(function () {
|
|
29261
|
-
if (
|
|
29262
|
-
workClock.freshData
|
|
29263
|
-
|
|
29264
|
-
workClock.default
|
|
29285
|
+
if (_this5.$route.path == '/main') {
|
|
29286
|
+
if (workClock.freshData) {
|
|
29287
|
+
workClock.freshData(_this5);
|
|
29288
|
+
} else if (workClock.default) {
|
|
29289
|
+
workClock.default.freshData(_this5);
|
|
29290
|
+
}
|
|
29265
29291
|
}
|
|
29266
29292
|
}, 1000 * 60);
|
|
29267
29293
|
});
|
|
@@ -29274,10 +29300,18 @@ var workClock = __webpack_require__(2554);
|
|
|
29274
29300
|
},
|
|
29275
29301
|
// 检查打卡
|
|
29276
29302
|
checkWork: function checkWork() {
|
|
29277
|
-
if (
|
|
29278
|
-
workClock.dkEvent
|
|
29279
|
-
|
|
29280
|
-
workClock.default
|
|
29303
|
+
if (window.T) {
|
|
29304
|
+
if (workClock.dkEvent) {
|
|
29305
|
+
workClock.dkEvent(this);
|
|
29306
|
+
} else if (workClock.default) {
|
|
29307
|
+
workClock.default.dkEvent(this);
|
|
29308
|
+
}
|
|
29309
|
+
} else {
|
|
29310
|
+
this.$dialog.confirm({
|
|
29311
|
+
message: this.$tx('desktop.components.mapServiceError', '地图服务加载失败,是否重试?')
|
|
29312
|
+
}).then(function () {
|
|
29313
|
+
location.reload();
|
|
29314
|
+
});
|
|
29281
29315
|
}
|
|
29282
29316
|
},
|
|
29283
29317
|
formatNowDay: function formatNowDay() {
|
|
@@ -29357,9 +29391,9 @@ var workClock = __webpack_require__(2554);
|
|
|
29357
29391
|
});
|
|
29358
29392
|
;// CONCATENATED MODULE: ./packages/ecmoa/desktop/src/components/workHead.vue?vue&type=script&lang=js
|
|
29359
29393
|
/* harmony default export */ var components_workHeadvue_type_script_lang_js = (workHeadvue_type_script_lang_js);
|
|
29360
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/desktop/src/components/workHead.vue?vue&type=style&index=0&id=
|
|
29361
|
-
var
|
|
29362
|
-
;// CONCATENATED MODULE: ./packages/ecmoa/desktop/src/components/workHead.vue?vue&type=style&index=0&id=
|
|
29394
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/desktop/src/components/workHead.vue?vue&type=style&index=0&id=86bb0962&prod&scoped=true&lang=scss
|
|
29395
|
+
var workHeadvue_type_style_index_0_id_86bb0962_prod_scoped_true_lang_scss = __webpack_require__(4739);
|
|
29396
|
+
;// CONCATENATED MODULE: ./packages/ecmoa/desktop/src/components/workHead.vue?vue&type=style&index=0&id=86bb0962&prod&scoped=true&lang=scss
|
|
29363
29397
|
|
|
29364
29398
|
;// CONCATENATED MODULE: ./packages/ecmoa/desktop/src/components/workHead.vue
|
|
29365
29399
|
|
|
@@ -29372,11 +29406,11 @@ var workHeadvue_type_style_index_0_id_209caa6f_prod_scoped_true_lang_scss = __we
|
|
|
29372
29406
|
|
|
29373
29407
|
var workHead_component = normalizeComponent(
|
|
29374
29408
|
components_workHeadvue_type_script_lang_js,
|
|
29375
|
-
|
|
29376
|
-
|
|
29409
|
+
workHeadvue_type_template_id_86bb0962_scoped_true_render,
|
|
29410
|
+
workHeadvue_type_template_id_86bb0962_scoped_true_staticRenderFns,
|
|
29377
29411
|
false,
|
|
29378
29412
|
null,
|
|
29379
|
-
"
|
|
29413
|
+
"86bb0962",
|
|
29380
29414
|
null
|
|
29381
29415
|
|
|
29382
29416
|
)
|