Commit 629c177c by gexinzhineng/gxzn27

1、应用管理缺少字段导致添加不了

2、短信模板添加缺少字段
3、短信日志导出接口错误
4、基础设施中英切换暂无用,先注释,生成json数据格式化
5、日志表格不显示链路地址(同vue2)
6、搜索框前字宽换行问题
parent c1be4339
...@@ -53,5 +53,5 @@ export const getSmsLogPageApi = (params: SmsLogPageReqVO) => { ...@@ -53,5 +53,5 @@ export const getSmsLogPageApi = (params: SmsLogPageReqVO) => {
// 导出短信日志 // 导出短信日志
export const exportSmsLogApi = (params: SmsLogExportReqVO) => { export const exportSmsLogApi = (params: SmsLogExportReqVO) => {
return request.download({ url: '/system/sms-log/export', params }) return request.download({ url: '/system/sms-log/export-excel', params })
} }
...@@ -128,7 +128,7 @@ const getColumnsConfig = (options: XTableProps) => { ...@@ -128,7 +128,7 @@ const getColumnsConfig = (options: XTableProps) => {
proxyForm = true proxyForm = true
options.formConfig = { options.formConfig = {
enabled: true, enabled: true,
titleWidth: 100, titleWidth: 180,
titleAlign: 'right', titleAlign: 'right',
items: allSchemas.searchSchema items: allSchemas.searchSchema
} }
......
...@@ -10,7 +10,8 @@ const crudSchemas = reactive<VxeCrudSchema>({ ...@@ -10,7 +10,8 @@ const crudSchemas = reactive<VxeCrudSchema>({
columns: [ columns: [
{ {
title: '链路追踪', title: '链路追踪',
field: 'traceId' field: 'traceId',
isTable: false
}, },
{ {
title: '用户编号', title: '用户编号',
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<el-button size="small" type="primary" @click="showJson">生成JSON</el-button> <el-button size="small" type="primary" @click="showJson">生成JSON</el-button>
<el-button size="small" type="success" @click="showOption">生成Options</el-button> <el-button size="small" type="success" @click="showOption">生成Options</el-button>
<el-button size="small" type="danger" @click="showTemplate">生成组件</el-button> <el-button size="small" type="danger" @click="showTemplate">生成组件</el-button>
<el-button size="small" @click="changeLocale">中英切换</el-button> <!-- <el-button size="small" @click="changeLocale">中英切换</el-button> -->
</div> </div>
</el-col> </el-col>
<el-col> <el-col>
...@@ -19,9 +19,11 @@ ...@@ -19,9 +19,11 @@
<div ref="editor" v-if="dialogVisible"> <div ref="editor" v-if="dialogVisible">
<XTextButton style="float: right" :title="t('common.copy')" @click="copy(formValue)" /> <XTextButton style="float: right" :title="t('common.copy')" @click="copy(formValue)" />
<el-scrollbar height="580"> <el-scrollbar height="580">
<pre> <div v-highlight>
{{ formValue }} <code class="hljs">
</pre> {{ formValue }}
</code>
</div>
</el-scrollbar> </el-scrollbar>
</div> </div>
<span style="color: red" v-if="err">输入内容格式有误!</span> <span style="color: red" v-if="err">输入内容格式有误!</span>
...@@ -69,9 +71,9 @@ const showTemplate = () => { ...@@ -69,9 +71,9 @@ const showTemplate = () => {
type.value = 2 type.value = 2
formValue.value = makeTemplate() formValue.value = makeTemplate()
} }
const changeLocale = () => { // const changeLocale = () => {
console.info('changeLocale') // console.info('changeLocale')
} // }
/** 复制 **/ /** 复制 **/
const copy = async (text: string) => { const copy = async (text: string) => {
......
...@@ -23,6 +23,10 @@ const crudSchemas = reactive<VxeCrudSchema>({ ...@@ -23,6 +23,10 @@ const crudSchemas = reactive<VxeCrudSchema>({
action: true, action: true,
columns: [ columns: [
{ {
title: '客户端端号',
field: 'clientId'
},
{
title: '客户端密钥', title: '客户端密钥',
field: 'secret' field: 'secret'
}, },
......
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas' import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
import * as smsApi from '@/api/system/sms/smsChannel'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
const tenantPackageOption = []
const getTenantPackageOptions = async () => {
const res = await smsApi.getSimpleSmsChannels()
console.log(res, 'resresres')
res.forEach((tenantPackage: TenantPackageVO) => {
tenantPackageOption.push({
key: tenantPackage.id,
value: tenantPackage.id,
label: tenantPackage.signature
})
})
}
getTenantPackageOptions()
// 表单校验 // 表单校验
export const rules = reactive({ export const rules = reactive({
type: [required], type: [required],
...@@ -21,6 +34,19 @@ const crudSchemas = reactive<VxeCrudSchema>({ ...@@ -21,6 +34,19 @@ const crudSchemas = reactive<VxeCrudSchema>({
actionWidth: '280', actionWidth: '280',
columns: [ columns: [
{ {
title: '短信渠道编码',
field: 'channelId',
isSearch: false,
isForm: true,
isTable: false,
form: {
component: 'Select',
componentProps: {
options: tenantPackageOption
}
}
},
{
title: '模板编码', title: '模板编码',
field: 'code', field: 'code',
isSearch: true isSearch: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment