cloud-web-corejs 1.0.151 → 1.0.152

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.151",
4
+ "version": "1.0.152",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -15,17 +15,25 @@
15
15
  <div class="cont">
16
16
  <div id="containt" style="height: 550px">
17
17
  <div class="search-criteria fl" style="width: 220px; height: 100%">
18
- <div class="tit"><i class="iconfont icon-shaixuan"></i><b>搜索条件</b></div>
18
+ <div class="tit">
19
+ <i class="iconfont icon-shaixuan"></i><b>{{ $t1("搜索条件") }}</b>
20
+ </div>
19
21
 
20
22
  <el-form label-position="top">
21
23
  <div style="height: 468px; padding-top: 10px; overflow: auto">
24
+ <el-form-item :label="$t1('搜索类型')">
25
+ <el-radio-group v-model="fileType">
26
+ <el-radio :label="2">{{ $t1("文件夹") }}</el-radio>
27
+ <el-radio :label="1">{{ $t1("文件") }}</el-radio>
28
+ </el-radio-group>
29
+ </el-form-item>
22
30
  <el-form-item label="文件名">
23
31
  <el-input v-model="formData.fileName" size="small" clearable />
24
32
  </el-form-item>
25
33
  <!-- <el-form-item label="所属对象描述">
26
34
  <base-input-batch v-model="formData.note"/>
27
35
  </el-form-item>-->
28
- <el-form-item label="创建时间">
36
+ <el-form-item :label="$t1('创建时间')">
29
37
  <el-date-picker
30
38
  v-model="formData.startTime"
31
39
  type="date"
@@ -46,7 +54,7 @@
46
54
  :picker-options="$baseEndPickerOptions(formData.startTime)"
47
55
  ></el-date-picker>
48
56
  </el-form-item>
49
- <el-form-item label="文件类型">
57
+ <!-- <el-form-item :label="$t1('文件类型')">
50
58
  <el-select v-model="fileTypeSn" @change="getAttributeList">
51
59
  <el-option
52
60
  v-for="(item, index) in fileTypes"
@@ -55,7 +63,7 @@
55
63
  :value="item.fileTypeSn"
56
64
  ></el-option>
57
65
  </el-select>
58
- </el-form-item>
66
+ </el-form-item> -->
59
67
  <el-form-item
60
68
  v-for="(item, index) in fileAttributes"
61
69
  :key="index"
@@ -71,14 +79,14 @@
71
79
  @click="resetEvent"
72
80
  type="primary"
73
81
  plain
74
- >重置
82
+ >{{ $t1("重置") }}
75
83
  </el-button>
76
84
  <el-button
77
85
  type="warning"
78
86
  icon="el-icon-search"
79
87
  class="button-sty"
80
88
  @click="searchEvent"
81
- >搜索
89
+ >{{ $t1("搜索") }}
82
90
  </el-button>
83
91
  </el-form-item>
84
92
  </el-form>
@@ -103,7 +111,9 @@
103
111
  <el-breadcrumb separator-class="el-icon-arrow-right ">
104
112
  <el-breadcrumb-item
105
113
  ><i class="iconfont icon-dingwei-mianxing"></i
106
- ><span class="f-blue" @click="checkTreeNode()">搜索范围</span>
114
+ ><span class="f-blue" @click="checkTreeNode()">{{
115
+ $t1("搜索范围")
116
+ }}</span>
107
117
  </el-breadcrumb-item>
108
118
  <el-breadcrumb-item
109
119
  v-for="(treeNode, index) in treeNodeArr"
@@ -115,18 +125,11 @@
115
125
  </el-breadcrumb-item>
116
126
  </el-breadcrumb>
117
127
  </div>
118
- <div class="fr">
119
- <!-- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text"
120
- status="primary"
121
- plain>重置
122
- </vxe-button>
123
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
124
- </vxe-button>-->
125
- </div>
128
+ <div class="fr"></div>
126
129
  </div>
127
130
  </template>
128
131
  <template #fileName="{ row }">
129
- <div>
132
+ <div v-if="!row.dirs">
130
133
  <el-tooltip
131
134
  :enterable="false"
132
135
  effect="dark"
@@ -141,6 +144,13 @@
141
144
  row.fileName
142
145
  }}</a>
143
146
  </div>
147
+ <div v-else>
148
+ <a class="a-link img">
149
+ <div class="img">
150
+ <svg-icon icon-class="ico-wenjianjia" />{{ row.fileName }}
151
+ </div>
152
+ </a>
153
+ </div>
144
154
  </template>
145
155
  </vxe-grid>
146
156
  </div>
@@ -157,7 +167,7 @@ import { treeScollx, treeScolly } from "@base/utils/global.js";
157
167
  import { encode } from "js-base64";
158
168
 
159
169
  export default {
160
- name: "productDialog",
170
+ name: "fileLibraryFilterDialog",
161
171
  props: ["visiable", "multi", "rows", "treeNodeArr", "currentFileCategory"],
162
172
  mixins: [selectDialogMixins],
163
173
  inject: ["current_prefix", "storeAreaCode", "getObjectForeignId", "getIsPrivate"],
@@ -186,6 +196,7 @@ export default {
186
196
  fileAttributes: [],
187
197
  fileTypeSn: null,
188
198
  fileAttachAttributeCDTos: [],
199
+ fileType: 1,
189
200
  };
190
201
  },
