cloud-web-corejs-haier 1.0.4 → 1.0.6

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.
Files changed (144) hide show
  1. package/package.json +7 -4
  2. package/src/App.vue +30 -34
  3. package/src/api/user.js +8 -0
  4. package/src/components/Tinymce/index.vue +112 -71
  5. package/src/components/VabUpload/image-viewer.vue +2 -2
  6. package/src/components/VabUpload/index.js +1 -1
  7. package/src/components/VabUpload/mixins.js +1 -1
  8. package/src/components/VabUpload/privateProfileDialogMixins.js +1 -1063
  9. package/src/components/VabUpload/view.vue +6 -2
  10. package/src/components/base-textarea/index.vue +104 -0
  11. package/src/components/baseAlert/mixins.js +1 -1
  12. package/src/components/baseAttachment/mixins.js +2 -1
  13. package/src/components/baseInputExport/index.vue +19 -12
  14. package/src/components/baseInputExport/mixins.js +1 -1
  15. package/src/components/baseTabs/mixins.js +1 -1
  16. package/src/components/code-editor/index.vue +102 -63
  17. package/src/components/confirmDialog/index.vue +24 -17
  18. package/src/components/confirmDialog/mixins.js +1 -1
  19. package/src/components/errorMsg/index.vue +42 -34
  20. package/src/components/errorMsg/mixins.js +1 -1
  21. package/src/components/excelExport/index.js +1 -2
  22. package/src/components/excelExport/mixins.js +1 -1
  23. package/src/components/fileLibrary/fileObjAuthDialog.vue +179 -89
  24. package/src/components/fileLibrary/filterDialog.vue +45 -21
  25. package/src/components/fileLibrary/index.vue +579 -238
  26. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +4 -1
  27. package/src/components/fileLibrary/mixins/indexMixins.js +3 -0
  28. package/src/components/scriptDescription/button.vue +12 -4
  29. package/src/components/scriptTest/mixins.js +1 -1
  30. package/src/components/table/index.js +1 -1
  31. package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js +11028 -0
  32. package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css +200 -0
  33. package/src/components/tempStorage/index.vue +1 -1
  34. package/src/components/vb-tabs/x-tabs.vue +0 -1
  35. package/src/components/wf/content.vue +32 -36
  36. package/src/components/wf/mixins/setCandidateDialog2.js +1 -1
  37. package/src/components/wf/mixins/wfFlowEleScriptDialog.js +131 -3
  38. package/src/components/wf/setCandidateDialog2.vue +76 -66
  39. package/src/components/wf/wf.js +2176 -1
  40. package/src/components/wf/wfFlowEleScriptDialog.vue +5 -1
  41. package/src/components/wf/wfStartDialog.vue +6 -10
  42. package/src/components/wf/wfUtil.js +279 -1
  43. package/src/components/xform/form-designer/designer.js +1 -1
  44. package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +16 -1
  45. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
  46. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +17 -4
  47. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
  48. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +247 -187
  49. package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +2 -0
  50. package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +6 -2
  51. package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +10 -0
  52. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +65 -4
  53. package/src/components/xform/form-designer/setting-panel/form-setting.vue +132 -118
  54. package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +1 -1
  55. package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +137 -0
  56. package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +124 -50
  57. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
  58. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +5 -1
  59. package/src/components/xform/form-render/index.vue +8 -0
  60. package/src/components/xform/form-render/indexMixin copy.js +3462 -0
  61. package/src/components/xform/form-render/indexMixin.js +3496 -1
  62. package/src/components/xform/mixins/defaultHandle.js +1 -1
  63. package/src/components/xform/utils/format.js +14 -4
  64. package/src/components/xform/utils/formula-util.js +0 -4
  65. package/src/components/xform/utils/util.js +1 -1
  66. package/src/index.js +215 -190
  67. package/src/lang/index.js +56 -51
  68. package/src/lang/locale/en/login.js +20 -0
  69. package/src/lang/locale/zh/login.js +20 -0
  70. package/src/layout/components/Sidebar/default.vue +1423 -1266
  71. package/src/layout/components/TagsView/index.vue +37 -11
  72. package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
  73. package/src/layout/components/extractedCode/viewDialog.vue +1 -0
  74. package/src/layout/defaultLayout.vue +1 -1
  75. package/src/layout/index.vue +3 -5
  76. package/src/mixins/table/index.js +151 -0
  77. package/src/permission.js +1 -18
  78. package/src/router/modules/customer.js +3 -8
  79. package/src/store/getters.js +24 -23
  80. package/src/store/modules/user.js +1 -30
  81. package/src/utils/index.js +1 -6
  82. package/src/utils/vab.js +1 -1
  83. package/src/views/bd/setting/config_manage/list.vue +36 -19
  84. package/src/views/bd/setting/form_script/edit.vue +9 -0
  85. package/src/views/bd/setting/form_script/edit1.vue +29 -3
  86. package/src/views/bd/setting/form_script/form_list.vue +99 -37
  87. package/src/views/bd/setting/form_script/list1.vue +181 -118
  88. package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
  89. package/src/views/bd/setting/form_script/mixins/edit.js +199 -1
  90. package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
  91. package/src/views/bd/setting/form_script/mixins/list.js +236 -1
  92. package/src/views/bd/setting/form_script/mixins/list1.js +410 -1
  93. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
  94. package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
  95. package/src/views/bd/setting/form_template/edit.vue +13 -0
  96. package/src/views/bd/setting/form_template/list.vue +326 -214
  97. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +279 -1
  98. package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
  99. package/src/views/bd/setting/form_template/mixins/list.js +667 -3
  100. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
  101. package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
  102. package/src/views/bd/setting/logic_param/mixins/edit.js +1 -91
  103. package/src/views/bd/setting/logic_param/mixins/list.js +2 -362
  104. package/src/views/bd/setting/menu_kind/list.vue +172 -87
  105. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -7
  106. package/src/views/bd/setting/table_model/edit.vue +345 -304
  107. package/src/views/bd/setting/table_model/list.vue +190 -128
  108. package/src/views/bd/setting/table_model/mixins/edit.js +1191 -1
  109. package/src/views/bd/setting/table_model/mixins/list.js +428 -2
  110. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
  111. package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
  112. package/src/views/user/access_log/list.vue +418 -349
  113. package/src/views/user/area/dialog.vue +223 -116
  114. package/src/views/user/area/list.vue +318 -0
  115. package/src/views/user/common_attribute/list.vue +4 -1
  116. package/src/views/user/extend_datasource/dialog.vue +3 -0
  117. package/src/views/user/extend_datasource/edit.vue +2 -1
  118. package/src/views/user/extend_datasource/list.vue +3 -0
  119. package/src/views/user/form/vform/designer.vue +2 -1
  120. package/src/views/user/home/bears/index.vue +1032 -0
  121. package/src/views/user/home/default.vue +6 -5
  122. package/src/views/user/home/taili/index.vue +1034 -0
  123. package/src/views/user/ledger_library/list.vue +10 -12
  124. package/src/views/user/login/default.vue +165 -36
  125. package/src/views/user/login/index.vue +4 -6
  126. package/src/views/user/login/indexMixin.js +184 -8
  127. package/src/views/user/menu/list.vue +24 -1
  128. package/src/views/user/notify_message/dialog.vue +2 -6
  129. package/src/views/user/outLink/index.vue +57 -18
  130. package/src/views/user/role/authConfig.vue +89 -0
  131. package/src/views/user/role/dialog.vue +70 -48
  132. package/src/views/user/role/edit.vue +114 -4
  133. package/src/views/user/user/form_dialog.vue +158 -0
  134. package/src/views/user/user/list.vue +652 -582
  135. package/src/views/user/user/modifyPasswordDialog.vue +64 -53
  136. package/src/views/user/wf/wfReport/index.vue +137 -28
  137. package/src/views/user/wf/wf_obj_config/itemEdit.vue +15 -116
  138. package/src/views/user/wf/wf_obj_config/itemOperateDialog.vue +414 -0
  139. package/src/views/user/wf/wf_obj_config/list.vue +84 -78
  140. package/src/views/user/wf/wf_transfer_setting/edit.vue +52 -0
  141. package/src/views/user/wf/wf_transfer_setting/list.vue +10 -0
  142. package/src/components/xform/form-render/container-item/data-table-mixin2.js +0 -2169
  143. package/src/views/bd/setting/table_model/mixins/edit copy.js +0 -903
  144. package/src/views/user/login/index2.vue +0 -131
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div>
3
3
  <el-dialog
