@baosight/erm 1.0.52 → 1.0.53
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 +40 -1
- package/lib/index.common.js +177 -135
- package/lib/index.common.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.esm.css +67 -66
- package/lib/index.esm.js +1 -1
- package/lib/index.umd.js +177 -135
- 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,6 +7,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
recId: {
|
|
8
8
|
type: StringConstructor;
|
|
9
9
|
require: boolean;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* servePath-服务地址
|
|
14
|
+
* @type {String}
|
|
15
|
+
*/
|
|
16
|
+
servePath: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
require: boolean;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* rootDirectory-根目录
|
|
23
|
+
* @type {String}
|
|
24
|
+
*/
|
|
25
|
+
rootDirectory: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
require: boolean;
|
|
10
28
|
};
|
|
11
29
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
12
30
|
[key: string]: any;
|
|
@@ -18,6 +36,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
36
|
recId: {
|
|
19
37
|
type: StringConstructor;
|
|
20
38
|
require: boolean;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* servePath-服务地址
|
|
43
|
+
* @type {String}
|
|
44
|
+
*/
|
|
45
|
+
servePath: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
require: boolean;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* rootDirectory-根目录
|
|
52
|
+
* @type {String}
|
|
53
|
+
*/
|
|
54
|
+
rootDirectory: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
require: boolean;
|
|
21
57
|
};
|
|
22
|
-
}>>, {
|
|
58
|
+
}>>, {
|
|
59
|
+
recId: string;
|
|
60
|
+
servePath: string;
|
|
61
|
+
}, {}>;
|
|
23
62
|
export default _default;
|
package/lib/index.common.js
CHANGED
|
@@ -56207,7 +56207,7 @@ ImagePreview.install = (app) => {
|
|
|
56207
56207
|
;// 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
|
|
56208
56208
|
|
|
56209
56209
|
|
|
56210
|
-
const ermAttachvue_type_script_lang_ts_setup_true_withScopeId = n => (_pushScopeId("data-v-
|
|
56210
|
+
const ermAttachvue_type_script_lang_ts_setup_true_withScopeId = n => (_pushScopeId("data-v-4f0fa058"), n = n(), _popScopeId(), n);
|
|
56211
56211
|
const ermAttachvue_type_script_lang_ts_setup_true_hoisted_1 = {
|
|
56212
56212
|
class: "container"
|
|
56213
56213
|
};
|
|
@@ -56226,8 +56226,9 @@ const ermAttachvue_type_script_lang_ts_setup_true_hoisted_4 = ["src"];
|
|
|
56226
56226
|
|
|
56227
56227
|
|
|
56228
56228
|
|
|
56229
|
-
const servePath = 'http://10.25.145.55:10004/api/'; // 定义服务地址
|
|
56230
|
-
const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
56229
|
+
// const servePath = 'http://10.25.145.55:10004/api/'; // 定义服务地址
|
|
56230
|
+
// const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
56231
|
+
const maxSize = 5 * 1024 * 1024; // 记录上传文件最大容量
|
|
56231
56232
|
/* harmony default export */ const ermAttachvue_type_script_lang_ts_setup_true = (/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.defineComponent)({
|
|
56232
56233
|
__name: 'ermAttach',
|
|
56233
56234
|
props: {
|
|
@@ -56236,6 +56237,24 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56236
56237
|
* @type {String}
|
|
56237
56238
|
*/
|
|
56238
56239
|
recId: {
|
|
56240
|
+
type: String,
|
|
56241
|
+
require: true,
|
|
56242
|
+
default: 'TEST'
|
|
56243
|
+
},
|
|
56244
|
+
/**
|
|
56245
|
+
* servePath-服务地址
|
|
56246
|
+
* @type {String}
|
|
56247
|
+
*/
|
|
56248
|
+
servePath: {
|
|
56249
|
+
type: String,
|
|
56250
|
+
require: true,
|
|
56251
|
+
default: 'http://10.25.145.55:10004/api/'
|
|
56252
|
+
},
|
|
56253
|
+
/**
|
|
56254
|
+
* rootDirectory-根目录
|
|
56255
|
+
* @type {String}
|
|
56256
|
+
*/
|
|
56257
|
+
rootDirectory: {
|
|
56239
56258
|
type: String,
|
|
56240
56259
|
require: true
|
|
56241
56260
|
}
|
|
@@ -56259,7 +56278,7 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56259
56278
|
// #endregion
|
|
56260
56279
|
// #region 初始化服务信息
|
|
56261
56280
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.onMounted)(() => {
|
|
56262
|
-
initServeInfo(); // 初始化服务信息
|
|
56281
|
+
// initServeInfo(); // 初始化服务信息
|
|
56263
56282
|
getFile(); // 获取文件信息
|
|
56264
56283
|
});
|
|
56265
56284
|
|
|
@@ -56282,8 +56301,7 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56282
56301
|
// #endregion
|
|
56283
56302
|
// #region 获取文件信息
|
|
56284
56303
|
const getFile = () => {
|
|
56285
|
-
|
|
56286
|
-
de.getFilesInfo(prop.recId, url, rootDirectory).then(res => {
|
|
56304
|
+
de.getFilesInfo(prop.recId, prop.servePath, prop.rootDirectory).then(res => {
|
|
56287
56305
|
console.log('获取文件:', res);
|
|
56288
56306
|
if (res.success === true) {
|
|
56289
56307
|
fileInfo.value = res.result;
|
|
@@ -56323,8 +56341,7 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56323
56341
|
ImagePreview(imgsUrl, indexOfImg);
|
|
56324
56342
|
} else {
|
|
56325
56343
|
previewURl.value = '';
|
|
56326
|
-
|
|
56327
|
-
de.filePreview(e.key, url, rootDirectory).then(res => {
|
|
56344
|
+
de.filePreview(e.key, prop.servePath, prop.rootDirectory).then(res => {
|
|
56328
56345
|
console.log('预览后台返回:', res);
|
|
56329
56346
|
show.value = true;
|
|
56330
56347
|
previewURl.value = res;
|
|
@@ -56350,10 +56367,9 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56350
56367
|
console.log('file', file0);
|
|
56351
56368
|
const blobData = file0.file; // base64转换成blob
|
|
56352
56369
|
console.log('blobData', blobData);
|
|
56353
|
-
const url = servePath; // 服务地址
|
|
56354
56370
|
const fileName = file0.file.name; // 文件全称
|
|
56355
56371
|
const fileSize = file0.file.size; // 文件大小
|
|
56356
|
-
de.fileUpload(blobData, prop.recId, fileName, fileSize,
|
|
56372
|
+
de.fileUpload(blobData, prop.recId, fileName, fileSize, prop.servePath, prop.rootDirectory).then(res => {
|
|
56357
56373
|
console.log('文件上传:', res);
|
|
56358
56374
|
if (res.success === true) {
|
|
56359
56375
|
Toast.success({
|
|
@@ -56374,10 +56390,9 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56374
56390
|
console.log('file', file);
|
|
56375
56391
|
const blobData = file.file;
|
|
56376
56392
|
console.log('blobData', blobData);
|
|
56377
|
-
const url = servePath; // 服务地址
|
|
56378
56393
|
const fileName = file.file.name; // 文件全称
|
|
56379
56394
|
const fileSize = file.file.size; // 文件大小
|
|
56380
|
-
de.fileUpload(blobData, prop.recId, fileName, fileSize,
|
|
56395
|
+
de.fileUpload(blobData, prop.recId, fileName, fileSize, prop.servePath, prop.rootDirectory).then(res => {
|
|
56381
56396
|
console.log('文件上传:', res);
|
|
56382
56397
|
if (res.success === true) {
|
|
56383
56398
|
Toast.success({
|
|
@@ -56405,9 +56420,8 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56405
56420
|
// #region 文件单个删除
|
|
56406
56421
|
const deleteFile = e => {
|
|
56407
56422
|
console.log('e', e);
|
|
56408
|
-
const url = servePath; // 服务地址
|
|
56409
56423
|
const fileName = e.name; // 文件全称
|
|
56410
|
-
de.fileDelete(fileName, prop.recId,
|
|
56424
|
+
de.fileDelete(fileName, prop.recId, prop.servePath, prop.rootDirectory).then(res => {
|
|
56411
56425
|
console.log('删除文件:', res);
|
|
56412
56426
|
if (res.success === true) {
|
|
56413
56427
|
Toast({
|
|
@@ -56431,13 +56445,13 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56431
56445
|
console.log('checkboxRefs', checkboxRefs);
|
|
56432
56446
|
checkboxRefs.value.forEach((item, index) => {
|
|
56433
56447
|
// item.checked.value为true,则被选中,调用文件删除
|
|
56434
|
-
if (item.checked.value) {
|
|
56448
|
+
if (item && item.checked.value) {
|
|
56435
56449
|
console.log('index', index);
|
|
56436
56450
|
console.log(fileInfo.value[index]);
|
|
56437
56451
|
deleteFile(fileInfo.value[index]);
|
|
56438
56452
|
}
|
|
56439
|
-
console.log('item', item.checked.value);
|
|
56440
56453
|
});
|
|
56454
|
+
open(); // 关闭多选
|
|
56441
56455
|
};
|
|
56442
56456
|
// #endregion
|
|
56443
56457
|
// #region 根据文件后缀,返回图标路径
|
|
@@ -56529,12 +56543,39 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56529
56543
|
case 'right':
|
|
56530
56544
|
return true;
|
|
56531
56545
|
case 'cell':
|
|
56546
|
+
return false;
|
|
56532
56547
|
case 'outside':
|
|
56548
|
+
if (isVisible.value) {
|
|
56549
|
+
return false;
|
|
56550
|
+
} else {
|
|
56551
|
+
return true;
|
|
56552
|
+
}
|
|
56533
56553
|
}
|
|
56534
56554
|
};
|
|
56535
56555
|
// #endregion
|
|
56536
|
-
//
|
|
56556
|
+
// #region onOversize 获取超过上传大小限制的文件
|
|
56557
|
+
const onOversize = async file => {
|
|
56558
|
+
console.log(file);
|
|
56559
|
+
Toast.fail({
|
|
56560
|
+
message: '文件大小不能超过 ' + maxSize / 1024 + 'kb',
|
|
56561
|
+
closeOnClick: true,
|
|
56562
|
+
duration: 0
|
|
56563
|
+
});
|
|
56564
|
+
// Toast('文件大小不能超过 500kb');
|
|
56565
|
+
};
|
|
56566
|
+
// #endregion
|
|
56567
|
+
// #region 点击文本切换勾选
|
|
56568
|
+
const toggle = index => {
|
|
56569
|
+
console.log('index', index);
|
|
56570
|
+
checkboxRefs.value[index].toggle();
|
|
56571
|
+
};
|
|
56572
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.onBeforeUpdate)(() => {
|
|
56573
|
+
checkboxRefs.value = [];
|
|
56574
|
+
});
|
|
56575
|
+
// #endregion
|
|
56576
|
+
// #region 传递 props
|
|
56537
56577
|
const prop = __props;
|
|
56578
|
+
// #endregion
|
|
56538
56579
|
return (_ctx, _cache) => {
|
|
56539
56580
|
const _component_van_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("van-button");
|
|
56540
56581
|
const _component_van_uploader = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("van-uploader");
|
|
@@ -56545,140 +56586,141 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56545
56586
|
const _component_van_checkbox_group = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("van-checkbox-group");
|
|
56546
56587
|
const _component_van_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("van-list");
|
|
56547
56588
|
const _component_van_popup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("van-popup");
|
|
56548
|
-
|
|
56549
|
-
|
|
56550
|
-
|
|
56551
|
-
|
|
56552
|
-
|
|
56589
|
+
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.createElementVNode)("div", ermAttachvue_type_script_lang_ts_setup_true_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_uploader, {
|
|
56590
|
+
disabled: isVisible.value,
|
|
56591
|
+
"preview-image": false,
|
|
56592
|
+
"after-read": afterRead,
|
|
56593
|
+
multiple: true,
|
|
56594
|
+
"max-size": maxSize,
|
|
56595
|
+
onOversize: onOversize,
|
|
56596
|
+
accept: ".doc,.docx,.pdf,.ppt,.pptx,.xlsx,.xls"
|
|
56553
56597
|
}, {
|
|
56554
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.
|
|
56555
|
-
"
|
|
56556
|
-
"
|
|
56557
|
-
multiple: true,
|
|
56558
|
-
accept: ".doc,.docx,.pdf,.ppt,.pptx,.xlsx,.xls"
|
|
56559
|
-
}, {
|
|
56560
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_button, {
|
|
56561
|
-
icon: "plus",
|
|
56562
|
-
type: "primary",
|
|
56563
|
-
size: "small",
|
|
56564
|
-
class: "button-type"
|
|
56565
|
-
}, {
|
|
56566
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createTextVNode)("上传")]),
|
|
56567
|
-
_: 1
|
|
56568
|
-
})]),
|
|
56569
|
-
_: 1
|
|
56570
|
-
}), isVisible.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_van_button, {
|
|
56571
|
-
key: 0,
|
|
56572
|
-
icon: "success",
|
|
56573
|
-
type: "success",
|
|
56574
|
-
size: "small",
|
|
56575
|
-
class: "button-type",
|
|
56576
|
-
onClick: selectAll
|
|
56577
|
-
}, {
|
|
56578
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createTextVNode)("全选")]),
|
|
56579
|
-
_: 1
|
|
56580
|
-
})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), isVisible.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_van_button, {
|
|
56581
|
-
key: 1,
|
|
56582
|
-
icon: "minus",
|
|
56583
|
-
type: "danger",
|
|
56598
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_button, {
|
|
56599
|
+
icon: "plus",
|
|
56600
|
+
type: "primary",
|
|
56584
56601
|
size: "small",
|
|
56585
|
-
class: "button-type"
|
|
56586
|
-
onClick: deleteFiles
|
|
56602
|
+
class: "button-type"
|
|
56587
56603
|
}, {
|
|
56588
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createTextVNode)("
|
|
56604
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createTextVNode)("上传")]),
|
|
56589
56605
|
_: 1
|
|
56590
|
-
}))
|
|
56591
|
-
|
|
56592
|
-
|
|
56593
|
-
|
|
56594
|
-
|
|
56595
|
-
|
|
56606
|
+
})]),
|
|
56607
|
+
_: 1
|
|
56608
|
+
}, 8, ["disabled"]), isVisible.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_van_button, {
|
|
56609
|
+
key: 0,
|
|
56610
|
+
icon: "success",
|
|
56611
|
+
type: "success",
|
|
56612
|
+
size: "small",
|
|
56613
|
+
class: "button-type",
|
|
56614
|
+
onClick: selectAll
|
|
56615
|
+
}, {
|
|
56616
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createTextVNode)("全选")]),
|
|
56617
|
+
_: 1
|
|
56618
|
+
})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), isVisible.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_van_button, {
|
|
56619
|
+
key: 1,
|
|
56620
|
+
icon: "minus",
|
|
56621
|
+
type: "danger",
|
|
56622
|
+
size: "small",
|
|
56623
|
+
class: "button-type",
|
|
56624
|
+
onClick: deleteFiles
|
|
56625
|
+
}, {
|
|
56626
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createTextVNode)("删除")]),
|
|
56627
|
+
_: 1
|
|
56628
|
+
})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_button, {
|
|
56629
|
+
plain: "",
|
|
56630
|
+
type: "success",
|
|
56631
|
+
size: "small",
|
|
56632
|
+
class: "button-type",
|
|
56633
|
+
onClick: open
|
|
56634
|
+
}, {
|
|
56635
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createTextVNode)("批量管理")]),
|
|
56636
|
+
_: 1
|
|
56637
|
+
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_list, null, {
|
|
56638
|
+
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, {
|
|
56639
|
+
modelValue: checked.value,
|
|
56640
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => checked.value = $event),
|
|
56641
|
+
ref_key: "checkboxGroupRef",
|
|
56642
|
+
ref: checkboxGroupRef
|
|
56596
56643
|
}, {
|
|
56597
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.
|
|
56598
|
-
|
|
56599
|
-
|
|
56600
|
-
|
|
56601
|
-
|
|
56602
|
-
|
|
56603
|
-
|
|
56604
|
-
|
|
56605
|
-
|
|
56606
|
-
|
|
56607
|
-
|
|
56608
|
-
|
|
56609
|
-
|
|
56610
|
-
|
|
56611
|
-
|
|
56612
|
-
|
|
56613
|
-
|
|
56614
|
-
|
|
56615
|
-
text: "删除",
|
|
56616
|
-
type: "danger",
|
|
56617
|
-
class: "slot-right",
|
|
56618
|
-
onClick: $event => deleteFile(item)
|
|
56619
|
-
}, null, 8, ["onClick"])]),
|
|
56620
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_card, {
|
|
56621
|
-
desc: item.dateModified,
|
|
56622
|
-
class: "goods-card",
|
|
56623
|
-
thumb: getImageUrlBySuffix(item),
|
|
56624
|
-
onClickThumb: $event => previewFile(item, index)
|
|
56644
|
+
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) => {
|
|
56645
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_van_swipe_cell, {
|
|
56646
|
+
key: index,
|
|
56647
|
+
ref_for: true,
|
|
56648
|
+
ref_key: "swipeCell",
|
|
56649
|
+
ref: swipeCell,
|
|
56650
|
+
"before-close": beforeClose
|
|
56651
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createSlots)({
|
|
56652
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_card, {
|
|
56653
|
+
desc: item.dateModified,
|
|
56654
|
+
class: "goods-card",
|
|
56655
|
+
clickable: "",
|
|
56656
|
+
onClick: $event => toggle(index),
|
|
56657
|
+
thumb: getImageUrlBySuffix(item),
|
|
56658
|
+
onClickThumb: $event => previewFile(item, index)
|
|
56659
|
+
}, {
|
|
56660
|
+
title: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_cell, {
|
|
56661
|
+
class: "card-desc"
|
|
56625
56662
|
}, {
|
|
56626
|
-
|
|
56627
|
-
|
|
56628
|
-
|
|
56629
|
-
|
|
56630
|
-
|
|
56631
|
-
|
|
56632
|
-
|
|
56633
|
-
class: "card-desc"
|
|
56634
|
-
}, {
|
|
56635
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createTextVNode)("上传时间: " + (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(formatDate(item.dateModified)), 1)]),
|
|
56636
|
-
_: 2
|
|
56637
|
-
}, 1024)]),
|
|
56663
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createTextVNode)("文件名称: " + (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(item.name), 1)]),
|
|
56664
|
+
_: 2
|
|
56665
|
+
}, 1024)]),
|
|
56666
|
+
desc: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_cell, {
|
|
56667
|
+
class: "card-desc"
|
|
56668
|
+
}, {
|
|
56669
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createTextVNode)("上传时间: " + (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(formatDate(item.dateModified)), 1)]),
|
|
56638
56670
|
_: 2
|
|
56639
|
-
},
|
|
56671
|
+
}, 1024)]),
|
|
56640
56672
|
_: 2
|
|
56641
|
-
}, [
|
|
56642
|
-
|
|
56643
|
-
|
|
56644
|
-
|
|
56645
|
-
|
|
56646
|
-
|
|
56647
|
-
|
|
56648
|
-
|
|
56649
|
-
|
|
56650
|
-
|
|
56651
|
-
|
|
56652
|
-
|
|
56653
|
-
|
|
56654
|
-
|
|
56655
|
-
|
|
56656
|
-
|
|
56657
|
-
|
|
56658
|
-
|
|
56659
|
-
|
|
56660
|
-
|
|
56661
|
-
|
|
56662
|
-
|
|
56663
|
-
|
|
56664
|
-
width: "100%",
|
|
56665
|
-
height: "800",
|
|
56666
|
-
scrolling: "no",
|
|
56667
|
-
frameborder: "0"
|
|
56668
|
-
}, null, 8, ermAttachvue_type_script_lang_ts_setup_true_hoisted_4)]),
|
|
56673
|
+
}, 1032, ["desc", "onClick", "thumb", "onClickThumb"])]),
|
|
56674
|
+
_: 2
|
|
56675
|
+
}, [isVisible.value ? {
|
|
56676
|
+
name: "left",
|
|
56677
|
+
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_checkbox, {
|
|
56678
|
+
name: item,
|
|
56679
|
+
ref_for: true,
|
|
56680
|
+
ref: el => checkboxRefs.value[index] = el,
|
|
56681
|
+
class: "slot-left",
|
|
56682
|
+
onClick: _cache[0] || (_cache[0] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)(() => {}, ["stop"]))
|
|
56683
|
+
}, null, 8, ["name"])]),
|
|
56684
|
+
key: "0"
|
|
56685
|
+
} : undefined, !isVisible.value ? {
|
|
56686
|
+
name: "right",
|
|
56687
|
+
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_van_button, {
|
|
56688
|
+
text: "删除",
|
|
56689
|
+
type: "danger",
|
|
56690
|
+
class: "slot-right",
|
|
56691
|
+
onClick: $event => deleteFile(item)
|
|
56692
|
+
}, null, 8, ["onClick"])]),
|
|
56693
|
+
key: "1"
|
|
56694
|
+
} : undefined]), 1024);
|
|
56695
|
+
}), 128))]),
|
|
56669
56696
|
_: 1
|
|
56670
|
-
}, 8, ["
|
|
56697
|
+
}, 8, ["modelValue"])]),
|
|
56671
56698
|
_: 1
|
|
56672
|
-
})
|
|
56699
|
+
}), (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, {
|
|
56700
|
+
"v-model:show": show.value,
|
|
56701
|
+
position: "bottom",
|
|
56702
|
+
style: {
|
|
56703
|
+
height: '92%'
|
|
56704
|
+
}
|
|
56705
|
+
}, {
|
|
56706
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("iframe", {
|
|
56707
|
+
src: previewURl.value,
|
|
56708
|
+
width: "100%",
|
|
56709
|
+
height: "800",
|
|
56710
|
+
scrolling: "no",
|
|
56711
|
+
frameborder: "0"
|
|
56712
|
+
}, null, 8, ermAttachvue_type_script_lang_ts_setup_true_hoisted_4)]),
|
|
56713
|
+
_: 1
|
|
56714
|
+
}, 8, ["v-model:show"])])]);
|
|
56673
56715
|
};
|
|
56674
56716
|
}
|
|
56675
56717
|
}));
|
|
56676
56718
|
;// CONCATENATED MODULE: ./packages/ermAttach/ermAttach.vue?vue&type=script&lang=ts&setup=true
|
|
56677
56719
|
|
|
56678
|
-
;// 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=
|
|
56720
|
+
;// 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=4f0fa058&lang=scss&scoped=true
|
|
56679
56721
|
// extracted by mini-css-extract-plugin
|
|
56680
56722
|
|
|
56681
|
-
;// CONCATENATED MODULE: ./packages/ermAttach/ermAttach.vue?vue&type=style&index=0&id=
|
|
56723
|
+
;// CONCATENATED MODULE: ./packages/ermAttach/ermAttach.vue?vue&type=style&index=0&id=4f0fa058&lang=scss&scoped=true
|
|
56682
56724
|
|
|
56683
56725
|
;// CONCATENATED MODULE: ./packages/ermAttach/ermAttach.vue
|
|
56684
56726
|
|
|
@@ -56687,7 +56729,7 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56687
56729
|
;
|
|
56688
56730
|
|
|
56689
56731
|
|
|
56690
|
-
const ermAttach_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(ermAttachvue_type_script_lang_ts_setup_true, [['__scopeId',"data-v-
|
|
56732
|
+
const ermAttach_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(ermAttachvue_type_script_lang_ts_setup_true, [['__scopeId',"data-v-4f0fa058"]])
|
|
56691
56733
|
|
|
56692
56734
|
/* harmony default export */ const ermAttach = (ermAttach_exports_);
|
|
56693
56735
|
;// CONCATENATED MODULE: ./packages/ermAttach/index.ts
|