This commit is contained in:
2025-07-29 16:40:38 +08:00
parent b67daf0370
commit 4536c59126
2 changed files with 452 additions and 380 deletions

View File

@@ -23,125 +23,161 @@
v-if="dialogVisible"
style="padding: 0 20px;box-sizing: border-box;height: calc(100% - 40px);overflow-y: auto;"
:style="
addCertificateForm.state == 2 || !showMessages ? 'height:100%' : ''
`
${
addCertificateForm.state == 2 || !showMessages ? 'height:100%;' : ''
}
`
"
>
<!-- 触发按钮 -->
<p
style="cursor: pointer;margin: 0;margin-bottom: 10px;"
v-if="isShowWord"
>
<span @click="triggerUpload">上传 Word</span>
<img
src="../../../assets/img/word-iocn.png"
alt=""
@click="triggerUpload"
/>
<span
style="color:red;float: right;"
v-if="messageList.length > 0"
@click="messageList = []"
<div style="width:300px !important;float:right;background:#fafafa" v-if="markList.length>0">
<el-timeline style="padding-left:10px;margin-top:14px" :reverse="true">
<el-timeline-item
v-for="(activity, index) in markList"
:key="index"
:timestamp="activity.time"
>
<i class="el-icon-delete"></i>
清空已识别的医案
</span>
</p>
<!-- 隐藏上传框 -->
<input
type="file"
ref="uploadInput"
accept=".docx"
@change="handleUpload"
style="display: none"
/>
<div
style="display: flex;align-items: center;justify-content: flex-start;flex-wrap: wrap;"
v-if="isShowWord"
>
{{ activity.mark }}
<span style="color:#f56c6c" v-if="activity.state == 2"
>( 已拒绝 )</span
>
<span style="color:#17b3a3;" v-if="activity.state == 3"
>( 已通过 )</span
>
</el-timeline-item>
</el-timeline>
</div>
<div class="medical_box" :style="
`
${
markList.length>0? 'width:calc(100% - 320px);' : ''
}
`
">
<!-- 触发按钮 -->
<p
style="cursor: pointer;margin: 0;margin-bottom: 10px;"
v-if="isShowWord"
>
<span @click="triggerUpload">上传 Word</span>
<img
src="../../../assets/img/word-iocn.png"
alt=""
@click="triggerUpload"
/>
<span
style="color:red;float: right;"
v-if="messageList.length > 0"
@click="messageList = []"
>
<i class="el-icon-delete"></i>
清空已识别的医案
</span>
</p>
<!-- 隐藏上传框 -->
<input
type="file"
ref="uploadInput"
accept=".docx"
@change="handleUpload"
style="display: none"
/>
<div
v-for="(v, i) in messageList"
class="wordItem"
@click="insertMessage(v.text, v.images ? v.images : [])"
style="width: 32%;margin-right: 15px;margin-bottom: 10px;cursor: pointer;"
style="display: flex;align-items: center;justify-content: flex-start;flex-wrap: wrap;"
v-if="isShowWord"
>
<div
style="border: 1px solid #bbb;border-radius: 8px;height: 110px;overflow: hidden;"
v-for="(v, i) in messageList"
class="wordItem"
@click="insertMessage(v.text, v.images ? v.images : [])"
style="width: 32%;margin-right: 15px;margin-bottom: 10px;cursor: pointer;"
>
<p
style="font-weight: bold;margin-bottom:2px;margin-top: -1px;background-color: #f0f0f0;color: #333;padding: 2px 10px 2px 2px;"
>
医案 {{ numberToChineseLower(i + 1) }}
<el-button
@click.stop="
analyzingMessage(v.text, v.images ? v.images : [])
"
size="mini"
type=""
plain
style="margin-left: 10px; padding: 2px;float: right;color: rgb(23, 129, 255);"
>解析医案</el-button
>
<el-button
@click.stop="insertMessage(v.text, v.images ? v.images : [])"
size="mini"
type=""
plain
icon="el-icon-plus"
style="margin-left: 10px; padding: 2px;float: right;"
>选择</el-button
>
</p>
<div
style=" overflow: hidden;font-size: 13px;padding: 10px 10px 0;box-sizing: border-box;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-height: 1.5;
max-height: calc(1.5em * 3);
text-overflow: ellipsis;
word-break: break-word; /* 可选:精确限制高度,兼容性更好 */"
style="border: 1px solid #bbb;border-radius: 8px;height: 110px;overflow: hidden;"
>
{{ v.text }}
</div>
<p
style="font-weight: bold;margin-bottom:2px;margin-top: -1px;background-color: #f0f0f0;color: #333;padding: 2px 10px 2px 2px;"
>
医案 {{ numberToChineseLower(i + 1) }}
<el-button
@click.stop="
analyzingMessage(v.text, v.images ? v.images : [])
"
size="mini"
type=""
plain
style="margin-left: 10px; padding: 2px;float: right;color: rgb(23, 129, 255);"
>解析医案</el-button
>
<el-button
@click.stop="
insertMessage(v.text, v.images ? v.images : [])
"
size="mini"
type=""
plain
icon="el-icon-plus"
style="margin-left: 10px; padding: 2px;float: right;"
>选择</el-button
>
</p>
<div
style=" overflow: hidden;font-size: 13px;padding: 10px 10px 0;box-sizing: border-box;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-height: 1.5;
max-height: calc(1.5em * 3);
text-overflow: ellipsis;
word-break: break-word; /* 可选:精确限制高度,兼容性更好 */"
>
{{ v.text }}
</div>
<div v-if="v.images" style="padding:0px 10px 0;">
<img
v-for="(img, i) in v.images"
:key="i"
:src="img"
style="width:30px;height: 30px; margin: 4px;"
/>
<div v-if="v.images" style="padding:0px 10px 0;">
<img
v-for="(img, i) in v.images"
:key="i"
:src="img"
style="width:30px;height: 30px; margin: 4px;"
/>
</div>
</div>
</div>
</div>
</div>
<template v-if="!showMessages">
<div class="home_wrap home_wrap_analysis">
<div class="home_form" style="position: relative">
<div
class="form_item"
style="
<template v-if="!showMessages">
<div class="home_wrap home_wrap_analysis">
<div class="home_form" style="position: relative">
<div
class="form_item"
style="
display: flex;
align-items: flex-start;
justify-content: space-between;
"
>
<!-- <text>医案信息</text> -->
>
<!-- <text>医案信息</text> -->
<!-- 固定标题和输入框部分 -->
<div class="analysis_box">
<div
class="analysis_title"
style="width: 100%;overflow: hidden;"
>
智能分析医案
</div>
<!-- 固定标题和输入框部分 -->
<div class="analysis_box">
<div
class="analysis_title"
style="width: 100%;overflow: hidden;"
>
智能分析医案
</div>
<!-- 固定的输入框部分 -->
<div
style="height: calc(100% - 20px);padding:15px 15px 0;box-sizing: border-box;"
>
<!-- <quill-editor
<!-- 固定的输入框部分 -->
<div
style="height: calc(100% - 20px);padding:15px 15px 0;box-sizing: border-box;"
>
<!-- <quill-editor
style=" min-height: 95% !important;"
placeholder="请输入医案到此处,将自动解析医案信息"
v-model="message"
@@ -149,44 +185,44 @@
:options="editorOption"
>
</quill-editor> -->
<textarea
style=" min-height: 95% !important;"
placeholder="请输入医案到此处,将自动解析医案信息"
v-model="message"
ref="myQuillEditor"
:options="editorOption"
>
</textarea>
<el-button
type="primary"
size="mini"
@click="submit"
style="float: right;margin-right: 10px;margin-top: 4px;background-color: #1781ff;"
>解析医案</el-button
>
<textarea
style=" min-height: 95% !important;"
placeholder="请输入医案到此处,将自动解析医案信息"
v-model="message"
ref="myQuillEditor"
:options="editorOption"
>
</textarea>
<el-button
type="primary"
size="mini"
@click="submit"
style="float: right;margin-right: 10px;margin-top: 4px;background-color: #1781ff;"
>解析医案</el-button
>
</div>
</div>
</div>
</div>
<!-- 搜索结果列表 -->
</div>
</template>
<!-- 搜索结果列表 -->
</div>
</template>
<template v-else>
<el-alert
v-if="tishi"
:title="
loading
? '解析预计耗时约50秒,请耐心等待,也可在草稿箱中查看内容'
: '好的结合您的医案下面是解析后的结果。5秒后自动关闭'
"
:type="loading ? 'warning' : 'success'"
show-icon
>
</el-alert>
<template v-if="!loading">
<div
<template v-else>
<el-alert
v-if="tishi"
:title="
loading
? '解析预计耗时约50秒,请耐心等待,也可在草稿箱中查看内容'
: '好的结合您的医案下面是解析后的结果。5秒后自动关闭'
"
:type="loading ? 'warning' : 'success'"
show-icon
>
</el-alert>
<template v-if="!loading">
<!-- <div
v-if="
addCertificateForm.mark &&
(addCertificateForm.mark.state == 2 ||
@@ -195,82 +231,84 @@
style="padding:4px 10px;border-radius: 4px;white-space: wrap;"
:style="
`color:${currentNode.data.color ? currentNode.data.color : ''};
`
`
"
>
审核备注:{{ addCertificateForm.mark }}
</div>
<el-form
:rules="dataRule"
:model="addCertificateForm"
ref="addCertificateForm"
label-width="120px"
>
<!-- <div style="background-color: #f0f0f0;padding:0 10px;box-sizing: border-box;color: #000;">
</div> -->
<el-form
:rules="dataRule"
:model="addCertificateForm"
ref="addCertificateForm"
label-width="120px"
>
<!-- <div style="background-color: #f0f0f0;padding:0 10px;box-sizing: border-box;color: #000;">
<p>绑定用户</p>
</div> -->
<div
v-if="pageType == 'label'"
style="display:flex;align-items:center;justify-content:space-between"
>
<el-form-item
style="width: 50%;"
label="手机号/邮箱:"
prop="userKey"
class="form_item"
<div
v-if="pageType == 'label'"
style="display:flex;align-items:center;justify-content:space-between"
>
<div style="display: flex;align-items: center;">
<el-autocomplete
size="small"
v-if="isEdit"
style="width: 100%;"
v-model="addCertificateForm.userKey"
:fetch-suggestions="loadAll"
placeholder="请输入手机号/邮箱"
@select="handleSelect"
>
<template #default="{ item }">
<div class="custom-item">
<span>{{ item.tel ? item.tel : item.email }}</span>
<span
style="color: gray; margin-left: 10px;"
v-if="item.name"
>({{ item.name }})</span
>
</div>
</template>
</el-autocomplete>
<span v-if="!isEdit">{{ addCertificateForm.userKey }}</span>
</div>
</el-form-item>
<el-form-item
label="用户姓名:"
style="width: 50%;"
v-if="addCertificateForm.userId"
prop="user"
class="form_item"
>
<div>
<!-- <span
<el-form-item
style="width: 50%;"
label="手机号/邮箱:"
prop="userKey"
class="form_item"
>
<div style="display: flex;align-items: center;">
<el-autocomplete
size="small"
v-if="isEdit"
style="width: 100%;"
v-model="addCertificateForm.userKey"
:fetch-suggestions="loadAll"
placeholder="请输入手机号/邮箱"
@select="handleSelect"
>
<template #default="{ item }">
<div class="custom-item">
<span>{{ item.tel ? item.tel : item.email }}</span>
<span
style="color: gray; margin-left: 10px;"
v-if="item.name"
>({{ item.name }})</span
>
</div>
</template>
</el-autocomplete>
<span v-if="!isEdit">{{
addCertificateForm.userKey
}}</span>
</div>
</el-form-item>
<el-form-item
label="用户姓名:"
style="width: 50%;"
v-if="addCertificateForm.userId"
prop="user"
class="form_item"
>
<div>
<!-- <span
style="width: 110px;display: inline-block;text-align: right;"
>用户姓名:</span
> -->
{{
addCertificateForm.userName
? addCertificateForm.userName
: "-"
}}
</div></el-form-item
{{
addCertificateForm.userName
? addCertificateForm.userName
: "-"
}}
</div></el-form-item
>
</div>
<template
v-if="
(type == 'detail' && currentNode.data.id == 'wait') ||
currentNode.data.id == 'caogao'
"
style="display:flex;align-items:center;justify-content:space-between"
>
</div>
<template
v-if="
(type == 'detail' && currentNode.data.id == 'wait') ||
currentNode.data.id == 'caogao'
"
style="display:flex;align-items:center;justify-content:space-between"
>
<!-- <el-form-item
<!-- <el-form-item
label="手机号/邮箱:"
prop="user"
class="form_item"
@@ -293,50 +331,50 @@
}}
</div></el-form-item
> -->
<el-form-item label="医案分类" prop="user" class="form_item">
<div>
<el-cascader
size="mini"
style="width: 100%;"
:show-all-levels="false"
v-model="addCertificateForm.labelId"
:props="{
value: 'id',
label: 'title'
}"
filterable
:options="cateOptions"
@change="selectLabelId"
placeholder="医案分类"
></el-cascader></div
></el-form-item>
</template>
<el-form-item label="医案分类" prop="user" class="form_item">
<div>
<el-cascader
size="mini"
style="width: 100%;"
:show-all-levels="false"
v-model="addCertificateForm.labelId"
:props="{
value: 'id',
label: 'title'
}"
filterable
:options="cateOptions"
@change="selectLabelId"
placeholder="医案分类"
></el-cascader></div
></el-form-item>
</template>
<div
class="flexbox width100"
style="display: flex;align-items: center;"
>
<el-form-item
label="标题:"
label-width="110px"
prop="title"
style="width: 100%;"
<div
class="flexbox width100"
style="display: flex;align-items: center;"
>
<el-input
v-if="type != 'detail'"
clearable
size="small"
v-model="addCertificateForm.title"
placeholder="请输入医案标题"
<el-form-item
label="标题:"
label-width="110px"
prop="title"
style="width: 100%;"
></el-input>
<div v-else>
{{ addCertificateForm.title }}
</div>
</el-form-item>
</div>
>
<el-input
v-if="type != 'detail'"
clearable
size="small"
v-model="addCertificateForm.title"
placeholder="请输入医案标题"
style="width: 100%;"
></el-input>
<div v-else>
{{ addCertificateForm.title }}
</div>
</el-form-item>
</div>
<!-- <el-form-item label="课程名称:" prop="course" class="form_item">
<!-- <el-form-item label="课程名称:" prop="course" class="form_item">
<el-button plain type="primary" @click="selectCourse('addCertificateForm')"
size="mini">选择</el-button>
<span style="margin-left: 20px"></span>
@@ -344,7 +382,7 @@
<div v-if="addCertificateForm.courseId" style="font-weight: bold;margin-top: 20px;display: flex;align-items: center;justify-content: space-between;"><p><img v-if="addCertificateForm.courseImg" :src="addCertificateForm.courseImg" alt=""style="width: 30px;height: 40px;margin-right: 20px;">{{ addCertificateForm.courseName }}</p><span @click="clearCourse" style="color: red;cursor: pointer;"><i class="el-icon-delete" style="margin-right: 4px;"></i> 删除</span></div>
</el-form-item> -->
<!-- <el-form-item label="医案编号" prop="certificateNo" class="form_item">
<!-- <el-form-item label="医案编号" prop="certificateNo" class="form_item">
<el-input
v-model="addCertificateForm.certificateNo"
placeholder="请输入医案编号"
@@ -352,60 +390,62 @@
></el-input>
</el-form-item> -->
<el-form-item
label="医案详情:"
label-width="110px"
class="form_item"
>
<div style="padding-top: 15px;">
<div
v-for="(html, key) in record"
:key="key"
style="padding: 2px; margin-bottom: 4px;box-sizing: border-box;"
>
<!-- 显示字段标题 -->
<el-form-item
label="医案详情:"
label-width="110px"
class="form_item"
>
<div style="padding-top: 15px;">
<div
class="h1_box"
:class="type == 'detail' ? 'h1_box_detail' : ''"
v-html="`${getTitleHtml(html, key)}`"
style="margin-top: 0;margin-bottom: 10px; font-weight: bold;display: flex;align-items: center;"
></div>
<!-- 编辑区域 -->
<quill-editor
v-model="editableMap[key]"
ref="myQuillEditor"
:options="editorOption"
class="shangpin_editor"
v-if="type != 'detail'"
v-for="(html, key) in record"
:key="key"
style="padding: 2px; margin-bottom: 4px;box-sizing: border-box;"
>
</quill-editor>
<div
class="detail_info_medical"
v-else
v-html="editableMap[key] ? editableMap[key] : '<p>无</p>'"
></div>
</div>
<!-- 显示字段标题 -->
<!-- <h3 style="margin-top: 40px;">✅ 保存后的结果JSON 格式预览)</h3> -->
</div>
<!-- <quill-editor
<div
class="h1_box"
:class="type == 'detail' ? 'h1_box_detail' : ''"
v-html="`${getTitleHtml(html, key)}`"
style="margin-top: 0;margin-bottom: 10px; font-weight: bold;display: flex;align-items: center;"
></div>
<!-- 编辑区域 -->
<quill-editor
v-model="editableMap[key]"
ref="myQuillEditor"
:options="editorOption"
class="shangpin_editor"
v-if="type != 'detail'"
>
</quill-editor>
<div
class="detail_info_medical"
v-else
v-html="
editableMap[key] ? editableMap[key] : '<p>无</p>'
"
></div>
</div>
<!-- <h3 style="margin-top: 40px;">✅ 保存后的结果JSON 格式预览)</h3> -->
</div>
<!-- <quill-editor
v-model="detailContent"
ref="myQuillEditor2"
:options="editorOption"
class="shangpin_editor"
>
</quill-editor> -->
</el-form-item>
</el-form-item>
<el-form-item
label="上传图片:"
label-width="110px"
class="form_item custom-upload-box"
v-if="dialogVisible"
>
<!-- <template v-for="(file, i) in fileList" v-if="type == 'detail'">
<el-form-item
label="上传图片:"
label-width="110px"
class="form_item custom-upload-box"
v-if="dialogVisible"
>
<!-- <template v-for="(file, i) in fileList" v-if="type == 'detail'">
<img
style="width: 60px;height: 60px;border-radius: 6px;margin: 0 8px 8px 0;"
@@ -414,69 +454,69 @@
alt=""
/>
</template> -->
<div
v-if="fileList.length == 0 && type == 'detail'"
style="line-height: 60px;"
>
暂无图片
</div>
<el-upload
v-if="type != 'detail'"
class="custom-upload"
multiple
:action="baseUrl + '/oss/fileoss'"
list-type="picture-card"
accept="image/png, image/jpeg"
:file-list="fileList"
:on-success="onSuccessImg"
:before-upload="beforeUpload"
:on-progress="onProgress"
>
<i slot="default" class="el-icon-plus"></i>
<div slot="file" slot-scope="{ file }">
<img
class="el-upload-list__item-thumbnail"
:src="file.url"
alt=""
/>
<span class="el-upload-list__item-actions">
<!-- <span
<div
v-if="fileList.length == 0 && type == 'detail'"
style="line-height: 60px;"
>
暂无图片
</div>
<el-upload
v-if="type != 'detail'"
class="custom-upload"
multiple
:action="baseUrl + '/oss/fileoss'"
list-type="picture-card"
accept="image/png, image/jpeg"
:file-list="fileList"
:on-success="onSuccessImg"
:before-upload="beforeUpload"
:on-progress="onProgress"
>
<i slot="default" class="el-icon-plus"></i>
<div slot="file" slot-scope="{ file }">
<img
class="el-upload-list__item-thumbnail"
:src="file.url"
alt=""
/>
<span class="el-upload-list__item-actions">
<!-- <span
class="el-upload-list__item-preview"
@click="handlePictureCardPreview(file)"
>
<i class="el-icon-zoom-in"></i>
</span> -->
<span
v-if="!disabled"
class="el-upload-list__item-delete"
@click="handleRemove(file)"
>
<i class="el-icon-delete"></i>
<span
v-if="!disabled"
class="el-upload-list__item-delete"
@click="handleRemove(file)"
>
<i class="el-icon-delete"></i>
</span>
</span>
</span>
<!-- 上传中的加载动画 -->
<div v-if="file.uploading" class="loading-spinner">
<i class="el-icon-loading"></i>
<!-- 上传中的加载动画 -->
<div v-if="file.uploading" class="loading-spinner">
<i class="el-icon-loading"></i>
</div>
</div>
</div>
</el-upload>
<template
v-if="addCertificateForm.img !== '' && type == 'detail'"
>
<el-image
v-if="fileList.length > 0"
:key="index"
class="el-upload-list__item-thumbnail"
v-for="(item, index) in addCertificateForm.img.split(',')"
style="width: 60px;height: 60px;border-radius: 6px;margin: 0 8px 8px 0;"
:src="item"
:preview-src-list="addCertificateForm.img.split(',')"
</el-upload>
<template
v-if="addCertificateForm.img !== '' && type == 'detail'"
>
</el-image>
</template>
<el-image
v-if="fileList.length > 0"
:key="index"
class="el-upload-list__item-thumbnail"
v-for="(item, index) in addCertificateForm.img.split(',')"
style="width: 60px;height: 60px;border-radius: 6px;margin: 0 8px 8px 0;"
:src="item"
:preview-src-list="addCertificateForm.img.split(',')"
>
</el-image>
</template>
<!-- <div class="flexBox" style="width:100%;justify-content: space-between;">
<!-- <div class="flexBox" style="width:100%;justify-content: space-between;">
<div class="" style="display:flex">
<div
@@ -500,11 +540,12 @@
</div>
</div> -->
</el-form-item>
</el-form>
</el-form-item>
</el-form>
</template>
<div v-else v-loading="loading" style="height: 95%;"></div>
</template>
<div v-else v-loading="loading" style="height: 95%;"></div>
</template>
</div>
</div>
<div
@@ -578,10 +619,13 @@
<span slot="footer" class="dialog-footer">
<el-button @click="dialogMarkVisible = false" size="mini"
>取消审核</el-button
>取消</el-button
>
<el-button type="primary" @click="handleReviewSave" size="mini"
>保存</el-button
<el-button
:type="`${reviewType == 'approved' ? 'primary' : 'danger'}`"
@click="handleReviewSave"
size="mini"
>{{ reviewType == "approved" ? "通过" : "拒绝" }}</el-button
>
</span>
</el-dialog>
@@ -712,7 +756,8 @@ export default {
detailContent: "",
medicalId: "",
medicalRecords: {},
content: ""
content: "",
markList: []
};
},
components: {
@@ -804,7 +849,7 @@ export default {
},
async analyzingMessage(data, images) {
await this.insertMessage(data, images);
await this.submit()
await this.submit();
},
// 点击按钮触发上传
triggerUpload() {
@@ -816,22 +861,23 @@ export default {
// 处理上传文件
handleUpload(event) {
const loading = this.$loading({
lock: true,
text: 'word文件识别中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.$commonJS.handleUpload(event, arr => {
console.log("content at line 618:", arr);
this.messageList = arr;
loading.close();
}).catch(()=>{
loading.close();
lock: true,
text: "word文件识别中",
spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0.7)"
});
this.$commonJS
.handleUpload(event, arr => {
console.log("content at line 618:", arr);
this.messageList = arr;
loading.close();
})
.catch(() => {
loading.close();
});
},
beforeClose() {
this.dialogMarkVisible = false;
@@ -948,6 +994,7 @@ export default {
},
init(type, data) {
this.showMessages = false;
this.markList = [];
this.messageList = [];
this.currentMedicalWordImageList = [];
this.currentMedicalWordImageStr = "";
@@ -1027,6 +1074,9 @@ export default {
","
);
}
if (this.addCertificateForm.mark) {
this.markList = JSON.parse(this.addCertificateForm.mark);
}
} else {
this.addCertificateForm = {};
}
@@ -1062,7 +1112,29 @@ export default {
// }
const label = this.addCertificateForm.labelId;
const value = Array.isArray(label) ? label[label.length - 1] : label;
const formatFullTime = date => {
const pad = (n, len = 2) => n.toString().padStart(len, "0");
return (
`${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(
date.getDate()
)} ` +
`${pad(date.getHours())}:${pad(date.getMinutes())}:${pad(
date.getSeconds()
)}.${pad(date.getMilliseconds(), 3)}`
);
};
const now = new Date();
const timeStamp = now.getTime(); // 毫秒级时间戳
const timeStr = formatFullTime(now); // 格式化字符串
var markList = [
...this.markList,
{
mark: this.addCertificateForm.mark,
time: timeStr,
state: this.reviewType == "approved" ? 3 : 2
}
];
var data = {
labelId: value,
img:
@@ -1072,7 +1144,7 @@ export default {
title: this.addCertificateForm.title,
userId: this.addCertificateForm.userId,
train: this.addCertificateForm.train, //是否加入ai训练库0否1是
mark: this.addCertificateForm.mark, //备注
mark: JSON.stringify(markList), //备注
state: this.reviewType == "approved" ? 3 : 2, //备注
...recordData
};
@@ -1157,9 +1229,9 @@ export default {
if (this.currentMedicalWordImageList.length > 0) {
const loading = this.$loading({
lock: true,
text: 'loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
text: "loading",
spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0.7)"
});
this.currentMedicalWordImageStr = await this.uploadImage(
this.currentMedicalWordImageList
@@ -1304,19 +1376,19 @@ export default {
this.addCertificateForm.id = data.id;
this.addCertificateForm.img = data.img;
if (this.addCertificateForm.img) {
this.fileList = this.addCertificateForm.img
.split(",")
.map((image, i) => ({
uid: i, // 假设 id 是唯一标识符
name: i, // 文件名
status: "done", // 状态
url: image // 文件 URL
}));
console.log("this.fileList at line 308:", this.fileList);
this.addCertificateForm.imageList = this.addCertificateForm.img.split(
","
);
}
this.fileList = this.addCertificateForm.img
.split(",")
.map((image, i) => ({
uid: i, // 假设 id 是唯一标识符
name: i, // 文件名
status: "done", // 状态
url: image // 文件 URL
}));
console.log("this.fileList at line 308:", this.fileList);
this.addCertificateForm.imageList = this.addCertificateForm.img.split(
","
);
}
this.$forceUpdate();
// 滚动到最底部锚点

View File

@@ -264,7 +264,7 @@
<div
style="overflow: hidden;
font-size: 13px;
padding: 10px 10px 0px;
box-sizing: border-box;
display: -webkit-box;
-webkit-box-orient: vertical;