Commit c5f1cad033ad55eb1d837bbd1b33f8de5f99c62e

Authored by YunaiV
1 parent 387cdc42

vue3:review 短信渠道、短信模板、短信日志、错误码管理、敏感词管理

yudao-ui-admin-vue3/src/views/system/errorCode/errorCode.data.ts
... ... @@ -16,6 +16,7 @@ export const rules = reactive({
16 16 const crudSchemas = reactive<VxeCrudSchema>({
17 17 primaryKey: 'id',
18 18 primaryType: 'seq',
  19 + primaryTitle: '编号',
19 20 action: true,
20 21 columns: [
21 22 {
... ...
yudao-ui-admin-vue3/src/views/system/sensitiveWord/index.vue
... ... @@ -3,6 +3,7 @@
3 3 <!-- 列表 -->
4 4 <vxe-grid ref="xGrid" v-bind="gridOptions" class="xtable-scrollbar">
5 5 <template #toolbar_buttons>
  6 + <!-- 操作:新增 -->
6 7 <XButton
7 8 type="primary"
8 9 preIcon="ep:zoom-in"
... ... @@ -10,6 +11,7 @@
10 11 v-hasPermi="['system:sensitive-word:create']"
11 12 @click="handleCreate()"
12 13 />
  14 + <!-- 操作:导出 -->
13 15 <XButton
14 16 type="warning"
15 17 preIcon="ep:download"
... ...
yudao-ui-admin-vue3/src/views/system/sensitiveWord/sensitiveWord.data.ts
... ... @@ -15,6 +15,7 @@ export const rules = reactive({
15 15 const crudSchemas = reactive<VxeCrudSchema>({
16 16 primaryKey: 'id',
17 17 primaryType: 'seq',
  18 + primaryTitle: '敏感词编号', // TODO 星语:如果长度超过 4 个字符,会导致表格列宽度不够,需要优化
18 19 action: true,
19 20 columns: [
20 21 {
... ... @@ -24,7 +25,7 @@ const crudSchemas = reactive&lt;VxeCrudSchema&gt;({
24 25 },
25 26 {
26 27 title: '标签',
27   - field: 'tags',
  28 + field: 'tags', // TODO 星语:如果是数组的话,是不是使用 el tag 展示呀?
28 29 table: {
29 30 slots: {
30 31 default: 'tags_default'
... ...
yudao-ui-admin-vue3/src/views/system/sms/smsChannel/sms.channel.data.ts
... ... @@ -17,6 +17,7 @@ export const rules = reactive({
17 17 const crudSchemas = reactive<VxeCrudSchema>({
18 18 primaryKey: 'id',
19 19 primaryType: 'seq',
  20 + primaryTitle: '渠道编号',
20 21 action: true,
21 22 columns: [
22 23 {
... ...
yudao-ui-admin-vue3/src/views/system/sms/smsLog/sms.log.data.ts
... ... @@ -8,6 +8,7 @@ const { t } = useI18n() // 国际化
8 8 const crudSchemas = reactive<VxeCrudSchema>({
9 9 primaryKey: 'id',
10 10 primaryType: 'seq',
  11 + primaryTitle: '日志编号',
11 12 action: true,
12 13 columns: [
13 14 {
... ...
yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/sms.template.data.ts
... ... @@ -20,6 +20,7 @@ export const rules = reactive({
20 20 const crudSchemas = reactive<VxeCrudSchema>({
21 21 primaryKey: 'id',
22 22 primaryType: 'seq',
  23 + primaryTitle: '模板编号',
23 24 action: true,
24 25 actionWidth: '280',
25 26 columns: [
... ...