4
- title="设置权限"
4
+ :title="$t1('设置权限')"
5
5
  :append-to-body="true"
6
6
  :modal-append-to-body="true"
7
7
  :close-on-click-modal="false"
@@ -29,168 +29,260 @@
29
29
  <template #form>
30
30
  <div class="clearfix screen-btns">
31
31
  <div class="fl">
32
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus"
33
- @click="openSaleOrgAddDialog">
34
- 新增机构
32
+ <vxe-button
33
+ status="primary"
34
+ class="button-sty"
35
+ icon="el-icon-plus"
36
+ @click="openSaleOrgAddDialog"
37
+ >
38
+ {{ $t1("新增机构") }}
35
39
  </vxe-button>
36
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus"
37
- @click="openPositionAddDialog">
38
- 新增岗位
40
+ <vxe-button
41
+ status="primary"
42
+ class="button-sty"
43
+ icon="el-icon-plus"
44
+ @click="openPositionAddDialog"
45
+ >
46
+ {{ $t1("新增岗位") }}
39
47
  </vxe-button>
40
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openUserAddDialog">
41
- 新增用户
48
+ <vxe-button
49
+ status="primary"
50
+ class="button-sty"
51
+ icon="el-icon-plus"
52
+ @click="openUserAddDialog"
53
+ >
54
+ {{ $t1("新增用户") }}
42
55
  </vxe-button>
