@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
package/lib/index.umd.js
CHANGED
|
@@ -56225,7 +56225,7 @@ ImagePreview.install = (app) => {
|
|
|
56225
56225
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/ermAttach/ermAttach.vue?vue&type=script&lang=ts&setup=true
|
|
56226
56226
|
|
|
56227
56227
|
|
|
56228
|
-
const ermAttachvue_type_script_lang_ts_setup_true_withScopeId = n => (_pushScopeId("data-v-
|
|
56228
|
+
const ermAttachvue_type_script_lang_ts_setup_true_withScopeId = n => (_pushScopeId("data-v-4f0fa058"), n = n(), _popScopeId(), n);
|
|
56229
56229
|
const ermAttachvue_type_script_lang_ts_setup_true_hoisted_1 = {
|
|
56230
56230
|
class: "container"
|
|
56231
56231
|
};
|
|
@@ -56244,8 +56244,9 @@ const ermAttachvue_type_script_lang_ts_setup_true_hoisted_4 = ["src"];
|
|
|
56244
56244
|
|
|
56245
56245
|
|
|
56246
56246
|
|
|
56247
|
-
const servePath = 'http://10.25.145.55:10004/api/'; // 定义服务地址
|
|
56248
|
-
const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
56247
|
+
// const servePath = 'http://10.25.145.55:10004/api/'; // 定义服务地址
|
|
56248
|
+
// const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
56249
|
+
const maxSize = 5 * 1024 * 1024; // 记录上传文件最大容量
|
|
56249
56250
|
/* harmony default export */ const ermAttachvue_type_script_lang_ts_setup_true = (/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
56250
56251
|
__name: 'ermAttach',
|
|
56251
56252
|
props: {
|
|
@@ -56254,6 +56255,24 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56254
56255
|
* @type {String}
|
|
56255
56256
|
*/
|
|
56256
56257
|
recId: {
|
|
56258
|
+
type: String,
|
|
56259
|
+
require: true,
|
|
56260
|
+
default: 'TEST'
|
|
56261
|
+
},
|
|
56262
|
+
/**
|
|
56263
|
+
* servePath-服务地址
|
|
56264
|
+
* @type {String}
|
|
56265
|
+
*/
|
|
56266
|
+
servePath: {
|
|
56267
|
+
type: String,
|
|
56268
|
+
require: true,
|
|
56269
|
+
default: 'http://10.25.145.55:10004/api/'
|
|
56270
|
+
},
|
|
56271
|
+
/**
|
|
56272
|
+
* rootDirectory-根目录
|
|
56273
|
+
* @type {String}
|
|
56274
|
+
*/
|
|
56275
|
+
rootDirectory: {
|
|
56257
56276
|
type: String,
|
|
56258
56277
|
require: true
|
|
56259
56278
|
}
|
|
@@ -56277,7 +56296,7 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56277
56296
|
// #endregion
|
|
56278
56297
|
// #region 初始化服务信息
|
|
56279
56298
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
56280
|
-
initServeInfo(); // 初始化服务信息
|
|
56299
|
+
// initServeInfo(); // 初始化服务信息
|
|
56281
56300
|
getFile(); // 获取文件信息
|
|
56282
56301
|
});
|
|
56283
56302
|
|
|
@@ -56300,8 +56319,7 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56300
56319
|
// #endregion
|
|
56301
56320
|
// #region 获取文件信息
|
|
56302
56321
|
const getFile = () => {
|
|
56303
|
-
|
|
56304
|
-
de.getFilesInfo(prop.recId, url, rootDirectory).then(res => {
|
|
56322
|
+
de.getFilesInfo(prop.recId, prop.servePath, prop.rootDirectory).then(res => {
|
|
56305
56323
|
console.log('获取文件:', res);
|
|
56306
56324
|
if (res.success === true) {
|
|
56307
56325
|
fileInfo.value = res.result;
|
|
@@ -56341,8 +56359,7 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56341
56359
|
ImagePreview(imgsUrl, indexOfImg);
|
|
56342
56360
|
} else {
|
|
56343
56361
|
previewURl.value = '';
|
|
56344
|
-
|
|
56345
|
-
de.filePreview(e.key, url, rootDirectory).then(res => {
|
|
56362
|
+
de.filePreview(e.key, prop.servePath, prop.rootDirectory).then(res => {
|
|
56346
56363
|
console.log('预览后台返回:', res);
|
|
56347
56364
|
show.value = true;
|
|
56348
56365
|
previewURl.value = res;
|
|
@@ -56368,10 +56385,9 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56368
56385
|
console.log('file', file0);
|
|
56369
56386
|
const blobData = file0.file; // base64转换成blob
|
|
56370
56387
|
console.log('blobData', blobData);
|
|
56371
|
-
const url = servePath; // 服务地址
|
|
56372
56388
|
const fileName = file0.file.name; // 文件全称
|
|
56373
56389
|
const fileSize = file0.file.size; // 文件大小
|
|
56374
|
-
de.fileUpload(blobData, prop.recId, fileName, fileSize,
|
|
56390
|
+
de.fileUpload(blobData, prop.recId, fileName, fileSize, prop.servePath, prop.rootDirectory).then(res => {
|
|
56375
56391
|
console.log('文件上传:', res);
|
|
56376
56392
|
if (res.success === true) {
|
|
56377
56393
|
Toast.success({
|
|
@@ -56392,10 +56408,9 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56392
56408
|
console.log('file', file);
|
|
56393
56409
|
const blobData = file.file;
|
|
56394
56410
|
console.log('blobData', blobData);
|
|
56395
|
-
const url = servePath; // 服务地址
|
|
56396
56411
|
const fileName = file.file.name; // 文件全称
|
|
56397
56412
|
const fileSize = file.file.size; // 文件大小
|
|
56398
|
-
de.fileUpload(blobData, prop.recId, fileName, fileSize,
|
|
56413
|
+
de.fileUpload(blobData, prop.recId, fileName, fileSize, prop.servePath, prop.rootDirectory).then(res => {
|
|
56399
56414
|
console.log('文件上传:', res);
|
|
56400
56415
|
if (res.success === true) {
|
|
56401
56416
|
Toast.success({
|
|
@@ -56423,9 +56438,8 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56423
56438
|
// #region 文件单个删除
|
|
56424
56439
|
const deleteFile = e => {
|
|
56425
56440
|
console.log('e', e);
|
|
56426
|
-
const url = servePath; // 服务地址
|
|
56427
56441
|
const fileName = e.name; // 文件全称
|
|
56428
|
-
de.fileDelete(fileName, prop.recId,
|
|
56442
|
+
de.fileDelete(fileName, prop.recId, prop.servePath, prop.rootDirectory).then(res => {
|
|
56429
56443
|
console.log('删除文件:', res);
|
|
56430
56444
|
if (res.success === true) {
|
|
56431
56445
|
Toast({
|
|
@@ -56449,13 +56463,13 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56449
56463
|
console.log('checkboxRefs', checkboxRefs);
|
|
56450
56464
|
checkboxRefs.value.forEach((item, index) => {
|
|
56451
56465
|
// item.checked.value为true,则被选中,调用文件删除
|
|
56452
|
-
if (item.checked.value) {
|
|
56466
|
+
if (item && item.checked.value) {
|
|
56453
56467
|
console.log('index', index);
|
|
56454
56468
|
console.log(fileInfo.value[index]);
|
|
56455
56469
|
deleteFile(fileInfo.value[index]);
|
|
56456
56470
|
}
|
|
56457
|
-
console.log('item', item.checked.value);
|
|
56458
56471
|
});
|
|
56472
|
+
open(); // 关闭多选
|
|
56459
56473
|
};
|
|
56460
56474
|
// #endregion
|
|
56461
56475
|
// #region 根据文件后缀,返回图标路径
|
|
@@ -56547,12 +56561,39 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56547
56561
|
case 'right':
|
|
56548
56562
|
return true;
|
|
56549
56563
|
case 'cell':
|
|
56564
|
+
return false;
|
|
56550
56565
|
case 'outside':
|
|
56566
|
+
if (isVisible.value) {
|
|
56567
|
+
return false;
|
|
56568
|
+
} else {
|
|
56569
|
+
return true;
|
|
56570
|
+
}
|
|
56551
56571
|
}
|
|
56552
56572
|
};
|
|
56553
56573
|
// #endregion
|
|
56554
|
-
//
|
|
56574
|
+
// #region onOversize 获取超过上传大小限制的文件
|
|
56575
|
+
const onOversize = async file => {
|
|
56576
|
+
console.log(file);
|
|
56577
|
+
Toast.fail({
|
|
56578
|
+
message: '文件大小不能超过 ' + maxSize / 1024 + 'kb',
|
|
56579
|
+
closeOnClick: true,
|
|
56580
|
+
duration: 0
|
|
56581
|
+
});
|
|
56582
|
+
// Toast('文件大小不能超过 500kb');
|
|
56583
|
+
};
|
|
56584
|
+
// #endregion
|
|
56585
|
+
// #region 点击文本切换勾选
|
|
56586
|
+
const toggle = index => {
|
|
56587
|
+
console.log('index', index);
|
|
56588
|
+
checkboxRefs.value[index].toggle();
|
|
56589
|
+
};
|
|
56590
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUpdate)(() => {
|
|
56591
|
+
checkboxRefs.value = [];
|
|
56592
|
+
});
|
|
56593
|
+
// #endregion
|
|
56594
|
+
// #region 传递 props
|
|
56555
56595
|
const prop = __props;
|
|
56596
|
+
// #endregion
|
|
56556
56597
|
return (_ctx, _cache) => {
|
|
56557
56598
|
const _component_van_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("van-button");
|
|
56558
56599
|
const _component_van_uploader = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("van-uploader");
|
|
@@ -56563,140 +56604,141 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56563
56604
|
const _component_van_checkbox_group = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("van-checkbox-group");
|
|
56564
56605
|
const _component_van_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("van-list");
|
|
56565
56606
|
const _component_van_popup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("van-popup");
|
|
56566
|
-
|
|
56567
|
-
|
|
56568
|
-
|
|
56569
|
-
|
|
56570
|
-
|
|
56607
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", ermAttachvue_type_script_lang_ts_setup_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", ermAttachvue_type_script_lang_ts_setup_true_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_van_uploader, {
|
|
56608
|
+
disabled: isVisible.value,
|
|
56609
|
+
"preview-image": false,
|
|
56610
|
+
"after-read": afterRead,
|
|
56611
|
+
multiple: true,
|
|
56612
|
+
"max-size": maxSize,
|
|
56613
|
+
onOversize: onOversize,
|
|
56614
|
+
accept: ".doc,.docx,.pdf,.ppt,.pptx,.xlsx,.xls"
|
|
56571
56615
|
}, {
|
|
56572
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
56573
|
-
"
|
|
56574
|
-
"
|
|
56575
|
-
multiple: true,
|
|
56576
|
-
accept: ".doc,.docx,.pdf,.ppt,.pptx,.xlsx,.xls"
|
|
56577
|
-
}, {
|
|
56578
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_van_button, {
|
|
56579
|
-
icon: "plus",
|
|
56580
|
-
type: "primary",
|
|
56581
|
-
size: "small",
|
|
56582
|
-
class: "button-type"
|
|
56583
|
-
}, {
|
|
56584
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("上传")]),
|
|
56585
|
-
_: 1
|
|
56586
|
-
})]),
|
|
56587
|
-
_: 1
|
|
56588
|
-
}), isVisible.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_van_button, {
|
|
56589
|
-
key: 0,
|
|
56590
|
-
icon: "success",
|
|
56591
|
-
type: "success",
|
|
56592
|
-
size: "small",
|
|
56593
|
-
class: "button-type",
|
|
56594
|
-
onClick: selectAll
|
|
56595
|
-
}, {
|
|
56596
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("全选")]),
|
|
56597
|
-
_: 1
|
|
56598
|
-
})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), isVisible.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_van_button, {
|
|
56599
|
-
key: 1,
|
|
56600
|
-
icon: "minus",
|
|
56601
|
-
type: "danger",
|
|
56616
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_van_button, {
|
|
56617
|
+
icon: "plus",
|
|
56618
|
+
type: "primary",
|
|
56602
56619
|
size: "small",
|
|
56603
|
-
class: "button-type"
|
|
56604
|
-
onClick: deleteFiles
|
|
56620
|
+
class: "button-type"
|
|
56605
56621
|
}, {
|
|
56606
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("
|
|
56622
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("上传")]),
|
|
56607
56623
|
_: 1
|
|
56608
|
-
}))
|
|
56609
|
-
|
|
56610
|
-
|
|
56611
|
-
|
|
56612
|
-
|
|
56613
|
-
|
|
56624
|
+
})]),
|
|
56625
|
+
_: 1
|
|
56626
|
+
}, 8, ["disabled"]), isVisible.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_van_button, {
|
|
56627
|
+
key: 0,
|
|
56628
|
+
icon: "success",
|
|
56629
|
+
type: "success",
|
|
56630
|
+
size: "small",
|
|
56631
|
+
class: "button-type",
|
|
56632
|
+
onClick: selectAll
|
|
56633
|
+
}, {
|
|
56634
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("全选")]),
|
|
56635
|
+
_: 1
|
|
56636
|
+
})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), isVisible.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_van_button, {
|
|
56637
|
+
key: 1,
|
|
56638
|
+
icon: "minus",
|
|
56639
|
+
type: "danger",
|
|
56640
|
+
size: "small",
|
|
56641
|
+
class: "button-type",
|
|
56642
|
+
onClick: deleteFiles
|
|
56643
|
+
}, {
|
|
56644
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("删除")]),
|
|
56645
|
+
_: 1
|
|
56646
|
+
})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_van_button, {
|
|
56647
|
+
plain: "",
|
|
56648
|
+
type: "success",
|
|
56649
|
+
size: "small",
|
|
56650
|
+
class: "button-type",
|
|
56651
|
+
onClick: open
|
|
56652
|
+
}, {
|
|
56653
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("批量管理")]),
|
|
56654
|
+
_: 1
|
|
56655
|
+
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_van_list, null, {
|
|
56656
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_van_checkbox_group, {
|
|
56657
|
+
modelValue: checked.value,
|
|
56658
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => checked.value = $event),
|
|
56659
|
+
ref_key: "checkboxGroupRef",
|
|
56660
|
+
ref: checkboxGroupRef
|
|
56614
56661
|
}, {
|
|
56615
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
56616
|
-
|
|
56617
|
-
|
|
56618
|
-
|
|
56619
|
-
|
|
56620
|
-
|
|
56621
|
-
|
|
56622
|
-
|
|
56623
|
-
|
|
56624
|
-
|
|
56625
|
-
|
|
56626
|
-
|
|
56627
|
-
|
|
56628
|
-
|
|
56629
|
-
|
|
56630
|
-
|
|
56631
|
-
|
|
56632
|
-
|
|
56633
|
-
text: "删除",
|
|
56634
|
-
type: "danger",
|
|
56635
|
-
class: "slot-right",
|
|
56636
|
-
onClick: $event => deleteFile(item)
|
|
56637
|
-
}, null, 8, ["onClick"])]),
|
|
56638
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_van_card, {
|
|
56639
|
-
desc: item.dateModified,
|
|
56640
|
-
class: "goods-card",
|
|
56641
|
-
thumb: getImageUrlBySuffix(item),
|
|
56642
|
-
onClickThumb: $event => previewFile(item, index)
|
|
56662
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(fileInfo.value, (item, index) => {
|
|
56663
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_van_swipe_cell, {
|
|
56664
|
+
key: index,
|
|
56665
|
+
ref_for: true,
|
|
56666
|
+
ref_key: "swipeCell",
|
|
56667
|
+
ref: swipeCell,
|
|
56668
|
+
"before-close": beforeClose
|
|
56669
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createSlots)({
|
|
56670
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_van_card, {
|
|
56671
|
+
desc: item.dateModified,
|
|
56672
|
+
class: "goods-card",
|
|
56673
|
+
clickable: "",
|
|
56674
|
+
onClick: $event => toggle(index),
|
|
56675
|
+
thumb: getImageUrlBySuffix(item),
|
|
56676
|
+
onClickThumb: $event => previewFile(item, index)
|
|
56677
|
+
}, {
|
|
56678
|
+
title: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_van_cell, {
|
|
56679
|
+
class: "card-desc"
|
|
56643
56680
|
}, {
|
|
56644
|
-
|
|
56645
|
-
|
|
56646
|
-
|
|
56647
|
-
|
|
56648
|
-
|
|
56649
|
-
|
|
56650
|
-
|
|
56651
|
-
class: "card-desc"
|
|
56652
|
-
}, {
|
|
56653
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("上传时间: " + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(formatDate(item.dateModified)), 1)]),
|
|
56654
|
-
_: 2
|
|
56655
|
-
}, 1024)]),
|
|
56681
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("文件名称: " + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.name), 1)]),
|
|
56682
|
+
_: 2
|
|
56683
|
+
}, 1024)]),
|
|
56684
|
+
desc: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_van_cell, {
|
|
56685
|
+
class: "card-desc"
|
|
56686
|
+
}, {
|
|
56687
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("上传时间: " + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(formatDate(item.dateModified)), 1)]),
|
|
56656
56688
|
_: 2
|
|
56657
|
-
},
|
|
56689
|
+
}, 1024)]),
|
|
56658
56690
|
_: 2
|
|
56659
|
-
}, [
|
|
56660
|
-
|
|
56661
|
-
|
|
56662
|
-
|
|
56663
|
-
|
|
56664
|
-
|
|
56665
|
-
|
|
56666
|
-
|
|
56667
|
-
|
|
56668
|
-
|
|
56669
|
-
|
|
56670
|
-
|
|
56671
|
-
|
|
56672
|
-
|
|
56673
|
-
|
|
56674
|
-
|
|
56675
|
-
|
|
56676
|
-
|
|
56677
|
-
|
|
56678
|
-
|
|
56679
|
-
|
|
56680
|
-
|
|
56681
|
-
|
|
56682
|
-
width: "100%",
|
|
56683
|
-
height: "800",
|
|
56684
|
-
scrolling: "no",
|
|
56685
|
-
frameborder: "0"
|
|
56686
|
-
}, null, 8, ermAttachvue_type_script_lang_ts_setup_true_hoisted_4)]),
|
|
56691
|
+
}, 1032, ["desc", "onClick", "thumb", "onClickThumb"])]),
|
|
56692
|
+
_: 2
|
|
56693
|
+
}, [isVisible.value ? {
|
|
56694
|
+
name: "left",
|
|
56695
|
+
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_van_checkbox, {
|
|
56696
|
+
name: item,
|
|
56697
|
+
ref_for: true,
|
|
56698
|
+
ref: el => checkboxRefs.value[index] = el,
|
|
56699
|
+
class: "slot-left",
|
|
56700
|
+
onClick: _cache[0] || (_cache[0] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(() => {}, ["stop"]))
|
|
56701
|
+
}, null, 8, ["name"])]),
|
|
56702
|
+
key: "0"
|
|
56703
|
+
} : undefined, !isVisible.value ? {
|
|
56704
|
+
name: "right",
|
|
56705
|
+
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_van_button, {
|
|
56706
|
+
text: "删除",
|
|
56707
|
+
type: "danger",
|
|
56708
|
+
class: "slot-right",
|
|
56709
|
+
onClick: $event => deleteFile(item)
|
|
56710
|
+
}, null, 8, ["onClick"])]),
|
|
56711
|
+
key: "1"
|
|
56712
|
+
} : undefined]), 1024);
|
|
56713
|
+
}), 128))]),
|
|
56687
56714
|
_: 1
|
|
56688
|
-
}, 8, ["
|
|
56715
|
+
}, 8, ["modelValue"])]),
|
|
56689
56716
|
_: 1
|
|
56690
|
-
})
|
|
56717
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", ermAttachvue_type_script_lang_ts_setup_true_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_van_popup, {
|
|
56718
|
+
"v-model:show": show.value,
|
|
56719
|
+
position: "bottom",
|
|
56720
|
+
style: {
|
|
56721
|
+
height: '92%'
|
|
56722
|
+
}
|
|
56723
|
+
}, {
|
|
56724
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("iframe", {
|
|
56725
|
+
src: previewURl.value,
|
|
56726
|
+
width: "100%",
|
|
56727
|
+
height: "800",
|
|
56728
|
+
scrolling: "no",
|
|
56729
|
+
frameborder: "0"
|
|
56730
|
+
}, null, 8, ermAttachvue_type_script_lang_ts_setup_true_hoisted_4)]),
|
|
56731
|
+
_: 1
|
|
56732
|
+
}, 8, ["v-model:show"])])]);
|
|
56691
56733
|
};
|
|
56692
56734
|
}
|
|
56693
56735
|
}));
|
|
56694
56736
|
;// CONCATENATED MODULE: ./packages/ermAttach/ermAttach.vue?vue&type=script&lang=ts&setup=true
|
|
56695
56737
|
|
|
56696
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/ermAttach/ermAttach.vue?vue&type=style&index=0&id=
|
|
56738
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.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
|
|
56697
56739
|
// extracted by mini-css-extract-plugin
|
|
56698
56740
|
|
|
56699
|
-
;// CONCATENATED MODULE: ./packages/ermAttach/ermAttach.vue?vue&type=style&index=0&id=
|
|
56741
|
+
;// CONCATENATED MODULE: ./packages/ermAttach/ermAttach.vue?vue&type=style&index=0&id=4f0fa058&lang=scss&scoped=true
|
|
56700
56742
|
|
|
56701
56743
|
;// CONCATENATED MODULE: ./packages/ermAttach/ermAttach.vue
|
|
56702
56744
|
|
|
@@ -56705,7 +56747,7 @@ const rootDirectory = '/BSMesWare/BM2A01/Attach/'; // 定义根目录
|
|
|
56705
56747
|
;
|
|
56706
56748
|
|
|
56707
56749
|
|
|
56708
|
-
const ermAttach_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(ermAttachvue_type_script_lang_ts_setup_true, [['__scopeId',"data-v-
|
|
56750
|
+
const ermAttach_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(ermAttachvue_type_script_lang_ts_setup_true, [['__scopeId',"data-v-4f0fa058"]])
|
|
56709
56751
|
|
|
56710
56752
|
/* harmony default export */ const ermAttach = (ermAttach_exports_);
|
|
56711
56753
|
;// CONCATENATED MODULE: ./packages/ermAttach/index.ts
|