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

95 lines
2.0 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 {
height: auto;
display: flex;
flex-direction: column;
.rg {
padding: 16px;
background: #ffffff;
box-shadow: 0px 0px 6px rgba(0, 120, 255, 0.1);
border-radius: 6px;
display: flex;
flex-direction: row;
margin-bottom: 10px;
:deep(.el-radio-button__inner) {
min-width: 150px;
}
}
.content {
width: 100%;
background: #fff;
border-radius: 0.26042vw;
box-shadow: 0 0 0.41667vw 0 rgba(8, 33, 85, 0.1);
padding: 0.83333vw;
overflow-y: auto;
overflow-x: hidden !important;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-o-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
position: relative;
display: flex;
flex-direction: column;
.qedit {
height: 63vh;
}
.option {
margin: 50px 0 10px 0;
display: flex;
align-items: center;
justify-content: center;
.btn {
width: 10vw;
}
}
}
}
</style>