cloud-web-corejs 1.0.135 → 1.0.136

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.135",
4
+ "version": "1.0.136",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -1,4 +1,4 @@
1
- import {treeScollx} from "@base/utils/global.js";
1
+ import { treeScollx } from "@base/utils/global.js";
2
2
  import ElImageViewer from "@base/components/VabUpload/image-viewer";
3
3
  import propertiesDialog from "@base/components/fileLibrary/propertiesDialog";
4
4
  import categoryMoveDialog from "@base/components/fileLibrary/categoryMoveDialog";
@@ -7,7 +7,7 @@ import shareDialog from "@base/components/fileLibrary/shareDialog";
7
7
  import recycleBinDialog from "@base/components/fileLibrary/recycleBinDialog";
8
8
  import videoDialog from "@base/components/video/dialog";
9
9
  import userDialog from "@base/views/user/user/dialog";
10
- import {encode} from "js-base64";
10
+ import { encode } from "js-base64";
11
11
  import fileObjAuthDialog from "@base/components/fileLibrary/fileObjAuthDialog";
12
12
  import filterDialog from "@base/components/fileLibrary/filterDialog.vue";
13
13
 
@@ -28,7 +28,7 @@ modules = {
28
28
  videoDialog,
29
29
  userDialog,
30
30
  fileObjAuthDialog,
31
- filterDialog
31
+ filterDialog,
32
32
  },
33
33
  provide() {
34
34
  return {
@@ -50,7 +50,7 @@ modules = {
50
50
  },
51
51
  getFileStoreArea: () => {
52
52
  return this.fileStoreArea;
53
- }
53
+ },
54
54
  };
55
55
  },
56
56
  async created() {
@@ -88,8 +88,7 @@ modules = {
88
88
  label: "fileName",
89
89
  isLeaf: "leaf",
90
90
  },
91
- resolveFunc: function () {
92
- },
91
+ resolveFunc: function () {},
93
92
  fileAttachmentCategorys: [],
94
93
  currentFileCategoryCode: null,
95
94
  chooseIndex: -1,
@@ -161,7 +160,7 @@ modules = {
161
160
  showFileObjAuthDialog: false,
162
161
  fileObjAuth: {},
163
162
  popAnnexFilter: false,
164
- showFilterDialog: false
163
+ showFilterDialog: false,
165
164
  };
166
165
  },
167
166
  computed: {
@@ -185,8 +184,8 @@ modules = {
185
184
  let dataId = this.isBillEnabled
186
185
  ? this.checkBillDatas.map((row) => row.id)
187
186
  : this.option.dataId
188
- ? [this.option.dataId]
189
- : [0];
187
+ ? [this.option.dataId]
188
+ : [0];
190
189
  return dataId;
191
190
  },
192
191
  objectForeignId() {
@@ -255,8 +254,8 @@ modules = {
255
254
  },
256
255
  currentCategoryId() {
257
256
  return this.currentFileCategory &&
258
- this.currentFileCategory.id &&
259
- this.currentFileCategory.id > 0
257
+ this.currentFileCategory.id &&
258
+ this.currentFileCategory.id > 0
260
259
  ? this.currentFileCategory.id
261
260
  : 0;
262
261
  },
@@ -267,36 +266,35 @@ modules = {
267
266
  customToobarButtons() {
268
267
  let buttonConfig = this.option.buttonConfig || {};
269
268
  return buttonConfig && buttonConfig.toobar ? buttonConfig.toobar : [];
270
- }
269
+ },
271
270
  },
272
271
  methods: {
273
272
  openFileDirs(row) {
274
- let keys = row.treePath.split(',').filter(item => !!item);
275
- let size = keys.length
276
- let tree = this.$refs.tree
273
+ let keys = row.treePath.split(",").filter((item) => !!item);
274
+ let size = keys.length;
275
+ let tree = this.$refs.tree;
277
276
 
278
277
  let parent = null;
279
278
  let loopDo = (index) => {
280
- if (size <= index) return
281
- let key = keys[index]
279
+ if (size <= index) return;
280
+ let key = keys[index];
282
281
  let node = tree.getNode(key + "");
283
282
  let data = node.data;
284
283
  if (size == index + 1) {
285
284
  tree.setCurrentKey(data);
286
285
  this.handleNodeClick(data, node, this);
287
- return
286
+ return;
288
287
  }
289
288
 
290
289
  if (!data.leaf) {
291
290
  node.expand(() => {
292
- loopDo(index + 1)
293
- })
291
+ loopDo(index + 1);
292
+ });
294
293
  }
295
- }
294
+ };
296
295
  this.getTopNode().expand(() => {
297
- loopDo(0)
298
- })
299
-
296
+ loopDo(0);
297
+ });
300
298
  },
