cloud-web-corejs 1.0.54-dev.803 → 1.0.54-dev.804
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
|
@@ -107,7 +107,9 @@ export default {
|
|
|
107
107
|
this.$getBaseDicts({
|
|
108
108
|
code: "sysType",
|
|
109
109
|
success: ({ dicts }) => {
|
|
110
|
-
|
|
110
|
+
let vocItem = (dicts || []).find((item) => item.sn === "voc");
|
|
111
|
+
this.showVocMenuBtn = !!vocItem;
|
|
112
|
+
this.vocMenuLabel = (vocItem && vocItem.value) || "";
|
|
111
113
|
},
|
|
112
114
|
}).finally(() => {
|
|
113
115
|
this.initTableList();
|
|
@@ -120,6 +122,7 @@ export default {
|
|
|
120
122
|
showEdit: false,
|
|
121
123
|
showVocEdit: false,
|
|
122
124
|
showVocMenuBtn: false,
|
|
125
|
+
vocMenuLabel: "",
|
|
123
126
|
vxeOption: {},
|
|
124
127
|
formData: {},
|
|
125
128
|
};
|
|
@@ -229,7 +232,7 @@ export default {
|
|
|
229
232
|
}}
|
|
230
233
|
v-show={this.showVocMenuBtn}
|
|
231
234
|
>
|
|
232
|
-
{this
|
|
235
|
+
{this.vocMenuLabel}
|
|
233
236
|
</a>,
|
|
234
237
|
];
|
|
235
238
|
},
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div class="d-header clearfix">
|
|
5
5
|
<div class="fl">
|
|
6
6
|
<i class="el-icon-info" />
|
|
7
|
-
{{
|
|
7
|
+
{{ vocMenuLabel }}{{ role.name ? " - " + role.name : "" }}
|
|
8
8
|
</div>
|
|
9
9
|
<div class="fr">
|
|
10
10
|
<el-button
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
</table>
|
|
66
66
|
</template>
|
|
67
67
|
</baseTabPane>
|
|
68
|
-
<baseTabPane :label="
|
|
68
|
+
<baseTabPane :label="vocMenuLabel">
|
|
69
69
|
<template #default>
|
|
70
70
|
<div class="role-box">
|
|
71
71
|
<div class="item" v-for="item in allMenus" :key="item.id">
|
|
@@ -133,17 +133,28 @@ export default {
|
|
|
133
133
|
return {
|
|
134
134
|
dataId: "",
|
|
135
135
|
sysType: "voc",
|
|
136
|
+
vocMenuLabel: "",
|
|
136
137
|
role: {},
|
|
137
138
|
allMenus: [],
|
|
138
139
|
};
|
|
139
140
|
},
|
|
140
141
|
created() {
|
|
141
142
|
if (this._dataId) this.dataId = this._dataId;
|
|
143
|
+
this.loadVocMenuLabel();
|
|
142
144
|
},
|
|
143
145
|
mounted() {
|
|
144
146
|
this.getData();
|
|
145
147
|
},
|
|
146
148
|
methods: {
|
|
149
|
+
loadVocMenuLabel() {
|
|
150
|
+
this.$getBaseDicts({
|
|
151
|
+
code: "sysType",
|
|
152
|
+
success: ({ dicts }) => {
|
|
153
|
+
let vocItem = (dicts || []).find((item) => item.sn === this.sysType);
|
|
154
|
+
if (vocItem) this.vocMenuLabel = vocItem.value || "";
|
|
155
|
+
},
|
|
156
|
+
});
|
|
157
|
+
},
|
|
147
158
|
getData() {
|
|
148
159
|
if (!this.dataId) {
|
|
149
160
|
this.initMenuData();
|