This commit is contained in:
lcw
2026-01-16 12:40:42 +08:00
parent 2ea84f248c
commit 10853312f2
120 changed files with 23881 additions and 617 deletions

View File

@ -111,7 +111,6 @@
<script setup>
import * as rule from "@/utils/rules.js";
import * as MOSTY from "@/components/MyComponents/index";
import { ElMessage } from "element-plus";
import { defineProps, watch, ref, onMounted, nextTick } from "vue";
import { selectUnAccreditPage, selectUserDeptPage } from "@/api/user-manage";
const props = defineProps({

View File

@ -1,7 +1,8 @@
<template>
<div>
<template v-for="(item, index) in options">
<template v-if="values.includes(item.value)">
<template v-if="values.includes(item.value||item.itemValue)">
<span
v-if="item.elTagType == 'default' || item.elTagType == '' || tag == false"
:key="item.value"
@ -9,7 +10,7 @@
:class="item.elTagType"
@click="handleItem(item)"
:style="{color: props.color}"
>{{ item.label || item.zdmc }}</span>
>{{ item.label || item.zdmc||item.itemName }}</span>
<el-tag
v-else
:disable-transitions="true"
@ -18,7 +19,7 @@
:type="item.elTagType === 'primary' ? '' : item.elTagType"
@click="handleItem(item)"
:class="item.elTagType"
>{{ item.label || item.zdmc }}</el-tag
>{{ item.label || item.zdmc||item.itemName }}</el-tag
>
</template>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div>
<el-dialog v-model="modelValue" title="文件解析" width="1000px" :show-close="true" :center="true" :close-on-click-modal="false" :before-close="handleClose" >
<el-dialog :model-value="modelValue" title="文件解析" width="1000px" :show-close="true" :center="true" :close-on-click-modal="false" :before-close="handleClose" >
<div class="flex align-center">
<h3>提取文件类型</h3>
<el-radio-group v-model="active" @change="changeRadio">
@ -319,19 +319,15 @@ const uploadFile = (file) =>{
// 刷新js
// 全局变量用于跟踪OCR模型是否已经初始化
let ocrModelInitialized = false;
// 只初始化一次OCR模型
const frashJs = async () =>{
if(!ocrModelInitialized){
if(!imgIsLoad){
try {
await ocr.init();// 模型初始化
ocrModelInitialized = true;
imgIsLoad = true;
proxy.$message({ type: "success", message: "加载成功" });
} catch (err) {
proxy.$message({ type: "error", message: "加载失败,请刷新页面" });
ocrModelInitialized = false;
imgIsLoad = false;
}
}
}

View File

@ -1,6 +1,6 @@
<template>
<div class="form-item-box" :style="{ width: width }">
<el-checkbox-group :model-value="localValue" @change="handleCheckAllChange">
<el-checkbox-group :model-value="modelValue" @change="handleCheckAllChange">
<el-checkbox
v-for="item in checkList"
:key="item.value"
@ -34,21 +34,15 @@ const props = defineProps({
type: String
}
});
const localValue = ref(props.modelValue);
watch(
() => props.modelValue,
(val) => {
localValue.value = val;
console.log(val, "val");
},
{ deep: true }
);
const emits = defineEmits(["update:modelValue"]);
const handleCheckAllChange = (e) => {
localValue.value = e;
emits("update:modelValue", e);
};
</script>

View File

@ -3,7 +3,7 @@
<div class="form-item-box choose-icon-zj" :style="{ width: width }">
<el-autocomplete
v-bind="$attrs"
v-model="modelValue"
:model-value="modelValue"
:fetch-suggestions="querySearch"
popper-class="choose-icon-zj-autocomplete"
:placeholder="placeholder"

View File

@ -1,6 +1,6 @@
<template>
<div class="form-item-box zj-email-wrap" :style="{ width: width }">
<el-autocomplete v-model="email" v-bind="$attrs" :placeholder="placeholder" :fetch-suggestions="querySearch"
<el-autocomplete :model-value="email" v-bind="$attrs" :placeholder="placeholder" :fetch-suggestions="querySearch"
:trigger-on-focus="false" class="inline-input" @select="handleSelect" @input="onInput" />
<!-- <el-icon class="errorIcon">
<circle-close-filled />

View File

@ -5,7 +5,7 @@
:placeholder="placeholder"
:options="tableData"
v-bind="$attrs"
v-model="modelValue"
:model-value="modelValue"
@change="handleChange"
:props="endProps"
:filterable="filterable"

View File

@ -6,7 +6,7 @@
<el-input
:placeholder="placeholder"
v-bind="$attrs"
v-model="modelValue"
:model-value="modelValue"
@input="onInput"
></el-input>
<!-- <el-icon class="errorIcon"><circle-close-filled /></el-icon>

View File

@ -1,6 +1,6 @@
<template>
<div class="form-item-box" :style="{ width: width }">
<el-input :placeholder="placeholder" v-bind="$attrs" v-model="modelValue" @input="onInput" ></el-input>
<el-input :placeholder="placeholder" v-bind="$attrs" :model-value="modelValue" @input="onInput" ></el-input>
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div class="form-item-box" :style="{ width: width }">
<el-input :placeholder="placeholder" v-bind="$attrs" v-model="modelValue" @input="onInput" ></el-input>
<el-input :placeholder="placeholder" v-bind="$attrs" :model-value="modelValue" @input="onInput" ></el-input>
</div>
</template>

View File

@ -3,7 +3,7 @@
<el-select
:disabled="props.disabled"
v-bind="$attrs"
v-model="modelValue"
:model-value="modelValue"
@change="hanlderSelect"
:popper-class="selectOption.length > 20 ? 'nation-select' : ''"
:placeholder="placeholder"
@ -11,8 +11,8 @@
<el-option
v-for="item in dictEnum"
:key="item.value"
:label="item.zdmc || item.label"
:value="item.dm || item.value"
:label="item.zdmc || item.label||item.itemName"
:value="item.dm || item.value||item.itemValue"
>
</el-option>
</el-select>

View File

@ -2,7 +2,7 @@
<div class="form-item-box" :style="{ width: width }">
<el-select
:disabled="disabled"
v-model="sex"
:model-value="sex"
placeholder="请选择性别"
@change="onChange"
>

View File

@ -1,10 +1,10 @@
<template>
<el-dialog v-model="modelValue" center width="1000px" :destroy-on-close="true" title="报告模板" @close="close" :close-on-click-modal="false">
<el-dialog :model-value="modelValue" center width="1000px" :destroy-on-close="true" title="报告模板" @close="close" :close-on-click-modal="false">
<div class="cntBox">
<!-- 工具栏 -->
<Toolbar style="border-bottom: 1px solid #ccc" :editor="editorRef" :defaultConfig="toolbarConfig" :mode="mode" />
<!-- 编辑器 -->
<Editor :style="`height: ${props.heightNumber}px; overflow-y: hidden`" v-model="textContent" :defaultConfig="editorConfig" :mode="mode" @onCreated="handleCreated" @onChange="handChange" />
<Editor :style="`height: ${props.heightNumber}px; overflow-y: hidden`" :model-value="textContent" :defaultConfig="editorConfig" :mode="mode" @onCreated="handleCreated" @onChange="handChange" />
</div>
<template #footer>
<!-- <el-button type="primary" @click="SaveReport">保存</el-button> -->