cloud-web-corejs 1.0.151 → 1.0.153

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.153",
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>,