更新
This commit is contained in:
@@ -24,13 +24,28 @@
|
||||
|
||||
<editor class="mb-10" v-model="formData.privacy_content" height="500"></editor>
|
||||
</el-card>
|
||||
|
||||
</div>
|
||||
<div class="xl:flex">
|
||||
<el-card class="!border-none flex-1 mb-4" shadow="never">
|
||||
<template #header>
|
||||
<span class="font-medium">卫健委备案信息</span>
|
||||
</template>
|
||||
<el-form :model="formData" label-width="80px">
|
||||
<el-form-item label="协议名称">
|
||||
<el-input v-model="formData.health_title" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<editor class="mb-10" v-model="formData.health_content" height="500"></editor>
|
||||
</el-card>
|
||||
</div>
|
||||
<footer-btns v-perms="['setting.web.web_setting/setAgreement']">
|
||||
<el-button type="primary" @click="handleProtocolEdit">保存</el-button>
|
||||
</footer-btns>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" naem="webProtocol">
|
||||
<script setup lang="ts" name="webProtocol">
|
||||
import { getProtocol, setProtocol } from '@/api/setting/website'
|
||||
|
||||
interface formDataObj {
|
||||
@@ -38,15 +53,20 @@ interface formDataObj {
|
||||
service_content: string
|
||||
privacy_title: string
|
||||
privacy_content: string
|
||||
health_title: string
|
||||
health_content: string
|
||||
}
|
||||
const formData = ref<formDataObj>({
|
||||
service_title: '',
|
||||
service_content: '',
|
||||
privacy_title: '',
|
||||
privacy_content: ''
|
||||
privacy_content: '',
|
||||
health_title: '',
|
||||
health_content: ''
|
||||
})
|
||||
const protocolGet = async () => {
|
||||
formData.value = await getProtocol()
|
||||
const data = await getProtocol()
|
||||
Object.assign(formData.value, data)
|
||||
}
|
||||
|
||||
const handleProtocolEdit = async (): Promise<void> => {
|
||||
|
||||
Reference in New Issue
Block a user