191
202
  methods: {
@@ -196,7 +207,15 @@ export default {
196
207
  vue: that,
197
208
  tableRef: "table-m1",
198
209
  tableName: "fileLigraryFilterDialog-m1",
199
- path: this.current_prefix + "/file_obj/listAuthAttachPage",
210
+ path: () => {
211
+ let url = null;
212
+ if (this.fileType === 1) {
213
+ url = this.current_prefix + "/file_obj/listAuthAttachPage";
214
+ } else if (this.fileType === 2) {
215
+ url = this.current_prefix + "/file_obj/listAuthObjPage";
216
+ }
217
+ return url;
218
+ },
200
219
  param: () => {
201
220
  /* let parents = this.currentFileCategory &&
202
221
  this.currentFileCategory.id &&
@@ -252,6 +271,11 @@ export default {
252
271
  },
253
272
  },
254
273
  },
274
+ {
275
+ title: this.$t1("文件路径"),
276
+ field: "treePathName",
277
+ width: 250,
278
+ },
255
279
  {
256
280
  title: this.$t2("版本号", "components.fileLibrary.fileRev"),
257
281
  field: "rev",
@@ -275,13 +299,13 @@ export default {
275
299
  width: 250,
276
300
  },
277
301
  {
278
- title: "状态",
302
+ title: this.$t1("状态"),
279
303
  field: "status",
280
304
  width: 150,
281
305
  slots: {
282
306
  default: ({ row, $rowIndex }) => {
283
307
  if (!row.dirs) {
284
- return row.status == 1 ? "已归档" : "未归档";
308
+ return row.status == 1 ? this.$t1("已归档") : this.$t1("未归档");
285
309
  }
286
310
  },
287
311
  },
@@ -325,7 +349,7 @@ export default {
325
349
  placement="top"
326
350
  popper-class="tooltip-skin"
327
351
  >
328
- <i class="el-icon-view" />
352
+ <i class="el-icon-folder-opened" />
329
353
  </el-tooltip>
330
354
  </a>
331
355
  </div>,
@@ -1,23 +1,49 @@
1
1
  <template>
2
- <div v-show="title!='' && title!=null" style="overflow: hidden;">
2
+ <div v-show="title != '' && title != null" style="overflow: hidden">
3
3
  <div class="tree-box tree-annex fl">
4
- <div class="tit"><b>{{ title }}</b></div>
5
- <div class="tree-form">
6
- <el-input :placeholder="$t2('请输入文件夹名称','components.fileLibrary.categoryPlaceholder')"
7
- v-model="filterText" class="txt">
4
+ <div class="tit">
5
+ <b>{{ title }}</b>
6
+ </div>
7
+ <div class="tree-form" v-if="option.showCategoryFilterArea !== false">
8
+ <el-input
9
+ :placeholder="
10
+ $t2('请输入文件夹名称', 'components.fileLibrary.categoryPlaceholder')
11
+ "
12
+ v-model="filterText"
13
+ class="txt"
14
+ >
8
15
  <el-button slot="append" icon="el-icon-search"></el-button>
9
16
  </el-input>
10
17
  </div>
11
18
  <div class="tree-btns" v-if="isCategoryEdit">
12
- <el-button type="primary" plain icon="el-icon-circle-plus-outline" class="btn" @click="addFileCategory()"
13
- v-if="fileObjAuth.addAuth">{{ $t2('新增', 'components.fileLibrary.addCategory') }}
19
+ <el-button
20
+ type="primary"
21
+ plain
22
+ icon="el-icon-circle-plus-outline"
23
+ class="btn"
24
+ @click="addFileCategory()"
25
+ v-if="fileObjAuth.addAuth"
26
+ >{{ $t2("新增", "components.fileLibrary.addCategory") }}
14
27
  </el-button>
15
- <el-button type="primary" plain icon="el-icon-edit-outline" class="btn" @click="editFileCategory()"
16
- :disabled="currentFileCategory==null || !currentFileCategory.id" v-if="fileObjAuth.editAuth">
17
- {{ $t2('编辑', 'components.fileLibrary.editCategory') }}
28
+ <el-button
29
+ type="primary"
30
+ plain
31
+ icon="el-icon-edit-outline"
32
+ class="btn"
33
+ @click="editFileCategory()"
34
+ :disabled="currentFileCategory == null || !currentFileCategory.id"
35
+ v-if="fileObjAuth.editAuth"
36
+ >
37
+ {{ $t2("编辑", "components.fileLibrary.editCategory") }}
18
38
  </el-button>
19
- <el-button type="primary" plain class="btn" icon="el-icon-edit" @click="showFileObjAuthDialog=true"
20
- v-if="isEdit && fileObjAuth.authAuth">{{ $t2('权限', 'components.fileLibrary.authAuth') }}
39
+ <el-button
40
+ type="primary"
41
+ plain
42
+ class="btn"
43
+ icon="el-icon-edit"
44
+ @click="showFileObjAuthDialog = true"
45
+ v-if="isEdit && fileObjAuth.authAuth"
46
+ >{{ $t2("权限", "components.fileLibrary.authAuth") }}
21
47
  </el-button>
22
48
  </div>
23
49
  <el-tree
@@ -32,6 +58,9 @@
32
58
  @node-click="handleNodeClick"
33
59
  class="tree-list"
34
60
  icon-class="el-icon-arrow-down"
61
+ :style="
62
+ option.showCategoryFilterArea === false ? 'height: calc(100vh - 113px)' : ''
63
+ "
35
64
  >
36
65
  <span class="el-tree-node__label" slot-scope="{ node }" v-if="!node.data.moreBtn">
37
66
  <i class="ico-wenjian"></i>
@@ -48,91 +77,184 @@
48
77
  <i class="el-icon-more"></i>
49
78
  </div>
50
79
  </label>
51
- <div class="main-right file-library fr" style="overflow: hidden;">
80
+ <div class="main-right file-library fr" style="overflow: hidden">
52
81
  <div class="pop-annex-filter" v-if="popAnnexFilter">
53
- <div class="item" v-for="(checkBillData,index) in checkBillDatas" :key="index"><span>{{
54
- getBillLabel(checkBillData)
55
- }}</span><i
56
- class="el-icon-close" @click="deleteBillData(index)"></i></div>
82
+ <div class="item" v-for="(checkBillData, index) in checkBillDatas" :key="index">
83
+ <span>{{ getBillLabel(checkBillData) }}</span
84
+ ><i class="el-icon-close" @click="deleteBillData(index)"></i>
85
+ </div>
57
86
  </div>
58
87
  <div class="annex-filter" v-if="isBillEnabled">
59
- <el-button slot="append" icon="el-icon-search" @click="openBillDialog" size="mini" class="an-btn-search"
60
- type="success">
61
- {{ $t2('选择' + billConfig.name, 'components.fileLibrary.selectBill', {billName: billConfig.name}) }}
88
+ <el-button
89
+ slot="append"
90
+ icon="el-icon-search"
91
+ @click="openBillDialog"
92
+ size="mini"
93
+ class="an-btn-search"
94
+ type="success"
95
+ >
96
+ {{
97
+ $t2("选择" + billConfig.name, "components.fileLibrary.selectBill", {
98
+ billName: billConfig.name,
99
+ })
100
+ }}
62
101
  </el-button>
63
102
  <div class="abox">
64
- <div class="item" v-for="(checkBillData,index) in checkBillDatas" :key="index"><span>{{
65
- getBillLabel(checkBillData)
66
- }}</span><i
67
- class="el-icon-close" @click="deleteBillData(index)"></i></div>
103
+ <div class="item" v-for="(checkBillData, index) in checkBillDatas" :key="index">
104
+ <span>{{ getBillLabel(checkBillData) }}</span
105
+ ><i class="el-icon-close" @click="deleteBillData(index)"></i>
106
+ </div>
68
107
  </div>
69
108
 
70
- <el-button slot="append" icon="iconfont icon-gengduo1" size="mini" class="an-btn-more" type="primary"
71
- @click="popAnnexFilter = false" v-if="popAnnexFilter">
109
+ <el-button
110
+ slot="append"
111
+ icon="iconfont icon-gengduo1"
112
+ size="mini"
113
+ class="an-btn-more"
114
+ type="primary"
115
+ @click="popAnnexFilter = false"
116
+ v-if="popAnnexFilter"
117
+ >
72
118
  </el-button>
73
- <el-button slot="append" icon="iconfont icon-gengduo1" size="mini" class="an-btn-more"
74
- @click="popAnnexFilter = true" v-else>
119
+ <el-button
120
+ slot="append"
121
+ icon="iconfont icon-gengduo1"
122
+ size="mini"
123
+ class="an-btn-more"
124
+ @click="popAnnexFilter = true"
125
+ v-else
126
+ >
75
127
  </el-button>
76
- <el-button slot="append" icon="el-icon-delete" size="mini" class="an-btn-del" @click="clearBill">
77
- {{ $t2('取消选择', 'components.fileLibrary.cancelSelect') }}
128
+ <el-button
129
+ slot="append"
130
+ icon="el-icon-delete"
131
+ size="mini"
132
+ class="an-btn-del"
133
+ @click="clearBill"
134
+ >
135
+ {{ $t2("取消选择", "components.fileLibrary.cancelSelect") }}
78
136
  </el-button>
79
137
  </div>
80
138
 
81
- <div class="annex-screen"
82
- v-if="fileObjAuth.uploadAuth || fileObjAuth.downloadAuth || fileObjAuth.deleteAuth || fileObjAuth.moveAuth || fileObjAuth.copyAuth || fileObjAuth.replaceAuth || fileObjAuth.deleteDirAuth">
83
- <el-button type="warning" class="button-sty" icon="el-icon-plus" @click="addFile"
84
- v-if="isEdit && fileObjAuth.uploadAuth">{{ $t2('上传', 'components.fileLibrary.upload') }}
139
+ <div class="annex-screen">
140
+ <el-button
141
+ type="warning"
142
+ class="button-sty"
143
+ icon="el-icon-plus"
144
+ @click="addFile"
145
+ v-if="isEdit && fileObjAuth.uploadAuth"
146
+ >{{ $t2("上传", "components.fileLibrary.upload") }}
85
147
  </el-button>
86
- <el-button type="primary" class="button-sty" icon="el-icon-download" @click.native="mulDownload2"
87
- v-if="fileObjAuth.downloadAuth">{{ $t2('下载', 'components.fileLibrary.download') }}
148
+ <el-button
149
+ type="primary"
150
+ class="button-sty"
151
+ icon="el-icon-download"
152
+ @click.native="mulDownload2"
153
+ v-if="fileObjAuth.downloadAuth"
154
+ >{{ $t2("下载", "components.fileLibrary.download") }}
88
155
  </el-button>
89
- <el-button type="danger" class="button-sty" icon="el-icon-takeaway-box"
90
- @click="showRecycleBinDialog=true"
91
- v-if="isEdit && (fileObjAuth.deleteAuth || fileObjAuth.deleteDirAuth)">
92
- {{ $t2('回收站', 'components.fileLibrary.recycleBin') }}
156
+ <el-button
157
+ type="danger"
158
+ class="button-sty"
159
+ icon="el-icon-takeaway-box"
160
+ @click="showRecycleBinDialog = true"
161
+ v-if="isEdit && (fileObjAuth.deleteAuth || fileObjAuth.deleteDirAuth)"
162
+ >
163
+ {{ $t2("回收站", "components.fileLibrary.recycleBin") }}
93
164
  </el-button>
94
- <el-button type="primary" plain class="button-sty" icon="el-icon-rank"
95
- @click.native="openCategoryMoveDialog(1)" v-if="isEdit && fileObjAuth.moveAuth">
96
- {{ $t2('移动到', 'components.fileLibrary.moveTo') }}
165
+ <el-button
166
+ type="primary"
167
+ plain
168
+ class="button-sty"
169
+ icon="el-icon-rank"
170
+ @click.native="openCategoryMoveDialog(1)"
171
+ v-if="isEdit && fileObjAuth.moveAuth"
172
+ >
173
+ {{ $t2("移动到", "components.fileLibrary.moveTo") }}
97
174
  </el-button>
98
- <el-button type="primary" plain class="button-sty" icon="el-icon-copy-document"
99
- @click.native="openCategoryMoveDialog(2)" v-if="isEdit && fileObjAuth.copyAuth">
100
- {{ $t2('复制到', 'components.fileLibrary.copyTo') }}
175
+ <el-button
176
+ type="primary"
177
+ plain
178
+ class="button-sty"
179
+ icon="el-icon-copy-document"
180
+ @click.native="openCategoryMoveDialog(2)"
181
+ v-if="isEdit && fileObjAuth.copyAuth"
182
+ >
183
+ {{ $t2("复制到", "components.fileLibrary.copyTo") }}
101
184
  </el-button>
102
- <el-button type="primary" plain class="button-sty" icon="el-icon-refresh"
103
- @click.native="batchReplace" v-if="isEdit && fileObjAuth.replaceAuth">
104
- {{ $t2('替换', 'components.fileLibrary.replace') }}
185
+ <el-button
186
+ type="primary"
187
+ plain
188
+ class="button-sty"
189
+ icon="el-icon-refresh"
190
+ @click.native="batchReplace"
191
+ v-if="isEdit && fileObjAuth.replaceAuth"
192
+ >
193
+ {{ $t2("替换", "components.fileLibrary.replace") }}
105
194
  </el-button>
106
- <el-button type="primary" plain class="button-sty" icon="el-icon-delete"
107
- @click.native="deleteAttach()"
108
- v-if="isEdit && (fileObjAuth.deleteAuth || fileObjAuth.deleteDirAuth)">
109
- {{ $t2('删除', 'components.fileLibrary.delete') }}
195
+ <el-button
196
+ type="primary"
197
+ plain
198
+ class="button-sty"
199
+ icon="el-icon-delete"
200
+ @click.native="deleteAttach()"
201
+ v-if="isEdit && (fileObjAuth.deleteAuth || fileObjAuth.deleteDirAuth)"
202
+ >
203
+ {{ $t2("删除", "components.fileLibrary.delete") }}
110
204
  </el-button>
111
- <el-button icon="iconfont icon-shaixuan" class="button-sty" @click="showFilterDialog = true">
112
- {{ $t1('高级筛选') }}
205
+ <el-button
206
+ icon="iconfont icon-shaixuan"
207
+ class="button-sty"
208
+ @click="showFilterDialog = true"
209
+ >
210
+ {{ $t1("搜索") }}
113
211
  </el-button>
114
212
 
115
- <template v-for="(fileButton,customToobarButtonIndex) in customToobarButtons">
213
+ <template v-for="(fileButton, customToobarButtonIndex) in customToobarButtons">
116
214
  <template
117
- v-if="fileButton.dirs===null || fileButton.dirs===undefined || (attachment.dirs === fileButton.dirs)">
118
- <template v-if="customFileButtonVisable(fileButton,attachment)">
119
- <el-button type="primary" plain class="button-sty" :icon="fileButton.icon" :key="customToobarButtonIndex"
120
- @click="customToobarButtonEvent(fileButton)">{{ fileButton.label }}
215
+ v-if="
216
+ fileButton.dirs === null ||
217
+ fileButton.dirs === undefined ||
218
+ attachment.dirs === fileButton.dirs
219
+ "
220
+ >
221
+ <template v-if="customFileButtonVisable(fileButton, attachment)">
222
+ <el-button
223
+ type="primary"
224
+ plain
225
+ class="button-sty"
226
+ :icon="fileButton.icon"
227
+ :key="customToobarButtonIndex"
228
+ @click="customToobarButtonEvent(fileButton)"
229
+ >{{ fileButton.label }}
121
230
  </el-button>
122
231
  </template>
123
232
  </template>
124
233
  </template>
125
-
126
234
  </div>
127
- <div class="line"
128
- v-if="fileObjAuth.uploadAuth || fileObjAuth.downloadAuth || fileObjAuth.deleteAuth || fileObjAuth.moveAuth || fileObjAuth.copyAuth || fileObjAuth.replaceAuth || fileObjAuth.deleteDirAuth"></div>
235
+ <div
236
+ class="line"
237
+ v-if="
238
+ fileObjAuth.uploadAuth ||
239
+ fileObjAuth.downloadAuth ||
240
+ fileObjAuth.deleteAuth ||
241
+ fileObjAuth.moveAuth ||
242
+ fileObjAuth.copyAuth ||
243
+ fileObjAuth.replaceAuth ||
244
+ fileObjAuth.deleteDirAuth
245
+ "
246
+ ></div>
129
247
  <div class="annex-crumbs">
130
248
  <span class="tit"><i class="iconfont icon-wenjianjia"></i>文件区</span>
131
- <span class="tit" style="padding-right: 0;">{{ $t2('指定路径', 'components.fileLibrary.assignPath') }}:</span>
249
+ <span class="tit" style="padding-right: 0"
250
+ >{{ $t2("指定路径", "components.fileLibrary.assignPath") }}:</span
251
+ >
132
252
  <el-breadcrumb separator-class="el-icon-arrow-right">
133
- <el-breadcrumb-item v-for="treeNode in treeNodeArr" :key="treeNode.id" @click.native="doNav(treeNode)">{{
134
- treeNode.label
135
- }}
253
+ <el-breadcrumb-item
254
+ v-for="treeNode in treeNodeArr"
255
+ :key="treeNode.id"
256
+ @click.native="doNav(treeNode)"
257
+ >{{ treeNode.label }}
136
258
  </el-breadcrumb-item>
137
259
  </el-breadcrumb>
138
260
  </div>
@@ -140,56 +262,102 @@
140
262
  <div class="annex-searchBox">
141
263
  <div class="fl">
142
264
  <div class="oper">
143
- <el-checkbox v-model="checkAll" @change="changeCheckAll" :disabled="checkAllDisabled"
144
- :indeterminate="checkAllIndeterminate">已选中 {{
145
- checkList.length
146
- }} 项{{ $t2('', 'components.fileLibrary.aa') }}
265
+ <el-checkbox
266
+ v-model="checkAll"
267
+ @change="changeCheckAll"
268
+ :disabled="checkAllDisabled"
269
+ :indeterminate="checkAllIndeterminate"
270
+ >已选中 {{ checkList.length }} 项{{
271
+ $t2("", "components.fileLibrary.aa")
272
+ }}
147
273
  </el-checkbox>
148
274
  </div>
149
275
  <div class="search-box">
150
276
  <template v-if="currentFileCategory && currentFileCategory.id">
151
- <el-input :placeholder="$t2('请输入文件名','components.fileLibrary.filePlaceholder')"
152
- v-model="formData.fileName" clearable>
153
- <el-button slot="append" icon="el-icon-search" @click="searchEvent"></el-button>
277
+ <el-input
278
+ :placeholder="
279
+ $t2('请输入文件名', 'components.fileLibrary.filePlaceholder')
280
+ "
281
+ v-model="formData.fileName"
282
+ clearable
283
+ >
284
+ <el-button
285
+ slot="append"
286
+ icon="el-icon-search"
287
+ @click="searchEvent"
288
+ ></el-button>
154
289
  </el-input>
155
- <el-button icon="iconfont icon-shaixuan" class="button-sty" @click="showAdvancedSearch = true">
156
- {{ $t2('筛选', 'components.fileLibrary.screen') }}
290
+ <el-button
291
+ icon="iconfont icon-shaixuan"
292
+ class="button-sty"
293
+ @click="showAdvancedSearch = true"
294
+ >
295
+ {{ $t2("筛选", "components.fileLibrary.screen") }}
157
296
  </el-button>
158
297
  </template>
159
298
  </div>
160
-
161
299
  </div>
162
300
  <div class="fr">
163
- <el-button type="primary" icon="iconfont icon-icmenu2" @click="changeShowType()" class="button-sty icon-btn"
164
- v-show="showType==1">{{ $t2('列表', 'components.fileLibrary.tableList') }}
301
+ <el-button
302
+ type="primary"
303
+ icon="iconfont icon-icmenu2"
304
+ @click="changeShowType()"
305
+ class="button-sty icon-btn"
306
+ v-show="showType == 1"
307
+ >{{ $t2("列表", "components.fileLibrary.tableList") }}
165
308
  </el-button>
166
- <el-button type="primary" style="margin-left:0;" icon="el-icon-menu" @click="changeShowType()"
167
- class="button-sty icon-btn"
168
- v-show="showType==2">{{ $t2('图示', 'components.fileLibrary.imageList') }}
309
+ <el-button
310
+ type="primary"
311
+ style="margin-left: 0"
312
+ icon="el-icon-menu"
313
+ @click="changeShowType()"
314
+ class="button-sty icon-btn"
315
+ v-show="showType == 2"
316
+ >{{ $t2("图示", "components.fileLibrary.imageList") }}
169
317
  </el-button>
170
318
  </div>
171
319
  </div>
172
- <div class="mask" v-show="is_show_mask">
173
- </div>
174
- <div class="containter1" ref="containter1" v-show="showType==1" style="overflow: auto;">
175
-
320
+ <div class="mask" v-show="is_show_mask"></div>
321
+ <div
322
+ class="containter1"
323
+ ref="containter1"
324
+ v-show="showType == 1"
325
+ style="overflow: auto"
326
+ >
176
327
  <div class="annex-piclist">
177
328
  <div class="clearfix">
178
- <el-checkbox-group v-model="checkList" @change="checkChange" class="f-group">
179
- <template v-for="(attachment,index) in page.records">
180
- <li :key="index" class="item" :class="checkList.includes(attachment.id) ? 'on':''">
181
-
329
+ <el-checkbox-group
330
+ v-model="checkList"
331
+ @change="checkChange"
332
+ class="f-group"
333
+ >
334
+ <template v-for="(attachment, index) in page.records">
335
+ <li
336
+ :key="index"
337
+ class="item"
338
+ :class="checkList.includes(attachment.id) ? 'on' : ''"
339
+ >
182
340
  <el-checkbox :label="attachment.id"><span></span></el-checkbox>
183
341
  <div class="oper">
184
- <el-tooltip effect="dark" content="详情" placement="top"
185
- v-if="!attachment.dirs && isEdit && fileObjAuth.editAuth"><i
186
- class="el-tooltip iconfont icon-shuxing ico"
187
- @click="openPropertiesDialog(attachment)"></i>
342
+ <el-tooltip
343
+ effect="dark"
344
+ content="详情"
345
+ placement="top"
346
+ v-if="!attachment.dirs && isEdit && fileObjAuth.editAuth"
347
+ ><i
348
+ class="el-tooltip iconfont icon-shuxing ico"
349
+ @click="openPropertiesDialog(attachment)"
350
+ ></i>
188
351
  </el-tooltip>
189
- <el-tooltip effect="dark" content="详情" placement="top"
190
- v-if="attachment.dirs && isEdit && fileObjAuth.editAuth"><i
191
- class="el-tooltip iconfont icon-shuxing ico"
192
- @click="editFileCategory(attachment)"></i>
352
+ <el-tooltip
353
+ effect="dark"
354
+ content="详情"
355
+ placement="top"
356
+ v-if="attachment.dirs && isEdit && fileObjAuth.editAuth"
357
+ ><i
358
+ class="el-tooltip iconfont icon-shuxing ico"
359
+ @click="editFileCategory(attachment)"
360
+ ></i>
193
361
  </el-tooltip>
194
362
  <a
195
363
  href="javascript:void(0);"
@@ -197,45 +365,81 @@
197
365
  v-if="!attachment.dirs && fileObjAuth.downloadAuth"
198
366
  @click="downloadSingerFile(attachment)"
199
367
  >
200
- <el-tooltip effect="dark" content="下载" placement="top"
201
- popper-class="tooltip-skin">
202
- <i class="el-icon-download"/>
368
+ <el-tooltip
369
+ effect="dark"
370
+ content="下载"
371
+ placement="top"
372
+ popper-class="tooltip-skin"
373
+ >
374
+ <i class="el-icon-download" />
203
375
  </el-tooltip>
204
376
  </a>
205
377
  <el-dropdown trigger="click" v-if="isEdit">
206
- <span class="ico"><i class="el-icon-more"></i>
207
- </span>
378
+ <span class="ico"><i class="el-icon-more"></i> </span>
208
379
  <el-dropdown-menu slot="dropdown">
209
- <el-dropdown-item @click.native="openShareDialog(attachment)"
210
- v-if="!attachment.dirs && fileObjAuth.shareAuth"><i
211
- class="el-icon-share"></i>分享
380
+ <el-dropdown-item
381
+ @click.native="openShareDialog(attachment)"
382
+ v-if="!attachment.dirs && fileObjAuth.shareAuth"
383
+ ><i class="el-icon-share"></i>分享
212
384
  </el-dropdown-item>
213
- <el-dropdown-item @click.native="replaceFile(attachment,index,page.records)"
214
- v-if="!attachment.dirs && isEdit && attachment.status!=1 && fileObjAuth.replaceAuth">
215
- <i
216
- class="el-icon-refresh"></i>替换
385
+ <el-dropdown-item
386
+ @click.native="replaceFile(attachment, index, page.records)"
387
+ v-if="
388
+ !attachment.dirs &&
389
+ isEdit &&
390
+ attachment.status != 1 &&
391
+ fileObjAuth.replaceAuth
392
+ "
393
+ >
394
+ <i class="el-icon-refresh"></i>替换
217
395
  </el-dropdown-item>
218
- <el-dropdown-item @click.native="openFileHistoryDialog(attachment)"
219
- v-if="!attachment.dirs && isEdit && attachment.status!=1 && fileObjAuth.historyAuth">
220
- <i
221
- class="el-icon-s-order"></i>历史
396
+ <el-dropdown-item
397
+ @click.native="openFileHistoryDialog(attachment)"
398
+ v-if="
399
+ !attachment.dirs &&
400
+ isEdit &&
401
+ attachment.status != 1 &&
402
+ fileObjAuth.historyAuth
403
+ "
404
+ >
405
+ <i class="el-icon-s-order"></i>历史
222
406
  </el-dropdown-item>
223
- <el-dropdown-item @click.native="deleteAttach(attachment)"
224
- v-if="!attachment.dirs && isEdit && attachment.status!=1 && fileObjAuth.deleteAuth">
225
- <i
226
- class="el-icon-delete"></i>删除
407
+ <el-dropdown-item
408
+ @click.native="deleteAttach(attachment)"
409
+ v-if="
410
+ !attachment.dirs &&
411
+ isEdit &&
412
+ attachment.status != 1 &&
413
+ fileObjAuth.deleteAuth
414
+ "
415
+ >
416
+ <i class="el-icon-delete"></i>删除
227
417
  </el-dropdown-item>
228
- <el-dropdown-item @click.native="deleteCategory(attachment)"
229
- v-if="attachment.dirs && isEdit && fileObjAuth.deleteDirAuth">
230
- <i
231
- class="el-icon-delete"></i>删除
418
+ <el-dropdown-item
419
+ @click.native="deleteCategory(attachment)"
420
+ v-if="attachment.dirs && isEdit && fileObjAuth.deleteDirAuth"
421
+ >
422
+ <i class="el-icon-delete"></i>删除
232
423
  </el-dropdown-item>
233
- <template v-for="(fileButton,fileButtonIndex) in customFileButtons">
424
+ <template
425
+ v-for="(fileButton, fileButtonIndex) in customFileButtons"
426
+ >
234
427
  <template
235
- v-if="fileButton.dirs===null || fileButton.dirs===undefined || (attachment.dirs === fileButton.dirs)">
236
- <template v-if="customFileButtonVisable(fileButton,attachment)">
237
- <el-dropdown-item @click.native="customFileButtonEvent(fileButton,attachment)"
238
- :key="fileButtonIndex">
428
+ v-if="
429
+ fileButton.dirs === null ||
430
+ fileButton.dirs === undefined ||
431
+ attachment.dirs === fileButton.dirs
432
+ "
433
+ >
434
+ <template
435
+ v-if="customFileButtonVisable(fileButton, attachment)"
436
+ >
437
+ <el-dropdown-item
438
+ @click.native="
439
+ customFileButtonEvent(fileButton, attachment)
440
+ "
441
+ :key="fileButtonIndex"
442
+ >
239
443
  <i :class="fileButton.icon"></i>{{ fileButton.label }}
240
444
  </el-dropdown-item>
241
445
  </template>
@@ -245,34 +449,55 @@
245
449
  </el-dropdown>
246
450
  </div>
247
451
  <div class="custom-slot">
248
- <slot name="custom" v-bind="{row:attachment}"></slot>
452
+ <slot name="custom" v-bind="{ row: attachment }"></slot>
249
453
  </div>
250
454
  <!-- <div class="status s-1" v-if="!attachment.dirs && attachment.status==1">
251
455
  <el-tooltip effect="dark" content="已归档" placement="top" popper-class="tooltip-skin"><i
252
456
  class="iconfont icon-file"></i>
253
457
  </el-tooltip>
254
458
  </div> -->
255
- <div class="status s-1" v-if="!attachment.dirs && attachment.status==1"></div>
256
- <div class="img" @click="openPreview(attachment)" v-if="!attachment.dirs">
257
- <div class="show-video" v-if="hasPreview(attachment)"><i class="icon-chakan"></i></div>
258
- <div class="show-video" v-if="false"><i class="el-icon-video-play"></i></div>
259
- <p><img :src="getShowUrl(attachment)"/></p>
459
+ <div
460
+ class="status s-1"
461
+ v-if="!attachment.dirs && attachment.status == 1"
462
+ ></div>
463
+ <div
464
+ class="img"
465
+ @click="openPreview(attachment)"
466
+ v-if="!attachment.dirs"
467
+ >
468
+ <div class="show-video" v-if="hasPreview(attachment)">
469
+ <i class="icon-chakan"></i>
470
+ </div>
471
+ <div class="show-video" v-if="false">
472
+ <i class="el-icon-video-play"></i>
473
+ </div>
474
+ <p><img :src="getShowUrl(attachment)" /></p>
260
475
  </div>
261
- <div class="img" @click="changeCategory(attachment)" v-if="attachment.dirs">
262
- <svg-icon icon-class="ico-wenjianjia"/>
476
+ <div
477
+ class="img"
478
+ @click="changeCategory(attachment)"
479
+ v-if="attachment.dirs"
480
+ >
481
+ <svg-icon icon-class="ico-wenjianjia" />
263
482
  </div>
264
- <el-tooltip :enterable="false" effect="dark" :content="attachment.fileName" placement="top">
483
+ <el-tooltip
484
+ :enterable="false"
485
+ effect="dark"
486
+ :content="attachment.fileName"
487
+ placement="top"
488
+ >
265
489
  <div class="txt-box">
266
490
  <div class="tb-left"></div>
267
491
  <div class="tb-mid">
268
492
  <div class="txt">
269
- <span class="name">{{ getFileName(attachment) }}</span><span
270
- v-if="attachment.extension">.{{ attachment.extension }}</span>
493
+ <span class="name">{{ getFileName(attachment) }}</span
494
+ ><span v-if="attachment.extension"
495
+ >.{{ attachment.extension }}</span
496
+ >
271
497
  </div>
272
498
  </div>
273
499
  <div class="format">... .{{ attachment.extension }}</div>
274
500
  </div>
275
-
276
501
  </el-tooltip>
277
502
  </li>
278
503
  </template>
@@ -309,10 +534,16 @@
309
534
  </div>
310
535
  </div>
311
536
  <div class="annex-grid-height">
312
- <vxe-grid v-show="showType==2" ref="table-m1" v-bind="vxeOption" :data="page.records"
313
- @resizable-change="$vxeTableUtil.onColumnWitchChange" @custom="$vxeTableUtil.customHandle"
314
- @checkbox-change="tableCheckChange"
315
- @checkbox-all="tableCheckAll">
537
+ <vxe-grid
538
+ v-show="showType == 2"
539
+ ref="table-m1"
540
+ v-bind="vxeOption"
541
+ :data="page.records"
542
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
543
+ @custom="$vxeTableUtil.customHandle"
544
+ @checkbox-change="tableCheckChange"
545
+ @checkbox-all="tableCheckAll"
546
+ >
316
547
  <!-- <template #bottom v-if="page.total>page.records.length">
317
548
  <div class="vxe-annex-more" @click="changePage(page.current+1, pageSize)">
318
549
  <span>更多</span>
@@ -329,16 +560,16 @@
329
560
  @page-change="changePageNew"
330
561
  >
331
562
  <template #right>
332
- <span>
333
- <span>{{ $t2('当前记录', 'components.table.pageInfo') }}</span>
334
- <span class="f-red"> {{ page.records.length }} </span>
335
- <span>/</span>
336
- <span class="f-red"> {{ page.total }}</span>
337
- </span>
563
+ <span>
564
+ <span>{{ $t2("当前记录", "components.table.pageInfo") }}</span>
565
+ <span class="f-red"> {{ page.records.length }} </span>
566
+ <span>/</span>
567
+ <span class="f-red"> {{ page.total }}</span>
568
+ </span>
338
569
  </template>
339
570
  </vxe-pager>
340
571
  </template>
341
- <template #operate="{row,rowIndex,items}">
572
+ <template #operate="{ row, rowIndex, items }">
342
573
  <template v-if="!row.dirs">
343
574
  <a
344
575
  href="javascript:void(0);"
@@ -346,10 +577,14 @@
346
577
  v-if="isEdit && fileObjAuth.editAuth == 1"
347
578
  @click="openPropertiesDialog(row)"
348
579
  >
349
- <el-tooltip :enterable="false" effect="dark" :content="$t2('详情','components.fileLibrary.detail')"
350
- placement="top"
351
- popper-class="tooltip-skin">
352
- <i class="iconfont icon-shuxing"/>
580
+ <el-tooltip
581
+ :enterable="false"
582
+ effect="dark"
583
+ :content="$t2('详情', 'components.fileLibrary.detail')"
584
+ placement="top"
585
+ popper-class="tooltip-skin"
586
+ >
587
+ <i class="iconfont icon-shuxing" />
353
588
  </el-tooltip>
354
589
  </a>
355
590
  <a
@@ -358,10 +593,14 @@
358
593
  v-if="fileObjAuth.downloadAuth == 1"
359
594
  @click="downloadSingerFile(row)"
360
595
  >
361
- <el-tooltip :enterable="false" effect="dark" :content="$t2('下载','components.fileLibrary.download')"
362
- placement="top"
363
- popper-class="tooltip-skin">
364
- <i class="el-icon-download"/>
596
+ <el-tooltip
597
+ :enterable="false"
598
+ effect="dark"
599
+ :content="$t2('下载', 'components.fileLibrary.download')"
600
+ placement="top"
601
+ popper-class="tooltip-skin"
602
+ >
603
+ <i class="el-icon-download" />
365
604
  </el-tooltip>
366
605
  </a>
367
606
  <a
@@ -370,10 +609,14 @@
370
609
  v-if="fileObjAuth.shareAuth == 1"
371
610
  @click="openShareDialog(row)"
372
611
  >
373
- <el-tooltip :enterable="false" effect="dark" :content="$t2('分享','components.fileLibrary.share')"
374
- placement="top"
375
- popper-class="tooltip-skin">
376
- <i class="el-icon-share"/>
612
+ <el-tooltip
613
+ :enterable="false"
614
+ effect="dark"
615
+ :content="$t2('分享', 'components.fileLibrary.share')"
616
+ placement="top"
617
+ popper-class="tooltip-skin"
618
+ >
619
+ <i class="el-icon-share" />
377
620
  </el-tooltip>
378
621
  </a>
379
622
  <a
@@ -382,10 +625,14 @@
382
625
  v-if="isEdit && row.status != 1 && fileObjAuth.replaceAuth == 1"
383
626
  @click="replaceFile(row, rowIndex, items)"
384
627
  >
385
- <el-tooltip :enterable="false" effect="dark" :content="$t2('替换','components.fileLibrary.replace')"
386
- placement="top"
387
- popper-class="tooltip-skin">
388
- <i class="el-icon-refresh"/>
628
+ <el-tooltip
629
+ :enterable="false"
630
+ effect="dark"
631
+ :content="$t2('替换', 'components.fileLibrary.replace')"
632
+ placement="top"
633
+ popper-class="tooltip-skin"
634
+ >
635
+ <i class="el-icon-refresh" />
389
636
  </el-tooltip>
390
637
  </a>
391
638
  <a
@@ -394,10 +641,14 @@
394
641
  v-if="isEdit && row.status != 1 && fileObjAuth.historyAuth == 1"
395
642
  @click="openFileHistoryDialog(row)"
396
643
  >
397
- <el-tooltip :enterable="false" effect="dark" :content="$t2('历史','components.fileLibrary.history')"
398
- placement="top"
399
- popper-class="tooltip-skin">
400
- <i class="el-icon-s-order"/>
644
+ <el-tooltip
645
+ :enterable="false"
646
+ effect="dark"
647
+ :content="$t2('历史', 'components.fileLibrary.history')"
648
+ placement="top"
649
+ popper-class="tooltip-skin"
650
+ >
651
+ <i class="el-icon-s-order" />
401
652
  </el-tooltip>
402
653
  </a>
403
654
  <a
@@ -406,10 +657,14 @@
406
657
  v-if="isEdit && row.status != 1 && fileObjAuth.deleteAuth == 1"
407
658
  @click="deleteAttach(row)"
408
659
  >
409
- <el-tooltip :enterable="false" effect="dark" :content="$t2('删除','components.fileLibrary.delete')"
410
- placement="top"
411
- popper-class="tooltip-skin">
412
- <i class="el-icon-delete"/>
660
+ <el-tooltip
661
+ :enterable="false"
662
+ effect="dark"
663
+ :content="$t2('删除', 'components.fileLibrary.delete')"
664
+ placement="top"
665
+ popper-class="tooltip-skin"
666
+ >
667
+ <i class="el-icon-delete" />
413
668
  </el-tooltip>
414
669
  </a>
415
670
  </template>
@@ -420,10 +675,14 @@
420
675
  v-if="isEdit && isCategoryEdit && fileObjAuth.editAuth == 1"
421
676
  @click="editFileCategory(row)"
422
677
  >
423
- <el-tooltip :enterable="false" effect="dark" :content="$t2('详情','components.fileLibrary.detail')"
424
- placement="top"
425
- popper-class="tooltip-skin">
426
- <i class="iconfont icon-shuxing"/>
678
+ <el-tooltip
679
+ :enterable="false"
680
+ effect="dark"
681
+ :content="$t2('详情', 'components.fileLibrary.detail')"
682
+ placement="top"
683
+ popper-class="tooltip-skin"
684
+ >
685
+ <i class="iconfont icon-shuxing" />
427
686
  </el-tooltip>
428
687
  </a>
429
688
  <a
@@ -432,16 +691,25 @@
432
691
  v-if="isEdit && isCategoryEdit && fileObjAuth.deleteDirAuth == 1"
433
692
  @click="deleteAttach(row)"
434
693
  >
435
- <el-tooltip :enterable="false" effect="dark" :content="$t2('删除','components.fileLibrary.delete')"
436
- placement="top"
437
- popper-class="tooltip-skin">
438
- <i class="el-icon-delete"/>
694
+ <el-tooltip
695
+ :enterable="false"
696
+ effect="dark"
697
+ :content="$t2('删除', 'components.fileLibrary.delete')"
698
+ placement="top"
699
+ popper-class="tooltip-skin"
700
+ >
701
+ <i class="el-icon-delete" />
439
702
  </el-tooltip>
440
703
  </a>
441
704
  </template>
442
- <template v-for="(fileButton,index) in customFileButtons">
705
+ <template v-for="(fileButton, index) in customFileButtons">
443
706
  <template
444
- v-if="fileButton.dirs === null || fileButton.dirs === undefined || (row.dirs === fileButton.dirs)">
707
+ v-if="
708
+ fileButton.dirs === null ||
709
+ fileButton.dirs === undefined ||
710
+ row.dirs === fileButton.dirs
711
+ "
712
+ >
445
713
  <a
446
714
  :key="index"
447
715
  href="javascript:void(0);"
@@ -449,21 +717,28 @@
449
717
  v-if="customFileButtonVisable(fileButton, row)"
450
718
  @click="customFileButtonEvent(fileButton, row)"
451
719
  >
452
- <el-tooltip :enterable="false" effect="dark" :content="fileButton.label" placement="top"
453
- popper-class="tooltip-skin">
454
- <i :class="fileButton.icon"/>
720
+ <el-tooltip
721
+ :enterable="false"
722
+ effect="dark"
723
+ :content="fileButton.label"
724
+ placement="top"
725
+ popper-class="tooltip-skin"
726
+ >
727
+ <i :class="fileButton.icon" />
455
728
  </el-tooltip>
456
729
  </a>
457
730
  </template>
458
731
  </template>
459
-
460
732
  </template>
461
733
  </vxe-grid>
462
734
  </div>
463
-
464
735
  </div>
465
736
  <el-dialog
466
- :title="editCategory.id?$t2('编辑文件夹','components.fileLibrary.editCategoryTitle'):$t2('新增文件夹','components.fileLibrary.addCategoryTitle')"
737
+ :title="
738
+ editCategory.id
739
+ ? $t2('编辑文件夹', 'components.fileLibrary.editCategoryTitle')
740
+ : $t2('新增文件夹', 'components.fileLibrary.addCategoryTitle')
741
+ "
467
742
  :append-to-body="true"
468
743
  :modal-append-to-body="true"
469
744
  :close-on-click-modal="false"
@@ -476,55 +751,109 @@
476
751
  v-el-dialog-center
477
752
  >
478
753
  <div class="cont">
479
- <el-form ref="editCategoryForm" :model="editCategory" label-width="102px" class="adSearchForm">
480
- <el-form-item :label="$t2('文件夹路径','components.fileLibrary.fileCategoryPath')">
754
+ <el-form
755
+ ref="editCategoryForm"
756
+ :model="editCategory"
757
+ label-width="102px"
758
+ class="adSearchForm"
759
+ >
760
+ <el-form-item
761
+ :label="$t2('文件夹路径', 'components.fileLibrary.fileCategoryPath')"
762
+ >
481
763
  <el-breadcrumb separator-class="el-icon-arrow-right">
482
- <el-breadcrumb-item v-for="(treeNode,index) in treeNodeArr" :key="index">{{
483
- treeNode.label
484
- }}
764
+ <el-breadcrumb-item v-for="(treeNode, index) in treeNodeArr" :key="index"
765
+ >{{ treeNode.label }}
485
766
  </el-breadcrumb-item>
486
767
  </el-breadcrumb>
487
768
  </el-form-item>
488
- <el-form-item :label="$t2('文件夹编码','components.fileLibrary.fileCategorySn')">
769
+ <el-form-item
770
+ :label="$t2('文件夹编码', 'components.fileLibrary.fileCategorySn')"
771
+ >
489
772
  <span>{{ editCategory.fileSn }}</span>
490
773
  </el-form-item>
491
- <el-form-item :label="$t2('文件夹名称','components.fileLibrary.fileCategoryName')">
492
- <el-input v-model="editCategory.fileName" clearable class="all-width"/>
774
+ <el-form-item
775
+ :label="$t2('文件夹名称', 'components.fileLibrary.fileCategoryName')"
776
+ >
777
+ <el-input v-model="editCategory.fileName" clearable class="all-width" />
493
778
  </el-form-item>
494
779
  </el-form>
495
780
  </div>
496
781
  <span slot="footer" class="dialog-footer">
497
- <el-button type="primary" plain class="button-sty" @click="showEditCategoryDialog=false">
498
- <i class="el-icon-close el-icon"></i>
499
- {{ $t2('取 消', 'system.button.cancel2') }}
500
- </el-button>
501
- <el-button type="primary" @click="confirmEditCategoryDialog" class="button-sty">
502
- <i class="el-icon-check el-icon"></i>
503
- {{ $t2('确 定', 'system.button.confirm2') }}
504
- </el-button>
505
- </span>
782
+ <el-button
783
+ type="primary"
784
+ plain
785
+ class="button-sty"
786
+ @click="showEditCategoryDialog = false"
787
+ >
788
+ <i class="el-icon-close el-icon"></i>
789
+ {{ $t2("取 消", "system.button.cancel2") }}
790
+ </el-button>
791
+ <el-button type="primary" @click="confirmEditCategoryDialog" class="button-sty">
792
+ <i class="el-icon-check el-icon"></i>
793
+ {{ $t2("确 定", "system.button.confirm2") }}
794
+ </el-button>
795
+ </span>
506
796
  </el-dialog>
507
797
  </div>
508
- <propertiesDialog v-if="showPropertiesDialog" :visiable.sync="showPropertiesDialog"
509
- :editAttachment.sync="editAttachment" :isEdit="isEdit"
510
- :treeNodeArr.sync="treeNodeArr" :option="option"></propertiesDialog>
511
- <el-image-viewer v-if="showViewer" :on-close="() => {showViewer = false;}" :initial-index.sync="chooseIndex"
512
- :url-list="imageDTOs"/>
513
- <categoryMoveDialog :checkRows.sync="checkRows" v-if="showCategoryMoveDialog"
514
- :visiable.sync="showCategoryMoveDialog" @confirm="confirmMoveDialog"
515
- :handleType.sync="handleType"></categoryMoveDialog>
516
- <fileHistoryDialog v-if="showFileHistoryDialog" :visiable.sync="showFileHistoryDialog"
517
- :currentFile.sync="operateFileHistory" @confirm="confirmFileHistoryDialog" :multi="false"/>
798
+ <propertiesDialog
799
+ v-if="showPropertiesDialog"
800
+ :visiable.sync="showPropertiesDialog"
801
+ :editAttachment.sync="editAttachment"
802
+ :isEdit="isEdit"
803
+ :treeNodeArr.sync="treeNodeArr"
804
+ :option="option"
805
+ ></propertiesDialog>
806
+ <el-image-viewer
807
+ v-if="showViewer"
808
+ :on-close="
809
+ () => {
810
+ showViewer = false;
811
+ }
812
+ "
813
+ :initial-index.sync="chooseIndex"
814
+ :url-list="imageDTOs"
815
+ />
816
+ <categoryMoveDialog
817
+ :checkRows.sync="checkRows"
818
+ v-if="showCategoryMoveDialog"
819
+ :visiable.sync="showCategoryMoveDialog"
820
+ @confirm="confirmMoveDialog"
821
+ :handleType.sync="handleType"
822
+ ></categoryMoveDialog>
823
+ <fileHistoryDialog
824
+ v-if="showFileHistoryDialog"
825
+ :visiable.sync="showFileHistoryDialog"
826
+ :currentFile.sync="operateFileHistory"
827
+ @confirm="confirmFileHistoryDialog"
828
+ :multi="false"
829
+ />
518
830
 
519
- <shareDialog v-if="showShareDialog" :visiable.sync="showShareDialog"
520
- :attachment.sync="shareAttachment"></shareDialog>
521
- <recycleBinDialog v-if="showRecycleBinDialog" :visiable.sync="showRecycleBinDialog"
522
- :option.sync="option" :treeNodeArr="treeNodeArr" :currentFileCategory="currentFileCategory"
523
- @confirm="confirmRecycleBinDialog"></recycleBinDialog>
524
- <advancedSearchDialog v-if="showAdvancedSearch" :visiable.sync="showAdvancedSearch"
525
- :formData.sync="advancedFormData" @confirm="searchEvent">
831
+ <shareDialog
832
+ v-if="showShareDialog"
833
+ :visiable.sync="showShareDialog"
834
+ :attachment.sync="shareAttachment"
835
+ ></shareDialog>
836
+ <recycleBinDialog
837
+ v-if="showRecycleBinDialog"
838
+ :visiable.sync="showRecycleBinDialog"
839
+ :option.sync="option"
840
+ :treeNodeArr="treeNodeArr"
841
+ :currentFileCategory="currentFileCategory"
842
+ @confirm="confirmRecycleBinDialog"
843
+ ></recycleBinDialog>
844
+ <advancedSearchDialog
845
+ v-if="showAdvancedSearch"
846
+ :visiable.sync="showAdvancedSearch"
847
+ :formData.sync="advancedFormData"
848
+ @confirm="searchEvent"
849
+ >
526
850
  <template #form>
527
- <vxe-form :model="advancedFormData" title-width="102px" :inline="true" class="adSearchForm">
851
+ <vxe-form
852
+ :model="advancedFormData"
853
+ title-width="102px"
854
+ :inline="true"
855
+ class="adSearchForm"
856
+ >
528
857
  <!-- <vxe-form-item title="属性名称:">
529
858
  <template v-slot>
530
859
  <el-input v-model="advancedFormData.attributeName" clearable/>
@@ -545,7 +874,7 @@
545
874
  </vxe-form-item>-->
546
875
  <vxe-form-item title="所属对象描述:" class-name="block">
547
876
  <template v-slot>
548
- <el-input v-model="advancedFormData.note" clearable/>
877
+ <el-input v-model="advancedFormData.note" clearable />
549
878
  </template>
550
879
  </vxe-form-item>
551
880
  <vxe-form-item title="创建时间:">
@@ -581,22 +910,35 @@
581
910
  v-bind="billDialogParam"
582
911
  @confirm="confirmBillDialog"
583
912
  ></component>
584
- <videoDialog v-if="showVideoDialog" :visiable.sync="showVideoDialog" :option="videoOption"></videoDialog>
585
- <fileObjAuthDialog v-if="showFileObjAuthDialog" :visiable.sync="showFileObjAuthDialog"
586
- :fileObjId="currentFileCategory ? currentFileCategory.id:0" :treeNodeArr="treeNodeArr"/>
913
+ <videoDialog
914
+ v-if="showVideoDialog"
915
+ :visiable.sync="showVideoDialog"
916
+ :option="videoOption"
917
+ ></videoDialog>
918
+ <fileObjAuthDialog
919
+ v-if="showFileObjAuthDialog"
920
+ :visiable.sync="showFileObjAuthDialog"
921
+ :fileObjId="currentFileCategory ? currentFileCategory.id : 0"
922
+ :treeNodeArr="treeNodeArr"
923
+ />
587
924
 
588
- <filterDialog v-if="showFilterDialog" :visiable.sync="showFilterDialog" queryType="pcp" :treeNodeArr="treeNodeArr"
589
- :currentFileCategory="currentFileCategory" @openFileDirs="openFileDirs"></filterDialog>
925
+ <filterDialog
926
+ v-if="showFilterDialog"
927
+ :visiable.sync="showFilterDialog"
928
+ queryType="pcp"
929
+ :treeNodeArr="treeNodeArr"
930
+ :currentFileCategory="currentFileCategory"
931
+ @openFileDirs="openFileDirs"
932
+ ></filterDialog>
590
933
  </div>
591
934
  </template>
592
935
 
593
936
  <script>
594
-
595
- import mixins from './mixins/indexMixins';
937
+ import mixins from "./mixins/indexMixins";
596
938
  export default {
597
- name: 'ledgerLibrary',
598
- mixins: [mixins]
599
- }
939
+ name: "ledgerLibrary",
940
+ mixins: [mixins],
941
+ };
600
942
  </script>
601
943
  <style lang="scss" scoped>
602
944
  #labBtn {
@@ -619,7 +961,6 @@ export default {
619
961
  display: inline-block;
620
962
  }
621
963
 
622
-
623
964
  .vxe-grid .vxe-gird-block {
624
965
  height: calc(100vh - 161px);
625
966
  }
@@ -681,6 +1022,6 @@ export default {
681
1022
  }
682
1023
 
683
1024
  #labBtn {
684
- height: calc(100vh - 34px)
1025
+ height: calc(100vh - 34px);
685
1026
  }
686
1027
  </style>
@@ -271,6 +271,9 @@ modules = {
271
271
  methods: {
272
272
  openFileDirs(row) {
273
273
  let keys = row.treePath.split(",").filter((item) => !!item);
274
+ if(row.dirs){
275
+ keys.push(row.id + "")
276
+ }
274
277
  let size = keys.length;
275
278
  let tree = this.$refs.tree;
276
279