daofu-gov-pc/src/views/system/setting/protocol.vue

89 lines
2.1 KiB
Vue
Raw Normal View History

2024-01-23 17:52:02 +08:00
<template>
2024-01-26 09:02:58 +08:00
<div class="percentage-content">
<el-radio-group class="rg" v-model="tabIndex">
<template v-for="item in tabs" :key="item.val">
<el-radio-button class="rb" :label="item.val">{{
item.name
}}</el-radio-button>
</template>
</el-radio-group>
<div class="content">
<div class="qedit">
<QuillEditor
class="qedit"
:value="form.content"
@updateValue="getMsg"
/>
</div>
<div class="option">
<el-button type="primary" class="btn">保存</el-button>
</div>
</div>
</div>
</template>
<script lang='ts' setup>
import { onMounted, reactive, ref } from "vue";
import { ElMessageBox } from "element-plus";
const tabIndex = ref(0);
const tabs = ref([
{ name: "用户协议", val: 0 },
{ name: "隐私协议", val: 1 },
]);
const form = ref<any>({ content: "" });
const getMsg = (val) => {
form.content = val;
};
</script>
<style lang="scss" scoped>
.percentage-content {
2024-02-06 10:46:11 +08:00
height: auto;
2024-01-26 09:02:58 +08:00
display: flex;
flex-direction: column;
2024-02-06 10:46:11 +08:00
.rg {
padding: 16px;
background: #fff;
box-shadow: 0 0 6px rgb(0 120 255 / 10%);
border-radius: 6px;
display: flex;
flex-direction: row;
margin-bottom: 10px;
:deep(.el-radio-button__inner) {
min-width: 150px;
}
2024-01-26 09:02:58 +08:00
}
2024-02-06 10:46:11 +08:00
.content {
width: 100%;
background: #fff;
border-radius: 0.26042vw;
box-shadow: 0 0 0.41667vw 0 rgb(8 33 85 / 10%);
padding: 0.83333vw;
overflow-y: auto;
overflow-x: hidden !important;
box-sizing: border-box;
box-sizing: border-box;
box-sizing: border-box;
box-sizing: border-box;
box-sizing: border-box;
position: relative;
display: flex;
flex-direction: column;
.qedit {
height: 63vh;
}
.option {
margin: 50px 0 10px;
display: flex;
align-items: center;
justify-content: center;
.btn {
width: 10vw;
}
}
2024-01-26 09:02:58 +08:00
}
}
</style>