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

pull/2/head
xingyu4j 2022-11-16 10:08:40 +08:00
commit c40076c5bb
13 changed files with 31 additions and 24 deletions

View File

@ -24,7 +24,7 @@
<XTextButton
preIcon="ep:view"
:title="t('action.detail')"
v-hasPermi="['system:error-code:update']"
v-hasPermi="['system:error-code:query']"
@click="handleDetail(row.id)"
/>
<!-- 操作删除 -->

View File

@ -2,6 +2,7 @@
<ContentWrap>
<!-- 列表 -->
<vxe-grid ref="xGrid" v-bind="gridOptions" class="xtable-scrollbar">
<!-- 操作导出 -->
<template #toolbar_buttons>
<XButton
type="warning"

View File

@ -26,7 +26,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
},
{
title: '浏览器',
field: 'userAgent'
field: 'userAgent' // TODO 星语调宽一点UA 稍微多展示一点,虽然最终都会缩略
},
{
title: '登陆结果',
@ -34,7 +34,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
dictType: DICT_TYPE.SYSTEM_LOGIN_RESULT
},
{
title: '登录日期',
title: '登录日期', // TODO 星语:有点窄,看看咋调宽一点,避免日期展示不全
field: 'createTime',
formatter: 'formatDate',
isSearch: true,

View File

@ -24,7 +24,7 @@
<XTextButton
preIcon="ep:view"
:title="t('action.detail')"
v-hasPermi="['system:notice:update']"
v-hasPermi="['system:notice:query']"
@click="handleDetail(row.id)"
/>
<!-- 操作删除 -->
@ -148,7 +148,7 @@ const submitForm = async () => {
dialogVisible.value = false
} finally {
actionLoading.value = false
//
// TODO await
reloadList(xGrid)
}
}

View File

@ -34,7 +34,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
isSearch: true
},
{
title: '公告内容',
title: '公告内容', // TODO 星语:详情时,公告展示有办法是 html 么?
field: 'content',
table: {
type: 'html'
@ -47,7 +47,8 @@ const crudSchemas = reactive<VxeCrudSchema>({
componentProps: {
valueHtml: ''
}
}
},
isTable: false
},
{
title: t('common.createTime'),

View File

@ -49,21 +49,21 @@ const crudSchemas = reactive<VxeCrudSchema>({
},
{
title: '访问令牌的有效期',
field: 'accessTokenValiditySeconds',
field: 'accessTokenValiditySeconds', // TODO 星语:展示时,要有 xxx 秒
form: {
component: 'InputNumber'
}
},
{
title: '刷新令牌的有效期',
field: 'refreshTokenValiditySeconds',
field: 'refreshTokenValiditySeconds', // TODO 星语:展示时,要有 xxx 秒
form: {
component: 'InputNumber'
}
},
{
title: '授权类型',
field: 'authorizedGrantTypes',
field: 'authorizedGrantTypes', // TODO 星语:详情展示时,应该类似 table 也是多个 tag
table: {
width: 300,
slots: {
@ -74,17 +74,17 @@ const crudSchemas = reactive<VxeCrudSchema>({
{
title: '授权范围',
field: 'scopes', // TODO @星语:带输入的 SELECT
isTable: false
isTable: false // TODO 星语:详情展示时,应该类似 table 也是多个 tag
},
{
title: '自动授权范围',
field: 'autoApproveScopes', // TODO @星语:带输入的 SELECT
isTable: false
isTable: false // TODO 星语:详情展示时,应该类似 table 也是多个 tag
},
{
title: '可重定向的 URI 地址',
field: 'redirectUris', // TODO @星语:带输入的 SELECT
isTable: false
isTable: false // TODO 星语:详情展示时,应该类似 table 也是多个 tag
},
{
title: '权限',

View File

@ -2,8 +2,8 @@
<ContentWrap>
<!-- 列表 -->
<vxe-grid ref="xGrid" v-bind="gridOptions" class="xtable-scrollbar">
<!-- 操作新增 -->
<template #toolbar_buttons>
<!-- 操作新增 -->
<XButton
type="primary"
preIcon="ep:zoom-in"
@ -34,7 +34,7 @@
<XTextButton
preIcon="ep:view"
:title="t('action.detail')"
v-hasPermi="['system:oauth2-client:update']"
v-hasPermi="['system:oauth2-client:query']"
@click="handleDetail(row.id)"
/>
<!-- 操作删除 -->

View File

@ -2,8 +2,8 @@
<ContentWrap>
<!-- 列表 -->
<vxe-grid ref="xGrid" v-bind="gridOptions" class="xtable-scrollbar">
<!-- 操作新增 -->
<template #toolbar_buttons>
<!-- 操作新增 -->
<XButton
type="warning"
preIcon="ep:download"
@ -74,6 +74,7 @@ const handleDetail = (row: OperateLogApi.OperateLogVO) => {
//
const handleExport = async () => {
// TODO await
exportList(xGrid, '岗位列表.xls')
}
</script>

View File

@ -25,11 +25,13 @@ const crudSchemas = reactive<VxeCrudSchema>({
},
{
title: '请求方法名',
field: 'requestMethod'
field: 'requestMethod',
isTable: false
},
{
title: '请求地址',
field: 'requestUrl'
field: 'requestUrl',
isTable: false
},
{
title: '操作人员',
@ -57,7 +59,8 @@ const crudSchemas = reactive<VxeCrudSchema>({
slots: {
default: 'resultCode'
}
}
},
isSearch: true // TODO 星语:这里可能有点特殊,不确定好不好处理哈。管理后台返回的是错误码,最终前台展示的是 成功 or 失败,然后筛选页是这样的
},
{
title: '操作日期',

View File

@ -2,8 +2,8 @@
<ContentWrap>
<!-- 列表 -->
<vxe-grid ref="xGrid" v-bind="gridOptions" class="xtable-scrollbar">
<!-- 操作新增 -->
<template #toolbar_buttons>
<!-- 操作新增 -->
<XButton
type="primary"
preIcon="ep:zoom-in"
@ -11,6 +11,7 @@
v-hasPermi="['system:post:create']"
@click="handleCreate()"
/>
<!-- 操作导出 -->
<XButton
type="warning"
preIcon="ep:download"
@ -31,7 +32,7 @@
<XTextButton
preIcon="ep:view"
:title="t('action.detail')"
v-hasPermi="['system:post:update']"
v-hasPermi="['system:post:query']"
@click="handleDetail(row.id)"
/>
<!-- 操作删除 -->

View File

@ -22,7 +22,7 @@
<XTextButton
preIcon="ep:view"
:title="t('action.detail')"
v-hasPermi="['system:role:update']"
v-hasPermi="['system:role:query']"
@click="handleDetail(row.id)"
/>
<XTextButton

View File

@ -24,7 +24,7 @@
<XTextButton
preIcon="ep:view"
:title="t('action.detail')"
v-hasPermi="['system:sms-channel:update']"
v-hasPermi="['system:sms-channel:query']"
@click="handleDetail(row.id)"
/>
<!-- 操作删除 -->

View File

@ -30,7 +30,7 @@
<XTextButton
preIcon="ep:view"
:title="t('action.detail')"
v-hasPermi="['system:sms-template:update']"
v-hasPermi="['system:sms-template:query']"
@click="handleDetail(row.id)"
/>
<!-- 操作删除 -->