Merge remote-tracking branch 'origin/master'

This commit is contained in:
liang.chao 2025-02-13 18:29:51 +08:00
commit a0e56c5024
1 changed files with 19 additions and 40 deletions

View File

@ -1,13 +1,7 @@
<!--监理入场申请页面--> <!--监理入场申请页面-->
<template> <template>
<el-container> <el-container>
<el-form <el-form ref="elForm" :model="formData" :rules="rule" label-width="100px" style="height: 82vh;overflow: auto;width: 100%;">
ref="elForm"
:model="formData"
:rules="rule"
label-width="100px"
style="height: 82vh; overflow: auto; width: 100%"
>
<el-main> <el-main>
<el-tabs v-model="activeName"> <el-tabs v-model="activeName">
<el-tab-pane label="监理单位信息" name="first"> <el-tab-pane label="监理单位信息" name="first">
@ -37,23 +31,17 @@
size="mini" size="mini"
v-if="this.paramsData.type !== 'view'" v-if="this.paramsData.type !== 'view'"
@click="handleAdd" @click="handleAdd"
> >新增
新增
</el-button> </el-button>
<el-button type="primary" plain icon="el-icon-upload" size="mini" @click="handlePersonImport"> <el-button type="primary" plain icon="el-icon-upload" size="mini" @click="handlePersonImport">
基础数据上传 基础数据上传
</el-button> </el-button>
<el-button type="primary" plain icon="el-icon-upload" size="mini" @click="handleFileImport"> <el-button type="primary" plain icon="el-icon-upload" size="mini" @click="handleFileImport">文件上传
文件上传
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table v-loading="loading" :data="supervisorList"> <el-table v-loading="loading" :data="supervisorList">
<el-table-column <el-table-column label="序号" type="index" width="55" align="center"
label="序号"
type="index"
width="55"
align="center"
:index="indexContinuous(queryParams.pageNum, queryParams.pageSize)" :index="indexContinuous(queryParams.pageNum, queryParams.pageSize)"
/> />
<el-table-column label="姓名" align="center" prop="name" /> <el-table-column label="姓名" align="center" prop="name" />
@ -85,25 +73,15 @@
<el-table-column label="人脸照片" align="center" prop="faceUrl"> <el-table-column label="人脸照片" align="center" prop="faceUrl">
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover placement="right" title="" trigger="hover"> <el-popover placement="right" title="" trigger="hover">
<img <img :src="`${scope.row.faceUrl ? lookFaceFile+scope.row.faceUrl : ''}`" :min-width="300" :height="300" alt="照片" />
:src="`${scope.row.faceUrl ? lookFaceFile + scope.row.faceUrl : ''}`" <img slot="reference" :src="`${scope.row.faceUrl ? lookFaceFile+scope.row.faceUrl : ''}`"
:min-width="300"
:height="300"
alt="照片"
/>
<img
slot="reference"
:src="`${scope.row.faceUrl ? lookFaceFile + scope.row.faceUrl : ''}`"
style="max-height: 50px; max-width: 50px" style="max-height: 50px; max-width: 50px"
:alt="`${scope.row.faceUrl ? lookFaceFile+scope.row.faceUrl : ''}`" :alt="`${scope.row.faceUrl ? lookFaceFile+scope.row.faceUrl : ''}`"
/> />
</el-popover> </el-popover>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="操作" align="center" class-name="small-padding fixed-width"
label="操作"
align="center"
class-name="small-padding fixed-width"
v-if="this.paramsData.type !== 'view'" v-if="this.paramsData.type !== 'view'"
> >
<template slot-scope="scope"> <template slot-scope="scope">
@ -1003,7 +981,8 @@ export default {
...this.getParams(), ...this.getParams(),
taskType: '1', taskType: '1',
taskId: this.paramsData.type === 'edit' ? this.paramsData.taskId : '', taskId: this.paramsData.type === 'edit' ? this.paramsData.taskId : '',
uuid: this.$store.state.user.thisIds.uuid, uuid: this.$store.state.user.thisIds.uuid
} }
console.log('param=' + JSON.stringify(param)) console.log('param=' + JSON.stringify(param))
submitApproval(param).then(response => { submitApproval(param).then(response => {
@ -1027,7 +1006,7 @@ export default {
submitPersonForm() { submitPersonForm() {
this.loading = true this.loading = true
this.$refs.form.validate(valid => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
console.log(this.form) console.log(this.form)
const reqData = new FormData() const reqData = new FormData()