vue2-client 1.8.389 → 1.8.391
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
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
:layout="layout"
|
|
10
10
|
:rules="rules">
|
|
11
11
|
<a-row :gutter="16" type="flex">
|
|
12
|
-
<
|
|
12
|
+
<template v-for="(item, index) in realJsonData">
|
|
13
13
|
<x-form-item
|
|
14
|
+
:key="index"
|
|
14
15
|
v-if="item.type === 'richText'"
|
|
15
16
|
:attr="item"
|
|
16
17
|
:disabled="itemDisabled(item)"
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
/>
|
|
31
32
|
<x-form-item
|
|
32
33
|
v-else
|
|
34
|
+
:key="'default-' + index"
|
|
33
35
|
:attr="item"
|
|
34
36
|
:disabled="itemDisabled(item)"
|
|
35
37
|
:read-only="readonly(item)"
|
|
@@ -45,7 +47,7 @@
|
|
|
45
47
|
@x-form-item-emit-func="emitFunc"
|
|
46
48
|
:setForm="setForm"
|
|
47
49
|
/>
|
|
48
|
-
</
|
|
50
|
+
</template>
|
|
49
51
|
</a-row>
|
|
50
52
|
<a-row :gutter="16" v-for="(groupItem, groupIndex) in groupJsonData" :key="groupIndex">
|
|
51
53
|
<a-card v-if="groupItem.groupItems.length > 0" :title="groupItem.name" :bordered="false" size="small">
|
|
@@ -470,12 +470,16 @@ export default {
|
|
|
470
470
|
if (!this.buttonPermissions) {
|
|
471
471
|
return true
|
|
472
472
|
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
473
|
+
try {
|
|
474
|
+
const existingItem = this.buttonPermissions.find(item => item.btnName === button)
|
|
475
|
+
const rolestr = this.currUser.rolestr.split(',')
|
|
476
|
+
if (existingItem.state) {
|
|
477
|
+
const currUserRole = existingItem.roleStr
|
|
478
|
+
return rolestr.some(item => currUserRole.includes(item))
|
|
479
|
+
} else {
|
|
480
|
+
return true
|
|
481
|
+
}
|
|
482
|
+
} catch (e) {
|
|
479
483
|
return true
|
|
480
484
|
}
|
|
481
485
|
},
|