lw-cdp-ui 1.2.46 → 1.2.48
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/dist/components/lwLayout/index.vue +13 -4
- package/dist/components/lwLogin/index.vue +5 -0
- package/dist/components/lwTable/index.js +5 -2
- package/dist/components/lwTable/index.scss +4 -0
- package/dist/components/lwTable/index.vue +7 -4
- package/dist/lw-cdp-ui.esm.js +5426 -5409
- package/dist/lw-cdp-ui.umd.js +13 -13
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
<Side-m v-if="ismobile"></Side-m>
|
|
57
57
|
<div class="aminui-body el-container">
|
|
58
58
|
<Topbar v-if="!ismobile"></Topbar>
|
|
59
|
-
<Tags v-if="!ismobile && layoutTags"
|
|
59
|
+
<Tags v-if="!ismobile && layoutTags"
|
|
60
|
+
:tagShowID="tagShowID"></Tags>
|
|
60
61
|
<div class="adminui-main"
|
|
61
62
|
id="adminui-main">
|
|
62
63
|
<slot name="routerView">
|
|
@@ -117,7 +118,8 @@
|
|
|
117
118
|
</template>
|
|
118
119
|
</userbar>
|
|
119
120
|
</div>
|
|
120
|
-
<Tags v-if="!ismobile && layoutTags"
|
|
121
|
+
<Tags v-if="!ismobile && layoutTags"
|
|
122
|
+
:tagShowID="tagShowID"></Tags>
|
|
121
123
|
<div class="adminui-main"
|
|
122
124
|
id="adminui-main">
|
|
123
125
|
<slot name="routerView">
|
|
@@ -170,7 +172,8 @@
|
|
|
170
172
|
</header>
|
|
171
173
|
<section class="aminui-wrapper">
|
|
172
174
|
<div class="aminui-body el-container">
|
|
173
|
-
<Tags v-if="!ismobile && layoutTags"
|
|
175
|
+
<Tags v-if="!ismobile && layoutTags"
|
|
176
|
+
:tagShowID="tagShowID"></Tags>
|
|
174
177
|
<div class="adminui-main"
|
|
175
178
|
id="adminui-main">
|
|
176
179
|
<slot name="routerView">
|
|
@@ -245,7 +248,8 @@
|
|
|
245
248
|
</template>
|
|
246
249
|
</userbar>
|
|
247
250
|
</Topbar>
|
|
248
|
-
<Tags v-if="!ismobile && layoutTags"
|
|
251
|
+
<Tags v-if="!ismobile && layoutTags"
|
|
252
|
+
:tagShowID="tagShowID"></Tags>
|
|
249
253
|
<div class="adminui-main"
|
|
250
254
|
id="adminui-main">
|
|
251
255
|
<slot name="routerView">
|
|
@@ -397,6 +401,11 @@ export default {
|
|
|
397
401
|
|
|
398
402
|
// 获取用户信息
|
|
399
403
|
let user = await this.$api.auth.user()
|
|
404
|
+
|
|
405
|
+
// 处理应用显示逻辑
|
|
406
|
+
let application = [...new Set(user.userAuthInfo.menus.map(permission => permission.split('.')[0]))]
|
|
407
|
+
user.userAuthInfo.grantedApplications = user.userAuthInfo.grantedApplications.filter(x => application.includes(x.code))
|
|
408
|
+
|
|
400
409
|
this.$tool.data.set('tenantId', user.userAuthInfo.tenantId)
|
|
401
410
|
this.$tool.data.set('userAuthInfo', user.userAuthInfo)
|
|
402
411
|
this.$tool.data.set('MenuPath', user.userAuthInfo.grantedApplications)
|
|
@@ -351,8 +351,13 @@ export default {
|
|
|
351
351
|
|
|
352
352
|
// 获取用户信息
|
|
353
353
|
let user = await this.$api.auth.user()
|
|
354
|
+
// 处理应用显示逻辑
|
|
355
|
+
let application = [...new Set(user.userAuthInfo.menus.map(permission => permission.split('.')[0]))]
|
|
356
|
+
user.userAuthInfo.grantedApplications = user.userAuthInfo.grantedApplications.filter(x => application.includes(x.code))
|
|
357
|
+
|
|
354
358
|
this.$tool.data.set('tenantId', user.userAuthInfo.tenantId)
|
|
355
359
|
this.$tool.data.set('userAuthInfo', user.userAuthInfo)
|
|
360
|
+
// 用与应用菜单显示
|
|
356
361
|
this.$tool.data.set('MenuPath', user.userAuthInfo.grantedApplications)
|
|
357
362
|
this.$store.state.user = user.userAuthInfo
|
|
358
363
|
|
|
@@ -274,8 +274,11 @@ export default {
|
|
|
274
274
|
selected.forEach((node) => {
|
|
275
275
|
// 获取 data-item 属性的值
|
|
276
276
|
const item = node.getAttribute('data-item')
|
|
277
|
-
|
|
278
|
-
|
|
277
|
+
|
|
278
|
+
if (item) {
|
|
279
|
+
const itemData = JSON.parse(item)
|
|
280
|
+
list.push(itemData)
|
|
281
|
+
}
|
|
279
282
|
})
|
|
280
283
|
this.$emit('multipleSelection', list)
|
|
281
284
|
}
|
|
@@ -199,14 +199,15 @@
|
|
|
199
199
|
class="table-card-list"
|
|
200
200
|
:style="{ minHeight: maxHeight }">
|
|
201
201
|
<el-row :gutter="20">
|
|
202
|
-
<VueSelecto dragContainer=".
|
|
202
|
+
<VueSelecto dragContainer=".table-card-list"
|
|
203
|
+
boundContainer=".table-card-list"
|
|
203
204
|
:selectableTargets="['.table-card-item']"
|
|
204
205
|
:selectByClick="true"
|
|
205
206
|
:selectFromInside="true"
|
|
206
207
|
:continueSelect="false"
|
|
207
208
|
:toggleContinueSelect='"shift"'
|
|
208
209
|
:keyContainer="window"
|
|
209
|
-
:hitRate="
|
|
210
|
+
:hitRate="50"
|
|
210
211
|
@select="onSelect" />
|
|
211
212
|
<el-col :span="6"
|
|
212
213
|
v-for="item in tableData">
|
|
@@ -248,7 +249,8 @@
|
|
|
248
249
|
</el-tooltip>
|
|
249
250
|
|
|
250
251
|
<!-- 表格大小设置 -->
|
|
251
|
-
<el-dropdown
|
|
252
|
+
<el-dropdown v-if="!isCard"
|
|
253
|
+
@command="handleSelect">
|
|
252
254
|
<span class="dropdown-trigger">
|
|
253
255
|
<el-tooltip :content="$t('lwTable.tools.lineHeightName')">
|
|
254
256
|
<el-icon size="20">
|
|
@@ -272,7 +274,8 @@
|
|
|
272
274
|
</el-dropdown>
|
|
273
275
|
|
|
274
276
|
<!-- 列设置 -->
|
|
275
|
-
<el-popover
|
|
277
|
+
<el-popover v-if="!isCard"
|
|
278
|
+
placement="top-start"
|
|
276
279
|
:title="$t('lwTable.tools.columnsSetting')"
|
|
277
280
|
:width="400"
|
|
278
281
|
trigger="hover">
|