43
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openRoleAddDialog">
44
- 新增角色
56
+ <vxe-button
57
+ status="primary"
58
+ class="button-sty"
59
+ icon="el-icon-plus"
60
+ @click="openRoleAddDialog"
61
+ >
62
+ {{ $t1("新增角色") }}
45
63
  </vxe-button>
46
64
  <!-- <vxe-button type="text" status="primary" plain class="button-sty" icon="el-icon-delete"
47
65
  @click="deleteRows()">{{ $t2('删除', 'components.fileLibrary.delete') }}
48
66
  </vxe-button>-->
49
67
  </div>
50
- <div class="fl screen-breadcrumb" style="margin-left: 30px;">
51
- <span style="font-size: 12px;">{{ $t2('文件路径', 'components.fileLibrary.filePath') }}:</span>
68
+ <div class="fl screen-breadcrumb" style="margin-left: 30px">
69
+ <span style="font-size: 12px"
70
+ >{{
71
+ $t2("文件路径", "components.fileLibrary.filePath")
72
+ }}:</span
73
+ >
52
74
  <el-breadcrumb separator-class="el-icon-arrow-right">
53
- <el-breadcrumb-item v-for="(treeNode,index) in treeNodeArr" :key="index">{{
54
- treeNode.label
55
- }}
75
+ <el-breadcrumb-item
76
+ v-for="(treeNode, index) in treeNodeArr"
77
+ :key="index"
78
+ >{{ treeNode.label }}
56
79
  </el-breadcrumb-item>
57
80
  </el-breadcrumb>
58
81
  </div>
59
82
  </div>
60
83
  </template>
61
- <template #saleOrg="{row,rowIndex}">
84
+ <template #saleOrg="{ row, rowIndex }">
62
85
  <el-input
63
86
  class="search-input"
64
87
  v-model="row.saleOrgName"
65
88
  clearable
66
- @clear="
67
- row.saleOrgId = null;
68
- "
89
+ @clear="row.saleOrgId = null"
69
90
  v-if="!row._isParent"
