cloud-web-corejs 1.0.166 → 1.0.168

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.166",
4
+ "version": "1.0.168",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -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>
@@ -100,8 +100,8 @@ export default {
100
100
  '/user/form/view/list.vue',
101
101
  '/user/form/view/edit.vue'
102
102
  ]
103
- this.initUserInfo(() => {
104
- this.initI18n();
103
+ this.initUserInfo(async () => {
104
+ await this.initI18n();
105
105
  if (urlArr.includes(url)) {
106
106
  this.wfContent = require('@base/views' + url).default;
107
107
  } else if (url.startsWith(t)) {
@@ -123,11 +123,11 @@ export default {
123
123
  let i18nLang = this.$route.query.i18nLang || "zh";
124
124
  return i18nLang;
125
125
  },
126
- async initI18n() {
126
+ initI18n() {
127
127
  let lang = this.getI18nLang();
128
128
  this.$i18n.locale = lang // 设置给本地的i18n插件
129
129
  localStorage.setItem("i18n-lang", lang);
130
- await indexUtil.initI18nMessage("business", lang, true);
130
+ return indexUtil.initI18nMessage("business", lang, true);
131
131
  },
132
132
  login() {
133
133
  let token = this.$route.query.access_token;