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