70
91
  v-el-readonly
71
92
  >
72
- <i slot="suffix" class="el-input__icon el-icon-search"
73
- @click="openSaleOrgRowDialog(row,rowIndex)"></i>
93
+ <i
94
+ slot="suffix"
95
+ class="el-input__icon el-icon-search"
96
+ @click="openSaleOrgRowDialog(row, rowIndex)"
97
+ ></i>
74
98
  </el-input>
75
99
  <template v-else>{{ row.saleOrgName }}</template>
76
100
  </template>
77
- <template #position="{row,rowIndex}">
101
+ <template #position="{ row, rowIndex }">
78
102
  <el-input
79
103
  class="search-input"
80
104
  v-model="row.positionName"
81
105
  clearable
82
- @clear="
83
- row.positionId = null;
84
- "
106
+ @clear="row.positionId = null"
85
107
  v-if="!row._isParent"
86
108
  v-el-readonly
87
109
  >
88
- <i slot="suffix" class="el-input__icon el-icon-search"
89
- @click="openPositionRowDialog(row,rowIndex)"></i>
110
+ <i
111
+ slot="suffix"
112
+ class="el-input__icon el-icon-search"
113
+ @click="openPositionRowDialog(row, rowIndex)"
114
+ ></i>
90
115
  </el-input>
91
116
  <template v-else>{{ row.positionName }}</template>
92
117
  </template>
93
- <template #role="{row,rowIndex}">
118
+ <template #role="{ row, rowIndex }">
94
119
  <el-input
95
120
  class="search-input"
96
121
  v-model="row.roleName"
97
122
  clearable
98
- @clear="
99
- row.roleId = null;
100
- "
123
+ @clear="row.roleId = null"
101
124
  v-if="!row._isParent"
102
125
  v-el-readonly
103
126
  >
104
- <i slot="suffix" class="el-input__icon el-icon-search"
105
- @click="openRoleRowDialog(row,rowIndex)"></i>
127
+ <i
128
+ slot="suffix"
129
+ class="el-input__icon el-icon-search"
130
+ @click="openRoleRowDialog(row, rowIndex)"
131
+ ></i>
106
132
  </el-input>
107
133
  <template v-else>{{ row.roleName }}</template>
108
134
  </template>
109
- <template #user="{row,rowIndex}">
135
+ <template #user="{ row, rowIndex }">
110
136
  <el-input
111
137
  class="search-input"
112
138
  v-model="row.nickName"
113
139
  clearable
114
- @clear="
115
- row.userId = null;
116
- "
140
+ @clear="row.userId = null"
117
141
  v-if="!row._isParent"
118
142
  v-el-readonly
119
143
  >
120
- <i slot="suffix" class="el-input__icon el-icon-search"
121
- @click="openUserRowDialog(row,rowIndex)"></i>
144
+ <i
145
+ slot="suffix"
146
+ class="el-input__icon el-icon-search"
147
+ @click="openUserRowDialog(row, rowIndex)"
148
+ ></i>
122
149
  </el-input>
123
150
  <template v-else>{{ row.nickName }}</template>
124
151
  </template>
125
- <template #operate="{row}">
152
+ <template #operate="{ row }">
126
153
  <a
127
154
  href="javascript:void(0);"
128
155
  class="a-link"
129
156
  @click="openEditDialog(row.id)"
130
157
  >
131
- <el-tooltip :enterable="false" effect="dark" :content="$t2('查看','common.view')" placement="top"
132
- popper-class="tooltip-skin">
133
- <i class="el-icon-edit"/>
158
+ <el-tooltip
159
+ :enterable="false"
160
+ effect="dark"
161
+ :content="$t2('查看', 'common.view')"
162
+ placement="top"
163
+ popper-class="tooltip-skin"
164
+ >
165
+ <i class="el-icon-edit" />
134
166
  </el-tooltip>
135
167
  </a>
136
168
  </template>