301
299
  getTopNode() {
302
300
  return this.$refs.tree.root.childNodes[0];
@@ -338,7 +336,12 @@ modules = {
338
336
  let checkRows = this.getCheckRows();
339
337
  if (!checkRows.length) {
340
338
  let msg =
341
- handleType == 1 ? this.$t2('请选择需要移动的文件', 'components.fileLibrary.moveTip') : this.$t2('请选择需要复制的文件', 'components.fileLibrary.copyTip');
339
+ handleType == 1
340
+ ? this.$t2("请选择需要移动的文件", "components.fileLibrary.moveTip")
341
+ : this.$t2(
342
+ "请选择需要复制的文件",
343
+ "components.fileLibrary.copyTip"
344
+ );
342
345
  this.$message({
343
346
  message: msg,
344
347
  type: "error",
@@ -410,14 +413,22 @@ modules = {
410
413
  deleteCategory(category) {
411
414
  if (!category && !this.currentCategoryId) {
412
415
  this.$message({
413
- message: this.$t2('请选择需要删除的文件夹', 'components.fileLibrary.deleteCategoryTip'),
416
+ message: this.$t2(
417
+ "请选择需要删除的文件夹",
418
+ "components.fileLibrary.deleteCategoryTip"
419
+ ),
414
420
  type: "error",
415
421
  showClose: true,
416
422
  duration: 3000,
417
423
  });
418
424
  return;
419
425
  }
420
- this.$baseConfirm(this.$t2('您确定要删除文件夹吗?', 'components.fileLibrary.deleteCategoryConfirmTip')).then(() => {
426
+ this.$baseConfirm(
427
+ this.$t2(
428
+ "您确定要删除文件夹吗?",
429
+ "components.fileLibrary.deleteCategoryConfirmTip"
430
+ )
431
+ ).then(() => {
421
432
  let categoryId = category ? category.id : this.currentCategoryId;
422
433
  this.$http({
423
434
  method: "post",
@@ -486,7 +497,7 @@ modules = {
486
497
  if (!field) field = "medium";
487
498
  return this.$commonFileUtil.getShowUrl(
488
499
  attachment.domain +
489
- (attachment[field] ? attachment[field] : attachment.url)
500
+ (attachment[field] ? attachment[field] : attachment.url)
490
501
  );
491
502
  },
492
503
  isVideo(fileSuffix) {
@@ -547,21 +558,25 @@ modules = {
547
558
  let checkBillDatas = this.checkBillDatas;
548
559
  let done = (res) => {
549
560
  this.page = res;
550
- }
561
+ };
551
562
  let preHandlePage = this.option.preHandlePage;
552
563
  if (preHandlePage) {
553
- preHandlePage({page, objectForeignId, checkBillDatas, done})
564
+ preHandlePage({ page, objectForeignId, checkBillDatas, done });
554
565
  } else {
555
566
  done(page);
556
567
  }
557
- }
568
+ },
558
569
  });
559
570
  },
560
571
  addFile() {
561
572
  let currentFileCategory = this.currentFileCategory;
562
573
  if (!currentFileCategory || !currentFileCategory.id) {
563
574
  this.$message({
564
- message: this.$t2("文件夹[" + this.title + "]不允许上传", 'components.fileLibrary.uploadTip1', {title: this.title}),
575
+ message: this.$t2(
576
+ "文件夹[" + this.title + "]不允许上传",
577
+ "components.fileLibrary.uploadTip1",
578
+ { title: this.title }
579
+ ),
565
580
  type: "error",
566
581
  showClose: true,
567
582
  duration: 3000,
@@ -572,7 +587,11 @@ modules = {
572
587
  if (!this.checkBillDatas.length) {
573
588
  let billName = this.billConfig.name;
574
589
  this.$message({
575
- message: this.$t2("请选择" + billName, 'components.fileLibrary.uploadTip2', {billName: billName}),
590
+ message: this.$t2(
591
+ "请选择" + billName,
592
+ "components.fileLibrary.uploadTip2",
593
+ { billName: billName }
594
+ ),
576
595
  type: "error",
577
596
  showClose: true,
578
597
  duration: 3000,
@@ -632,8 +651,8 @@ modules = {
632
651
  if (attachment) {
633
652
  if (attachment.status == 1) {
634
653
  this.$message({
635
- message: '归档文件不允许删除',
636
- type: 'error',
654
+ message: "归档文件不允许删除",
655
+ type: "error",
637
656
  showClose: true,
638
657
  duration: 3000,
639
658
  });
@@ -643,13 +662,13 @@ modules = {
643
662
  if (attachment.dirs) {
644
663
  categorys.push(attachment);
645
664
  }
646
- checkRows = [attachment]
665
+ checkRows = [attachment];
647
666
  } else {
648
667
  checkRows = this.getCheckRows();
649
- if (checkRows.find(row => row.status == 1)) {
668
+ if (checkRows.find((row) => row.status == 1)) {
650
669
  this.$message({
651
- message: '归档文件不允许删除',
652
- type: 'error',
670
+ message: "归档文件不允许删除",
671
+ type: "error",
653
672
  showClose: true,
654
673
  duration: 3000,
655
674
  });
@@ -660,7 +679,10 @@ modules = {
660
679
  }
661
680
  if (!data.length) {
662
681
  this.$message({
663
- message: this.$t2('请选择需要删除的文件', 'components.fileLibrary.deleteFileTip'),
682
+ message: this.$t2(
683
+ "请选择需要删除的文件",
684
+ "components.fileLibrary.deleteFileTip"
685
+ ),
664
686
  type: "error",
665
687
  showClose: true,
666
688
  duration: 3000,
@@ -668,13 +690,17 @@ modules = {
668
690
  return;
669
691
  }
670
692
 
671
- let deleteDirAuth = this.fileObjAuth && this.fileObjAuth.deleteDirAuth ? 1 : 0;
693
+ let deleteDirAuth =
694
+ this.fileObjAuth && this.fileObjAuth.deleteDirAuth ? 1 : 0;
672
695
  let deleteAuth = this.fileObjAuth && this.fileObjAuth.deleteAuth ? 1 : 0;
673
696
  for (let i = 0; i < checkRows.length; i++) {
674
697
  let item = checkRows[i];
675
698
  if (item.dirs && !deleteDirAuth) {
676
699
  this.$message({
677
- message: this.$t2('您没有删除文件夹的权限!', 'components.fileLibrary.deleteCategoryTip2'),
700
+ message: this.$t2(
701
+ "您没有删除文件夹的权限!",
702
+ "components.fileLibrary.deleteCategoryTip2"
703
+ ),
678
704
  type: "error",
679
705
  showClose: true,
680
706
  duration: 3000,
@@ -682,7 +708,10 @@ modules = {
682
708
  return;
683
709
  } else if (!item.dirs && !deleteAuth) {
684
710
  this.$message({
685
- message: this.$t2('您没有删除文件的权限!', 'components.fileLibrary.deleteFileTip2'),
711
+ message: this.$t2(
712
+ "您没有删除文件的权限!",
713
+ "components.fileLibrary.deleteFileTip2"
714
+ ),
686
715
  type: "error",
687
716
  showClose: true,
688
717
  duration: 3000,
@@ -692,7 +721,9 @@ modules = {
692
721
  }
693
722
 
694
723
  // let data = [attachment.id];
695
- this.$baseConfirm(this.$t2('您确定要删除吗?', 'components.fileLibrary.deleteConfirmTip')).then(() => {
724
+ this.$baseConfirm(
725
+ this.$t2("您确定要删除吗?", "components.fileLibrary.deleteConfirmTip")
726
+ ).then(() => {
696
727
  this.$http({
697
728
  method: "post",
698
729
  url: this.current_prefix + "/file_obj/setDisable",
@@ -716,7 +747,9 @@ modules = {
716
747
  },
717
748
  initTableList() {
718
749
  let that = this;
719
- let customColumns = this.option.customColumns ? this.option.customColumns() : [];
750
+ let customColumns = this.option.customColumns
751
+ ? this.option.customColumns()
752
+ : [];
720
753
  let tableOption = {
721
754
  vue: this,
722
755
  tableRef: "table-m1",
@@ -729,14 +762,14 @@ modules = {
729
762
  },
730
763
  },
731
764
  columns: [
732
- {type: "checkbox", width: 48, resizable: false, fixed: "left"},
765
+ { type: "checkbox", width: 48, resizable: false, fixed: "left" },
733
766
  {
734
- title: this.$t2('文件名称', 'components.fileLibrary.fileName'),
767
+ title: this.$t2("文件名称", "components.fileLibrary.fileName"),
735
768
  field: "fileName",
736
769
  width: 250,
737
770
  fixed: "left",
738
771
  slots: {
739
- default: ({row, $rowIndex}) => {
772
+ default: ({ row, $rowIndex }) => {
740
773
  let h = this.$createElement;
741
774
  if (!row.dirs) {
742
775
  let showUrl = that.getShowUrl(row, "thumbnail");
@@ -759,7 +792,10 @@ modules = {
759
792
  props: {
760
793
  enterable: false,
761
794
  effect: "dark",
762
- content: this.$t2('预览', 'components.fileLibrary.preview'),
795
+ content: this.$t2(
796
+ "预览",
797
+ "components.fileLibrary.preview"
798
+ ),
763
799
  placement: "top",
764
800
  "popper-class": "tooltip-skin",
765
801
  },
@@ -797,7 +833,7 @@ modules = {
797
833
  },
798
834
  [
799
835
  h("svg-icon", {
800
- props: {"icon-class": "ico-wenjianjia"},
836
+ props: { "icon-class": "ico-wenjianjia" },
801
837
  }),
802
838
  h("span", row.fileName),
803
839
  ]
@@ -810,11 +846,11 @@ modules = {
810
846
  },
811
847
  },
812
848
  {
813
- title: this.$t2('文件大小', 'components.fileLibrary.fileSize'),
849
+ title: this.$t2("文件大小", "components.fileLibrary.fileSize"),
814
850
  field: "fileSize",
815
851
  width: 150,
816
852
  slots: {
817
- default: ({row, $rowIndex}) => {
853
+ default: ({ row, $rowIndex }) => {
818
854
  if (!row.dirs) {
819
855
  return this.formatFileSize(row.fileSize);
820
856
  }
@@ -822,41 +858,53 @@ modules = {
822
858
  },
823
859
  },
824
860
  {
825
- title: this.$t2('版本号', 'components.fileLibrary.fileRev'),
861
+ title: this.$t2("版本号", "components.fileLibrary.fileRev"),
826
862
  field: "rev",
827
863
  width: 150,
828
864
  slots: {
829
- default: ({row, $rowIndex}) => {
865
+ default: ({ row, $rowIndex }) => {
830
866
  if (!row.dirs) {
831
867
  return row.rev;
832
868
  }
833
- }
834
- }
869
+ },
870
+ },
835
871
  },
836
- {title: this.$t2('分辨率', 'components.fileLibrary.widthHeight'), field: "widthHeight", width: 150},
837
- {title: this.$t2('所属对象描述', 'components.fileLibrary.note'), field: "note", width: 250},
838
872
  {
839
- title: '状态',
840
- field: 'status',
873
+ title: this.$t2("分辨率", "components.fileLibrary.widthHeight"),
874
+ field: "widthHeight",
875
+ width: 150,
876
+ },
877
+ {
878
+ title: this.$t2("所属对象描述", "components.fileLibrary.note"),
879
+ field: "note",
880
+ width: 250,
881
+ },
882
+ {
883
+ title: "状态",
884
+ field: "status",
841
885
  width: 150,
842
886
  slots: {
843
- default: ({row, $rowIndex}) => {
887
+ default: ({ row, $rowIndex }) => {
844
888
  if (!row.dirs) {
845
- return row.status == 1 ? '已归档' : '未归档';
889
+ return row.status == 1 ? "已归档" : "未归档";
846
890
  }
847
- }
848
- }
891
+ },
892
+ },
849
893
  },
850
894
  {
851
- title: this.$t2('文件编码', 'components.fileLibrary.fileSn'),
895
+ title: this.$t2("文件编码", "components.fileLibrary.fileSn"),
852
896
  field: "fileSn",
853
- width: 150
897
+ width: 150,
854
898
  },
855
899
  ...customColumns,
856
- {title: this.$t2('创建人', 'components.fileLibrary.createBy'), field: "createBy", width: 150},
900
+ {
901
+ title: this.$t2("创建人", "components.fileLibrary.createBy"),
902
+ field: "createBy",
903
+ width: 150,
904
+ },
857
905
  {
858
906
  field: "createDate",
859
- title: this.$t2('创建时间', 'components.fileLibrary.createDate'),
907
+ title: this.$t2("创建时间", "components.fileLibrary.createDate"),
860
908
  width: 150,
861
909
  },
862
910
  {
@@ -865,12 +913,11 @@ modules = {
865
913
  title: "",
866
914
  sortable: false,
867
915
  slots: {
868
- default: "operate"
916
+ default: "operate",
869
917
  },
870
918
  },
871
919
  ],
872
- callback(a, b) {
873
- },
920
+ callback(a, b) {},
874
921
  };
875
922
  this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
876
923
  this.vxeOption = opts;
@@ -880,15 +927,21 @@ modules = {
880
927
  let customFileButtons = this.customFileButtons;
881
928
  let nodes = [];
882
929
  customFileButtons.forEach((fileButton, index) => {
883
- if (fileButton.dirs === null || fileButton.dirs === undefined || (attachment.dirs === fileButton.dirs)) {
930
+ if (
931
+ fileButton.dirs === null ||
932
+ fileButton.dirs === undefined ||
933
+ attachment.dirs === fileButton.dirs
934
+ ) {
884
935
  if (this.customFileButtonVisable(fileButton, attachment)) {
885
- nodes.push(this.getBtnVnode({
886
- class: fileButton.icon,
887
- title: fileButton.label,
888
- click: (event) => {
889
- that.customFileButtonEvent(fileButton, attachment);
890
- },
891
- }))
936
+ nodes.push(
937
+ this.getBtnVnode({
938
+ class: fileButton.icon,
939
+ title: fileButton.label,
940
+ click: (event) => {
941
+ that.customFileButtonEvent(fileButton, attachment);
942
+ },
943
+ })
944
+ );
892
945
  }
893
946
  }
894
947
  });
@@ -930,7 +983,7 @@ modules = {
930
983
  );
931
984
  }
932
985
  },
933
- changePageNew({type, currentPage, pageSize, $event}) {
986
+ changePageNew({ type, currentPage, pageSize, $event }) {
934
987
  this.checkList = [];
935
988
  this.checkAll = false;
936
989
  this.initAttchInfo({
@@ -980,7 +1033,7 @@ modules = {
980
1033
  if (page.pages > page.current) {
981
1034
  rows.push({
982
1035
  parent: param.parent,
983
- fileName: this.$t2('更多', 'components.fileLibrary.more'),
1036
+ fileName: this.$t2("更多", "components.fileLibrary.more"),
984
1037
  moreBtn: true,
985
1038
  leaf: true,
986
1039
  pages: page.pages,
@@ -1031,7 +1084,7 @@ modules = {
1031
1084
  if (page.pages > page.current) {
1032
1085
  rows.push({
1033
1086
  parent: param.parent,
1034
- fileName: this.$t2('更多', 'components.fileLibrary.more'),
1087
+ fileName: this.$t2("更多", "components.fileLibrary.more"),
1035
1088
  moreBtn: true,
1036
1089
  leaf: true,
1037
1090
  pages: page.pages,
@@ -1061,9 +1114,9 @@ modules = {
1061
1114
  node.childNodes[0].expand();
1062
1115
  if (this.option.treeExpandAll) {
1063
1116
  //默认全部展开树分类
1064
- node.childNodes[0].childNodes.forEach(item => {
1117
+ node.childNodes[0].childNodes.forEach((item) => {
1065
1118
  if (!item.data.leaf) item.expand();
1066
- })
1119
+ });
1067
1120
  }
1068
1121
  }, 200);
1069
1122
  this.$nextTick(() => {
@@ -1075,9 +1128,9 @@ modules = {
1075
1128
  this.$nextTick(() => {
1076
1129
  if (this.option.treeExpandAll) {
1077
1130
  //默认全部展开树分类
1078
- node.childNodes.forEach(item => {
1131
+ node.childNodes.forEach((item) => {
1079
1132
  if (!item.data.leaf) item.expand();
1080
- })
1133
+ });
1081
1134
  }
1082
1135
  callback && callback();
1083
1136
  });
@@ -1108,7 +1161,10 @@ modules = {
1108
1161
  let currentFileCategory = category || this.currentFileCategory;
1109
1162
  if (!currentFileCategory) {
1110
1163
  this.$message({
1111
- message: this.$t2('请选择文件夹', 'components.fileLibrary.editCategoryTip'),
1164
+ message: this.$t2(
1165
+ "请选择文件夹",
1166
+ "components.fileLibrary.editCategoryTip"
1167
+ ),
1112
1168
  type: "error",
1113
1169
  showClose: true,
1114
1170
  duration: 3000,
@@ -1121,7 +1177,12 @@ modules = {
1121
1177
  confirmEditCategoryDialog() {
1122
1178
  this.$refs.editCategoryForm.$baseValidate((valid) => {
1123
1179
  if (valid) {
1124
- this.$baseConfirm(this.$t2('您确定要保存吗?', 'components.fileLibrary.saveConfirmTip')).then(() => {
1180
+ this.$baseConfirm(
1181
+ this.$t2(
1182
+ "您确定要保存吗?",
1183
+ "components.fileLibrary.saveConfirmTip"
1184
+ )
1185
+ ).then(() => {
1125
1186
  var url =
1126
1187
  this.current_prefix +
1127
1188
  (this.editCategory.id ? "/file_obj/update" : "/file_obj/save");
@@ -1147,8 +1208,7 @@ modules = {
1147
1208
  message: res.content,
1148
1209
  type: "success",
1149
1210
  duration: 500,
1150
- onClose: (t) => {
1151
- },
1211
+ onClose: (t) => {},
1152
1212
  });
1153
1213
  let nodeData = res.objx;
1154
1214
  nodeData.leaf = !nodeData.hasChild;
@@ -1243,7 +1303,10 @@ modules = {
1243
1303
  let checkRows = this.getCheckRows();
1244
1304
  if (!checkRows.length) {
1245
1305
  this.$message({
1246
- message: this.$t2('请选择需要下载的文件', 'components.fileLibrary.downloadTip'),
1306
+ message: this.$t2(
1307
+ "请选择需要下载的文件",
1308
+ "components.fileLibrary.downloadTip"
1309
+ ),
1247
1310
  type: "error",
1248
1311
  showClose: true,
1249
1312
  duration: 3000,
@@ -1259,7 +1322,10 @@ modules = {
1259
1322
  let checkRows = this.getCheckRows();
1260
1323
  if (!checkRows.length) {
1261
1324
  this.$message({
1262
- message: this.$t2('请选择需要下载的文件', 'components.fileLibrary.downloadTip'),
1325
+ message: this.$t2(
1326
+ "请选择需要下载的文件",
1327
+ "components.fileLibrary.downloadTip"
1328
+ ),
1263
1329
  type: "error",
1264
1330
  showClose: true,
1265
1331
  duration: 3000,
@@ -1305,7 +1371,7 @@ modules = {
1305
1371
  let ids = rows.map((row) => row.id);
1306
1372
  let data = {
1307
1373
  ids: ids,
1308
- objectForeignId: this.objectForeignId
1374
+ objectForeignId: this.objectForeignId,
1309
1375
  };
1310
1376
  if (this.option.foreignDirs === true) {
1311
1377
  data.foreignDirs = true;
@@ -1453,12 +1519,21 @@ modules = {
1453
1519
  if (fileStoreArea) {
1454
1520
  this.fileStoreArea = fileStoreArea;
1455
1521
  this.title = fileStoreArea.storeAreaName;
1522
+ let tabType = this.option.tabType;
1523
+ if (tabType) {
1524
+ this.showType = tabType === "table" ? 2 : 1;
1525
+ }
1456
1526
  this.$nextTick(() => {
1457
- treeScollx({target: this, type: "default"});
1527
+ treeScollx({ target: this, type: "default" });
1458
1528
  this.treeFlag = true;
1459
1529
  });
1460
1530
  } else {
1461
- this.$baseAlert(this.$t2('文档工作区未维护', 'components.fileLibrary.fileStoreAreaTip'));
1531
+ this.$baseAlert(
1532
+ this.$t2(
1533
+ "文档工作区未维护",
1534
+ "components.fileLibrary.fileStoreAreaTip"
1535
+ )
1536
+ );
1462
1537
  }
1463
1538
  },
1464
1539
  });
@@ -1558,7 +1633,10 @@ modules = {
1558
1633
  let checkRows = this.getCheckRows();
1559
1634
  if (!checkRows.length) {
1560
1635
  this.$message({
1561
- message: this.$t2('请选择需要替换的文件', 'components.fileLibrary.replaceFileTip'),
1636
+ message: this.$t2(
1637
+ "请选择需要替换的文件",
1638
+ "components.fileLibrary.replaceFileTip"
1639
+ ),
1562
1640
  type: "error",
1563
1641
  showClose: true,
1564
1642
  duration: 3000,
@@ -1581,7 +1659,7 @@ modules = {
1581
1659
  },
1582
1660
  });
1583
1661
  },
1584
- checkBatchReplace({files, done}) {
1662
+ checkBatchReplace({ files, done }) {
1585
1663
  let newFileObjDTOs = files.map((file) => {
1586
1664
  return {
1587
1665
  name: file.name,
@@ -1779,35 +1857,37 @@ modules = {
1779
1857
  },
1780
1858
  customFileButtonEvent(customFileButton, attachment) {
1781
1859
  customFileButton.onclick({
1782
- row: attachment
1860
+ row: attachment,
1783
1861
  });
1784
1862
  },
1785
1863
  customToobarButtonEvent(customFileButton) {
1786
1864
  customFileButton.onclick({
1787
- rows: this.checkRows
1865
+ rows: this.checkRows,
1788
1866
  });
1789
1867
  },
1790
1868
  customFileButtonVisable(customFileButton, attachment) {
1791
1869
  if (customFileButton.visable === "function") {
1792
1870
  let checkBillDatas = this.checkBillDatas;
1793
- return customFileButton.visable({row: attachment, checkBillDatas});
1794
- } else if (customFileButton.visable === null || customFileButton.visable == undefined) {
1871
+ return customFileButton.visable({ row: attachment, checkBillDatas });
1872
+ } else if (
1873
+ customFileButton.visable === null ||
1874
+ customFileButton.visable == undefined
1875
+ ) {
1795
1876
  return true;
1796
1877
  } else {
1797
1878
  return customFileButton.visable;
1798
1879
  }
1799
1880
  },
1800
1881
  downloadSingerFile(attachment) {
1801
-
1802
1882
  let fileObjAuth = this.fileObjAuth;
1803
- if (attachment.dirs || !fileObjAuth.downloadAuth) return
1883
+ if (attachment.dirs || !fileObjAuth.downloadAuth) return;
1804
1884
  let url = attachment.domain + attachment.url;
1805
1885
  if (this.fileStoreArea.toDownWatermark && fileObjAuth.downWatermarkAuth) {
1806
1886
  let loginAccount = this.$store.getters.loginAccount;
1807
- url += '?_w=' + encodeURIComponent(encode(loginAccount))
1887
+ url += "?_w=" + encodeURIComponent(encode(loginAccount));
1808
1888
  }
1809
- this.$commonFileUtil.downloadFile(url, attachment.fileName)
1810
- }
1889
+ this.$commonFileUtil.downloadFile(url, attachment.fileName);
1890
+ },
1811
1891
  },
1812
1892
  };
1813
1893
  export default modules;
@@ -116,7 +116,7 @@
116
116
  /
117
117
  <span class="dataSize">0</span>
118
118
  </div>
119
- <el-button type="primary" plain class="button-sty" @click="dialogClose2">
119
+ <el-button type="primary" plain class="button-sty" @click="dialogClose2" v-if="!param.importOption.hideCancelButton">
120
120
  <i class="el-icon-close el-icon"></i>
121
121
  {{ $t2('取 消', 'system.button.cancel2') }}
122
122
  </el-button>
@@ -54,6 +54,9 @@
54
54
  <i class="el-icon-edit"></i>
55
55
  </a>
56
56
  </el-form-item>
57
+ <el-form-item label="隐藏取消按钮" label-width="150px">
58
+ <el-switch v-model="optionModel.hideCancelButton"></el-switch>
59
+ </el-form-item>
57
60
 
58
61
  <bdAttachSettingDialog v-if="showBdAttachSettingDialog" :visiable.sync="showBdAttachSettingDialog" :multi="false"
59
62
  @confirm="confirmBdAttachSettingDialog"></bdAttachSettingDialog>
@@ -41,6 +41,9 @@
41
41
  <i class="el-icon-edit"></i>
42
42
  </a>
43
43
  </el-form-item>
44
+ <el-form-item label="隐藏取消按钮" label-width="150px">
45
+ <el-switch v-model="optionModel.hideCancelButton"></el-switch>
46
+ </el-form-item>
44
47
 
45
48
  <bdAttachSettingDialog v-if="showBdAttachSettingDialog" :visiable.sync="showBdAttachSettingDialog" :multi="false"
46
49
  @confirm="confirmBdAttachSettingDialog"></bdAttachSettingDialog>
@@ -300,6 +300,7 @@ export const containers = [
300
300
  showRules: [],
301
301
  hideGridCheckBox: false,
302
302
  isNotQueryAllPage: false,
303
+ isNotShowQueryButton: false,
303
304
  },
304
305
  },
305
306
  /*{
@@ -3061,6 +3062,7 @@ export const advancedFields = [
3061
3062
  enabledImportPreHandle: false,
3062
3063
  tableRef: "",
3063
3064
  onSuccessImport: "",
3065
+ hideCancelButton:false,
3064
3066
 
3065
3067
  showRuleFlag: 1,
3066
3068
  showRuleEnabled: 1,
@@ -3107,6 +3109,7 @@ export const advancedFields = [
3107
3109
  onConfirmImportEnabled: false,
3108
3110
  onConfirmImport: "",
3109
3111
  onSuccessImport: "",
3112
+ hideCancelButton:false,
3110
3113
 
3111
3114
  showRuleFlag: 1,
3112
3115
  showRuleEnabled: 1,