|
@@ -134,10 +134,25 @@
|
|
|
<span style="color: #f56c6c">*</span>身份证(人像面)
|
|
<span style="color: #f56c6c">*</span>身份证(人像面)
|
|
|
</template>
|
|
</template>
|
|
|
<el-upload action="" v-if="!IDCardFront" :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 1)">
|
|
<el-upload action="" v-if="!IDCardFront" :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 1)">
|
|
|
- <el-button link type="primary">上传</el-button>
|
|
|
|
|
|
|
+ <el-button link type="primary" icon="Upload">上传</el-button>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
<div class="fileInfo" v-else>
|
|
<div class="fileInfo" v-else>
|
|
|
- <div class="fileName">{{ IDCardFrontName }}</div>
|
|
|
|
|
|
|
+ <div class="file-box">
|
|
|
|
|
+ <div class="btn-top">
|
|
|
|
|
+ <img class="image-close" @click="deleteImage(1)" src="@/assets/images/close.png" />
|
|
|
|
|
+<!-- <el-icon class="btn-icon"><Delete /></el-icon>-->
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <img class="file-img" :src="IDCardFront" />
|
|
|
|
|
+ <div class="btn-bottom">
|
|
|
|
|
+ <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 1)" style="display: flex; align-items: center; justify-content: center; color: white">
|
|
|
|
|
+ <el-icon><Upload /></el-icon>重新上传
|
|
|
|
|
+ </el-upload>
|
|
|
|
|
+ <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(1)">
|
|
|
|
|
+ <el-icon><Download /></el-icon>下载资料
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+<!-- <div class="fileName">{{ IDCardFrontName }}</div>
|
|
|
<div class="fileBtn">
|
|
<div class="fileBtn">
|
|
|
<el-upload :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 1)" style="display: flex; align-items: center">
|
|
<el-upload :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 1)" style="display: flex; align-items: center">
|
|
|
<el-icon class="btn-icon"><Upload /></el-icon>
|
|
<el-icon class="btn-icon"><Upload /></el-icon>
|
|
@@ -145,7 +160,7 @@
|
|
|
<el-icon class="btn-icon" @click="imageView(1)"><View /></el-icon>
|
|
<el-icon class="btn-icon" @click="imageView(1)"><View /></el-icon>
|
|
|
<el-icon class="btn-icon" @click="downloadImage(1)"><Download /></el-icon>
|
|
<el-icon class="btn-icon" @click="downloadImage(1)"><Download /></el-icon>
|
|
|
<el-icon class="btn-icon" @click="deleteImage(1)"><Delete /></el-icon>
|
|
<el-icon class="btn-icon" @click="deleteImage(1)"><Delete /></el-icon>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>-->
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item prop="IDCardBack" label-width="150">
|
|
<el-form-item prop="IDCardBack" label-width="150">
|
|
@@ -153,10 +168,25 @@
|
|
|
<span style="color: #f56c6c">*</span>身份证(国徽面)
|
|
<span style="color: #f56c6c">*</span>身份证(国徽面)
|
|
|
</template>
|
|
</template>
|
|
|
<el-upload v-if="!IDCardBack" :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 2)">
|
|
<el-upload v-if="!IDCardBack" :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 2)">
|
|
|
- <el-button link type="primary">上传</el-button>
|
|
|
|
|
|
|
+ <el-button link type="primary" icon="Upload">上传</el-button>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
<div class="fileInfo" v-else>
|
|
<div class="fileInfo" v-else>
|
|
|
- <div class="fileName">{{ IDCardBackName }}</div>
|
|
|
|
|
|
|
+ <div class="file-box">
|
|
|
|
|
+ <div class="btn-top">
|
|
|
|
|
+ <img class="image-close" @click="deleteImage(2)" src="@/assets/images/close.png" />
|
|
|
|
|
+ <!-- <el-icon class="btn-icon"><Delete /></el-icon>-->
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <img class="file-img" :src="IDCardBack" />
|
|
|
|
|
+ <div class="btn-bottom">
|
|
|
|
|
+ <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 2)" style="display: flex; align-items: center; justify-content: center; color: white">
|
|
|
|
|
+ <el-icon><Upload /></el-icon>重新上传
|
|
|
|
|
+ </el-upload>
|
|
|
|
|
+ <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(2)">
|
|
|
|
|
+ <el-icon><Download /></el-icon>下载资料
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+<!-- <div class="fileName">{{ IDCardBackName }}</div>
|
|
|
<div class="fileBtn">
|
|
<div class="fileBtn">
|
|
|
<el-upload :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 2)" style="display: flex; align-items: center">
|
|
<el-upload :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 2)" style="display: flex; align-items: center">
|
|
|
<el-icon class="btn-icon"><Upload /></el-icon>
|
|
<el-icon class="btn-icon"><Upload /></el-icon>
|
|
@@ -164,15 +194,30 @@
|
|
|
<el-icon class="btn-icon" @click="imageView(2)"><View /></el-icon>
|
|
<el-icon class="btn-icon" @click="imageView(2)"><View /></el-icon>
|
|
|
<el-icon class="btn-icon" @click="downloadImage(2)"><Download /></el-icon>
|
|
<el-icon class="btn-icon" @click="downloadImage(2)"><Download /></el-icon>
|
|
|
<el-icon class="btn-icon" @click="deleteImage(2)"><Delete /></el-icon>
|
|
<el-icon class="btn-icon" @click="deleteImage(2)"><Delete /></el-icon>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>-->
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item prop="" label="展业资格证" label-width="150">
|
|
<el-form-item prop="" label="展业资格证" label-width="150">
|
|
|
<el-upload :auto-upload="false" v-if="!certification" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 3)">
|
|
<el-upload :auto-upload="false" v-if="!certification" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 3)">
|
|
|
- <el-button link type="primary">上传</el-button>
|
|
|
|
|
|
|
+ <el-button link type="primary" icon="Upload">上传</el-button>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
<div class="fileInfo" v-else>
|
|
<div class="fileInfo" v-else>
|
|
|
- <div class="fileName">{{ certificationName }}</div>
|
|
|
|
|
|
|
+ <div class="file-box">
|
|
|
|
|
+ <div class="btn-top">
|
|
|
|
|
+ <img class="image-close" @click="deleteImage(3)" src="@/assets/images/close.png" />
|
|
|
|
|
+ <!-- <el-icon class="btn-icon"><Delete /></el-icon>-->
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <img class="file-img" :src="certification" />
|
|
|
|
|
+ <div class="btn-bottom">
|
|
|
|
|
+ <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 3)" style="display: flex; align-items: center; justify-content: center; color: white">
|
|
|
|
|
+ <el-icon><Upload /></el-icon>重新上传
|
|
|
|
|
+ </el-upload>
|
|
|
|
|
+ <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(3)">
|
|
|
|
|
+ <el-icon><Download /></el-icon>下载资料
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+<!-- <div class="fileName">{{ certificationName }}</div>
|
|
|
<div class="fileBtn">
|
|
<div class="fileBtn">
|
|
|
<el-upload :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 3)" style="display: flex; align-items: center">
|
|
<el-upload :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 3)" style="display: flex; align-items: center">
|
|
|
<el-icon class="btn-icon"><Upload /></el-icon>
|
|
<el-icon class="btn-icon"><Upload /></el-icon>
|
|
@@ -180,7 +225,7 @@
|
|
|
<el-icon class="btn-icon" @click="imageView(3)"><View /></el-icon>
|
|
<el-icon class="btn-icon" @click="imageView(3)"><View /></el-icon>
|
|
|
<el-icon class="btn-icon" @click="downloadImage(3)"><Download /></el-icon>
|
|
<el-icon class="btn-icon" @click="downloadImage(3)"><Download /></el-icon>
|
|
|
<el-icon class="btn-icon" @click="deleteImage(3)"><Delete /></el-icon>
|
|
<el-icon class="btn-icon" @click="deleteImage(3)"><Delete /></el-icon>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>-->
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
@@ -376,13 +421,14 @@
|
|
|
<el-descriptions-item>
|
|
<el-descriptions-item>
|
|
|
<template #default>
|
|
<template #default>
|
|
|
<el-form-item prop="" label="劳动合同" label-width="150">
|
|
<el-form-item prop="" label="劳动合同" label-width="150">
|
|
|
- <el-upload v-if="!contract" :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 4)">
|
|
|
|
|
- <el-button link type="primary">上传</el-button>
|
|
|
|
|
|
|
+ <el-upload v-if="!contract" :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg, .pdf, .doc, .docx" @change="uploadImage($event, 4)">
|
|
|
|
|
+ <el-button link type="primary" icon="Upload">上传</el-button>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
<div class="fileInfo" v-else>
|
|
<div class="fileInfo" v-else>
|
|
|
|
|
+ <img style="width: 40px; height: 40px" :src="contractName.includes('.png') || contractName.includes('.jpg') || contractName.includes('.jpeg')?image:contractName.includes('.pdf')?pdf:contractName.includes('.doc') || contractName.includes('.docx')?word:''" />
|
|
|
<div class="fileName">{{ contractName }}</div>
|
|
<div class="fileName">{{ contractName }}</div>
|
|
|
<div class="fileBtn">
|
|
<div class="fileBtn">
|
|
|
- <el-upload :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 4)" style="display: flex; align-items: center">
|
|
|
|
|
|
|
+ <el-upload :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg, .pdf, .doc, .docx" @change="uploadImage($event, 4)" style="display: flex; align-items: center">
|
|
|
<el-icon class="btn-icon"><Upload /></el-icon>
|
|
<el-icon class="btn-icon"><Upload /></el-icon>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
<el-icon class="btn-icon" @click="imageView(4)"><View /></el-icon>
|
|
<el-icon class="btn-icon" @click="imageView(4)"><View /></el-icon>
|
|
@@ -392,13 +438,14 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item prop="" label="应聘表" label-width="150">
|
|
<el-form-item prop="" label="应聘表" label-width="150">
|
|
|
- <el-upload v-if="!applicant" :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 5)">
|
|
|
|
|
- <el-button link type="primary">上传</el-button>
|
|
|
|
|
|
|
+ <el-upload v-if="!applicant" :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg, .pdf, .doc, .docx" @change="uploadImage($event, 5)">
|
|
|
|
|
+ <el-button link type="primary" icon="Upload">上传</el-button>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
<div class="fileInfo" v-else>
|
|
<div class="fileInfo" v-else>
|
|
|
|
|
+ <img style="width: 40px; height: 40px" :src="applicantName.includes('.png') || applicantName.includes('.jpg') || applicantName.includes('.jpeg')?image:applicantName.includes('.pdf')?pdf:applicantName.includes('.doc') || applicantName.includes('.docx')?word:''" />
|
|
|
<div class="fileName">{{ applicantName }}</div>
|
|
<div class="fileName">{{ applicantName }}</div>
|
|
|
<div class="fileBtn">
|
|
<div class="fileBtn">
|
|
|
- <el-upload :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 5)" style="display: flex; align-items: center">
|
|
|
|
|
|
|
+ <el-upload :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg, .pdf, .doc, .docx" @change="uploadImage($event, 5)" style="display: flex; align-items: center">
|
|
|
<el-icon class="btn-icon"><Upload /></el-icon>
|
|
<el-icon class="btn-icon"><Upload /></el-icon>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
<el-icon class="btn-icon" @click="imageView(5)"><View /></el-icon>
|
|
<el-icon class="btn-icon" @click="imageView(5)"><View /></el-icon>
|
|
@@ -408,13 +455,14 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item prop="" label="定薪表" label-width="150">
|
|
<el-form-item prop="" label="定薪表" label-width="150">
|
|
|
- <el-upload :auto-upload="false" v-if="!decidePay" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 6)">
|
|
|
|
|
- <el-button link type="primary">上传</el-button>
|
|
|
|
|
|
|
+ <el-upload :auto-upload="false" v-if="!decidePay" :show-file-list="false" accept=".png, .jpg, .jpeg, .pdf, .doc, .docx" @change="uploadImage($event, 6)">
|
|
|
|
|
+ <el-button link type="primary" icon="Upload">上传</el-button>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
<div class="fileInfo" v-else>
|
|
<div class="fileInfo" v-else>
|
|
|
|
|
+ <img style="width: 40px; height: 40px" :src="decidePayName.includes('.png') || decidePayName.includes('.jpg') || decidePayName.includes('.jpeg')?image:decidePayName.includes('.pdf')?pdf:decidePayName.includes('.doc') || decidePayName.includes('.docx')?word:''" />
|
|
|
<div class="fileName">{{ decidePayName }}</div>
|
|
<div class="fileName">{{ decidePayName }}</div>
|
|
|
<div class="fileBtn">
|
|
<div class="fileBtn">
|
|
|
- <el-upload :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 6)" style="display: flex; align-items: center">
|
|
|
|
|
|
|
+ <el-upload :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg, .pdf, .doc, .docx" @change="uploadImage($event, 6)" style="display: flex; align-items: center">
|
|
|
<el-icon class="btn-icon"><Upload /></el-icon>
|
|
<el-icon class="btn-icon"><Upload /></el-icon>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
<el-icon class="btn-icon" @click="imageView(6)"><View /></el-icon>
|
|
<el-icon class="btn-icon" @click="imageView(6)"><View /></el-icon>
|
|
@@ -424,13 +472,14 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item prop="" label="离职表" label-width="150">
|
|
<el-form-item prop="" label="离职表" label-width="150">
|
|
|
- <el-upload :auto-upload="false" v-if="!dimission" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 7)">
|
|
|
|
|
- <el-button link type="primary">上传</el-button>
|
|
|
|
|
|
|
+ <el-upload :auto-upload="false" v-if="!dimission" :show-file-list="false" accept=".png, .jpg, .jpeg, .pdf, .doc, .docx" @change="uploadImage($event, 7)">
|
|
|
|
|
+ <el-button link type="primary" icon="Upload">上传</el-button>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
<div class="fileInfo" v-else>
|
|
<div class="fileInfo" v-else>
|
|
|
|
|
+ <img style="width: 40px; height: 40px" :src="dimissionName.includes('.png') || dimissionName.includes('.jpg') || dimissionName.includes('.jpeg')?image:dimissionName.includes('.pdf')?pdf:dimissionName.includes('.doc') || dimissionName.includes('.docx')?word:''" />
|
|
|
<div class="fileName">{{ dimissionName }}</div>
|
|
<div class="fileName">{{ dimissionName }}</div>
|
|
|
<div class="fileBtn">
|
|
<div class="fileBtn">
|
|
|
- <el-upload :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 7)" style="display: flex; align-items: center">
|
|
|
|
|
|
|
+ <el-upload :auto-upload="false" :show-file-list="false" accept=".png, .jpg, .jpeg, .pdf, .doc, .docx" @change="uploadImage($event, 7)" style="display: flex; align-items: center">
|
|
|
<el-icon class="btn-icon"><Upload /></el-icon>
|
|
<el-icon class="btn-icon"><Upload /></el-icon>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
<el-icon class="btn-icon" @click="imageView(7)"><View /></el-icon>
|
|
<el-icon class="btn-icon" @click="imageView(7)"><View /></el-icon>
|
|
@@ -460,6 +509,9 @@ import type { FormRules, FormInstance } from "element-plus";
|
|
|
import { Plus } from '@element-plus/icons-vue'
|
|
import { Plus } from '@element-plus/icons-vue'
|
|
|
import api from "@/api";
|
|
import api from "@/api";
|
|
|
import { ElMessage } from "element-plus";
|
|
import { ElMessage } from "element-plus";
|
|
|
|
|
+import image from '@/assets/images/image.png'
|
|
|
|
|
+import word from '@/assets/images/word.png'
|
|
|
|
|
+import pdf from '@/assets/images/pdf.png'
|
|
|
|
|
|
|
|
interface OperationFormProps extends AddOperation {
|
|
interface OperationFormProps extends AddOperation {
|
|
|
organization: string
|
|
organization: string
|
|
@@ -714,6 +766,67 @@ const initEditData = (id, ids) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// 新增数据初始化
|
|
|
|
|
+const initAddData = () => {
|
|
|
|
|
+ operationForm.value = {
|
|
|
|
|
+ typeAttr: '',
|
|
|
|
|
+ deptId: '',
|
|
|
|
|
+ name: '',
|
|
|
|
|
+ mobile: '',
|
|
|
|
|
+ identity: '',
|
|
|
|
|
+ identityTimeStart: '',
|
|
|
|
|
+ identityTimeEnd: '',
|
|
|
|
|
+ leaderId: '',
|
|
|
|
|
+ referrerId: '',
|
|
|
|
|
+ sex: '',
|
|
|
|
|
+ birthday: '',
|
|
|
|
|
+ nations: '',
|
|
|
|
|
+ koseki: '',
|
|
|
|
|
+ maritalStatus: '',
|
|
|
|
|
+ politicsStatus: '',
|
|
|
|
|
+ health: '',
|
|
|
|
|
+ province: '',
|
|
|
|
|
+ city: '',
|
|
|
|
|
+ district: '',
|
|
|
|
|
+ liveAddress: '',
|
|
|
|
|
+ postalCode: '',
|
|
|
|
|
+ education: '',
|
|
|
|
|
+ graduationTime: '',
|
|
|
|
|
+ school: '',
|
|
|
|
|
+ isComputer: '',
|
|
|
|
|
+ emergencyContactName: '',
|
|
|
|
|
+ emergencyContactTel: '',
|
|
|
|
|
+ salary: '',
|
|
|
|
|
+ salaryLevel: '',
|
|
|
|
|
+ bankCardId: '',
|
|
|
|
|
+ bankName: '',
|
|
|
|
|
+ sfz1: '',
|
|
|
|
|
+ sfz2: '',
|
|
|
|
|
+ qualification: '',
|
|
|
|
|
+ contract: '',
|
|
|
|
|
+ applicant: '',
|
|
|
|
|
+ salaryTable: '',
|
|
|
|
|
+ leaveTable: '',
|
|
|
|
|
+ organizationId: '',
|
|
|
|
|
+ organization: '',
|
|
|
|
|
+ leaderNumber: '',
|
|
|
|
|
+ referrerNumber: '',
|
|
|
|
|
+ address: [],
|
|
|
|
|
+ }
|
|
|
|
|
+ IDCardFrontName.value = ''
|
|
|
|
|
+ IDCardFront.value = ''
|
|
|
|
|
+ IDCardBackName.value = ''
|
|
|
|
|
+ IDCardBack.value = ''
|
|
|
|
|
+ certificationName.value = ''
|
|
|
|
|
+ certification.value = ''
|
|
|
|
|
+ contractName.value = ''
|
|
|
|
|
+ contract.value = ''
|
|
|
|
|
+ applicantName.value = ''
|
|
|
|
|
+ applicant.value = ''
|
|
|
|
|
+ decidePayName.value = ''
|
|
|
|
|
+ decidePay.value = ''
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// 上传接口
|
|
// 上传接口
|
|
|
let postUrl = ref(`${import.meta.env.VITE_APP_API_BASEURL}/file/upload`)
|
|
let postUrl = ref(`${import.meta.env.VITE_APP_API_BASEURL}/file/upload`)
|
|
|
// 上传图片
|
|
// 上传图片
|
|
@@ -803,6 +916,7 @@ const imageView = (type) => {
|
|
|
|
|
|
|
|
// 图片下载
|
|
// 图片下载
|
|
|
const download = (url, name) => {
|
|
const download = (url, name) => {
|
|
|
|
|
+ alert(1)
|
|
|
let image = new Image();
|
|
let image = new Image();
|
|
|
// 解决跨域 Canvas 污染问题
|
|
// 解决跨域 Canvas 污染问题
|
|
|
image.setAttribute("crossOrigin", "anonymous");
|
|
image.setAttribute("crossOrigin", "anonymous");
|
|
@@ -1164,7 +1278,8 @@ onMounted(() => {
|
|
|
|
|
|
|
|
defineExpose({
|
|
defineExpose({
|
|
|
initEditData,
|
|
initEditData,
|
|
|
- operationForm
|
|
|
|
|
|
|
+ operationForm,
|
|
|
|
|
+ initAddData
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1175,12 +1290,12 @@ defineExpose({
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
justify-content: flex-start;
|
|
justify-content: flex-start;
|
|
|
- padding: 2px 20px;
|
|
|
|
|
|
|
+ //padding: 2px 20px;
|
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
|
margin: 0 10px;
|
|
margin: 0 10px;
|
|
|
- &:hover{
|
|
|
|
|
- background: #ccc;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ //&:hover{
|
|
|
|
|
+ // background: #ccc;
|
|
|
|
|
+ //}
|
|
|
.fileName{
|
|
.fileName{
|
|
|
width: 200px;
|
|
width: 200px;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
@@ -1199,6 +1314,46 @@ defineExpose({
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ .file-box{
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ .btn-top{
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: flex-end;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ .image-close{
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ width: 12px;
|
|
|
|
|
+ height: 12px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .file-img{
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ width: 208px;
|
|
|
|
|
+ height: 130px;
|
|
|
|
|
+ border-radius: 5px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .btn-bottom{
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ bottom: 0;
|
|
|
|
|
+ z-index: 1000;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ height: 24px;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ background: url("@/assets/images/btn-bg.png") no-repeat;
|
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
|
+ .width-50{
|
|
|
|
|
+ width: 50%;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
.image-view{
|
|
.image-view{
|
|
|
position: absolute;
|
|
position: absolute;
|