style: 优化样式
This commit is contained in:
parent
2d7e00031e
commit
d5bbf48d01
@ -157,7 +157,7 @@ class PdfSplitHandle(BaseSplitHandle):
|
|||||||
chapter_text += text # 提取文本
|
chapter_text += text # 提取文本
|
||||||
|
|
||||||
# 保存章节内容和章节标题
|
# 保存章节内容和章节标题
|
||||||
chapters.append({"title": chapter_title, "content": chapter_text})
|
chapters.append({"title": chapter_title, "content": chapter_text if chapter_text else chapter_title})
|
||||||
return chapters
|
return chapters
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
:close-on-press-escape="false"
|
:close-on-press-escape="false"
|
||||||
>
|
>
|
||||||
<el-form label-position="top" ref="limitFormRef" :model="form" :rules="rules">
|
<el-form label-position="top" ref="limitFormRef" :model="form">
|
||||||
<!-- <el-form-item
|
<!-- <el-form-item
|
||||||
:label="$t('views.applicationOverview.appInfo.LimitDialog.showSourceLabel')"
|
:label="$t('views.applicationOverview.appInfo.LimitDialog.showSourceLabel')"
|
||||||
@click.prevent
|
@click.prevent
|
||||||
@ -21,6 +21,7 @@
|
|||||||
:step="1"
|
:step="1"
|
||||||
:value-on-clear="0"
|
:value-on-clear="0"
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
|
style="width: 268px"
|
||||||
step-strictly
|
step-strictly
|
||||||
/>
|
/>
|
||||||
<span class="ml-4">{{
|
<span class="ml-4">{{
|
||||||
@ -32,7 +33,7 @@
|
|||||||
:label="$t('views.applicationOverview.appInfo.LimitDialog.authentication')"
|
:label="$t('views.applicationOverview.appInfo.LimitDialog.authentication')"
|
||||||
v-hasPermission="new ComplexPermission([], ['x-pack'], 'OR')"
|
v-hasPermission="new ComplexPermission([], ['x-pack'], 'OR')"
|
||||||
>
|
>
|
||||||
<el-switch size="small" v-model="form.authentication"></el-switch>
|
<el-switch size="small" v-model="form.authentication" @change="firstGeneration"></el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
prop="authentication_value"
|
prop="authentication_value"
|
||||||
@ -40,17 +41,32 @@
|
|||||||
:label="$t('views.applicationOverview.appInfo.LimitDialog.authenticationValue')"
|
:label="$t('views.applicationOverview.appInfo.LimitDialog.authenticationValue')"
|
||||||
v-hasPermission="new ComplexPermission([], ['x-pack'], 'OR')"
|
v-hasPermission="new ComplexPermission([], ['x-pack'], 'OR')"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input v-model="form.authentication_value" readonly style="width: 268px" disabled>
|
||||||
v-model="form.authentication_value"
|
<template #append>
|
||||||
readonly
|
<div class="button-container">
|
||||||
style="width: 300px; margin-right: 10px"
|
<el-tooltip content="复制" placement="top">
|
||||||
></el-input>
|
<el-button
|
||||||
<el-button type="primary" text @click="copyClick(form.authentication_value)">
|
type="primary"
|
||||||
|
text
|
||||||
|
@click="copyClick(form.authentication_value)"
|
||||||
|
style="width: 24px; height: 24px"
|
||||||
|
>
|
||||||
<AppIcon iconName="app-copy"></AppIcon>
|
<AppIcon iconName="app-copy"></AppIcon>
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button @click="refreshAuthentication" type="primary" text style="margin-left: 1px">
|
</el-tooltip>
|
||||||
|
<el-tooltip content="刷新" placement="top">
|
||||||
|
<el-button
|
||||||
|
@click="refreshAuthentication"
|
||||||
|
type="primary"
|
||||||
|
text
|
||||||
|
style="width: 24px; height: 24px; margin-left: 20px"
|
||||||
|
>
|
||||||
<el-icon><RefreshRight /></el-icon>
|
<el-icon><RefreshRight /></el-icon>
|
||||||
</el-button>
|
</el-button>
|
||||||
|
</el-tooltip>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('views.applicationOverview.appInfo.LimitDialog.whitelistLabel')"
|
:label="$t('views.applicationOverview.appInfo.LimitDialog.whitelistLabel')"
|
||||||
@ -88,6 +104,7 @@ import { MsgSuccess, MsgConfirm } from '@/utils/message'
|
|||||||
import { t } from '@/locales'
|
import { t } from '@/locales'
|
||||||
import { copyClick } from '@/utils/clipboard'
|
import { copyClick } from '@/utils/clipboard'
|
||||||
import { ComplexPermission } from '@/utils/permission/type'
|
import { ComplexPermission } from '@/utils/permission/type'
|
||||||
|
import { first } from 'lodash'
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const {
|
const {
|
||||||
@ -104,15 +121,6 @@ const form = ref<any>({
|
|||||||
authentication_value: '',
|
authentication_value: '',
|
||||||
authentication: false
|
authentication: false
|
||||||
})
|
})
|
||||||
const rules: FormRules = {
|
|
||||||
authentication_value: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: '身份验证值不能为空',
|
|
||||||
trigger: 'blur'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
const dialogVisible = ref<boolean>(false)
|
const dialogVisible = ref<boolean>(false)
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
@ -168,6 +176,12 @@ function refreshAuthentication() {
|
|||||||
form.value.authentication_value = generateAuthenticationValue()
|
form.value.authentication_value = generateAuthenticationValue()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function firstGeneration() {
|
||||||
|
if (form.value.authentication && !form.value.authentication_value) {
|
||||||
|
form.value.authentication_value = generateAuthenticationValue()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
defineExpose({ open })
|
defineExpose({ open })
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scope></style>
|
<style lang="scss" scope></style>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user