|
@@ -1,95 +1,95 @@
|
|
<template>
|
|
<template>
|
|
<div class="edit-hot-layer">
|
|
<div class="edit-hot-layer">
|
|
- <div class="edit-hot-item">
|
|
|
|
- <h3 class="edit-title">
|
|
|
|
- 标注
|
|
|
|
- <ui-icon type="close" ctrl @click.stop="$emit('quit')" class="edit-close" />
|
|
|
|
- </h3>
|
|
|
|
- <!-- <StylesManage
|
|
|
|
- :styles="styles"
|
|
|
|
- :active="(getTaggingStyle(tagging.styleId) as TaggingStyle)"
|
|
|
|
- @change="style => tagging.styleId = style.id"
|
|
|
|
- @delete="deleteStyle"
|
|
|
|
- @uploadStyles="uploadStyles"
|
|
|
|
- /> -->
|
|
|
|
- <ui-input
|
|
|
|
- require
|
|
|
|
- class="input"
|
|
|
|
- width="100%"
|
|
|
|
- placeholder="请输入热点标题"
|
|
|
|
- type="text"
|
|
|
|
- v-model="tagging.title"
|
|
|
|
- maxlength="15"
|
|
|
|
- />
|
|
|
|
- <ui-input
|
|
|
|
- class="input"
|
|
|
|
- width="100%"
|
|
|
|
- height="158px"
|
|
|
|
- placeholder="特征描述:"
|
|
|
|
- type="richtext"
|
|
|
|
- v-model="tagging.desc"
|
|
|
|
- :maxlength="200"
|
|
|
|
- />
|
|
|
|
- <ui-input
|
|
|
|
- class="input preplace"
|
|
|
|
- width="100%"
|
|
|
|
- placeholder=""
|
|
|
|
- type="text"
|
|
|
|
- v-model="tagging.part"
|
|
|
|
- >
|
|
|
|
- <template #preIcon><span>遗留部位:</span></template>
|
|
|
|
- </ui-input>
|
|
|
|
- <ui-input
|
|
|
|
- class="input preplace"
|
|
|
|
- width="100%"
|
|
|
|
- placeholder=""
|
|
|
|
- type="text"
|
|
|
|
- v-model="tagging.method"
|
|
|
|
- >
|
|
|
|
- <template #preIcon><span>提取方法:</span></template>
|
|
|
|
- </ui-input>
|
|
|
|
- <ui-input
|
|
|
|
- class="input preplace"
|
|
|
|
- width="100%"
|
|
|
|
- type="text"
|
|
|
|
- placeholder=""
|
|
|
|
- v-model="tagging.principal"
|
|
|
|
- >
|
|
|
|
- <template #preIcon><span>提取人:</span></template>
|
|
|
|
- </ui-input>
|
|
|
|
- <ui-input
|
|
|
|
- class="input "
|
|
|
|
- type="file"
|
|
|
|
|
|
+ <div class="edit-hot-item">
|
|
|
|
+ <h3 class="edit-title">
|
|
|
|
+ 标注
|
|
|
|
+ <ui-icon type="close" ctrl @click.stop="$emit('quit')" class="edit-close" />
|
|
|
|
+ </h3>
|
|
|
|
+ <!-- <StylesManage
|
|
|
|
+ :styles="styles"
|
|
|
|
+ :active="(getTaggingStyle(tagging.styleId) as TaggingStyle)"
|
|
|
|
+ @change="style => tagging.styleId = style.id"
|
|
|
|
+ @delete="deleteStyle"
|
|
|
|
+ @uploadStyles="uploadStyles"
|
|
|
|
+ /> -->
|
|
|
|
+ <ui-input
|
|
|
|
+ require
|
|
|
|
+ class="input"
|
|
|
|
+ width="100%"
|
|
|
|
+ placeholder="请输入热点标题"
|
|
|
|
+ type="text"
|
|
|
|
+ v-model="tagging.title"
|
|
|
|
+ maxlength="15"
|
|
|
|
+ />
|
|
|
|
+ <ui-input
|
|
|
|
+ class="input"
|
|
width="100%"
|
|
width="100%"
|
|
- height="225px"
|
|
|
|
- preview
|
|
|
|
- placeholder="上传图片"
|
|
|
|
- othPlaceholder="支持JPG、PNG图片格式,单张不超过5MB,最多支持上传9张。"
|
|
|
|
- accept=".jpg, .png"
|
|
|
|
- :disable="true"
|
|
|
|
- :multiple="true"
|
|
|
|
- :maxSize="5 * 1024 * 1024"
|
|
|
|
- :maxLen="9"
|
|
|
|
- :modelValue="tagging.images"
|
|
|
|
- @update:modelValue="fileChange"
|
|
|
|
- >
|
|
|
|
- <template v-slot:valuable>
|
|
|
|
- <Images :tagging="tagging" :hideInfo="true">
|
|
|
|
- <template v-slot:icons="{ active }">
|
|
|
|
- <span @click="delImageHandler(active)" class="del-file">
|
|
|
|
- <ui-icon type="del" ctrl />
|
|
|
|
- </span>
|
|
|
|
- </template>
|
|
|
|
- </Images>
|
|
|
|
- </template>
|
|
|
|
- </ui-input>
|
|
|
|
- <div class="edit-hot" >
|
|
|
|
- <span @click="submitHandler" class="fun-ctrl">
|
|
|
|
- <ui-icon type="edit" />
|
|
|
|
- 确定
|
|
|
|
- </span>
|
|
|
|
|
|
+ height="158px"
|
|
|
|
+ placeholder="特征描述:"
|
|
|
|
+ type="richtext"
|
|
|
|
+ v-model="tagging.desc"
|
|
|
|
+ :maxlength="200"
|
|
|
|
+ />
|
|
|
|
+ <ui-input
|
|
|
|
+ class="input preplace"
|
|
|
|
+ width="100%"
|
|
|
|
+ placeholder=""
|
|
|
|
+ type="text"
|
|
|
|
+ v-model="tagging.part"
|
|
|
|
+ >
|
|
|
|
+ <template #preIcon><span>遗留部位:</span></template>
|
|
|
|
+ </ui-input>
|
|
|
|
+ <ui-input
|
|
|
|
+ class="input preplace"
|
|
|
|
+ width="100%"
|
|
|
|
+ placeholder=""
|
|
|
|
+ type="text"
|
|
|
|
+ v-model="tagging.method"
|
|
|
|
+ >
|
|
|
|
+ <template #preIcon><span>提取方法:</span></template>
|
|
|
|
+ </ui-input>
|
|
|
|
+ <ui-input
|
|
|
|
+ class="input preplace"
|
|
|
|
+ width="100%"
|
|
|
|
+ type="text"
|
|
|
|
+ placeholder=""
|
|
|
|
+ v-model="tagging.principal"
|
|
|
|
+ >
|
|
|
|
+ <template #preIcon><span>提取人:</span></template>
|
|
|
|
+ </ui-input>
|
|
|
|
+ <ui-input
|
|
|
|
+ class="input "
|
|
|
|
+ type="file"
|
|
|
|
+ width="100%"
|
|
|
|
+ height="225px"
|
|
|
|
+ preview
|
|
|
|
+ placeholder="上传图片"
|
|
|
|
+ othPlaceholder="支持JPG、PNG图片格式,单张不超过5MB,最多支持上传9张。"
|
|
|
|
+ accept=".jpg, .png"
|
|
|
|
+ :disable="true"
|
|
|
|
+ :multiple="true"
|
|
|
|
+ :maxSize="5 * 1024 * 1024"
|
|
|
|
+ :maxLen="9"
|
|
|
|
+ :modelValue="tagging.images"
|
|
|
|
+ @update:modelValue="fileChange"
|
|
|
|
+ >
|
|
|
|
+ <template v-slot:valuable>
|
|
|
|
+ <Images :tagging="tagging" :hideInfo="true">
|
|
|
|
+ <template v-slot:icons="{ active }">
|
|
|
|
+ <span @click="delImageHandler(active)" class="del-file">
|
|
|
|
+ <ui-icon type="del" ctrl />
|
|
|
|
+ </span>
|
|
|
|
+ </template>
|
|
|
|
+ </Images>
|
|
|
|
+ </template>
|
|
|
|
+ </ui-input>
|
|
|
|
+ <div class="edit-hot" >
|
|
|
|
+ <span @click="submitHandler" class="fun-ctrl">
|
|
|
|
+ <ui-icon type="edit" />
|
|
|
|
+ 确定
|
|
|
|
+ </span>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -203,14 +203,16 @@ const delImageHandler = async (file: Tagging['images'][number]) => {
|
|
background: rgba(0,0,0,0.3000);
|
|
background: rgba(0,0,0,0.3000);
|
|
backdrop-filter: blur(4px);
|
|
backdrop-filter: blur(4px);
|
|
z-index: 2000;
|
|
z-index: 2000;
|
|
|
|
+ padding: 20px;
|
|
|
|
+ overflow-y: auto;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
}
|
|
}
|
|
|
|
+
|
|
.edit-hot-item {
|
|
.edit-hot-item {
|
|
- position: absolute;
|
|
|
|
- top: 50%;
|
|
|
|
- left: 50%;
|
|
|
|
- transform: translate(-50%, -50%);
|
|
|
|
|
|
+ margin-top: 100px;
|
|
|
|
+ margin-bottom: 20px;
|
|
width: 400px;
|
|
width: 400px;
|
|
- position: relative;
|
|
|
|
padding: 20px;
|
|
padding: 20px;
|
|
background: rgba(27, 27, 28, 0.8);
|
|
background: rgba(27, 27, 28, 0.8);
|
|
box-shadow: 0px 0px 10px 0px rgba(0,0,0, 0.3);
|
|
box-shadow: 0px 0px 10px 0px rgba(0,0,0, 0.3);
|