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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.803",
4
+ "version": "1.0.54-dev.804",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "dev:micro": "vue-cli-service serve --port 17527",
@@ -978,6 +978,10 @@ export default {
978
978
  value: "editInput",
979
979
  label: "文本输入框",
980
980
  },
981
+ {
982
+ value: "textarea",
983
+ label: "多行文本输入框",
984
+ },
981
985
  {
982
986
  value: "editNumber",
983
987
  label: "数字输入框",
@@ -107,7 +107,9 @@ export default {
107
107
  this.$getBaseDicts({
108
108
  code: "sysType",
109
109
  success: ({ dicts }) => {
110
- this.showVocMenuBtn = (dicts || []).some((item) => item.sn === "voc");
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.$t1("VOC菜单")}
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
- {{ $t1("VOC菜单") }}{{ role.name ? " - " + role.name : "" }}
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="$t1('VOC菜单')">
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();