eoss-mobiles 0.3.95 → 0.3.97
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/CHANGELOG.md +95 -0
- package/lib/action-sheet.js +4 -4
- package/lib/button-group.js +4 -4
- package/lib/button.js +4 -4
- package/lib/calendar.js +4 -4
- package/lib/cascader.js +4 -4
- package/lib/cell.js +4 -4
- package/lib/checkbox.js +200 -173
- package/lib/circle.js +4 -4
- package/lib/config/api.js +16 -2
- package/lib/count-down.js +4 -4
- package/lib/date.js +108 -108
- package/lib/empty.js +4 -4
- package/lib/eoss-mobile.common.js +651 -83
- package/lib/esign.js +4 -4
- package/lib/field.js +4 -4
- package/lib/flow-btn.js +194 -167
- package/lib/flow-list.js +196 -167
- package/lib/flow.js +241 -212
- package/lib/form.js +93 -6
- package/lib/grid-item.js +4 -4
- package/lib/grid.js +12 -12
- package/lib/image-preview.js +15 -7
- package/lib/image.js +4 -4
- package/lib/index.js +1 -1
- package/lib/list.js +4 -4
- package/lib/loading.js +86 -86
- package/lib/nav-bar.js +4 -4
- package/lib/notice-bar.js +4 -4
- package/lib/pagination.js +4 -4
- package/lib/picker.js +200 -171
- package/lib/popover.js +4 -4
- package/lib/popup.js +4 -4
- package/lib/pull-refresh.js +4 -4
- package/lib/radio.js +199 -170
- package/lib/rate.js +4 -4
- package/lib/retrial-auth.js +194 -167
- package/lib/search.js +4 -4
- package/lib/selector.js +240 -211
- package/lib/skeleton.js +4 -4
- package/lib/stepper.js +4 -4
- package/lib/swipe.js +4 -4
- package/lib/switch.js +4 -4
- package/lib/tab.js +4 -4
- package/lib/table-column.js +194 -165
- package/lib/table.js +16 -16
- package/lib/tabs.js +4 -4
- package/lib/tag.js +4 -4
- package/lib/theme-chalk/fonts/iconfont.scss +98 -98
- package/lib/theme-chalk/fonts/iconfont1.scss +90 -90
- package/lib/uploader.js +2472 -13
- package/package.json +3 -1
- package/packages/action-sheet/index.js +5 -5
- package/packages/action-sheet/src/main.vue +32 -32
- package/packages/button/index.js +5 -5
- package/packages/button/src/main.vue +15 -15
- package/packages/button-group/index.js +5 -5
- package/packages/button-group/src/main.vue +80 -80
- package/packages/calendar/index.js +5 -5
- package/packages/calendar/src/main.vue +34 -34
- package/packages/cascader/index.js +5 -5
- package/packages/cascader/src/main.vue +39 -39
- package/packages/cell/index.js +5 -5
- package/packages/cell/src/main.vue +77 -77
- package/packages/checkbox/index.js +5 -5
- package/packages/checkbox/src/main.vue +232 -232
- package/packages/circle/index.js +5 -5
- package/packages/circle/src/main.vue +27 -27
- package/packages/count-down/index.js +5 -5
- package/packages/count-down/src/main.vue +27 -27
- package/packages/date/index.js +5 -5
- package/packages/date/src/date-time.vue +290 -290
- package/packages/date/src/main.vue +401 -401
- package/packages/empty/index.js +5 -5
- package/packages/empty/src/main.vue +16 -16
- package/packages/esign/index.js +5 -5
- package/packages/esign/src/main.vue +144 -144
- package/packages/field/index.js +5 -5
- package/packages/field/src/main.vue +235 -235
- package/packages/flow/index.js +5 -5
- package/packages/flow/src/components/Circulate.vue +595 -595
- package/packages/flow/src/components/Handle.vue +2404 -2404
- package/packages/flow/src/components/Message.vue +208 -208
- package/packages/flow/src/components/ProcessSettings.vue +342 -342
- package/packages/flow/src/components/supervise.vue +139 -139
- package/packages/flow/src/flowMix.js +288 -288
- package/packages/flow/src/main.vue +116 -116
- package/packages/flow-btn/index.js +5 -5
- package/packages/flow-btn/src/main.vue +494 -494
- package/packages/flow-list/index.js +5 -5
- package/packages/flow-list/src/main.vue +248 -248
- package/packages/form/index.js +5 -5
- package/packages/form/src/main.vue +548 -523
- package/packages/grid/index.js +5 -5
- package/packages/grid/src/main.vue +486 -486
- package/packages/grid-item/index.js +5 -5
- package/packages/grid-item/src/main.vue +16 -16
- package/packages/image/index.js +5 -5
- package/packages/image/src/main.vue +12 -12
- package/packages/image-preview/index.js +5 -5
- package/packages/image-preview/src/main.vue +41 -34
- package/packages/list/index.js +5 -5
- package/packages/list/src/main.vue +32 -32
- package/packages/loading/index.js +5 -5
- package/packages/loading/src/main.vue +19 -19
- package/packages/nav-bar/index.js +5 -5
- package/packages/nav-bar/src/main.vue +24 -24
- package/packages/notice-bar/index.js +5 -5
- package/packages/notice-bar/src/main.vue +15 -15
- package/packages/pagination/index.js +5 -5
- package/packages/pagination/src/main.vue +73 -73
- package/packages/picker/index.js +5 -5
- package/packages/picker/src/main.vue +604 -604
- package/packages/popover/index.js +5 -5
- package/packages/popover/src/main.vue +32 -32
- package/packages/popup/index.js +5 -5
- package/packages/popup/src/main.vue +27 -27
- package/packages/pull-refresh/index.js +5 -5
- package/packages/pull-refresh/src/main.vue +31 -31
- package/packages/radio/index.js +5 -5
- package/packages/radio/src/main.vue +179 -179
- package/packages/rate/index.js +5 -5
- package/packages/rate/src/main.vue +26 -26
- package/packages/retrial-auth/index.js +5 -5
- package/packages/retrial-auth/src/main.vue +257 -257
- package/packages/search/index.js +5 -5
- package/packages/search/src/main.vue +39 -39
- package/packages/selector/index.js +5 -5
- package/packages/selector/src/main.vue +186 -186
- package/packages/selector/src/selector-tree.vue +1117 -1117
- package/packages/selector/src/tree.vue +405 -405
- package/packages/skeleton/index.js +5 -5
- package/packages/skeleton/src/main.vue +17 -17
- package/packages/stepper/index.js +5 -5
- package/packages/stepper/src/main.vue +25 -25
- package/packages/swipe/index.js +5 -5
- package/packages/swipe/src/main.vue +42 -42
- package/packages/switch/index.js +5 -5
- package/packages/switch/src/main.vue +38 -38
- package/packages/tab/index.js +5 -5
- package/packages/tab/src/main.vue +16 -16
- package/packages/table/index.js +5 -5
- package/packages/table/src/main.vue +1006 -1006
- package/packages/table-column/index.js +5 -5
- package/packages/table-column/src/main.vue +931 -931
- package/packages/table-column/src/mixins/table.js +12 -12
- package/packages/tabs/index.js +5 -5
- package/packages/tabs/src/main.vue +34 -34
- package/packages/tag/index.js +5 -5
- package/packages/tag/src/main.vue +16 -16
- package/packages/theme-chalk/lib/action-sheet.css +0 -0
- package/packages/theme-chalk/lib/base.css +1 -0
- package/packages/theme-chalk/lib/button-group.css +1 -0
- package/packages/theme-chalk/lib/button.css +1 -0
- package/packages/theme-chalk/lib/calendar.css +1 -0
- package/packages/theme-chalk/lib/cascader.css +1 -0
- package/packages/theme-chalk/lib/cell.css +1 -0
- package/packages/theme-chalk/lib/checkbox.css +1 -0
- package/packages/theme-chalk/lib/circle.css +1 -0
- package/packages/theme-chalk/lib/count-down.css +0 -0
- package/packages/theme-chalk/lib/date.css +0 -0
- package/packages/theme-chalk/lib/empty.css +0 -0
- package/packages/theme-chalk/lib/esign.css +1 -0
- package/packages/theme-chalk/lib/field.css +1 -0
- package/packages/theme-chalk/lib/flow-btn.css +1 -0
- package/packages/theme-chalk/lib/flow-list-task-read.css +1 -0
- package/packages/theme-chalk/lib/flow-list.css +1 -0
- package/packages/theme-chalk/lib/flow.css +1 -0
- package/packages/theme-chalk/lib/fonts/iconfont.scss +98 -0
- package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/lib/fonts/iconfont1.scss +90 -0
- package/packages/theme-chalk/lib/form.css +1 -0
- package/packages/theme-chalk/lib/grid-item.css +1 -0
- package/packages/theme-chalk/lib/grid.css +1 -0
- package/packages/theme-chalk/lib/icon.css +1 -0
- package/packages/theme-chalk/lib/image-preview.css +0 -0
- package/packages/theme-chalk/lib/image.css +0 -0
- package/packages/theme-chalk/lib/index.css +1 -0
- package/packages/theme-chalk/lib/list.css +0 -0
- package/packages/theme-chalk/lib/loading.css +0 -0
- package/packages/theme-chalk/lib/nav-bar.css +0 -0
- package/packages/theme-chalk/lib/navbar.css +1 -0
- package/packages/theme-chalk/lib/notice-bar.css +0 -0
- package/packages/theme-chalk/lib/pagination.css +1 -0
- package/packages/theme-chalk/lib/picker.css +1 -0
- package/packages/theme-chalk/lib/popover.css +0 -0
- package/packages/theme-chalk/lib/popup.css +0 -0
- package/packages/theme-chalk/lib/pull-refresh.css +0 -0
- package/packages/theme-chalk/lib/radio.css +1 -0
- package/packages/theme-chalk/lib/rate.css +0 -0
- package/packages/theme-chalk/lib/retrial-auth.css +1 -0
- package/packages/theme-chalk/lib/search.css +0 -0
- package/packages/theme-chalk/lib/selector.css +1 -0
- package/packages/theme-chalk/lib/skeleton.css +0 -0
- package/packages/theme-chalk/lib/stepper.css +1 -0
- package/packages/theme-chalk/lib/swipe.css +0 -0
- package/packages/theme-chalk/lib/switch.css +1 -0
- package/packages/theme-chalk/lib/tab.css +0 -0
- package/packages/theme-chalk/lib/table-column.css +0 -0
- package/packages/theme-chalk/lib/table.css +1 -0
- package/packages/theme-chalk/lib/tabs.css +1 -0
- package/packages/theme-chalk/lib/tag.css +1 -0
- package/packages/theme-chalk/lib/theme.css +0 -0
- package/packages/theme-chalk/lib/tree.css +1 -0
- package/packages/theme-chalk/lib/uploader.css +0 -0
- package/packages/theme-chalk/src/base.scss +195 -195
- package/packages/theme-chalk/src/button-group.scss +25 -25
- package/packages/theme-chalk/src/button.scss +2 -2
- package/packages/theme-chalk/src/calendar.scss +11 -11
- package/packages/theme-chalk/src/cascader.scss +11 -11
- package/packages/theme-chalk/src/cell.scss +14 -14
- package/packages/theme-chalk/src/checkbox.scss +9 -9
- package/packages/theme-chalk/src/circle.scss +6 -6
- package/packages/theme-chalk/src/common/var.scss +1525 -1525
- package/packages/theme-chalk/src/esign.scss +51 -51
- package/packages/theme-chalk/src/field.scss +98 -98
- package/packages/theme-chalk/src/flow-btn.scss +99 -99
- package/packages/theme-chalk/src/flow-list.scss +122 -122
- package/packages/theme-chalk/src/fonts/iconfont.scss +98 -98
- package/packages/theme-chalk/src/fonts/iconfont1.scss +90 -90
- package/packages/theme-chalk/src/form.scss +33 -33
- package/packages/theme-chalk/src/grid-item.scss +16 -16
- package/packages/theme-chalk/src/grid.scss +46 -46
- package/packages/theme-chalk/src/icon.scss +1661 -1661
- package/packages/theme-chalk/src/mixins/color.scss +117 -117
- package/packages/theme-chalk/src/navbar.scss +5 -5
- package/packages/theme-chalk/src/pagination.scss +12 -12
- package/packages/theme-chalk/src/picker.scss +31 -31
- package/packages/theme-chalk/src/radio.scss +6 -6
- package/packages/theme-chalk/src/retrial-auth.scss +28 -28
- package/packages/theme-chalk/src/selector.scss +247 -247
- package/packages/theme-chalk/src/stepper.scss +9 -9
- package/packages/theme-chalk/src/switch.scss +5 -5
- package/packages/theme-chalk/src/table.scss +86 -86
- package/packages/theme-chalk/src/tabs.scss +31 -31
- package/packages/theme-chalk/src/tag.scss +12 -12
- package/packages/theme-chalk/src/theme.scss +1 -1
- package/packages/theme-chalk/src/tree.scss +127 -127
- package/packages/uploader/index.js +5 -5
- package/packages/uploader/src/main.vue +586 -31
- package/src/config/api.js +18 -0
- package/src/index.js +1 -1
- package/src/utils/axios.js +217 -217
- package/src/utils/date-util.js +312 -312
- package/src/utils/http.js +106 -106
- package/src/utils/rules.js +18 -18
- package/src/utils/store.js +21 -21
- package/packages/theme-chalk/gulpfile.js +0 -25
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 9);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ([
|
|
@@ -90,7 +90,7 @@ module.exports =
|
|
|
90
90
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
91
91
|
|
|
92
92
|
"use strict";
|
|
93
|
-
/* harmony import */ var _eoss_design_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
93
|
+
/* harmony import */ var _eoss_design_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
|
94
94
|
/* harmony import */ var _eoss_design_color__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_eoss_design_color__WEBPACK_IMPORTED_MODULE_0__);
|
|
95
95
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
96
96
|
|
|
@@ -98,7 +98,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
98
98
|
// import { authCenter } from '../config/api';
|
|
99
99
|
|
|
100
100
|
// import CryptoJS from 'crypto-js'
|
|
101
|
-
var sm2 = __webpack_require__(
|
|
101
|
+
var sm2 = __webpack_require__(10).sm2;
|
|
102
102
|
// /**
|
|
103
103
|
// * esEncrypt
|
|
104
104
|
// * @desc:sm2加密
|
|
@@ -1509,53 +1509,65 @@ module.exports = require("eoss-mobile-vant");
|
|
|
1509
1509
|
/* 2 */
|
|
1510
1510
|
/***/ (function(module, exports) {
|
|
1511
1511
|
|
|
1512
|
-
module.exports = require("
|
|
1512
|
+
module.exports = require("axios");
|
|
1513
1513
|
|
|
1514
1514
|
/***/ }),
|
|
1515
1515
|
/* 3 */
|
|
1516
1516
|
/***/ (function(module, exports) {
|
|
1517
1517
|
|
|
1518
|
-
module.exports = require("
|
|
1518
|
+
module.exports = require("element-ui");
|
|
1519
1519
|
|
|
1520
1520
|
/***/ }),
|
|
1521
1521
|
/* 4 */
|
|
1522
1522
|
/***/ (function(module, exports) {
|
|
1523
1523
|
|
|
1524
|
-
module.exports = require("
|
|
1524
|
+
module.exports = require("throttle-debounce");
|
|
1525
1525
|
|
|
1526
1526
|
/***/ }),
|
|
1527
1527
|
/* 5 */
|
|
1528
1528
|
/***/ (function(module, exports) {
|
|
1529
1529
|
|
|
1530
|
-
module.exports = require("
|
|
1530
|
+
module.exports = require("@eoss-design/color");
|
|
1531
1531
|
|
|
1532
1532
|
/***/ }),
|
|
1533
1533
|
/* 6 */
|
|
1534
1534
|
/***/ (function(module, exports) {
|
|
1535
1535
|
|
|
1536
|
-
module.exports = require("
|
|
1536
|
+
module.exports = require("qs");
|
|
1537
1537
|
|
|
1538
1538
|
/***/ }),
|
|
1539
1539
|
/* 7 */
|
|
1540
|
+
/***/ (function(module, exports) {
|
|
1541
|
+
|
|
1542
|
+
module.exports = require("vant");
|
|
1543
|
+
|
|
1544
|
+
/***/ }),
|
|
1545
|
+
/* 8 */
|
|
1546
|
+
/***/ (function(module, exports) {
|
|
1547
|
+
|
|
1548
|
+
module.exports = require("vuedraggable");
|
|
1549
|
+
|
|
1550
|
+
/***/ }),
|
|
1551
|
+
/* 9 */
|
|
1540
1552
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1541
1553
|
|
|
1542
|
-
module.exports = __webpack_require__(
|
|
1554
|
+
module.exports = __webpack_require__(12);
|
|
1543
1555
|
|
|
1544
1556
|
|
|
1545
1557
|
/***/ }),
|
|
1546
|
-
/*
|
|
1558
|
+
/* 10 */
|
|
1547
1559
|
/***/ (function(module, exports) {
|
|
1548
1560
|
|
|
1549
1561
|
module.exports = require("sm-crypto");
|
|
1550
1562
|
|
|
1551
1563
|
/***/ }),
|
|
1552
|
-
/*
|
|
1564
|
+
/* 11 */
|
|
1553
1565
|
/***/ (function(module, exports) {
|
|
1554
1566
|
|
|
1555
1567
|
module.exports = require("element-ui/lib/theme-chalk/table.css");
|
|
1556
1568
|
|
|
1557
1569
|
/***/ }),
|
|
1558
|
-
/*
|
|
1570
|
+
/* 12 */
|
|
1559
1571
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1560
1572
|
|
|
1561
1573
|
"use strict";
|
|
@@ -3311,15 +3323,29 @@ var saveCommonOpinion = flowPendingPrefix + '/commonOpinionsManager/save.dhtml';
|
|
|
3311
3323
|
var addCommonOpion = '/bpm/commonOpinionsManager/add';
|
|
3312
3324
|
// 直接办结
|
|
3313
3325
|
var api_endFlowHtml = flowPendingPrefix + '/task/taskHandle/endFlow.dhtml';
|
|
3326
|
+
// 附件相关
|
|
3327
|
+
var api_getAdjunctProperties = '/main2/mecpfileManagement/getAdjunctProperties'; // 获取附件扩展类型大小
|
|
3328
|
+
var uploads = '/main2/mecpfileManagement/upload'; // 上传接口
|
|
3329
|
+
var uploadOnlyOne = '/main2/mecpfileManagement/uploadOnlyOne'; // 上传接口(覆盖之前文件)
|
|
3330
|
+
var getAdjunctFileInfos = '/main2/mecpfileManagement/getAdjunctFileInfos'; // 附件列表
|
|
3331
|
+
var uploadSort = '/main2/mecpfileManagement/sort'; // 根据附件的ids排序附件
|
|
3332
|
+
var api_downloadByAdjunctId = '/main2/mecpfileManagement/downloadByAdjunctId'; // 下载附件
|
|
3333
|
+
var uploadDownloads = '/main2/mecpfileManagement/uploadDownloads'; // 批量下载//
|
|
3334
|
+
var previewAdjunct = '/main2/mecpfileManagement/previewAdjunct'; // 预览附件
|
|
3335
|
+
var previewAdjunct2 = '/main2/mecpfileManagement/previewAdjunct2/'; // 预览附件(带文件名)
|
|
3336
|
+
var previewAdjunctOffice = '/document/webDocument/documentIndex.dhtml'; // 预览附件word excel ppt
|
|
3337
|
+
var delAdjunct = '/main2/mecpfileManagement/delAdjunct'; // 删除附件
|
|
3338
|
+
var upload_updateClassify = '/main2/mecpfileManagement/updateClassify'; // 根据附件id保存该附件的分类信息
|
|
3339
|
+
var getDeleteAdjunctFileInfos = '/main2/mecpfileManagement/getDeleteAdjunctFileInfos'; // 根据业务id和附件code获取相关已删除附件的元数据列表
|
|
3314
3340
|
// EXTERNAL MODULE: external "axios"
|
|
3315
|
-
var external_axios_ = __webpack_require__(
|
|
3341
|
+
var external_axios_ = __webpack_require__(2);
|
|
3316
3342
|
var external_axios_default = /*#__PURE__*/__webpack_require__.n(external_axios_);
|
|
3317
3343
|
|
|
3318
3344
|
// EXTERNAL MODULE: external "eoss-mobile-vant"
|
|
3319
3345
|
var external_eoss_mobile_vant_ = __webpack_require__(1);
|
|
3320
3346
|
|
|
3321
3347
|
// EXTERNAL MODULE: external "qs"
|
|
3322
|
-
var external_qs_ = __webpack_require__(
|
|
3348
|
+
var external_qs_ = __webpack_require__(6);
|
|
3323
3349
|
var external_qs_default = /*#__PURE__*/__webpack_require__.n(external_qs_);
|
|
3324
3350
|
|
|
3325
3351
|
// CONCATENATED MODULE: ./src/utils/axios.js
|
|
@@ -4251,12 +4277,12 @@ var _props, _methods;
|
|
|
4251
4277
|
});
|
|
4252
4278
|
},
|
|
4253
4279
|
|
|
4254
|
-
/**
|
|
4255
|
-
* delteList
|
|
4256
|
-
* @desc:删除选中的数据
|
|
4257
|
-
* @date 2023年3月6日
|
|
4258
|
-
* @author liufan
|
|
4259
|
-
* @param {String,Number} i 点击数据的下标
|
|
4280
|
+
/**
|
|
4281
|
+
* delteList
|
|
4282
|
+
* @desc:删除选中的数据
|
|
4283
|
+
* @date 2023年3月6日
|
|
4284
|
+
* @author liufan
|
|
4285
|
+
* @param {String,Number} i 点击数据的下标
|
|
4260
4286
|
*/
|
|
4261
4287
|
delteList: function delteList(i) {
|
|
4262
4288
|
this.oldIsSearch = this.isSearch;
|
|
@@ -4279,11 +4305,11 @@ var _props, _methods;
|
|
|
4279
4305
|
}
|
|
4280
4306
|
},
|
|
4281
4307
|
|
|
4282
|
-
/**
|
|
4283
|
-
* onSearch
|
|
4284
|
-
* @desc:条件搜索
|
|
4285
|
-
* @date 2023年3月6日
|
|
4286
|
-
* @author liufan
|
|
4308
|
+
/**
|
|
4309
|
+
* onSearch
|
|
4310
|
+
* @desc:条件搜索
|
|
4311
|
+
* @date 2023年3月6日
|
|
4312
|
+
* @author liufan
|
|
4287
4313
|
*/
|
|
4288
4314
|
onSearch: function onSearch() {
|
|
4289
4315
|
var _this5 = this;
|
|
@@ -4302,11 +4328,11 @@ var _props, _methods;
|
|
|
4302
4328
|
}, 1000);
|
|
4303
4329
|
},
|
|
4304
4330
|
|
|
4305
|
-
/**
|
|
4306
|
-
* getContent
|
|
4307
|
-
* @desc:获取数据
|
|
4308
|
-
* @date 2023年3月6日
|
|
4309
|
-
* @author liufan
|
|
4331
|
+
/**
|
|
4332
|
+
* getContent
|
|
4333
|
+
* @desc:获取数据
|
|
4334
|
+
* @date 2023年3月6日
|
|
4335
|
+
* @author liufan
|
|
4310
4336
|
*/
|
|
4311
4337
|
getContent: function getContent(name, isSearch) {
|
|
4312
4338
|
var _this6 = this;
|
|
@@ -5283,12 +5309,12 @@ var selector_field_component = normalizeComponent(
|
|
|
5283
5309
|
this.$emit('selector-click', this.showSelectorTree);
|
|
5284
5310
|
},
|
|
5285
5311
|
|
|
5286
|
-
/**
|
|
5287
|
-
* handleDispose
|
|
5288
|
-
* @desc:确认选人
|
|
5289
|
-
* @date 2023年3月6日
|
|
5290
|
-
* @author liufan
|
|
5291
|
-
* @param {Object} val 选中的人员/单位
|
|
5312
|
+
/**
|
|
5313
|
+
* handleDispose
|
|
5314
|
+
* @desc:确认选人
|
|
5315
|
+
* @date 2023年3月6日
|
|
5316
|
+
* @author liufan
|
|
5317
|
+
* @param {Object} val 选中的人员/单位
|
|
5292
5318
|
*/
|
|
5293
5319
|
handleDispose: function handleDispose(val) {
|
|
5294
5320
|
this.inputValue = '';
|
|
@@ -5306,12 +5332,12 @@ var selector_field_component = normalizeComponent(
|
|
|
5306
5332
|
this.$emit('selector-click', this.showSelectorTree);
|
|
5307
5333
|
},
|
|
5308
5334
|
|
|
5309
|
-
/**
|
|
5310
|
-
* handleChangeSel
|
|
5311
|
-
* @desc:输入框数据发生变化时
|
|
5312
|
-
* @date 2023年3月6日
|
|
5313
|
-
* @author liufan
|
|
5314
|
-
* @param {Array} val 变化后的选中数据
|
|
5335
|
+
/**
|
|
5336
|
+
* handleChangeSel
|
|
5337
|
+
* @desc:输入框数据发生变化时
|
|
5338
|
+
* @date 2023年3月6日
|
|
5339
|
+
* @author liufan
|
|
5340
|
+
* @param {Array} val 变化后的选中数据
|
|
5315
5341
|
*/
|
|
5316
5342
|
handleChangeSel: function handleChangeSel(val) {
|
|
5317
5343
|
if (val) {
|
|
@@ -5976,11 +6002,11 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5976
6002
|
return util["a" /* default */].exclAttribute({ data: data, attrs: attrs });
|
|
5977
6003
|
},
|
|
5978
6004
|
|
|
5979
|
-
/**
|
|
5980
|
-
* handleChange
|
|
5981
|
-
* @desc:当绑定值变化时触发的事件
|
|
5982
|
-
* @date 2023年3月6日
|
|
5983
|
-
* @author liufan
|
|
6005
|
+
/**
|
|
6006
|
+
* handleChange
|
|
6007
|
+
* @desc:当绑定值变化时触发的事件
|
|
6008
|
+
* @date 2023年3月6日
|
|
6009
|
+
* @author liufan
|
|
5984
6010
|
*/
|
|
5985
6011
|
// handleChange(val) {
|
|
5986
6012
|
// this.$emit('change', val);
|
|
@@ -6791,12 +6817,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
6791
6817
|
}
|
|
6792
6818
|
},
|
|
6793
6819
|
|
|
6794
|
-
/**
|
|
6795
|
-
* deleteList
|
|
6796
|
-
* @desc:删除选中的数据
|
|
6797
|
-
* @date 2023年4月20日
|
|
6798
|
-
* @author liufan
|
|
6799
|
-
* @param {String} val 当前数据的下标
|
|
6820
|
+
/**
|
|
6821
|
+
* deleteList
|
|
6822
|
+
* @desc:删除选中的数据
|
|
6823
|
+
* @date 2023年4月20日
|
|
6824
|
+
* @author liufan
|
|
6825
|
+
* @param {String} val 当前数据的下标
|
|
6800
6826
|
*/
|
|
6801
6827
|
deleteList: function deleteList(val, res) {
|
|
6802
6828
|
if (this.disabled || this.readonly) return;
|
|
@@ -7385,8 +7411,8 @@ switch_src_main.install = function (Vue) {
|
|
|
7385
7411
|
};
|
|
7386
7412
|
|
|
7387
7413
|
/* harmony default export */ var packages_switch = (switch_src_main);
|
|
7388
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/uploader/src/main.vue?vue&type=template&id=
|
|
7389
|
-
var
|
|
7414
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/uploader/src/main.vue?vue&type=template&id=ad911db4
|
|
7415
|
+
var mainvue_type_template_id_ad911db4_render = function () {
|
|
7390
7416
|
var _vm = this
|
|
7391
7417
|
var _h = _vm.$createElement
|
|
7392
7418
|
var _c = _vm._self._c || _h
|
|
@@ -7395,12 +7421,23 @@ var mainvue_type_template_id_6704a82d_render = function () {
|
|
|
7395
7421
|
_vm._g(
|
|
7396
7422
|
_vm._b(
|
|
7397
7423
|
{
|
|
7424
|
+
attrs: {
|
|
7425
|
+
"after-read": _vm.afterRead,
|
|
7426
|
+
accept: _vm.fileAccept,
|
|
7427
|
+
"max-size": _vm.fileSize,
|
|
7428
|
+
multiple: "",
|
|
7429
|
+
},
|
|
7430
|
+
on: {
|
|
7431
|
+
oversize: _vm.onOversize,
|
|
7432
|
+
"click-preview": _vm.handlePreview,
|
|
7433
|
+
delete: _vm.handleBeforeRemove,
|
|
7434
|
+
},
|
|
7398
7435
|
model: {
|
|
7399
|
-
value: _vm.
|
|
7436
|
+
value: _vm.fileList,
|
|
7400
7437
|
callback: function ($$v) {
|
|
7401
|
-
_vm.
|
|
7438
|
+
_vm.fileList = $$v
|
|
7402
7439
|
},
|
|
7403
|
-
expression: "
|
|
7440
|
+
expression: "fileList",
|
|
7404
7441
|
},
|
|
7405
7442
|
},
|
|
7406
7443
|
"van-uploader",
|
|
@@ -7417,13 +7454,31 @@ var mainvue_type_template_id_6704a82d_render = function () {
|
|
|
7417
7454
|
2
|
|
7418
7455
|
)
|
|
7419
7456
|
}
|
|
7420
|
-
var
|
|
7421
|
-
|
|
7457
|
+
var mainvue_type_template_id_ad911db4_staticRenderFns = []
|
|
7458
|
+
mainvue_type_template_id_ad911db4_render._withStripped = true
|
|
7459
|
+
|
|
7460
|
+
|
|
7461
|
+
// CONCATENATED MODULE: ./packages/uploader/src/main.vue?vue&type=template&id=ad911db4
|
|
7422
7462
|
|
|
7463
|
+
// EXTERNAL MODULE: external "vant"
|
|
7464
|
+
var external_vant_ = __webpack_require__(7);
|
|
7423
7465
|
|
|
7424
|
-
//
|
|
7466
|
+
// EXTERNAL MODULE: external "throttle-debounce"
|
|
7467
|
+
var external_throttle_debounce_ = __webpack_require__(4);
|
|
7425
7468
|
|
|
7426
7469
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/uploader/src/main.vue?vue&type=script&lang=js
|
|
7470
|
+
var uploader_src_mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
7471
|
+
|
|
7472
|
+
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
|
|
7473
|
+
|
|
7474
|
+
//
|
|
7475
|
+
//
|
|
7476
|
+
//
|
|
7477
|
+
//
|
|
7478
|
+
//
|
|
7479
|
+
//
|
|
7480
|
+
//
|
|
7481
|
+
//
|
|
7427
7482
|
//
|
|
7428
7483
|
//
|
|
7429
7484
|
//
|
|
@@ -7432,25 +7487,443 @@ mainvue_type_template_id_6704a82d_render._withStripped = true
|
|
|
7432
7487
|
//
|
|
7433
7488
|
//
|
|
7434
7489
|
//
|
|
7490
|
+
//
|
|
7491
|
+
//
|
|
7492
|
+
//
|
|
7493
|
+
|
|
7494
|
+
|
|
7495
|
+
|
|
7496
|
+
|
|
7497
|
+
|
|
7498
|
+
|
|
7435
7499
|
|
|
7436
7500
|
/* harmony default export */ var uploader_src_mainvue_type_script_lang_js = ({
|
|
7437
7501
|
name: 'EmUploader',
|
|
7438
7502
|
props: {
|
|
7503
|
+
ownId: {
|
|
7504
|
+
required: true,
|
|
7505
|
+
type: String,
|
|
7506
|
+
default: ''
|
|
7507
|
+
},
|
|
7508
|
+
code: {
|
|
7509
|
+
required: true,
|
|
7510
|
+
type: String,
|
|
7511
|
+
default: ''
|
|
7512
|
+
},
|
|
7513
|
+
param: {
|
|
7514
|
+
type: Object,
|
|
7515
|
+
default: function _default() {
|
|
7516
|
+
return {};
|
|
7517
|
+
}
|
|
7518
|
+
},
|
|
7439
7519
|
value: {
|
|
7440
7520
|
type: Array,
|
|
7441
7521
|
default: function _default() {
|
|
7442
7522
|
return [];
|
|
7443
7523
|
}
|
|
7524
|
+
},
|
|
7525
|
+
properties: {
|
|
7526
|
+
type: String,
|
|
7527
|
+
default: function _default() {
|
|
7528
|
+
return api_getAdjunctProperties;
|
|
7529
|
+
}
|
|
7530
|
+
},
|
|
7531
|
+
host: {
|
|
7532
|
+
type: String,
|
|
7533
|
+
default: function _default() {
|
|
7534
|
+
return util["a" /* default */].getStorage('host') ? util["a" /* default */].getStorage('host') : '';
|
|
7535
|
+
}
|
|
7444
7536
|
}
|
|
7445
7537
|
},
|
|
7538
|
+
data: function data() {
|
|
7539
|
+
var _ref;
|
|
7540
|
+
|
|
7541
|
+
return _ref = {
|
|
7542
|
+
showPreview: false,
|
|
7543
|
+
images: [],
|
|
7544
|
+
uploadUrl: '',
|
|
7545
|
+
kkfileview: null,
|
|
7546
|
+
fileAccept: '',
|
|
7547
|
+
fileSize: 0,
|
|
7548
|
+
filesTotalSize: 0,
|
|
7549
|
+
dochubConfig: {},
|
|
7550
|
+
fileList: []
|
|
7551
|
+
}, _ref['dochubConfig'] = {}, _ref;
|
|
7552
|
+
},
|
|
7553
|
+
beforeCreate: function beforeCreate() {
|
|
7554
|
+
var _this = this;
|
|
7555
|
+
|
|
7556
|
+
this.getFiles = Object(external_throttle_debounce_["debounce"])(500, function () {
|
|
7557
|
+
_this.getFileLists();
|
|
7558
|
+
});
|
|
7559
|
+
this.getAdjunctPropertie = Object(external_throttle_debounce_["debounce"])(500, function () {
|
|
7560
|
+
_this.getAdjunctProperties();
|
|
7561
|
+
});
|
|
7562
|
+
},
|
|
7563
|
+
created: function created() {
|
|
7564
|
+
var dochubConfig = sessionStorage.getItem('dochubConfig');
|
|
7565
|
+
if (dochubConfig) {
|
|
7566
|
+
this.dochubConfig = JSON.parse(dochubConfig);
|
|
7567
|
+
}
|
|
7568
|
+
this.getAdjunctPropertie();
|
|
7569
|
+
},
|
|
7570
|
+
|
|
7446
7571
|
computed: {
|
|
7447
7572
|
newValue: {
|
|
7448
7573
|
get: function get() {
|
|
7449
|
-
return this.
|
|
7574
|
+
return this.fileList;
|
|
7450
7575
|
},
|
|
7451
7576
|
set: function set(val) {
|
|
7452
7577
|
return val;
|
|
7453
7578
|
}
|
|
7579
|
+
},
|
|
7580
|
+
params: function params() {
|
|
7581
|
+
var params = uploader_src_mainvue_type_script_lang_js_extends({ userId: util["a" /* default */].getStorage('userId') }, this.param);
|
|
7582
|
+
if (this.code !== undefined) {
|
|
7583
|
+
params.code = this.code;
|
|
7584
|
+
params.bucketCode = this.code;
|
|
7585
|
+
}
|
|
7586
|
+
if (this.ownId !== undefined) {
|
|
7587
|
+
params.ownId = this.ownId;
|
|
7588
|
+
params.businessId = this.ownId;
|
|
7589
|
+
}
|
|
7590
|
+
return params;
|
|
7591
|
+
}
|
|
7592
|
+
},
|
|
7593
|
+
methods: {
|
|
7594
|
+
afterRead: function afterRead(file) {
|
|
7595
|
+
file.status = 'uploading';
|
|
7596
|
+
file.message = '上传中...';
|
|
7597
|
+
this.handleFileUpload(file);
|
|
7598
|
+
// this.fileList.push(file);
|
|
7599
|
+
},
|
|
7600
|
+
onOversize: function onOversize() {
|
|
7601
|
+
this.$toast('文件大小超过限制');
|
|
7602
|
+
},
|
|
7603
|
+
|
|
7604
|
+
//根据code获取附件参数配置
|
|
7605
|
+
getAdjunctProperties: function getAdjunctProperties() {
|
|
7606
|
+
var _this2 = this;
|
|
7607
|
+
|
|
7608
|
+
console.log('getAdjunctProperties');
|
|
7609
|
+
if (this.code !== undefined) {
|
|
7610
|
+
utils_http({
|
|
7611
|
+
method: 'get',
|
|
7612
|
+
url: this.properties,
|
|
7613
|
+
data: uploader_src_mainvue_type_script_lang_js_extends({ code: this.code }, this.param),
|
|
7614
|
+
params: uploader_src_mainvue_type_script_lang_js_extends({ code: this.code }, this.param)
|
|
7615
|
+
}).then(function (res) {
|
|
7616
|
+
if (res.rCode === 0) {
|
|
7617
|
+
if (res.results) {
|
|
7618
|
+
_this2.excludeNames = res.results.excludeName;
|
|
7619
|
+
if (res.results.fileTypeExtName) {
|
|
7620
|
+
var fileTypeExtName = res.results.fileTypeExtName.split(';');
|
|
7621
|
+
_this2.fileAccept = fileTypeExtName.filter(function (item) {
|
|
7622
|
+
return item;
|
|
7623
|
+
}).join(',');
|
|
7624
|
+
}
|
|
7625
|
+
if (res.results.dochubConfig) {
|
|
7626
|
+
_this2.dochubConfig = res.results.dochubConfig;
|
|
7627
|
+
sessionStorage.setItem('dochubConfig', JSON.stringify(res.results.dochubConfig));
|
|
7628
|
+
}
|
|
7629
|
+
var url = _this2.dochubConfig.uploadDocumentUrl || uploads;
|
|
7630
|
+
_this2.uploadUrl = url.indexOf(_this2.host) > -1 ? url : _this2.host + url;
|
|
7631
|
+
if (res.results.kkViewRootPath) {
|
|
7632
|
+
_this2.kkfileview = res.results.kkViewRootPath;
|
|
7633
|
+
}
|
|
7634
|
+
_this2.fileSize = res.results.limitFileSize ? res.results.limitFileSize * 1024 : 0;
|
|
7635
|
+
// this.fileTotalSize = res.results.limitTotalSize;
|
|
7636
|
+
}
|
|
7637
|
+
_this2.getFiles();
|
|
7638
|
+
}
|
|
7639
|
+
}).catch(function (err) {
|
|
7640
|
+
if (err.message && err.message !== 'canceled') {
|
|
7641
|
+
_this2.$message.error(err.message);
|
|
7642
|
+
}
|
|
7643
|
+
});
|
|
7644
|
+
}
|
|
7645
|
+
},
|
|
7646
|
+
getFileLists: function getFileLists() {
|
|
7647
|
+
var _this3 = this;
|
|
7648
|
+
|
|
7649
|
+
// if (
|
|
7650
|
+
// !this.show ||
|
|
7651
|
+
// (this.fileList &&
|
|
7652
|
+
// Array.isArray(this.fileList) &&
|
|
7653
|
+
// this.fileList.length) ||
|
|
7654
|
+
// (this.requiredOwnId &&
|
|
7655
|
+
// !Object.prototype.hasOwnProperty.call(this.params, 'ownId'))
|
|
7656
|
+
// ) {
|
|
7657
|
+
// return false;
|
|
7658
|
+
// }
|
|
7659
|
+
var url = typeof this.fileList === 'string' ? this.fileList : this.dochubConfig.getDocumentList ? this.dochubConfig.getDocumentList : getAdjunctFileInfos;
|
|
7660
|
+
utils_http({
|
|
7661
|
+
method: 'get',
|
|
7662
|
+
url: url,
|
|
7663
|
+
data: this.params,
|
|
7664
|
+
params: this.params,
|
|
7665
|
+
format: false
|
|
7666
|
+
}).then(function (res) {
|
|
7667
|
+
console.log('getFileLists');
|
|
7668
|
+
if (res.rCode === 0) {
|
|
7669
|
+
var lists = JSON.parse(JSON.stringify(res.results));
|
|
7670
|
+
var filesTotalSize = 0;
|
|
7671
|
+
lists.forEach(function (item) {
|
|
7672
|
+
if (Object.prototype.hasOwnProperty.call(item, 'fileSize') && item.fileSize) {
|
|
7673
|
+
filesTotalSize += parseFloat(item.fileSize, 10);
|
|
7674
|
+
} else {
|
|
7675
|
+
filesTotalSize += item.size ? Math.round(item.size / 1024 * 10) / 10 : 0;
|
|
7676
|
+
}
|
|
7677
|
+
});
|
|
7678
|
+
_this3.filesTotalSize = filesTotalSize;
|
|
7679
|
+
if (lists.length) {
|
|
7680
|
+
_this3.fileList = lists.map(function (item) {
|
|
7681
|
+
return uploader_src_mainvue_type_script_lang_js_extends({ file: new File([], item.originalName) }, item);
|
|
7682
|
+
});
|
|
7683
|
+
}
|
|
7684
|
+
} else {
|
|
7685
|
+
var msg = res.msg || '系统错误,请联系管理员!';
|
|
7686
|
+
_this3.$message.error(msg);
|
|
7687
|
+
}
|
|
7688
|
+
}).catch(function (err) {
|
|
7689
|
+
if (err.message && err.message !== 'canceled') {
|
|
7690
|
+
_this3.$message.error(err.message);
|
|
7691
|
+
}
|
|
7692
|
+
});
|
|
7693
|
+
},
|
|
7694
|
+
openKkfileview: function openKkfileview(file) {
|
|
7695
|
+
var host = util["a" /* default */].win.location.origin;
|
|
7696
|
+
if (this.host) {
|
|
7697
|
+
if (util["a" /* default */].startWith(this.host, 'http')) {
|
|
7698
|
+
host = this.host;
|
|
7699
|
+
} else {
|
|
7700
|
+
host += this.host;
|
|
7701
|
+
}
|
|
7702
|
+
}
|
|
7703
|
+
var url = encodeURIComponent(Base64.encode(host + (typeof this.download === 'string' ? this.download : downloadByAdjunctId) + ('?adjunctId=' + (file.adjunctId || file.response.adjunctId) + '&fullfilename=' + file.originalName)));
|
|
7704
|
+
location.href = this.kkfileview + '?url=' + url;
|
|
7705
|
+
},
|
|
7706
|
+
handlePreview: function handlePreview(res) {
|
|
7707
|
+
var _this4 = this;
|
|
7708
|
+
|
|
7709
|
+
console.log('res', res);
|
|
7710
|
+
if (this.onPreview) {
|
|
7711
|
+
this.onPreview(res);
|
|
7712
|
+
} else {
|
|
7713
|
+
var file = res.response ? res.response : res;
|
|
7714
|
+
var url = typeof this.preview === 'string' ? this.preview : typeof this.preview === 'function' ? this.preview(file) : null;
|
|
7715
|
+
if (res.status === 'success' || res.status == 0) {
|
|
7716
|
+
var suffix = file.suffix;
|
|
7717
|
+
suffix = suffix.toLowerCase();
|
|
7718
|
+
if (this.dochubConfig.previewDocumentUrl) {
|
|
7719
|
+
if (suffix.includes('jpeg') || suffix.includes('jpg') || suffix.includes('gif') || suffix.includes('png')) {
|
|
7720
|
+
this.imgUrl = res.url && util["a" /* default */].startWith(url, ['http', '/', true]) ? res.url : this.host + (url ? url : this.dochubConfig.downloadDocumentUrl + '?documentId=' + file.adjunctId);
|
|
7721
|
+
this.title = file.originalName;
|
|
7722
|
+
this.showImg = true;
|
|
7723
|
+
this.$nextTick(function () {
|
|
7724
|
+
_this4.loadImage();
|
|
7725
|
+
});
|
|
7726
|
+
} else if (suffix.includes('mp4')) {
|
|
7727
|
+
this.source = {
|
|
7728
|
+
src: this.host + (url ? url : this.dochubConfig.downloadDocumentUrl + '?documentId=' + file.adjunctId)
|
|
7729
|
+
};
|
|
7730
|
+
this.title = file.originalName;
|
|
7731
|
+
this.showVideo = true;
|
|
7732
|
+
} else {
|
|
7733
|
+
location.href = this.host + (url ? url : this.dochubConfig.previewDocumentUrl + '?documentId=' + file.adjunctId + '&action=\u9644\u4EF6\u9884\u89C8');
|
|
7734
|
+
}
|
|
7735
|
+
} else {
|
|
7736
|
+
if (suffix.includes('doc') || suffix.includes('docx') || suffix.includes('xls') || suffix.includes('xlsx') || suffix.includes('ppt')) {
|
|
7737
|
+
if (this.kkfileview) {
|
|
7738
|
+
this.openKkfileview(file);
|
|
7739
|
+
} else {
|
|
7740
|
+
location.href = this.host + (url ? url : previewAdjunctOffice) + '?cmd=view&bucketName=' + file.absolutePath + '&fileId=' + file.adjunctId + '&fileName=' + file.newName;
|
|
7741
|
+
}
|
|
7742
|
+
} else if (suffix.includes('pdf')) {
|
|
7743
|
+
if (this.kkfileview) {
|
|
7744
|
+
this.openKkfileview(file);
|
|
7745
|
+
} else {
|
|
7746
|
+
location.href = this.host + (url ? url : previewAdjunct2) + '/' + file.originalName + '?adjunctId=' + file.adjunctId;
|
|
7747
|
+
}
|
|
7748
|
+
} else if (suffix.includes('jpeg') || suffix.includes('jpg') || suffix.includes('gif') || suffix.includes('png')) {
|
|
7749
|
+
var imgUrl = res.url && util["a" /* default */].startWith(url, ['http', '/', true]) ? res.url : this.host + (url ? url : previewAdjunct) + '?adjunctId=' + file.adjunctId;
|
|
7750
|
+
this.title = file.originalName;
|
|
7751
|
+
this.images = [imgUrl];
|
|
7752
|
+
console.log('this.images', this.images);
|
|
7753
|
+
Object(external_vant_["ImagePreview"])({ iamges: this.images, closeable: true });
|
|
7754
|
+
} else if (suffix.includes('mp4')) {
|
|
7755
|
+
this.source = {
|
|
7756
|
+
src: this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId
|
|
7757
|
+
};
|
|
7758
|
+
this.title = file.originalName;
|
|
7759
|
+
this.showVideo = true;
|
|
7760
|
+
} else {
|
|
7761
|
+
if (this.kkfileview) {
|
|
7762
|
+
this.openKkfileview(file);
|
|
7763
|
+
} else {
|
|
7764
|
+
location.href = this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId;
|
|
7765
|
+
}
|
|
7766
|
+
}
|
|
7767
|
+
}
|
|
7768
|
+
} else {
|
|
7769
|
+
location.href = URL.createObjectURL(file.raw);
|
|
7770
|
+
}
|
|
7771
|
+
}
|
|
7772
|
+
},
|
|
7773
|
+
handleBeforeRemove: function handleBeforeRemove(file) {
|
|
7774
|
+
var _this5 = this;
|
|
7775
|
+
|
|
7776
|
+
if (file && (file.status === 'success' || file.status == 0)) {
|
|
7777
|
+
return this.$confirm('确定删除文件吗?', '提示', {
|
|
7778
|
+
confirmButtonText: '确定',
|
|
7779
|
+
cancelButtonText: '取消',
|
|
7780
|
+
type: 'warning'
|
|
7781
|
+
}).then(function () {
|
|
7782
|
+
if (file.status === 'success' || file.status == 0) {
|
|
7783
|
+
var userName = file.userName || file.response && file.response.userName || util["a" /* default */].getStorage('userName');
|
|
7784
|
+
// eslint-disable-next-line no-undef
|
|
7785
|
+
return new Promise(function (resolve, reject) {
|
|
7786
|
+
var url = typeof _this5.deleted === 'string' ? _this5.deleted : _this5.remove === 'string' ? _this5.remove : _this5.dochubConfig.deleteDocumentUrl || delAdjunct;
|
|
7787
|
+
utils_http({
|
|
7788
|
+
method: 'get',
|
|
7789
|
+
url: url,
|
|
7790
|
+
data: {
|
|
7791
|
+
userName: userName,
|
|
7792
|
+
documentId: file.adjunctId || file.response.adjunctId,
|
|
7793
|
+
id: file.adjunctId || file.response.adjunctId
|
|
7794
|
+
},
|
|
7795
|
+
params: {
|
|
7796
|
+
userName: userName,
|
|
7797
|
+
documentId: file.adjunctId || file.response.adjunctId,
|
|
7798
|
+
id: file.adjunctId || file.response.adjunctId
|
|
7799
|
+
}
|
|
7800
|
+
}).then(function (res) {
|
|
7801
|
+
if (res.rCode === 0) {
|
|
7802
|
+
var se = _this5.filesTotalSize - Math.round(file.size / 1024 * 10) / 10;
|
|
7803
|
+
_this5.filesTotalSize = se;
|
|
7804
|
+
_this5.$message.success(res.msg);
|
|
7805
|
+
resolve();
|
|
7806
|
+
} else {
|
|
7807
|
+
var msg = res.msg || '系统错误,请联系管理员!';
|
|
7808
|
+
_this5.$message.error(msg);
|
|
7809
|
+
reject();
|
|
7810
|
+
}
|
|
7811
|
+
}).catch(function (err) {
|
|
7812
|
+
if (err.message && err.message !== 'canceled') {
|
|
7813
|
+
_this5.$message.error(err.message);
|
|
7814
|
+
}
|
|
7815
|
+
});
|
|
7816
|
+
});
|
|
7817
|
+
}
|
|
7818
|
+
return true;
|
|
7819
|
+
}).catch(function () {
|
|
7820
|
+
return flag;
|
|
7821
|
+
});
|
|
7822
|
+
}
|
|
7823
|
+
},
|
|
7824
|
+
isLt: function isLt(file) {
|
|
7825
|
+
var flag = false;
|
|
7826
|
+
var flieArr = file.name.split('.');
|
|
7827
|
+
var suffix = '.' + flieArr[flieArr.length - 1].toLowerCase();
|
|
7828
|
+
if (this.accepts) {
|
|
7829
|
+
var accepts = this.accepts.toLowerCase().split(',');
|
|
7830
|
+
flag = accepts.includes(suffix);
|
|
7831
|
+
if (!flag) {
|
|
7832
|
+
this.$message.error('\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF\uFF0C\u8BF7\u4E0A\u4F20' + this.accepts + '\u7C7B\u578B\u6587\u4EF6!');
|
|
7833
|
+
return flag;
|
|
7834
|
+
}
|
|
7835
|
+
}
|
|
7836
|
+
var size = this._size;
|
|
7837
|
+
var text = '单个附件';
|
|
7838
|
+
var se = Math.round(file.size / 1024 * 10) / 10;
|
|
7839
|
+
if (this._size === 0 && this._totalSize === 0) {
|
|
7840
|
+
flag = true;
|
|
7841
|
+
} else if (this._size > 0 && this._totalSize === 0) {
|
|
7842
|
+
flag = se < this._size;
|
|
7843
|
+
size = this._size;
|
|
7844
|
+
text = '单个附件';
|
|
7845
|
+
} else if (this._size === 0 && this._totalSize > 0) {
|
|
7846
|
+
flag = this.filesTotalSize + se < this._totalSize;
|
|
7847
|
+
size = this._totalSize;
|
|
7848
|
+
text = '附件总';
|
|
7849
|
+
} else {
|
|
7850
|
+
flag = se < this._size && this.filesTotalSize + se < this._totalSize;
|
|
7851
|
+
if (se < this._size) {
|
|
7852
|
+
size = this._size;
|
|
7853
|
+
text = '单个附件';
|
|
7854
|
+
} else {
|
|
7855
|
+
size = this._totalSize;
|
|
7856
|
+
text = '附件总';
|
|
7857
|
+
}
|
|
7858
|
+
}
|
|
7859
|
+
if (!flag) {
|
|
7860
|
+
this.$message.error('\u4E0A\u4F20' + text + '\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7' + size + 'KB!');
|
|
7861
|
+
return flag;
|
|
7862
|
+
}
|
|
7863
|
+
return flag;
|
|
7864
|
+
},
|
|
7865
|
+
|
|
7866
|
+
// 处理文件上传
|
|
7867
|
+
handleFileUpload: function handleFileUpload(file) {
|
|
7868
|
+
var _this6 = this;
|
|
7869
|
+
|
|
7870
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
7871
|
+
var formData, headers;
|
|
7872
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
7873
|
+
while (1) {
|
|
7874
|
+
switch (_context.prev = _context.next) {
|
|
7875
|
+
case 0:
|
|
7876
|
+
formData = new FormData();
|
|
7877
|
+
|
|
7878
|
+
formData.append('file', file.file);
|
|
7879
|
+
formData.append('businessId', _this6.ownId);
|
|
7880
|
+
formData.append('ownId', _this6.ownId);
|
|
7881
|
+
formData.append('bucketCode', _this6.code);
|
|
7882
|
+
formData.append('code', _this6.code);
|
|
7883
|
+
|
|
7884
|
+
headers = {
|
|
7885
|
+
authorization: util["a" /* default */].getStorage('token'),
|
|
7886
|
+
deviceId: util["a" /* default */].getStorage('deviceId') || 'ceshi',
|
|
7887
|
+
accept: '*/*'
|
|
7888
|
+
};
|
|
7889
|
+
_context.next = 9;
|
|
7890
|
+
return external_axios_default.a.post(_this6.uploadUrl, formData, {
|
|
7891
|
+
headers: headers,
|
|
7892
|
+
withCredentials: true
|
|
7893
|
+
}).then(function (response) {
|
|
7894
|
+
if (response.data.rCode == 0) {
|
|
7895
|
+
console.log('response.data.rCode', response.data.rCode);
|
|
7896
|
+
file.status = 'done';
|
|
7897
|
+
file.message = '上传成功';
|
|
7898
|
+
// 更新文件信息
|
|
7899
|
+
_this6.$message({
|
|
7900
|
+
type: 'success',
|
|
7901
|
+
message: '文件上传成功!'
|
|
7902
|
+
});
|
|
7903
|
+
} else {
|
|
7904
|
+
file.status = 'failed';
|
|
7905
|
+
file.message = res.msg || '文件上传失败!';
|
|
7906
|
+
_this6.$message({
|
|
7907
|
+
type: 'error',
|
|
7908
|
+
message: res.msg || '文件上传失败!'
|
|
7909
|
+
});
|
|
7910
|
+
}
|
|
7911
|
+
}).catch(function (error) {
|
|
7912
|
+
file.status = 'failed';
|
|
7913
|
+
file.message = error.msg || '文件上传失败!';
|
|
7914
|
+
_this6.$message({
|
|
7915
|
+
type: 'error',
|
|
7916
|
+
message: '文件上传过程中发生错误!'
|
|
7917
|
+
});
|
|
7918
|
+
});
|
|
7919
|
+
|
|
7920
|
+
case 9:
|
|
7921
|
+
case 'end':
|
|
7922
|
+
return _context.stop();
|
|
7923
|
+
}
|
|
7924
|
+
}
|
|
7925
|
+
}, _callee, _this6);
|
|
7926
|
+
}))();
|
|
7454
7927
|
}
|
|
7455
7928
|
}
|
|
7456
7929
|
});
|
|
@@ -7466,8 +7939,8 @@ mainvue_type_template_id_6704a82d_render._withStripped = true
|
|
|
7466
7939
|
|
|
7467
7940
|
var uploader_src_main_component = normalizeComponent(
|
|
7468
7941
|
packages_uploader_src_mainvue_type_script_lang_js,
|
|
7469
|
-
|
|
7470
|
-
|
|
7942
|
+
mainvue_type_template_id_ad911db4_render,
|
|
7943
|
+
mainvue_type_template_id_ad911db4_staticRenderFns,
|
|
7471
7944
|
false,
|
|
7472
7945
|
null,
|
|
7473
7946
|
null,
|
|
@@ -7956,7 +8429,7 @@ mainvue_type_template_id_3152a678_render._withStripped = true
|
|
|
7956
8429
|
// CONCATENATED MODULE: ./packages/grid/src/main.vue?vue&type=template&id=3152a678
|
|
7957
8430
|
|
|
7958
8431
|
// EXTERNAL MODULE: external "vuedraggable"
|
|
7959
|
-
var external_vuedraggable_ = __webpack_require__(
|
|
8432
|
+
var external_vuedraggable_ = __webpack_require__(8);
|
|
7960
8433
|
var external_vuedraggable_default = /*#__PURE__*/__webpack_require__.n(external_vuedraggable_);
|
|
7961
8434
|
|
|
7962
8435
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/grid/src/main.vue?vue&type=script&lang=js
|
|
@@ -9901,10 +10374,10 @@ tab_src_main.install = function (Vue) {
|
|
|
9901
10374
|
|
|
9902
10375
|
/* harmony default export */ var tab = (tab_src_main);
|
|
9903
10376
|
// EXTERNAL MODULE: external "element-ui"
|
|
9904
|
-
var external_element_ui_ = __webpack_require__(
|
|
10377
|
+
var external_element_ui_ = __webpack_require__(3);
|
|
9905
10378
|
|
|
9906
10379
|
// EXTERNAL MODULE: external "element-ui/lib/theme-chalk/table.css"
|
|
9907
|
-
var table_css_ = __webpack_require__(
|
|
10380
|
+
var table_css_ = __webpack_require__(11);
|
|
9908
10381
|
|
|
9909
10382
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/main.vue?vue&type=script&lang=js
|
|
9910
10383
|
var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
@@ -27342,8 +27815,8 @@ count_down_src_main.install = function (Vue) {
|
|
|
27342
27815
|
};
|
|
27343
27816
|
|
|
27344
27817
|
/* harmony default export */ var count_down = (count_down_src_main);
|
|
27345
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=
|
|
27346
|
-
var
|
|
27818
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=9a0ebe50
|
|
27819
|
+
var mainvue_type_template_id_9a0ebe50_render = function () {
|
|
27347
27820
|
var _vm = this
|
|
27348
27821
|
var _h = _vm.$createElement
|
|
27349
27822
|
var _c = _vm._self._c || _h
|
|
@@ -27841,6 +28314,39 @@ var mainvue_type_template_id_041f051e_render = function () {
|
|
|
27841
28314
|
Object.assign({}, x.events)
|
|
27842
28315
|
)
|
|
27843
28316
|
)
|
|
28317
|
+
: x.type === "component"
|
|
28318
|
+
? _c(
|
|
28319
|
+
"van-cell",
|
|
28320
|
+
{ attrs: { title: x.label, name: x.name } },
|
|
28321
|
+
[
|
|
28322
|
+
_c(
|
|
28323
|
+
x.is || x.tag,
|
|
28324
|
+
_vm._g(
|
|
28325
|
+
_vm._b(
|
|
28326
|
+
{
|
|
28327
|
+
tag: "component",
|
|
28328
|
+
model: {
|
|
28329
|
+
value: _vm.model[x.name],
|
|
28330
|
+
callback: function ($$v) {
|
|
28331
|
+
_vm.$set(
|
|
28332
|
+
_vm.model,
|
|
28333
|
+
x.name,
|
|
28334
|
+
$$v
|
|
28335
|
+
)
|
|
28336
|
+
},
|
|
28337
|
+
expression: "model[x.name]",
|
|
28338
|
+
},
|
|
28339
|
+
},
|
|
28340
|
+
"component",
|
|
28341
|
+
Object.assign({}, _vm.$attrs, x),
|
|
28342
|
+
false
|
|
28343
|
+
),
|
|
28344
|
+
x.events
|
|
28345
|
+
)
|
|
28346
|
+
),
|
|
28347
|
+
],
|
|
28348
|
+
1
|
|
28349
|
+
)
|
|
27844
28350
|
: _vm._e(),
|
|
27845
28351
|
],
|
|
27846
28352
|
1
|
|
@@ -28218,6 +28724,35 @@ var mainvue_type_template_id_041f051e_render = function () {
|
|
|
28218
28724
|
Object.assign({}, item.events)
|
|
28219
28725
|
)
|
|
28220
28726
|
)
|
|
28727
|
+
: item.type === "component"
|
|
28728
|
+
? _c(
|
|
28729
|
+
"van-cell",
|
|
28730
|
+
{ attrs: { title: item.label, name: item.name } },
|
|
28731
|
+
[
|
|
28732
|
+
_c(
|
|
28733
|
+
item.is || item.tag,
|
|
28734
|
+
_vm._g(
|
|
28735
|
+
_vm._b(
|
|
28736
|
+
{
|
|
28737
|
+
tag: "component",
|
|
28738
|
+
model: {
|
|
28739
|
+
value: _vm.model[item.name],
|
|
28740
|
+
callback: function ($$v) {
|
|
28741
|
+
_vm.$set(_vm.model, item.name, $$v)
|
|
28742
|
+
},
|
|
28743
|
+
expression: "model[item.name]",
|
|
28744
|
+
},
|
|
28745
|
+
},
|
|
28746
|
+
"component",
|
|
28747
|
+
Object.assign({}, _vm.$attrs, item),
|
|
28748
|
+
false
|
|
28749
|
+
),
|
|
28750
|
+
item.events
|
|
28751
|
+
)
|
|
28752
|
+
),
|
|
28753
|
+
],
|
|
28754
|
+
1
|
|
28755
|
+
)
|
|
28221
28756
|
: _vm._e(),
|
|
28222
28757
|
],
|
|
28223
28758
|
1
|
|
@@ -28283,11 +28818,11 @@ var mainvue_type_template_id_041f051e_render = function () {
|
|
|
28283
28818
|
]
|
|
28284
28819
|
)
|
|
28285
28820
|
}
|
|
28286
|
-
var
|
|
28287
|
-
|
|
28821
|
+
var mainvue_type_template_id_9a0ebe50_staticRenderFns = []
|
|
28822
|
+
mainvue_type_template_id_9a0ebe50_render._withStripped = true
|
|
28288
28823
|
|
|
28289
28824
|
|
|
28290
|
-
// CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=
|
|
28825
|
+
// CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=9a0ebe50
|
|
28291
28826
|
|
|
28292
28827
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=script&lang=js
|
|
28293
28828
|
//
|
|
@@ -28702,6 +29237,31 @@ mainvue_type_template_id_041f051e_render._withStripped = true
|
|
|
28702
29237
|
//
|
|
28703
29238
|
//
|
|
28704
29239
|
//
|
|
29240
|
+
//
|
|
29241
|
+
//
|
|
29242
|
+
//
|
|
29243
|
+
//
|
|
29244
|
+
//
|
|
29245
|
+
//
|
|
29246
|
+
//
|
|
29247
|
+
//
|
|
29248
|
+
//
|
|
29249
|
+
//
|
|
29250
|
+
//
|
|
29251
|
+
//
|
|
29252
|
+
//
|
|
29253
|
+
//
|
|
29254
|
+
//
|
|
29255
|
+
//
|
|
29256
|
+
//
|
|
29257
|
+
//
|
|
29258
|
+
//
|
|
29259
|
+
//
|
|
29260
|
+
//
|
|
29261
|
+
//
|
|
29262
|
+
//
|
|
29263
|
+
//
|
|
29264
|
+
//
|
|
28705
29265
|
|
|
28706
29266
|
/* harmony default export */ var form_src_mainvue_type_script_lang_js = ({
|
|
28707
29267
|
name: 'EmForm',
|
|
@@ -28828,8 +29388,8 @@ mainvue_type_template_id_041f051e_render._withStripped = true
|
|
|
28828
29388
|
|
|
28829
29389
|
var form_src_main_component = normalizeComponent(
|
|
28830
29390
|
packages_form_src_mainvue_type_script_lang_js,
|
|
28831
|
-
|
|
28832
|
-
|
|
29391
|
+
mainvue_type_template_id_9a0ebe50_render,
|
|
29392
|
+
mainvue_type_template_id_9a0ebe50_staticRenderFns,
|
|
28833
29393
|
false,
|
|
28834
29394
|
null,
|
|
28835
29395
|
null,
|
|
@@ -29108,8 +29668,8 @@ image_src_main.install = function (Vue) {
|
|
|
29108
29668
|
};
|
|
29109
29669
|
|
|
29110
29670
|
/* harmony default export */ var packages_image = (image_src_main);
|
|
29111
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/image-preview/src/main.vue?vue&type=template&id=
|
|
29112
|
-
var
|
|
29671
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/image-preview/src/main.vue?vue&type=template&id=31e2ccaa
|
|
29672
|
+
var mainvue_type_template_id_31e2ccaa_render = function () {
|
|
29113
29673
|
var _vm = this
|
|
29114
29674
|
var _h = _vm.$createElement
|
|
29115
29675
|
var _c = _vm._self._c || _h
|
|
@@ -29157,11 +29717,11 @@ var mainvue_type_template_id_7b070a64_render = function () {
|
|
|
29157
29717
|
1
|
|
29158
29718
|
)
|
|
29159
29719
|
}
|
|
29160
|
-
var
|
|
29161
|
-
|
|
29720
|
+
var mainvue_type_template_id_31e2ccaa_staticRenderFns = []
|
|
29721
|
+
mainvue_type_template_id_31e2ccaa_render._withStripped = true
|
|
29162
29722
|
|
|
29163
29723
|
|
|
29164
|
-
// CONCATENATED MODULE: ./packages/image-preview/src/main.vue?vue&type=template&id=
|
|
29724
|
+
// CONCATENATED MODULE: ./packages/image-preview/src/main.vue?vue&type=template&id=31e2ccaa
|
|
29165
29725
|
|
|
29166
29726
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/image-preview/src/main.vue?vue&type=script&lang=js
|
|
29167
29727
|
//
|
|
@@ -29177,14 +29737,22 @@ mainvue_type_template_id_7b070a64_render._withStripped = true
|
|
|
29177
29737
|
//
|
|
29178
29738
|
//
|
|
29179
29739
|
//
|
|
29740
|
+
//
|
|
29741
|
+
//
|
|
29742
|
+
//
|
|
29743
|
+
//
|
|
29180
29744
|
|
|
29181
29745
|
/* harmony default export */ var image_preview_src_mainvue_type_script_lang_js = ({
|
|
29182
29746
|
name: 'EmImagePreview',
|
|
29183
29747
|
inheritAttrs: false,
|
|
29184
29748
|
props: {
|
|
29185
|
-
value:
|
|
29749
|
+
value: Boolean
|
|
29186
29750
|
},
|
|
29187
29751
|
computed: {
|
|
29752
|
+
show: function show() {
|
|
29753
|
+
return this.value;
|
|
29754
|
+
},
|
|
29755
|
+
|
|
29188
29756
|
newValue: {
|
|
29189
29757
|
get: function get() {
|
|
29190
29758
|
return this.value;
|
|
@@ -29207,8 +29775,8 @@ mainvue_type_template_id_7b070a64_render._withStripped = true
|
|
|
29207
29775
|
|
|
29208
29776
|
var image_preview_src_main_component = normalizeComponent(
|
|
29209
29777
|
packages_image_preview_src_mainvue_type_script_lang_js,
|
|
29210
|
-
|
|
29211
|
-
|
|
29778
|
+
mainvue_type_template_id_31e2ccaa_render,
|
|
29779
|
+
mainvue_type_template_id_31e2ccaa_staticRenderFns,
|
|
29212
29780
|
false,
|
|
29213
29781
|
null,
|
|
29214
29782
|
null,
|
|
@@ -30841,7 +31409,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
30841
31409
|
}
|
|
30842
31410
|
|
|
30843
31411
|
/* harmony default export */ var src = __webpack_exports__["default"] = ({
|
|
30844
|
-
version: '0.3.
|
|
31412
|
+
version: '0.3.97',
|
|
30845
31413
|
install: install,
|
|
30846
31414
|
Button: packages_button,
|
|
30847
31415
|
ButtonGroup: button_group,
|