137
169
  </vxe-grid>
138
170
  </div>
139
171
  </el-tab-pane>
140
- <el-tab-pane :label="$t1('文件操作,发系统通知')" name="second" v-if="fileStoreArea.toNotify">
172
+ <el-tab-pane
173
+ :label="$t1('文件操作,发系统通知')"
174
+ name="second"
175
+ v-if="fileStoreArea.toNotify"
176
+ >
141
177
  <div class="grid-height" style="height: 500px">
142
- <fileObjNotifyEdit v-if="showFileObjNotifyEdit" visible-key="showFileObjNotifyEdit"
143
- :current_prefix="current_prefix" :_dataId="fileObjId" :parent-target="_self"
144
- @reload="$reloadHandle"></fileObjNotifyEdit>
178
+ <fileObjNotifyEdit
179
+ v-if="showFileObjNotifyEdit"
180
+ visible-key="showFileObjNotifyEdit"
181
+ :current_prefix="current_prefix"
182
+ :_dataId="fileObjId"
183
+ :parent-target="_self"
184
+ @reload="$reloadHandle"
185
+ ></fileObjNotifyEdit>
145
186
  </div>
146
187
  </el-tab-pane>
147
188
  </el-tabs>
148
189
  </div>
149
190
  </div>
150
191
  <span slot="footer" class="dialog-footer">
151
- <el-button type="primary" plain class="button-sty" @click="dialogClose">
152
- <i class="el-icon-close el-icon"></i>
153
- 取 消
154
- </el-button>
155
- <el-button type="primary" @click="saveData" class="button-sty" v-if="activeName=='first'">
156
- <i class="el-icon-check el-icon"></i>
157
- 确 定
158
- </el-button>
159
- </span>
192
+ <el-button type="primary" plain class="button-sty" @click="dialogClose">
193
+ <i class="el-icon-close el-icon"></i>
194
+ {{ $t2("取 消", "system.button.cancel2") }}
195
+ </el-button>
196
+ <el-button
197
+ type="primary"
198
+ @click="saveData"
199
+ class="button-sty"
200
+ v-if="activeName == 'first'"
201
+ >
202
+ <i class="el-icon-check el-icon"></i>
203
+ {{ $t2("确 定", "system.button.confirm2") }}
204
+ </el-button>
205
+ </span>
160
206
  </el-dialog>
161
207
 
162
- <fileObjAuthEditDialog v-if="showDetailDialog" :visiable.sync="showDetailDialog" @confirm="confirmDetailDialog"
163
- :treeNodeArr="treeNodeArr" :currentRow="currentRow"></fileObjAuthEditDialog>
208
+ <fileObjAuthEditDialog
209
+ v-if="showDetailDialog"
210
+ :visiable.sync="showDetailDialog"
211
+ @confirm="confirmDetailDialog"
212
+ :treeNodeArr="treeNodeArr"
213
+ :currentRow="currentRow"
214
+ ></fileObjAuthEditDialog>
164
215
 
216
+ <userDialog
217
+ v-if="showUserDialog"
218
+ :visiable.sync="showUserDialog"
219
+ @confirm="confirmInsertUser"
220
+ multi="false"
221
+ />
222
+ <saleOrgDialog
223
+ v-if="showSaleOrgDialog"
224
+ :visiable.sync="showSaleOrgDialog"
225
+ @confirm="confirmInsertSaleOrg"
226
+ multi="false"
227
+ />
228
+ <positionDialog
229
+ v-if="showPositionDialog"
230
+ :visiable.sync="showPositionDialog"
231
+ @confirm="confirmInsertPosition"
232
+ multi="false"
233
+ />
165
234
 
