Commit c40076c5bb82a67779ac808df921b9d1eac1886f

Authored by xingyu4j
2 parents e776e6a4 b98a61f8

Merge remote-tracking branch 'origin/feature/vue3' into feature/vue3

yudao-ui-admin-vue3/src/views/system/errorCode/index.vue
... ... @@ -24,7 +24,7 @@
24 24 <XTextButton
25 25 preIcon="ep:view"
26 26 :title="t('action.detail')"
27   - v-hasPermi="['system:error-code:update']"
  27 + v-hasPermi="['system:error-code:query']"
28 28 @click="handleDetail(row.id)"
29 29 />
30 30 <!-- 操作:删除 -->
... ...
yudao-ui-admin-vue3/src/views/system/loginlog/index.vue
... ... @@ -2,6 +2,7 @@
2 2 <ContentWrap>
3 3 <!-- 列表 -->
4 4 <vxe-grid ref="xGrid" v-bind="gridOptions" class="xtable-scrollbar">
  5 + <!-- 操作:导出 -->
5 6 <template #toolbar_buttons>
6 7 <XButton
7 8 type="warning"
... ...
yudao-ui-admin-vue3/src/views/system/loginlog/loginLog.data.ts
... ... @@ -26,7 +26,7 @@ const crudSchemas = reactive&lt;VxeCrudSchema&gt;({
26 26 },
27 27 {
28 28 title: '浏览器',
29   - field: 'userAgent'
  29 + field: 'userAgent' // TODO 星语:调宽一点,UA 稍微多展示一点,虽然最终都会缩略
30 30 },
31 31 {
32 32 title: '登陆结果',
... ... @@ -34,7 +34,7 @@ const crudSchemas = reactive&lt;VxeCrudSchema&gt;({
34 34 dictType: DICT_TYPE.SYSTEM_LOGIN_RESULT
35 35 },
36 36 {
37   - title: '登录日期',
  37 + title: '登录日期', // TODO 星语:有点窄,看看咋调宽一点,避免日期展示不全
38 38 field: 'createTime',
39 39 formatter: 'formatDate',
40 40 isSearch: true,
... ...
yudao-ui-admin-vue3/src/views/system/notice/index.vue
... ... @@ -24,7 +24,7 @@
24 24 <XTextButton
25 25 preIcon="ep:view"
26 26 :title="t('action.detail')"
27   - v-hasPermi="['system:notice:update']"
  27 + v-hasPermi="['system:notice:query']"
28 28 @click="handleDetail(row.id)"
29 29 />
30 30 <!-- 操作:删除 -->
... ... @@ -148,7 +148,7 @@ const submitForm = async () =&gt; {
148 148 dialogVisible.value = false
149 149 } finally {
150 150 actionLoading.value = false
151   - // 刷新列表
  151 + // 刷新列表 TODO 星语:这里要有个 await
152 152 reloadList(xGrid)
153 153 }
154 154 }
... ...
yudao-ui-admin-vue3/src/views/system/notice/notice.data.ts
... ... @@ -34,7 +34,7 @@ const crudSchemas = reactive&lt;VxeCrudSchema&gt;({
34 34 isSearch: true
35 35 },
36 36 {
37   - title: '公告内容',
  37 + title: '公告内容', // TODO 星语:详情时,公告展示有办法是 html 么?
38 38 field: 'content',
39 39 table: {
40 40 type: 'html'
... ... @@ -47,7 +47,8 @@ const crudSchemas = reactive&lt;VxeCrudSchema&gt;({
47 47 componentProps: {
48 48 valueHtml: ''
49 49 }
50   - }
  50 + },
  51 + isTable: false
51 52 },
52 53 {
53 54 title: t('common.createTime'),
... ...
yudao-ui-admin-vue3/src/views/system/oauth2/client/client.data.ts
... ... @@ -49,21 +49,21 @@ const crudSchemas = reactive&lt;VxeCrudSchema&gt;({
49 49 },
50 50 {
51 51 title: '访问令牌的有效期',
52   - field: 'accessTokenValiditySeconds',
  52 + field: 'accessTokenValiditySeconds', // TODO 星语:展示时,要有 xxx 秒
53 53 form: {
54 54 component: 'InputNumber'
55 55 }
56 56 },
57 57 {
58 58 title: '刷新令牌的有效期',
59   - field: 'refreshTokenValiditySeconds',
  59 + field: 'refreshTokenValiditySeconds', // TODO 星语:展示时,要有 xxx 秒
60 60 form: {
61 61 component: 'InputNumber'
62 62 }
63 63 },
64 64 {
65 65 title: '授权类型',
66   - field: 'authorizedGrantTypes',
  66 + field: 'authorizedGrantTypes', // TODO 星语:详情展示时,应该类似 table 也是多个 tag
67 67 table: {
68 68 width: 300,
69 69 slots: {
... ... @@ -74,17 +74,17 @@ const crudSchemas = reactive&lt;VxeCrudSchema&gt;({
74 74 {
75 75 title: '授权范围',
76 76 field: 'scopes', // TODO @星语:带输入的 SELECT
77   - isTable: false
  77 + isTable: false // TODO 星语:详情展示时,应该类似 table 也是多个 tag
78 78 },
79 79 {
80 80 title: '自动授权范围',
81 81 field: 'autoApproveScopes', // TODO @星语:带输入的 SELECT
82   - isTable: false
  82 + isTable: false // TODO 星语:详情展示时,应该类似 table 也是多个 tag
83 83 },
84 84 {
85 85 title: '可重定向的 URI 地址',
86 86 field: 'redirectUris', // TODO @星语:带输入的 SELECT
87   - isTable: false
  87 + isTable: false // TODO 星语:详情展示时,应该类似 table 也是多个 tag
88 88 },
89 89 {
90 90 title: '权限',
... ...
yudao-ui-admin-vue3/src/views/system/oauth2/client/index.vue
... ... @@ -2,8 +2,8 @@
2 2 <ContentWrap>
3 3 <!-- 列表 -->
4 4 <vxe-grid ref="xGrid" v-bind="gridOptions" class="xtable-scrollbar">
5   - <!-- 操作:新增 -->
6 5 <template #toolbar_buttons>
  6 + <!-- 操作:新增 -->
7 7 <XButton
8 8 type="primary"
9 9 preIcon="ep:zoom-in"
... ... @@ -34,7 +34,7 @@
34 34 <XTextButton
35 35 preIcon="ep:view"
36 36 :title="t('action.detail')"
37   - v-hasPermi="['system:oauth2-client:update']"
  37 + v-hasPermi="['system:oauth2-client:query']"
38 38 @click="handleDetail(row.id)"
39 39 />
40 40 <!-- 操作:删除 -->
... ...
yudao-ui-admin-vue3/src/views/system/operatelog/index.vue
... ... @@ -2,8 +2,8 @@
2 2 <ContentWrap>
3 3 <!-- 列表 -->
4 4 <vxe-grid ref="xGrid" v-bind="gridOptions" class="xtable-scrollbar">
5   - <!-- 操作:新增 -->
6 5 <template #toolbar_buttons>
  6 + <!-- 操作:新增 -->
7 7 <XButton
8 8 type="warning"
9 9 preIcon="ep:download"
... ... @@ -74,6 +74,7 @@ const handleDetail = (row: OperateLogApi.OperateLogVO) =&gt; {
74 74  
75 75 // 导出操作
76 76 const handleExport = async () => {
  77 + // TODO 星语:缺少 await 噢
77 78 exportList(xGrid, '岗位列表.xls')
78 79 }
79 80 </script>
... ...
yudao-ui-admin-vue3/src/views/system/operatelog/operatelog.data.ts
... ... @@ -25,11 +25,13 @@ const crudSchemas = reactive&lt;VxeCrudSchema&gt;({
25 25 },
26 26 {
27 27 title: '请求方法名',
28   - field: 'requestMethod'
  28 + field: 'requestMethod',
  29 + isTable: false
29 30 },
30 31 {
31 32 title: '请求地址',
32   - field: 'requestUrl'
  33 + field: 'requestUrl',
  34 + isTable: false
33 35 },
34 36 {
35 37 title: '操作人员',
... ... @@ -57,7 +59,8 @@ const crudSchemas = reactive&lt;VxeCrudSchema&gt;({
57 59 slots: {
58 60 default: 'resultCode'
59 61 }
60   - }
  62 + },
  63 + isSearch: true // TODO 星语:这里可能有点特殊,不确定好不好处理哈。管理后台返回的是错误码,最终前台展示的是 成功 or 失败,然后筛选页是这样的
61 64 },
62 65 {
63 66 title: '操作日期',
... ...
yudao-ui-admin-vue3/src/views/system/post/index.vue
... ... @@ -2,8 +2,8 @@
2 2 <ContentWrap>
3 3 <!-- 列表 -->
4 4 <vxe-grid ref="xGrid" v-bind="gridOptions" class="xtable-scrollbar">
5   - <!-- 操作:新增 -->
6 5 <template #toolbar_buttons>
  6 + <!-- 操作:新增 -->
7 7 <XButton
8 8 type="primary"
9 9 preIcon="ep:zoom-in"
... ... @@ -11,6 +11,7 @@
11 11 v-hasPermi="['system:post:create']"
12 12 @click="handleCreate()"
13 13 />
  14 + <!-- 操作:导出 -->
14 15 <XButton
15 16 type="warning"
16 17 preIcon="ep:download"
... ... @@ -31,7 +32,7 @@
31 32 <XTextButton
32 33 preIcon="ep:view"
33 34 :title="t('action.detail')"
34   - v-hasPermi="['system:post:update']"
  35 + v-hasPermi="['system:post:query']"
35 36 @click="handleDetail(row.id)"
36 37 />
37 38 <!-- 操作:删除 -->
... ...
yudao-ui-admin-vue3/src/views/system/role/index.vue
... ... @@ -22,7 +22,7 @@
22 22 <XTextButton
23 23 preIcon="ep:view"
24 24 :title="t('action.detail')"
25   - v-hasPermi="['system:role:update']"
  25 + v-hasPermi="['system:role:query']"
26 26 @click="handleDetail(row.id)"
27 27 />
28 28 <XTextButton
... ...
yudao-ui-admin-vue3/src/views/system/sms/smsChannel/index.vue
... ... @@ -24,7 +24,7 @@
24 24 <XTextButton
25 25 preIcon="ep:view"
26 26 :title="t('action.detail')"
27   - v-hasPermi="['system:sms-channel:update']"
  27 + v-hasPermi="['system:sms-channel:query']"
28 28 @click="handleDetail(row.id)"
29 29 />
30 30 <!-- 操作:删除 -->
... ...
yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/index.vue
... ... @@ -30,7 +30,7 @@
30 30 <XTextButton
31 31 preIcon="ep:view"
32 32 :title="t('action.detail')"
33   - v-hasPermi="['system:sms-template:update']"
  33 + v-hasPermi="['system:sms-template:query']"
34 34 @click="handleDetail(row.id)"
35 35 />
36 36 <!-- 操作:删除 -->
... ...