@baosight/erm 1.0.54 → 1.0.56
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/lib/ermAttach/ermAttach.vue.d.ts +32 -16
- package/lib/index.common.js +105 -37
- package/lib/index.common.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.esm.css +61 -61
- package/lib/index.esm.js +1 -1
- package/lib/index.umd.js +105 -37
- package/lib/index.umd.js.map +1 -1
- package/lib/index.umd.min.js +2 -2
- package/lib/index.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,24 +7,32 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
recId: {
|
|
8
8
|
type: StringConstructor;
|
|
9
9
|
require: boolean;
|
|
10
|
-
default: string;
|
|
11
10
|
};
|
|
12
11
|
/**
|
|
13
|
-
*
|
|
12
|
+
* code-框架代码
|
|
14
13
|
* @type {String}
|
|
15
14
|
*/
|
|
16
|
-
|
|
15
|
+
code: {
|
|
17
16
|
type: StringConstructor;
|
|
18
17
|
require: boolean;
|
|
19
|
-
default: string;
|
|
20
18
|
};
|
|
21
19
|
/**
|
|
22
|
-
*
|
|
20
|
+
* isSort-是否排序
|
|
23
21
|
* @type {String}
|
|
24
22
|
*/
|
|
25
|
-
|
|
26
|
-
type:
|
|
23
|
+
isSort: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
require: boolean;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* isOnlyPreview-是否只预览
|
|
30
|
+
* @type {String}
|
|
31
|
+
*/
|
|
32
|
+
isOnlyPreview: {
|
|
33
|
+
type: BooleanConstructor;
|
|
27
34
|
require: boolean;
|
|
35
|
+
default: boolean;
|
|
28
36
|
};
|
|
29
37
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
30
38
|
[key: string]: any;
|
|
@@ -36,27 +44,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
44
|
recId: {
|
|
37
45
|
type: StringConstructor;
|
|
38
46
|
require: boolean;
|
|
39
|
-
default: string;
|
|
40
47
|
};
|
|
41
48
|
/**
|
|
42
|
-
*
|
|
49
|
+
* code-框架代码
|
|
43
50
|
* @type {String}
|
|
44
51
|
*/
|
|
45
|
-
|
|
52
|
+
code: {
|
|
46
53
|
type: StringConstructor;
|
|
47
54
|
require: boolean;
|
|
48
|
-
default: string;
|
|
49
55
|
};
|
|
50
56
|
/**
|
|
51
|
-
*
|
|
57
|
+
* isSort-是否排序
|
|
52
58
|
* @type {String}
|
|
53
59
|
*/
|
|
54
|
-
|
|
55
|
-
type:
|
|
60
|
+
isSort: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
require: boolean;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* isOnlyPreview-是否只预览
|
|
67
|
+
* @type {String}
|
|
68
|
+
*/
|
|
69
|
+
isOnlyPreview: {
|
|
70
|
+
type: BooleanConstructor;
|
|
56
71
|
require: boolean;
|
|
72
|
+
default: boolean;
|
|
57
73
|
};
|
|
58
74
|
}>>, {
|
|
59
|
-
|
|
60
|
-
|
|
75
|
+
isSort: boolean;
|
|
76
|
+
isOnlyPreview: boolean;
|
|
61
77
|
}, {}>;
|
|
62
78
|
export default _default;
|
package/lib/index.common.js
CHANGED
|
@@ -41286,7 +41286,7 @@ const MobileButtonEdit_exports_ = MobileButtonEditvue_type_script_lang_ts_setup_
|
|
|
41286
41286
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/ermForm/ermForm.vue?vue&type=script&lang=ts&setup=true
|
|
41287
41287
|
|
|
41288
41288
|
|
|
41289
|
-
const ermFormvue_type_script_lang_ts_setup_true_withScopeId = n => (_pushScopeId("data-v-
|
|
41289
|
+
const ermFormvue_type_script_lang_ts_setup_true_withScopeId = n => (_pushScopeId("data-v-5446108e"), n = n(), _popScopeId(), n);
|
|
41290
41290
|
const ermFormvue_type_script_lang_ts_setup_true_hoisted_1 = {
|
|
41291
41291
|
key: 0,
|
|
41292
41292
|
class: "mainTitle"
|
|
@@ -41373,7 +41373,8 @@ const ermFormvue_type_script_lang_ts_setup_true_hoisted_5 = {
|
|
|
41373
41373
|
addRow,
|
|
41374
41374
|
checkRequireInput,
|
|
41375
41375
|
resetData,
|
|
41376
|
-
getGridCellData
|
|
41376
|
+
getGridCellData,
|
|
41377
|
+
mergeDataRow
|
|
41377
41378
|
});
|
|
41378
41379
|
//#endregion
|
|
41379
41380
|
//#region 单记录高度设置
|
|
@@ -41490,6 +41491,12 @@ const ermFormvue_type_script_lang_ts_setup_true_hoisted_5 = {
|
|
|
41490
41491
|
//#region 默认值规则defaultValueRule()
|
|
41491
41492
|
function defaultValueRule(str, type) {
|
|
41492
41493
|
var defaultValue = str.trim();
|
|
41494
|
+
if (str.trim().indexOf("yyyy") > 0) {
|
|
41495
|
+
defaultValue = str.trim().replace('yyyy', 'YYYY');
|
|
41496
|
+
}
|
|
41497
|
+
if (str.trim().indexOf("MMdd") > 0) {
|
|
41498
|
+
defaultValue = str.trim().replace('dd', 'DD');
|
|
41499
|
+
}
|
|
41493
41500
|
var date = new Date();
|
|
41494
41501
|
if (defaultValue === '$USER_ID$') {
|
|
41495
41502
|
return (0,ei.getCurrentUser)().userId;
|
|
@@ -41498,7 +41505,7 @@ const ermFormvue_type_script_lang_ts_setup_true_hoisted_5 = {
|
|
|
41498
41505
|
} else if (defaultValue === '$USER_NAME$') {
|
|
41499
41506
|
return (0,ei.getCurrentUser)().userName;
|
|
41500
41507
|
} else if (defaultValue.toUpperCase().indexOf('YYYY') >= 0 && defaultValue.toUpperCase().indexOf(',ADD') < 0) {
|
|
41501
|
-
var out = moment_default()(date).format(
|
|
41508
|
+
var out = moment_default()(date).format(defaultValue);
|
|
41502
41509
|
return out;
|
|
41503
41510
|
} else if (defaultValue.toUpperCase().indexOf(',ADDDAYS') > 0) {
|
|
41504
41511
|
var idx = defaultValue.toUpperCase().indexOf(',ADDDAYS');
|
|
@@ -41609,7 +41616,7 @@ const ermFormvue_type_script_lang_ts_setup_true_hoisted_5 = {
|
|
|
41609
41616
|
for (let i = 0; i < codeSets.value[itemConfig.SVC_NAME].data.length; i++) {
|
|
41610
41617
|
const element = codeSets.value[itemConfig.SVC_NAME].data[i];
|
|
41611
41618
|
codeSets.value[itemConfig.SVC_NAME].data[i].showFlag = true;
|
|
41612
|
-
if (data[0][itemConfig.FATHER_FIELD].
|
|
41619
|
+
if ((data[0][itemConfig.FATHER_FIELD] !== '' || data[0][itemConfig.FATHER_FIELD] !== ' ') && element[FORM_FILTER] !== data[0][itemConfig.FATHER_FIELD]) {
|
|
41613
41620
|
element.showFlag = false;
|
|
41614
41621
|
} else {
|
|
41615
41622
|
element.showFlag = true;
|
|
@@ -41672,6 +41679,22 @@ const ermFormvue_type_script_lang_ts_setup_true_hoisted_5 = {
|
|
|
41672
41679
|
});
|
|
41673
41680
|
}
|
|
41674
41681
|
//#endregion
|
|
41682
|
+
//#region mergeDataRow 整行赋值
|
|
41683
|
+
function mergeDataRow(idx, objIn) {
|
|
41684
|
+
if (data.length <= idx) {
|
|
41685
|
+
console.log('data中不存在第' + idx + '行数据');
|
|
41686
|
+
return;
|
|
41687
|
+
}
|
|
41688
|
+
for (const key in objIn) {
|
|
41689
|
+
if (objIn.hasOwnProperty(key)) {
|
|
41690
|
+
console.log(`属性名: ${key}, 属性值: ${objIn[key]}`);
|
|
41691
|
+
if (data[idx].hasOwnProperty(key)) {
|
|
41692
|
+
data[idx][key] = objIn[key];
|
|
41693
|
+
}
|
|
41694
|
+
}
|
|
41695
|
+
}
|
|
41696
|
+
}
|
|
41697
|
+
//#endregion
|
|
41675
41698
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.onMounted)(() => {
|
|
41676
41699
|
getItemConfig();
|
|
41677
41700
|
});
|
|
@@ -41773,10 +41796,10 @@ const ermFormvue_type_script_lang_ts_setup_true_hoisted_5 = {
|
|
|
41773
41796
|
}));
|
|
41774
41797
|
;// CONCATENATED MODULE: ./packages/ermForm/ermForm.vue?vue&type=script&lang=ts&setup=true
|
|
41775
41798
|
|
|
41776
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/ermForm/ermForm.vue?vue&type=style&index=0&id=
|
|
41799
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/ermForm/ermForm.vue?vue&type=style&index=0&id=5446108e&lang=scss&scoped=true
|
|
41777
41800
|
// extracted by mini-css-extract-plugin
|
|
41778
41801
|
|
|
41779
|
-
;// CONCATENATED MODULE: ./packages/ermForm/ermForm.vue?vue&type=style&index=0&id=
|
|
41802
|
+
;// CONCATENATED MODULE: ./packages/ermForm/ermForm.vue?vue&type=style&index=0&id=5446108e&lang=scss&scoped=true
|
|
41780
41803
|
|
|
41781
41804
|
;// CONCATENATED MODULE: ./packages/ermForm/ermForm.vue
|
|
41782
41805
|
|
|
@@ -41785,7 +41808,7 @@ const ermFormvue_type_script_lang_ts_setup_true_hoisted_5 = {
|
|
|
41785
41808
|
;
|
|
41786
41809
|
|
|
41787
41810
|
|
|
41788
|
-
const ermForm_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(ermFormvue_type_script_lang_ts_setup_true, [['__scopeId',"data-v-
|
|
41811
|
+
const ermForm_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(ermFormvue_type_script_lang_ts_setup_true, [['__scopeId',"data-v-5446108e"]])
|
|
41789
41812
|
|
|
41790
41813
|
/* harmony default export */ const ermForm = (ermForm_exports_);
|
|
41791
41814
|
;// CONCATENATED MODULE: ./packages/ermForm/index.ts
|
|
@@ -56306,11 +56329,12 @@ ImagePreview.install = (app) => {
|
|
|
56306
56329
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/ermAttach/ermAttach.vue?vue&type=script&lang=ts&setup=true
|
|
56307
56330
|
|
|
56308
56331
|
|
|
56309
|
-
const ermAttachvue_type_script_lang_ts_setup_true_withScopeId = n => (_pushScopeId("data-v-
|
|
56332
|
+
const ermAttachvue_type_script_lang_ts_setup_true_withScopeId = n => (_pushScopeId("data-v-0a9b23b3"), n = n(), _popScopeId(), n);
|
|
56310
56333
|
const ermAttachvue_type_script_lang_ts_setup_true_hoisted_1 = {
|
|
56311
56334
|
class: "container"
|
|
56312
56335
|
};
|
|
56313
56336
|
const ermAttachvue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
56337
|
+
key: 0,
|
|
56314
56338
|
class: "button-area"
|
|
56315
56339
|
};
|
|
56316
56340
|
const ermAttachvue_type_script_lang_ts_setup_true_hoisted_3 = {
|
|
@@ -56325,8 +56349,6 @@ const ermAttachvue_type_script_lang_ts_setup_true_hoisted_4 = ["src"];
|
|
|
56325
56349
|
|
|
56326
56350
|
|
|
56327
56351
|
|
|
56328
|
-
// const servePath = 'http://10.25.145.55:10004/api/'; // 定义服务地址
|
|
56329
|
-
// const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
56330
56352
|
const maxSize = 5 * 1024 * 1024; // 记录上传文件最大容量
|
|
56331
56353
|
/* harmony default export */ const ermAttachvue_type_script_lang_ts_setup_true = (/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.defineComponent)({
|
|
56332
56354
|
__name: 'ermAttach',
|
|
@@ -56337,29 +56359,39 @@ const maxSize = 5 * 1024 * 1024; // 记录上传文件最大容量
|
|
|
56337
56359
|
*/
|
|
56338
56360
|
recId: {
|
|
56339
56361
|
type: String,
|
|
56340
|
-
require: true
|
|
56341
|
-
default: 'TEST'
|
|
56362
|
+
require: true
|
|
56342
56363
|
},
|
|
56343
56364
|
/**
|
|
56344
|
-
*
|
|
56365
|
+
* code-框架代码
|
|
56345
56366
|
* @type {String}
|
|
56346
56367
|
*/
|
|
56347
|
-
|
|
56368
|
+
code: {
|
|
56348
56369
|
type: String,
|
|
56349
|
-
require: true
|
|
56350
|
-
default: 'http://10.25.145.55:10004/api/'
|
|
56370
|
+
require: true
|
|
56351
56371
|
},
|
|
56352
56372
|
/**
|
|
56353
|
-
*
|
|
56373
|
+
* isSort-是否排序
|
|
56354
56374
|
* @type {String}
|
|
56355
56375
|
*/
|
|
56356
|
-
|
|
56357
|
-
type:
|
|
56358
|
-
require:
|
|
56376
|
+
isSort: {
|
|
56377
|
+
type: Boolean,
|
|
56378
|
+
require: false,
|
|
56379
|
+
default: false
|
|
56380
|
+
},
|
|
56381
|
+
/**
|
|
56382
|
+
* isOnlyPreview-是否只预览
|
|
56383
|
+
* @type {String}
|
|
56384
|
+
*/
|
|
56385
|
+
isOnlyPreview: {
|
|
56386
|
+
type: Boolean,
|
|
56387
|
+
require: false,
|
|
56388
|
+
default: false
|
|
56359
56389
|
}
|
|
56360
56390
|
},
|
|
56361
56391
|
setup(__props) {
|
|
56362
56392
|
// #region import及变量定义
|
|
56393
|
+
let servePath = ''; // 定义服务地址
|
|
56394
|
+
let rootDirectory = ''; // 定义根目录
|
|
56363
56395
|
const previewURl = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.ref)(); // 文件预览地址
|
|
56364
56396
|
const fileInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.ref)([]); // 文件信息
|
|
56365
56397
|
let imageUrl = ''; // 图标路径
|
|
@@ -56377,18 +56409,21 @@ const maxSize = 5 * 1024 * 1024; // 记录上传文件最大容量
|
|
|
56377
56409
|
// #endregion
|
|
56378
56410
|
// #region 初始化服务信息
|
|
56379
56411
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.onMounted)(() => {
|
|
56380
|
-
|
|
56381
|
-
|
|
56412
|
+
setTimeout(() => {
|
|
56413
|
+
initServeInfo(); // 初始化服务信息
|
|
56414
|
+
}, 1000);
|
|
56382
56415
|
});
|
|
56383
|
-
|
|
56384
56416
|
const initServeInfo = () => {
|
|
56385
|
-
|
|
56386
|
-
de.getServerInfo(code).then(res => {
|
|
56417
|
+
de.getServerInfo(prop.code).then(res => {
|
|
56387
56418
|
console.log('服务器信息:', res);
|
|
56419
|
+
console.log('isOnlyPreview', prop.isOnlyPreview);
|
|
56388
56420
|
Toast({
|
|
56389
56421
|
message: '服务信息初始化成功',
|
|
56390
56422
|
duration: 2000
|
|
56391
56423
|
});
|
|
56424
|
+
servePath = res.serverUrl;
|
|
56425
|
+
rootDirectory = res.rootPath;
|
|
56426
|
+
getFile(); // 获取文件信息
|
|
56392
56427
|
}).catch(error => {
|
|
56393
56428
|
console.error('error', error);
|
|
56394
56429
|
Toast({
|
|
@@ -56400,11 +56435,16 @@ const maxSize = 5 * 1024 * 1024; // 记录上传文件最大容量
|
|
|
56400
56435
|
// #endregion
|
|
56401
56436
|
// #region 获取文件信息
|
|
56402
56437
|
const getFile = () => {
|
|
56403
|
-
de.getFilesInfo(prop.recId,
|
|
56438
|
+
de.getFilesInfo(prop.recId, servePath, rootDirectory).then(res => {
|
|
56404
56439
|
console.log('获取文件:', res);
|
|
56405
56440
|
if (res.success === true) {
|
|
56406
56441
|
fileInfo.value = res.result;
|
|
56407
56442
|
console.log('fileInfo', fileInfo.value);
|
|
56443
|
+
if (prop.isSort) {
|
|
56444
|
+
console.log('排序前', fileInfo.value);
|
|
56445
|
+
fileInfo.value.reverse();
|
|
56446
|
+
console.log('排序后', fileInfo.value);
|
|
56447
|
+
}
|
|
56408
56448
|
// 获取文件信息后,更新imgsUrl数组
|
|
56409
56449
|
imgsUrl = [];
|
|
56410
56450
|
fileInfo.value.forEach(item => {
|
|
@@ -56440,7 +56480,7 @@ const maxSize = 5 * 1024 * 1024; // 记录上传文件最大容量
|
|
|
56440
56480
|
ImagePreview(imgsUrl, indexOfImg);
|
|
56441
56481
|
} else {
|
|
56442
56482
|
previewURl.value = '';
|
|
56443
|
-
de.filePreview(e.key,
|
|
56483
|
+
de.filePreview(e.key, servePath, rootDirectory).then(res => {
|
|
56444
56484
|
console.log('预览后台返回:', res);
|
|
56445
56485
|
show.value = true;
|
|
56446
56486
|
previewURl.value = res;
|
|
@@ -56468,7 +56508,7 @@ const maxSize = 5 * 1024 * 1024; // 记录上传文件最大容量
|
|
|
56468
56508
|
console.log('blobData', blobData);
|
|
56469
56509
|
const fileName = file0.file.name; // 文件全称
|
|
56470
56510
|
const fileSize = file0.file.size; // 文件大小
|
|
56471
|
-
de.fileUpload(blobData, prop.recId, fileName, fileSize,
|
|
56511
|
+
de.fileUpload(blobData, prop.recId, fileName, fileSize, servePath, rootDirectory).then(res => {
|
|
56472
56512
|
console.log('文件上传:', res);
|
|
56473
56513
|
if (res.success === true) {
|
|
56474
56514
|
Toast.success({
|
|
@@ -56491,7 +56531,7 @@ const maxSize = 5 * 1024 * 1024; // 记录上传文件最大容量
|
|
|
56491
56531
|
console.log('blobData', blobData);
|
|
56492
56532
|
const fileName = file.file.name; // 文件全称
|
|
56493
56533
|
const fileSize = file.file.size; // 文件大小
|
|
56494
|
-
de.fileUpload(blobData, prop.recId, fileName, fileSize,
|
|
56534
|
+
de.fileUpload(blobData, prop.recId, fileName, fileSize, servePath, rootDirectory).then(res => {
|
|
56495
56535
|
console.log('文件上传:', res);
|
|
56496
56536
|
if (res.success === true) {
|
|
56497
56537
|
Toast.success({
|
|
@@ -56520,7 +56560,7 @@ const maxSize = 5 * 1024 * 1024; // 记录上传文件最大容量
|
|
|
56520
56560
|
const deleteFile = e => {
|
|
56521
56561
|
console.log('e', e);
|
|
56522
56562
|
const fileName = e.name; // 文件全称
|
|
56523
|
-
de.fileDelete(fileName, prop.recId,
|
|
56563
|
+
de.fileDelete(fileName, prop.recId, servePath, rootDirectory).then(res => {
|
|
56524
56564
|
console.log('删除文件:', res);
|
|
56525
56565
|
if (res.success === true) {
|
|
56526
56566
|
Toast({
|
|
@@ -56684,15 +56724,18 @@ const maxSize = 5 * 1024 * 1024; // 记录上传文件最大容量
|
|
|
56684
56724
|
const _component_van_swipe_cell = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("van-swipe-cell");
|
|
56685
56725
|
const _component_van_checkbox_group = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("van-checkbox-group");
|
|
56686
56726
|
const _component_van_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("van-list");
|
|
56727
|
+
const _component_van_image = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("van-image");
|
|
56728
|
+
const _component_van_grid_item = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("van-grid-item");
|
|
56729
|
+
const _component_van_grid = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("van-grid");
|
|
56687
56730
|
const _component_van_popup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("van-popup");
|
|
56688
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", ermAttachvue_type_script_lang_ts_setup_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.
|
|
56731
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", ermAttachvue_type_script_lang_ts_setup_true_hoisted_1, [!prop.isOnlyPreview ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", ermAttachvue_type_script_lang_ts_setup_true_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_uploader, {
|
|
56689
56732
|
disabled: isVisible.value,
|
|
56690
56733
|
"preview-image": false,
|
|
56691
56734
|
"after-read": afterRead,
|
|
56692
56735
|
multiple: true,
|
|
56693
56736
|
"max-size": maxSize,
|
|
56694
56737
|
onOversize: onOversize,
|
|
56695
|
-
accept: ".doc,.docx,.pdf,.ppt,.pptx,.xlsx,.xls"
|
|
56738
|
+
accept: ".jpg,.png,.jpeg,.doc,.docx,.pdf,.ppt,.pptx,.xlsx,.xls"
|
|
56696
56739
|
}, {
|
|
56697
56740
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_button, {
|
|
56698
56741
|
icon: "plus",
|
|
@@ -56733,7 +56776,9 @@ const maxSize = 5 * 1024 * 1024; // 记录上传文件最大容量
|
|
|
56733
56776
|
}, {
|
|
56734
56777
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createTextVNode)("批量管理")]),
|
|
56735
56778
|
_: 1
|
|
56736
|
-
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.
|
|
56779
|
+
})])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), !prop.isOnlyPreview ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_van_list, {
|
|
56780
|
+
key: 1
|
|
56781
|
+
}, {
|
|
56737
56782
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_checkbox_group, {
|
|
56738
56783
|
modelValue: checked.value,
|
|
56739
56784
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => checked.value = $event),
|
|
@@ -56795,7 +56840,30 @@ const maxSize = 5 * 1024 * 1024; // 记录上传文件最大容量
|
|
|
56795
56840
|
_: 1
|
|
56796
56841
|
}, 8, ["modelValue"])]),
|
|
56797
56842
|
_: 1
|
|
56798
|
-
})
|
|
56843
|
+
})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), prop.isOnlyPreview ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_van_list, {
|
|
56844
|
+
key: 2
|
|
56845
|
+
}, {
|
|
56846
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_grid, {
|
|
56847
|
+
gutter: 10,
|
|
56848
|
+
border: false,
|
|
56849
|
+
"column-num": 2
|
|
56850
|
+
}, {
|
|
56851
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderList)(fileInfo.value, (item, index) => {
|
|
56852
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_van_grid_item, {
|
|
56853
|
+
key: index
|
|
56854
|
+
}, {
|
|
56855
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_image, {
|
|
56856
|
+
fit: "fill",
|
|
56857
|
+
src: getImageUrlBySuffix(item),
|
|
56858
|
+
onClick: $event => previewFile(item, index)
|
|
56859
|
+
}, null, 8, ["src", "onClick"])]),
|
|
56860
|
+
_: 2
|
|
56861
|
+
}, 1024);
|
|
56862
|
+
}), 128))]),
|
|
56863
|
+
_: 1
|
|
56864
|
+
})]),
|
|
56865
|
+
_: 1
|
|
56866
|
+
})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", ermAttachvue_type_script_lang_ts_setup_true_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_popup, {
|
|
56799
56867
|
"v-model:show": show.value,
|
|
56800
56868
|
position: "bottom",
|
|
56801
56869
|
style: {
|
|
@@ -56816,10 +56884,10 @@ const maxSize = 5 * 1024 * 1024; // 记录上传文件最大容量
|
|
|
56816
56884
|
}));
|
|
56817
56885
|
;// CONCATENATED MODULE: ./packages/ermAttach/ermAttach.vue?vue&type=script&lang=ts&setup=true
|
|
56818
56886
|
|
|
56819
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/ermAttach/ermAttach.vue?vue&type=style&index=0&id=
|
|
56887
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/ermAttach/ermAttach.vue?vue&type=style&index=0&id=0a9b23b3&lang=scss&scoped=true
|
|
56820
56888
|
// extracted by mini-css-extract-plugin
|
|
56821
56889
|
|
|
56822
|
-
;// CONCATENATED MODULE: ./packages/ermAttach/ermAttach.vue?vue&type=style&index=0&id=
|
|
56890
|
+
;// CONCATENATED MODULE: ./packages/ermAttach/ermAttach.vue?vue&type=style&index=0&id=0a9b23b3&lang=scss&scoped=true
|
|
56823
56891
|
|
|
56824
56892
|
;// CONCATENATED MODULE: ./packages/ermAttach/ermAttach.vue
|
|
56825
56893
|
|
|
@@ -56828,7 +56896,7 @@ const maxSize = 5 * 1024 * 1024; // 记录上传文件最大容量
|
|
|
56828
56896
|
;
|
|
56829
56897
|
|
|
56830
56898
|
|
|
56831
|
-
const ermAttach_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(ermAttachvue_type_script_lang_ts_setup_true, [['__scopeId',"data-v-
|
|
56899
|
+
const ermAttach_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(ermAttachvue_type_script_lang_ts_setup_true, [['__scopeId',"data-v-0a9b23b3"]])
|
|
56832
56900
|
|
|
56833
56901
|
/* harmony default export */ const ermAttach = (ermAttach_exports_);
|
|
56834
56902
|
;// CONCATENATED MODULE: ./packages/ermAttach/index.ts
|