166
- <userDialog v-if="showUserDialog" :visiable.sync="showUserDialog" @confirm="confirmInsertUser"
167
- multi="false"/>
168
- <saleOrgDialog v-if="showSaleOrgDialog" :visiable.sync="showSaleOrgDialog" @confirm="confirmInsertSaleOrg"
169
- multi="false"/>
170
- <positionDialog v-if="showPositionDialog" :visiable.sync="showPositionDialog" @confirm="confirmInsertPosition"
171
- multi="false"/>
235
+ <userDialog
236
+ v-if="showUserRowDialog"
237
+ :visiable.sync="showUserRowDialog"
238
+ @confirm="confirmtUserRow"
239
+ multi="false"
240
+ />
241
+ <saleOrgDialog
242
+ v-if="showSaleOrgRowDialog"
243
+ :visiable.sync="showSaleOrgRowDialog"
244
+ @confirm="confirmSaleOrgRow"
245
+ multi="false"
246
+ />
247
+ <positionDialog
248
+ v-if="showPositionRowDialog"
249
+ :visiable.sync="showPositionRowDialog"
250
+ @confirm="confirmPositionRow"
251
+ multi="false"
252
+ />
172
253
 
254
+ <roleDialog
255
+ v-if="showRoleRowDialog"
256
+ :visiable.sync="showRoleRowDialog"
257
+ @confirm="confirmRoleRow"
258
+ multi="false"
259
+ />
173
260
 
174
- <userDialog v-if="showUserRowDialog" :visiable.sync="showUserRowDialog" @confirm="confirmtUserRow"
175
- multi="false"/>
176
- <saleOrgDialog v-if="showSaleOrgRowDialog" :visiable.sync="showSaleOrgRowDialog" @confirm="confirmSaleOrgRow"
177
- multi="false"/>
178
- <positionDialog v-if="showPositionRowDialog" :visiable.sync="showPositionRowDialog" @confirm="confirmPositionRow"
179
- multi="false"/>
261
+ <userDialog
262
+ v-if="showUserAddDialog"
263
+ :visiable.sync="showUserAddDialog"
264
+ @confirm="confirmtUserAddDialog"
265
+ multi="true"
266
+ />
267
+ <saleOrgDialog
268
+ v-if="showSaleOrgAddDialog"
269
+ :visiable.sync="showSaleOrgAddDialog"
270
+ @confirm="confirmSaleOrgAddDialog"
271
+ multi="true"
272
+ />
273
+ <positionDialog
274
+ v-if="showPositionAddDialog"
275
+ :visiable.sync="showPositionAddDialog"
276
+ @confirm="confirmPositionAddDialog"
277
+ multi="true"
278
+ />
180
279
 
181
- <roleDialog v-if="showRoleRowDialog" :visiable.sync="showRoleRowDialog" @confirm="confirmRoleRow"
182
- multi="false"/>
183
-
184
- <userDialog v-if="showUserAddDialog" :visiable.sync="showUserAddDialog" @confirm="confirmtUserAddDialog"
185
- multi="true"/>
186
- <saleOrgDialog v-if="showSaleOrgAddDialog" :visiable.sync="showSaleOrgAddDialog" @confirm="confirmSaleOrgAddDialog"
187
- multi="true"/>
188
- <positionDialog v-if="showPositionAddDialog" :visiable.sync="showPositionAddDialog"
189
- @confirm="confirmPositionAddDialog"
190
- multi="true"/>
191
-
192
- <roleDialog v-if="showRoleAddDialog" :visiable.sync="showRoleAddDialog" @confirm="confirmRoleAddDialog"
193
- multi="true"/>
280
+ <roleDialog
281
+ v-if="showRoleAddDialog"
282
+ :visiable.sync="showRoleAddDialog"
283
+ @confirm="confirmRoleAddDialog"
284
+ multi="true"
285
+ />
194
286
  </div>
195
287
  </template>
196
288
 
@@ -199,10 +291,8 @@ import mixin from "./mixins/fileObjAuthDialogMixin";
199
291
 
200
292
  export default {
201
293
  name: "fileObjAuthDialog",
202
- mixins: [mixin]
203
- }
294
+ mixins: [mixin],
295
+ };
204
296
  </script>
205
297
 
206
- <style scoped>
207
-
208
- </style>
298
+ <style scoped></style>
@@ -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>,