# Conflicts:
#	src/views/ai/mindmap/index/components/Right.vue
#	src/views/ai/mindmap/index/index.vue
pull/504/head
YunaiV 2024-08-08 08:55:34 +08:00
commit fb08357e8f
32 changed files with 187 additions and 129 deletions

1
.gitignore vendored
View File

@ -2,7 +2,6 @@ node_modules
.DS_Store .DS_Store
dist dist
dist-ssr dist-ssr
*.local
/dist* /dist*
pnpm-debug pnpm-debug
auto-*.d.ts auto-*.d.ts

View File

@ -1,6 +1,6 @@
{ {
"name": "yudao-ui-admin-vue3", "name": "yudao-ui-admin-vue3",
"version": "2.1.0-snapshot", "version": "2.2.0-snapshot",
"description": "基于vue3、vite4、element-plus、typesScript", "description": "基于vue3、vite4、element-plus、typesScript",
"author": "xingyu", "author": "xingyu",
"private": false, "private": false,

View File

@ -1,6 +1,6 @@
import request from '@/config/axios' import request from '@/config/axios'
export const getProcessDefinition = async (id: number, key: string) => { export const getProcessDefinition = async (id?: string, key?: string) => {
return await request.get({ return await request.get({
url: '/bpm/process-definition/get', url: '/bpm/process-definition/get',
params: { id, key } params: { id, key }

View File

@ -5,6 +5,7 @@ export type ProcessDefinitionVO = {
version: number version: number
deploymentTIme: string deploymentTIme: string
suspensionState: number suspensionState: number
formType?: number
} }
export type ModelVO = { export type ModelVO = {

View File

@ -1,4 +1,5 @@
import request from '@/config/axios' import request from '@/config/axios'
import { ProcessDefinitionVO } from '@/api/bpm/model'
export type Task = { export type Task = {
id: string id: string
@ -18,17 +19,7 @@ export type ProcessInstanceVO = {
businessKey: string businessKey: string
createTime: string createTime: string
endTime: string endTime: string
} processDefinition?: ProcessDefinitionVO
export type ProcessInstanceCopyVO = {
type: number
taskName: string
taskKey: string
processInstanceName: string
processInstanceKey: string
startUserId: string
options: string[]
reason: string
} }
export const getProcessInstanceMyPage = async (params: any) => { export const getProcessInstanceMyPage = async (params: any) => {

View File

@ -54,7 +54,7 @@ const currentLocale = computed(() => localeStore.currentLocale)
<ElConfigProvider <ElConfigProvider
:namespace="variables.elNamespace" :namespace="variables.elNamespace"
:locale="currentLocale.elLocale" :locale="currentLocale.elLocale"
:message="{ max: 1 }" :message="{ max: 5 }"
:size="size" :size="size"
> >
<slot></slot> <slot></slot>

View File

@ -22,8 +22,8 @@ export default defineComponent({
const dictOptions = getDictOptions(dictType) const dictOptions = getDictOptions(dictType)
dictOptions.forEach((dict: DictDataType) => { dictOptions.forEach((dict: DictDataType) => {
if (dict.value === value) { if (dict.value === value) {
if (dict.colorType + '' === 'primary' || dict.colorType + '' === 'default') { if (dict.colorType + '' === 'default') {
dict.colorType = '' dict.colorType = 'info'
} }
dictData.value = dict dictData.value = dict
} }

View File

@ -95,6 +95,7 @@ const handleCloneComponent = (component: DiyComponent<any>) => {
.editor-left { .editor-left {
z-index: 1; z-index: 1;
flex-shrink: 0; flex-shrink: 0;
user-select: none;
box-shadow: 8px 0 8px -8px rgb(0 0 0 / 12%); box-shadow: 8px 0 8px -8px rgb(0 0 0 / 12%);
:deep(.el-collapse) { :deep(.el-collapse) {

View File

@ -96,11 +96,6 @@ const editorConfig = computed((): IEditorConfig => {
// ['image/*'] [] // ['image/*'] []
allowedFileTypes: ['image/*'], allowedFileTypes: ['image/*'],
// token formData
meta: { updateSupport: 0 },
// meta url false
metaWithUrl: true,
// http header // http header
headers: { headers: {
Accept: '*', Accept: '*',
@ -108,9 +103,6 @@ const editorConfig = computed((): IEditorConfig => {
'tenant-id': getTenantId() 'tenant-id': getTenantId()
}, },
// cookie false
withCredentials: true,
// 10 // 10
timeout: 5 * 1000, // 5 timeout: 5 * 1000, // 5
@ -119,7 +111,7 @@ const editorConfig = computed((): IEditorConfig => {
// //
onBeforeUpload(file: File) { onBeforeUpload(file: File) {
console.log(file) // console.log(file)
return file return file
}, },
// //
@ -142,6 +134,54 @@ const editorConfig = computed((): IEditorConfig => {
customInsert(res: any, insertFn: InsertFnType) { customInsert(res: any, insertFn: InsertFnType) {
insertFn(res.data, 'image', res.data) insertFn(res.data, 'image', res.data)
} }
},
['uploadVideo']: {
server: import.meta.env.VITE_UPLOAD_URL,
// 10M
maxFileSize: 10 * 1024 * 1024,
// 100
maxNumberOfFiles: 10,
// ['video/*'] []
allowedFileTypes: ['video/*'],
// http header
headers: {
Accept: '*',
Authorization: 'Bearer ' + getAccessToken(),
'tenant-id': getTenantId()
},
// 30
timeout: 15 * 1000, // 15
// form-data fieldNamewangeditor-uploaded-image
fieldName: 'file',
//
onBeforeUpload(file: File) {
// console.log(file)
return file
},
//
onProgress(progress: number) {
// progress 0-100
console.log('progress', progress)
},
onSuccess(file: File, res: any) {
console.log('onSuccess', file, res)
},
onFailed(file: File, res: any) {
alert(res.message)
console.log('onFailed', file, res)
},
onError(file: File, err: any, res: any) {
alert(err.message)
console.error('onError', file, err, res)
},
//
customInsert(res: any, insertFn: InsertFnType) {
insertFn(res.data, 'mp4', res.data)
}
} }
}, },
uploadImgShowBase64: true uploadImgShowBase64: true

View File

@ -32,6 +32,7 @@
格式为 <b style="color: #f56c6c">{{ fileType.join('/') }}</b> 的文件 格式为 <b style="color: #f56c6c">{{ fileType.join('/') }}</b> 的文件
</div> </div>
</template> </template>
<!-- TODO @puhui9991表单展示的时候位置会偏掉已发微信2disable 的时候应该把删除按钮也隐藏掉 -->
<template #file="row"> <template #file="row">
<div class="flex items-center"> <div class="flex items-center">
<span>{{ row.file.name }}</span> <span>{{ row.file.name }}</span>

View File

@ -43,9 +43,6 @@ import { CommonStatusEnum } from '@/utils/constants'
/** BPM 流程 表单 */ /** BPM 流程 表单 */
defineOptions({ name: 'ProcessListenerDialog' }) defineOptions({ name: 'ProcessListenerDialog' })
const { t } = useI18n() //
const message = useMessage() //
const dialogVisible = ref(false) // const dialogVisible = ref(false) //
const loading = ref(true) // const loading = ref(true) //
const list = ref<ProcessListenerVO[]>([]) // const list = ref<ProcessListenerVO[]>([]) //
@ -53,17 +50,23 @@ const total = ref(0) // 列表的总页数
const queryParams = reactive({ const queryParams = reactive({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
type: undefined, type: '',
status: CommonStatusEnum.ENABLE status: CommonStatusEnum.ENABLE
}) })
/** 打开弹窗 */ /** 打开弹窗 */
const open = async (type: string) => { const open = async (type: string) => {
queryParams.pageNo = 1
queryParams.type = type
getList()
dialogVisible.value = true dialogVisible.value = true
}
defineExpose({ open }) // open
/** 查询列表 */
const getList = async () => {
loading.value = true loading.value = true
try { try {
queryParams.pageNo = 1
queryParams.type = type
const data = await ProcessListenerApi.getProcessListenerPage(queryParams) const data = await ProcessListenerApi.getProcessListenerPage(queryParams)
list.value = data.list list.value = data.list
total.value = data.total total.value = data.total
@ -71,7 +74,6 @@ const open = async (type: string) => {
loading.value = false loading.value = false
} }
} }
defineExpose({ open }) // open
/** 提交表单 */ /** 提交表单 */
const emit = defineEmits(['success']) // success const emit = defineEmits(['success']) // success

View File

@ -28,9 +28,6 @@ import { ProcessExpressionApi, ProcessExpressionVO } from '@/api/bpm/processExpr
/** BPM 流程 表单 */ /** BPM 流程 表单 */
defineOptions({ name: 'ProcessExpressionDialog' }) defineOptions({ name: 'ProcessExpressionDialog' })
const { t } = useI18n() //
const message = useMessage() //
const dialogVisible = ref(false) // const dialogVisible = ref(false) //
const loading = ref(true) // const loading = ref(true) //
const list = ref<ProcessExpressionVO[]>([]) // const list = ref<ProcessExpressionVO[]>([]) //
@ -38,17 +35,23 @@ const total = ref(0) // 列表的总页数
const queryParams = reactive({ const queryParams = reactive({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
type: undefined, type: '',
status: CommonStatusEnum.ENABLE status: CommonStatusEnum.ENABLE
}) })
/** 打开弹窗 */ /** 打开弹窗 */
const open = async (type: string) => { const open = (type: string) => {
queryParams.pageNo = 1
queryParams.type = type
getList()
dialogVisible.value = true dialogVisible.value = true
}
defineExpose({ open }) // open
/** 查询列表 */
const getList = async () => {
loading.value = true loading.value = true
try { try {
queryParams.pageNo = 1
queryParams.type = type
const data = await ProcessExpressionApi.getProcessExpressionPage(queryParams) const data = await ProcessExpressionApi.getProcessExpressionPage(queryParams)
list.value = data.list list.value = data.list
total.value = data.total total.value = data.total
@ -56,7 +59,6 @@ const open = async (type: string) => {
loading.value = false loading.value = false
} }
} }
defineExpose({ open }) // open
/** 提交表单 */ /** 提交表单 */
const emit = defineEmits(['success']) // success const emit = defineEmits(['success']) // success

View File

@ -135,6 +135,7 @@ import * as PostApi from '@/api/system/post'
import * as UserApi from '@/api/system/user' import * as UserApi from '@/api/system/user'
import * as UserGroupApi from '@/api/bpm/userGroup' import * as UserGroupApi from '@/api/bpm/userGroup'
import ProcessExpressionDialog from './ProcessExpressionDialog.vue' import ProcessExpressionDialog from './ProcessExpressionDialog.vue'
import { ProcessExpressionVO } from '@/api/bpm/processExpression'
defineOptions({ name: 'UserTask' }) defineOptions({ name: 'UserTask' })
const props = defineProps({ const props = defineProps({
@ -197,8 +198,9 @@ const processExpressionDialogRef = ref()
const openProcessExpressionDialog = async () => { const openProcessExpressionDialog = async () => {
processExpressionDialogRef.value.open() processExpressionDialogRef.value.open()
} }
const selectProcessExpression = (expression) => { const selectProcessExpression = (expression: ProcessExpressionVO) => {
userTaskForm.value.candidateParam = [expression.expression] userTaskForm.value.candidateParam = [expression.expression]
updateElementTask()
} }
watch( watch(

View File

@ -81,7 +81,7 @@ service.interceptors.request.use(
(error: AxiosError) => { (error: AxiosError) => {
// Do something with request error // Do something with request error
console.log(error) // for debug console.log(error) // for debug
Promise.reject(error) return Promise.reject(error)
} }
) )

View File

@ -90,6 +90,11 @@ export default defineComponent({
backgroundColor="var(--left-menu-bg-color)" backgroundColor="var(--left-menu-bg-color)"
textColor="var(--left-menu-text-color)" textColor="var(--left-menu-text-color)"
activeTextColor="var(--left-menu-text-active-color)" activeTextColor="var(--left-menu-text-active-color)"
popperClass={
unref(menuMode) === 'vertical'
? `${prefixCls}-popper--vertical`
: `${prefixCls}-popper--horizontal`
}
onSelect={menuSelect} onSelect={menuSelect}
> >
{{ {{

View File

@ -52,7 +52,7 @@ async function goLogin() {
// //
deleteUserCache() // deleteUserCache() //
tagsViewStore.delAllViews() tagsViewStore.delAllViews()
resetRouter() // // resetRouter() //
lockStore.resetLockInfo() lockStore.resetLockInfo()
replace('/login') replace('/login')
} }

View File

@ -341,7 +341,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
component: () => import('@/views/mall/product/spu/form/index.vue'), component: () => import('@/views/mall/product/spu/form/index.vue'),
name: 'ProductSpuAdd', name: 'ProductSpuAdd',
meta: { meta: {
noCache: true, noCache: false, // 需要缓存
hidden: true, hidden: true,
canTo: true, canTo: true,
icon: 'ep:edit', icon: 'ep:edit',

View File

@ -125,7 +125,6 @@ export enum DICT_TYPE {
SYSTEM_SMS_TEMPLATE_TYPE = 'system_sms_template_type', SYSTEM_SMS_TEMPLATE_TYPE = 'system_sms_template_type',
SYSTEM_SMS_SEND_STATUS = 'system_sms_send_status', SYSTEM_SMS_SEND_STATUS = 'system_sms_send_status',
SYSTEM_SMS_RECEIVE_STATUS = 'system_sms_receive_status', SYSTEM_SMS_RECEIVE_STATUS = 'system_sms_receive_status',
SYSTEM_ERROR_CODE_TYPE = 'system_error_code_type',
SYSTEM_OAUTH2_GRANT_TYPE = 'system_oauth2_grant_type', SYSTEM_OAUTH2_GRANT_TYPE = 'system_oauth2_grant_type',
SYSTEM_MAIL_SEND_STATUS = 'system_mail_send_status', SYSTEM_MAIL_SEND_STATUS = 'system_mail_send_status',
SYSTEM_NOTIFY_TEMPLATE_TYPE = 'system_notify_template_type', SYSTEM_NOTIFY_TEMPLATE_TYPE = 'system_notify_template_type',

View File

@ -27,7 +27,7 @@
<el-button size="small" class="btn"> <el-button size="small" class="btn">
<Icon icon="ep:download" color="#787878" /> <Icon icon="ep:download" color="#787878" />
</el-button> </el-button>
<el-button size="small" class="btn" @click="handleGoTopMessage" > <el-button size="small" class="btn" @click="handleGoTopMessage">
<Icon icon="ep:top" color="#787878" /> <Icon icon="ep:top" color="#787878" />
</el-button> </el-button>
</div> </div>
@ -119,7 +119,6 @@ import MessageList from './components/message/MessageList.vue'
import MessageListEmpty from './components/message/MessageListEmpty.vue' import MessageListEmpty from './components/message/MessageListEmpty.vue'
import MessageLoading from './components/message/MessageLoading.vue' import MessageLoading from './components/message/MessageLoading.vue'
import MessageNewConversation from './components/message/MessageNewConversation.vue' import MessageNewConversation from './components/message/MessageNewConversation.vue'
import { Download, Top } from '@element-plus/icons-vue'
/** AI 聊天对话 列表 */ /** AI 聊天对话 列表 */
defineOptions({ name: 'AiChat' }) defineOptions({ name: 'AiChat' })

View File

@ -47,10 +47,10 @@
<el-form-item label="抄送人" prop="copyUserIds"> <el-form-item label="抄送人" prop="copyUserIds">
<el-select v-model="auditForms[index].copyUserIds" multiple placeholder="请选择抄送人"> <el-select v-model="auditForms[index].copyUserIds" multiple placeholder="请选择抄送人">
<el-option <el-option
v-for="item in userOptions" v-for="itemx in userOptions"
:key="item.id" :key="itemx.id"
:label="item.nickname" :label="itemx.nickname"
:value="item.id" :value="itemx.id"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>

View File

@ -76,7 +76,7 @@
type="primary" type="primary"
plain plain
v-hasPermi="['bpm:process-instance:query']" v-hasPermi="['bpm:process-instance:query']"
@click="handleCreate()" @click="handleCreate(undefined)"
> >
<Icon icon="ep:plus" class="mr-5px" /> 发起流程 <Icon icon="ep:plus" class="mr-5px" /> 发起流程
</el-button> </el-button>
@ -146,7 +146,7 @@
> >
取消 取消
</el-button> </el-button>
<el-button link type="primary" v-else @click="handleCreate(scope.row.id)"> <el-button link type="primary" v-else @click="handleCreate(scope.row)">
重新发起 重新发起
</el-button> </el-button>
</template> </template>
@ -167,6 +167,8 @@ import { dateFormatter, formatPast2 } from '@/utils/formatTime'
import { ElMessageBox } from 'element-plus' import { ElMessageBox } from 'element-plus'
import * as ProcessInstanceApi from '@/api/bpm/processInstance' import * as ProcessInstanceApi from '@/api/bpm/processInstance'
import { CategoryApi } from '@/api/bpm/category' import { CategoryApi } from '@/api/bpm/category'
import { ProcessInstanceVO } from '@/api/bpm/processInstance'
import * as DefinitionApi from '@/api/bpm/definition'
defineOptions({ name: 'BpmProcessInstanceMy' }) defineOptions({ name: 'BpmProcessInstanceMy' })
@ -214,10 +216,22 @@ const resetQuery = () => {
} }
/** 发起流程操作 **/ /** 发起流程操作 **/
const handleCreate = (id) => { const handleCreate = async (row?: ProcessInstanceVO) => {
router.push({ //
if (row?.id) {
const processDefinitionDetail = await DefinitionApi.getProcessDefinition(
row.processDefinitionId
)
debugger
if (processDefinitionDetail.formType === 20) {
message.error('重新发起流程失败,原因:该流程使用业务表单,不支持重新发起')
return
}
}
//
await router.push({
name: 'BpmProcessInstanceCreate', name: 'BpmProcessInstanceCreate',
query: { processInstanceId: id } query: { processInstanceId: row?.id }
}) })
} }

View File

@ -206,7 +206,8 @@ const handleMaster = async (id) => {
const handleTest = async (id) => { const handleTest = async (id) => {
try { try {
const response = await FileConfigApi.testFileConfig(id) const response = await FileConfigApi.testFileConfig(id)
message.alert('测试通过,上传文件成功!访问地址:' + response) await message.confirm('是否要访问该文件?', '测试上传成功')
window.open(response, '_blank')
} catch {} } catch {}
} }

View File

@ -86,7 +86,7 @@ const getTagColor = computed(() => (getIsOpen.value ? 'success' : 'red')) // Web
/** 发起 WebSocket 连接 */ /** 发起 WebSocket 连接 */
const { status, data, send, close, open } = useWebSocket(server.value, { const { status, data, send, close, open } = useWebSocket(server.value, {
autoReconnect: false, autoReconnect: true,
heartbeat: true heartbeat: true
}) })

View File

@ -56,7 +56,7 @@
width="180" width="180"
:formatter="dateFormatter" :formatter="dateFormatter"
/> />
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center" min-width="180">
<template #default="scope"> <template #default="scope">
<el-button <el-button
link link
@ -66,6 +66,15 @@
> >
编辑 编辑
</el-button> </el-button>
<el-button
link
type="primary"
v-if="scope.row.parentId > 0"
@click="handleViewSpu(scope.row.id)"
v-hasPermi="['product:spu:query']"
>
查看商品
</el-button>
<el-button <el-button
link link
type="danger" type="danger"
@ -142,6 +151,15 @@ const handleDelete = async (id: number) => {
} catch {} } catch {}
} }
/** 查看商品操作 */
const router = useRouter() //
const handleViewSpu = (id: number) => {
router.push({
name: 'ProductSpu',
query: { categoryId: id }
})
}
/** 初始化 **/ /** 初始化 **/
onMounted(() => { onMounted(() => {
getList() getList()

View File

@ -63,7 +63,7 @@ import SkuForm from './SkuForm.vue'
import DeliveryForm from './DeliveryForm.vue' import DeliveryForm from './DeliveryForm.vue'
import { convertToInteger, floatToFixed2, formatToFraction } from '@/utils' import { convertToInteger, floatToFixed2, formatToFraction } from '@/utils'
defineOptions({ name: 'ProductSpuForm' }) defineOptions({ name: 'ProductSpuAdd' })
const { t } = useI18n() // const { t } = useI18n() //
const message = useMessage() // const message = useMessage() //

View File

@ -244,6 +244,7 @@ import * as ProductCategoryApi from '@/api/mall/product/category'
defineOptions({ name: 'ProductSpu' }) defineOptions({ name: 'ProductSpu' })
const message = useMessage() // const message = useMessage() //
const route = useRoute() //
const { t } = useI18n() // const { t } = useI18n() //
const { push } = useRouter() // const { push } = useRouter() //
@ -431,6 +432,11 @@ onActivated(() => {
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
// categoryId
if (route.query.categoryId) {
queryParams.value.categoryId = Number(route.query.categoryId)
}
//
await getTabsCount() await getTabsCount()
await getList() await getList()
// //

View File

@ -52,9 +52,6 @@
v-model="formData.config.mchKey" v-model="formData.config.mchKey"
placeholder="请输入商户密钥" placeholder="请输入商户密钥"
clearable clearable
:style="{ width: '100%' }"
type="textarea"
:autosize="{ minRows: 8, maxRows: 8 }"
/> />
</el-form-item> </el-form-item>
<el-form-item <el-form-item
@ -92,9 +89,6 @@
v-model="formData.config.apiV3Key" v-model="formData.config.apiV3Key"
placeholder="请输入 API V3 密钥" placeholder="请输入 API V3 密钥"
clearable clearable
:style="{ width: '100%' }"
type="textarea"
:autosize="{ minRows: 8, maxRows: 8 }"
/> />
</el-form-item> </el-form-item>
<el-form-item <el-form-item
@ -126,35 +120,13 @@
</el-button> </el-button>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label-width="180px" label="证书序列号" prop="config.certSerialNo">
label-width="180px"
label="apiclient_cert.pem证书"
prop="config.privateCertContent"
>
<el-input <el-input
v-model="formData.config.privateCertContent" v-model="formData.config.certSerialNo"
type="textarea" placeholder="请输入证书序列号"
placeholder="请上传apiclient_cert.pem证书" clearable
readonly
:autosize="{ minRows: 8, maxRows: 8 }"
:style="{ width: '100%' }"
/> />
</el-form-item> </el-form-item>
<el-form-item label-width="180px" label="" prop="privateCertContentFile">
<el-upload
ref="privateCertContentFile"
:limit="1"
accept=".pem"
action=""
:before-upload="pemFileBeforeUpload"
:http-request="privateCertContentUpload"
>
<el-button type="primary">
<Icon icon="ep:upload" class="mr-5px" />
点击上传
</el-button>
</el-upload>
</el-form-item>
</div> </div>
<el-form-item label-width="180px" label="备注" prop="remark"> <el-form-item label-width="180px" label="备注" prop="remark">
<el-input v-model="formData.remark" :style="{ width: '100%' }" /> <el-input v-model="formData.remark" :style="{ width: '100%' }" />
@ -193,7 +165,7 @@ const formData = ref<any>({
mchKey: '', mchKey: '',
keyContent: '', keyContent: '',
privateKeyContent: '', privateKeyContent: '',
privateCertContent: '', certSerialNo: '',
apiV3Key: '' apiV3Key: ''
} }
}) })
@ -210,8 +182,8 @@ const formRules = {
'config.privateKeyContent': [ 'config.privateKeyContent': [
{ required: true, message: '请上传 apiclient_key.pem 证书', trigger: 'blur' } { required: true, message: '请上传 apiclient_key.pem 证书', trigger: 'blur' }
], ],
'config.privateCertContent': [ 'config.certSerialNo': [
{ required: true, message: '请上传 apiclient_cert.pem证 书', trigger: 'blur' } { required: true, message: '请输入证书序列号', trigger: 'blur' }
], ],
'config.apiV3Key': [{ required: true, message: '请上传 api V3 密钥值', trigger: 'blur' }] 'config.apiV3Key': [{ required: true, message: '请上传 api V3 密钥值', trigger: 'blur' }]
} }
@ -278,7 +250,7 @@ const resetForm = (appId, code) => {
mchKey: '', mchKey: '',
keyContent: '', keyContent: '',
privateKeyContent: '', privateKeyContent: '',
privateCertContent: '', certSerialNo: '',
apiV3Key: '' apiV3Key: ''
} }
} }
@ -286,7 +258,7 @@ const resetForm = (appId, code) => {
} }
/** /**
* apiclient_cert.p12apiclient_cert.pemapiclient_key.pem 上传前的校验 * apiclient_cert.p12apiclient_key.pem 上传前的校验
*/ */
const fileBeforeUpload = (file, fileAccept) => { const fileBeforeUpload = (file, fileAccept) => {
let format = '.' + file.name.split('.')[1] let format = '.' + file.name.split('.')[1]
@ -321,17 +293,6 @@ const privateKeyContentUpload = async (event) => {
readFile.readAsText(event.file) readFile.readAsText(event.file)
} }
/**
* 读取 apiclient_cert.pem privateCertContent 字段
*/
const privateCertContentUpload = async (event) => {
const readFile = new FileReader()
readFile.onload = (e: any) => {
formData.value.config.privateCertContent = e.target.result
}
readFile.readAsText(event.file)
}
/** /**
* 读取 apiclient_cert.p12 keyContent 字段 * 读取 apiclient_cert.p12 keyContent 字段
*/ */

View File

@ -62,7 +62,9 @@
<el-divider /> <el-divider />
<el-descriptions :column="1" label-class-name="desc-label" direction="vertical" border> <el-descriptions :column="1" label-class-name="desc-label" direction="vertical" border>
<el-descriptions-item label="支付通道异步回调内容"> <el-descriptions-item label="支付通道异步回调内容">
<el-text>{{ detailData.extension.channelNotifyData }}</el-text> <el-text style="white-space: pre-wrap; word-break: break-word">
{{ detailData.extension.channelNotifyData }}
</el-text>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</Dialog> </Dialog>

View File

@ -62,7 +62,9 @@
</el-descriptions> </el-descriptions>
<el-descriptions :column="1" label-class-name="desc-label" direction="vertical" border> <el-descriptions :column="1" label-class-name="desc-label" direction="vertical" border>
<el-descriptions-item label="支付通道异步回调内容"> <el-descriptions-item label="支付通道异步回调内容">
{{ refundDetail.channelNotifyData }} <el-text style="white-space: pre-wrap; word-break: break-word">
{{ refundDetail.channelNotifyData }}
</el-text>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</Dialog> </Dialog>

View File

@ -8,15 +8,30 @@
:inline="true" :inline="true"
label-width="68px" label-width="68px"
> >
<el-form-item label="用户昵称" prop="nickname"> <el-form-item label="用户编号" prop="userId">
<el-input <el-input
v-model="queryParams.nickname" v-model="queryParams.userId"
placeholder="请输入用户昵称" placeholder="请输入用户编号"
clearable clearable
@keyup.enter="handleQuery" @keyup.enter="handleQuery"
class="!w-240px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="用户类型" prop="userType">
<el-select
v-model="queryParams.userType"
placeholder="请选择用户类型"
clearable
class="!w-240px"
>
<el-option
v-for="dict in getIntDictOptions(DICT_TYPE.USER_TYPE)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="创建时间" prop="createTime"> <el-form-item label="创建时间" prop="createTime">
<el-date-picker <el-date-picker
v-model="queryParams.createTime" v-model="queryParams.createTime"
@ -39,12 +54,7 @@
<ContentWrap> <ContentWrap>
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
<el-table-column label="编号" align="center" prop="id" /> <el-table-column label="编号" align="center" prop="id" />
<el-table-column label="用户昵称" align="center" prop="nickname" /> <el-table-column label="用户编号" align="center" prop="userId" />
<el-table-column label="头像" align="center" prop="avatar" width="80px">
<template #default="scope">
<img :src="scope.row.avatar" style="width: 40px" />
</template>
</el-table-column>
<el-table-column label="用户类型" align="center" prop="userType"> <el-table-column label="用户类型" align="center" prop="userType">
<template #default="scope"> <template #default="scope">
<dict-tag :type="DICT_TYPE.USER_TYPE" :value="scope.row.userType" /> <dict-tag :type="DICT_TYPE.USER_TYPE" :value="scope.row.userType" />
@ -97,20 +107,17 @@ import WalletForm from './WalletForm.vue'
defineOptions({ name: 'WalletBalance' }) defineOptions({ name: 'WalletBalance' })
const message = useMessage() //
const { t } = useI18n() //
const loading = ref(true) // const loading = ref(true) //
const total = ref(0) // const total = ref(0) //
const list = ref([]) // const list = ref([]) //
const queryParams = reactive({ const queryParams = reactive({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
nickname: null, userId: null,
userType: null,
createTime: [] createTime: []
}) })
const queryFormRef = ref() // const queryFormRef = ref() //
const exportLoading = ref(false) //
/** 查询列表 */ /** 查询列表 */
const getList = async () => { const getList = async () => {

View File

@ -35,10 +35,10 @@
class="!w-240px" class="!w-240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="操作模块" prop="subType"> <el-form-item label="操作" prop="subType">
<el-input <el-input
v-model="queryParams.subType" v-model="queryParams.subType"
placeholder="请输入操作模块" placeholder="请输入操作"
clearable clearable
@keyup.enter="handleQuery" @keyup.enter="handleQuery"
class="!w-240px" class="!w-240px"
@ -105,7 +105,7 @@
:formatter="dateFormatter" :formatter="dateFormatter"
/> />
<el-table-column label="业务编号" align="center" prop="bizId" width="120" /> <el-table-column label="业务编号" align="center" prop="bizId" width="120" />
<el-table-column label="IP" align="center" prop="userIp" width="120" /> <el-table-column label="操作 IP" align="center" prop="userIp" width="120" />
<el-table-column label="操作" align="center" fixed="right" width="60"> <el-table-column label="操作" align="center" fixed="right" width="60">
<template #default="scope"> <template #default="scope">
<el-button <el-button

View File

@ -18,7 +18,12 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="启用状态" prop="status"> <el-form-item label="启用状态" prop="status">
<el-select v-model="queryParams.status" placeholder="请选择启用状态" clearable> <el-select
v-model="queryParams.status"
placeholder="请选择启用状态"
class="!w-240px"
clearable
>
<el-option <el-option
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)" v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key="dict.value" :key="dict.value"