Merge branch 'master' of https://gitee.com/xingyuv/yudao-ui-admin-vben
commit
399dc929a7
|
@ -6,9 +6,7 @@ import { ErrorMessageMode } from '@/types/axios'
|
|||
enum Api {
|
||||
Login = '/system/auth/login',
|
||||
Logout = '/system/auth/logout',
|
||||
GetUserInfo = '/system/auth/get-permission-info',
|
||||
GetPermCode = '/getPermCode',
|
||||
TestRetry = '/testRetry'
|
||||
GetUserInfo = '/system/auth/get-permission-info'
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -33,23 +31,6 @@ export function getUserInfo() {
|
|||
return defHttp.get<GetUserInfoModel>({ url: Api.GetUserInfo }, { errorMessageMode: 'none' })
|
||||
}
|
||||
|
||||
export function getPermCode() {
|
||||
return defHttp.get<string[]>({ url: Api.GetPermCode })
|
||||
}
|
||||
|
||||
export function doLogout() {
|
||||
return defHttp.get({ url: Api.Logout })
|
||||
}
|
||||
|
||||
export function testRetry() {
|
||||
return defHttp.get(
|
||||
{ url: Api.TestRetry },
|
||||
{
|
||||
retryRequest: {
|
||||
isOpenRetry: true,
|
||||
count: 5,
|
||||
waitTime: 1000
|
||||
}
|
||||
}
|
||||
)
|
||||
return defHttp.post({ url: Api.Logout })
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<PageWrapper>
|
||||
<div class="m-0-auto w-200">
|
||||
<div class="step-form-form">
|
||||
<Steps :current="current">
|
||||
<Step title="生成信息" />
|
||||
<Step title="字段信息" />
|
||||
|
@ -54,7 +54,6 @@ function handleStep1Next(step1Values: any) {
|
|||
current.value++
|
||||
basicInfoValue.value = step1Values
|
||||
state.initSetp2 = true
|
||||
console.info(step1Values)
|
||||
}
|
||||
|
||||
function handleStepPrev() {
|
||||
|
@ -66,7 +65,6 @@ async function handleStep2Next(step2Values: any) {
|
|||
columnsInfoValue.value = step2Values
|
||||
await handleSubmit()
|
||||
state.initSetp3 = true
|
||||
console.log(step2Values)
|
||||
}
|
||||
|
||||
async function handleSubmit() {
|
||||
|
@ -95,3 +93,10 @@ onMounted(async () => {
|
|||
await getList()
|
||||
})
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.step-form-form {
|
||||
width: 750px;
|
||||
margin: 0 auto;
|
||||
margin-top: 10px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -5,15 +5,11 @@
|
|||
</div>
|
||||
<Divider />
|
||||
<h3>说明</h3>
|
||||
<h4>转账到支付宝账户</h4>
|
||||
<p>
|
||||
如果需要,这里可以放一些关于产品的常见问题说明。如果需要,这里可以放一些关于产品的常见问题说明。如果需要,这里可以放一些关于产品的常见问题说明。
|
||||
</p>
|
||||
<h4>基本信息</h4>
|
||||
<p> 配置生成的基本信息 </p>
|
||||
|
||||
<h4>转账到银行卡</h4>
|
||||
<p>
|
||||
如果需要,这里可以放一些关于产品的常见问题说明。如果需要,这里可以放一些关于产品的常见问题说明。如果需要,这里可以放一些关于产品的常见问题说明。
|
||||
</p>
|
||||
<h4>生成信息</h4>
|
||||
<p> 配置生成生成的详细信息。 </p>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
|
|
|
@ -4,18 +4,13 @@
|
|||
<BasicTable :dataSource="columnsInfo" @register="registerTable" @row-click="handleEdit" />
|
||||
</div>
|
||||
<Divider />
|
||||
<a-button @click="customResetFunc">上一步</a-button>
|
||||
<a-button @click="customSubmitFunc">下一步</a-button>
|
||||
<div class="step2-button">
|
||||
<a-button @click="customResetFunc">上一步</a-button>
|
||||
<a-button type="primary" @click="customSubmitFunc">下一步</a-button>
|
||||
</div>
|
||||
<h3>说明</h3>
|
||||
<h4>转账到支付宝账户</h4>
|
||||
<p>
|
||||
如果需要,这里可以放一些关于产品的常见问题说明。如果需要,这里可以放一些关于产品的常见问题说明。如果需要,这里可以放一些关于产品的常见问题说明。
|
||||
</p>
|
||||
|
||||
<h4>转账到银行卡</h4>
|
||||
<p>
|
||||
如果需要,这里可以放一些关于产品的常见问题说明。如果需要,这里可以放一些关于产品的常见问题说明。如果需要,这里可以放一些关于产品的常见问题说明。
|
||||
</p>
|
||||
<h4>配置字段</h4>
|
||||
<p> 配置表的字段类型,增删改查,字典等 </p>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
|
@ -62,6 +57,11 @@ function handleEdit(record: EditRecordRow) {
|
|||
margin: 0 auto;
|
||||
}
|
||||
|
||||
&-button {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 0 0 12px;
|
||||
font-size: 16px;
|
||||
|
@ -80,12 +80,4 @@ function handleEdit(record: EditRecordRow) {
|
|||
color: @text-color;
|
||||
}
|
||||
}
|
||||
|
||||
.pay-select {
|
||||
width: 20%;
|
||||
}
|
||||
|
||||
.pay-input {
|
||||
width: 70%;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -1 +1 @@
|
|||
<template><span>保存成功</span></template>
|
||||
<template><span>保存成功,其他功能待完善</span></template>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<BasicModal v-bind="$attrs" :width="1000" @register="registerModal" title="预览代码">
|
||||
<BasicModal v-bind="$attrs" :defaultFullscreen="true" @register="registerModal" title="预览代码">
|
||||
<div class="flex">
|
||||
<Card class="w-1/3 w-full">
|
||||
<Card class="w-1/4">
|
||||
<BasicTree
|
||||
title="文件夹列表"
|
||||
toolbar
|
||||
|
@ -12,7 +12,7 @@
|
|||
@select="handleSelect"
|
||||
/>
|
||||
</Card>
|
||||
<Card class="w-2/3 w-full">
|
||||
<Card class="w-3/4">
|
||||
<Tabs v-model:activeKey="activeKey">
|
||||
<TabPane v-for="item in previewCodes" :key="item.filePath" :tab="item.filePath.substring(item.filePath.lastIndexOf('/') + 1)">
|
||||
<a-button type="link" style="float: right" @click="copy(item.code)">复制</a-button>
|
||||
|
|
|
@ -3,6 +3,15 @@ import { getListSimpleUsers } from '@/api/system/user'
|
|||
import { BasicColumn, FormSchema, useRender } from '@/components/Table'
|
||||
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
||||
|
||||
let userOptions: any[] = []
|
||||
|
||||
async function getUserList() {
|
||||
const res = await getListSimpleUsers()
|
||||
userOptions = res
|
||||
}
|
||||
|
||||
await getUserList()
|
||||
|
||||
export const columns: BasicColumn[] = [
|
||||
{
|
||||
title: '部门名称',
|
||||
|
@ -12,8 +21,19 @@ export const columns: BasicColumn[] = [
|
|||
},
|
||||
{
|
||||
title: '负责人',
|
||||
dataIndex: 'leader',
|
||||
width: 120
|
||||
dataIndex: 'leaderUserId',
|
||||
width: 120,
|
||||
customRender: ({ text }) => {
|
||||
if (!text) {
|
||||
return '未设置'
|
||||
}
|
||||
for (const user of userOptions) {
|
||||
if (text === user.id) {
|
||||
return user.nickname
|
||||
}
|
||||
}
|
||||
return '未知【' + text + '】'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '排序',
|
||||
|
@ -94,7 +114,7 @@ export const formSchema: FormSchema[] = [
|
|||
field: 'leaderUserId',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getListSimpleUsers(),
|
||||
options: () => getListSimpleUsers(),
|
||||
labelField: 'nickname',
|
||||
valueField: 'id'
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { BasicColumn, FormSchema, useRender } from '@/components/Table'
|
||||
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
||||
import { DICT_TYPE, getBoolDictOptions } from '@/utils/dict'
|
||||
|
||||
export const columns: BasicColumn[] = [
|
||||
{
|
||||
|
@ -100,10 +100,9 @@ export const formSchema: FormSchema[] = [
|
|||
{
|
||||
label: '是否开启 SSL',
|
||||
field: 'sslEnable',
|
||||
component: 'Select',
|
||||
defaultValue: 0,
|
||||
component: 'Switch',
|
||||
componentProps: {
|
||||
options: getIntDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING)
|
||||
options: getBoolDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING)
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
@ -147,13 +147,13 @@ export const formSchema: FormSchema[] = [
|
|||
label: '用户名称',
|
||||
field: 'username',
|
||||
component: 'Input',
|
||||
ifShow: ({ values }) => values.id !== undefined
|
||||
ifShow: ({ values }) => !!!values.id
|
||||
},
|
||||
{
|
||||
label: '用户密码',
|
||||
field: 'password',
|
||||
component: 'InputPassword',
|
||||
ifShow: ({ values }) => values.id === undefined
|
||||
ifShow: ({ values }) => !!!values.id
|
||||
},
|
||||
{
|
||||
label: '账号额度',
|
||||
|
|
Loading…
Reference in New Issue