【新增】 缺少文件

This commit is contained in:
DESKTOP-932OMT8\REN
2025-06-24 11:12:34 +08:00
committed by 陆光LG
parent 8bbe607f68
commit 49a8b7a645
4 changed files with 43 additions and 4 deletions

View File

@@ -40,3 +40,7 @@ export const updateXlsx = async (params: XlsxVO) => {
export const deleteXlsx = async (id: number) => { export const deleteXlsx = async (id: number) => {
return await request.delete({ url: '/wps/xlsx/delete?id=' + id }) return await request.delete({ url: '/wps/xlsx/delete?id=' + id })
} }
export const getXlsxInfo = async (path: String) => {
return await request.get({ url: '/tool/wps/runWpsXlsx?path=' + path })
}

View File

@@ -1,6 +1,7 @@
<template> <template>
<div class="common-page"> <div class="common-page">
<div style="margin-bottom: 30px"> <div style="margin-bottom: 30px">
<button @click="sendMsg">确定保存</button>
<div class="title">Demo 你好我们尊重你的隐私</div> <div class="title">Demo 你好我们尊重你的隐私</div>
<p class="title_12_gray" style="margin-top: 5px"> <p class="title_12_gray" style="margin-top: 5px">
我们将始终保护和尊重你的隐私同时提供应得的透明度和控制 我们将始终保护和尊重你的隐私同时提供应得的透明度和控制
@@ -148,7 +149,7 @@
:type="'switch'" :type="'switch'"
class="ptb_8" class="ptb_8"
/> />
<div v-if="maskDisplay" class="mask" style="height: calc(100% - 40px)"></div> <div v-if="!maskDisplay" class="mask" style="height: calc(100% - 40px)"></div>
</div> </div>
<div class="pb_12"> <div class="pb_12">
<div class="title">删除浏览数据</div> <div class="title">删除浏览数据</div>
@@ -561,12 +562,37 @@
<script lang="ts" setup> <script lang="ts" setup>
import { ref } from 'vue' import { ref } from 'vue'
import commonLine from './commonLine.vue' import commonLine from './commonLine.vue'
import { emitter } from '@/utils/eventBus'
let name = ref('隐私、搜索和服务')
function sendMsg() {
console.log(maskDisplay.value)
// 获取值
if (maskDisplay.value) {
let datas = {
contentIn: "设置" + name.value + "防止跟踪: 打开",
content: 'security@maskDisplay@true'
}
formList.value.push(datas)
} else {
let datas = {
contentIn: "设置" + name.value + "防止跟踪: 关闭",
content: 'security@maskDisplay@false'
}
formList.value.push(datas)
}
emitter.emit('maskDisplay', formList)
}
// 每个表单对象是普通对象
const formList = ref([])
// 跟踪防护-遮罩层 // 跟踪防护-遮罩层
let maskDisplay = ref(false) let maskDisplay = ref(true)
// 跟踪防护 // 跟踪防护
const protectionSwitch = (val: boolean) => { const protectionSwitch = (val: boolean) => {
maskDisplay.value = !val maskDisplay.value = val
} }
let protectionLevel = ref('basic') let protectionLevel = ref('basic')
const handleProtectionLevel = (level: string) => { const handleProtectionLevel = (level: string) => {

9
src/utils/eventBus.ts Normal file
View File

@@ -0,0 +1,9 @@
// src/utils/eventBus.ts
import mitt from 'mitt'
// 定义事件类型(可以根据需要扩展)
type Events = {
maskDisplay: []
}
export const emitter = mitt<Events>()

View File

@@ -278,7 +278,7 @@
</div> </div>
<!-- 表单弹窗添加/修改 --> <!-- 表单弹窗添加/修改 -->
<FileForm ref="FileRef" @success="handleUploadSuccess" /> <FileForm ref="FileRef" @success="handleUploadSuccess" />
<el-dialog v-model="dialogFormVisibleWordInfo" title="考点设置" width="1100px"> <el-dialog v-model="dialogFormVisibleWordInfo" title="考点设置" width="1500px">
<Email /> <Email />
</el-dialog> </el-dialog>
</template> </template>