Browse Source

bug修改

master
yangpeilai 4 days ago
parent
commit
1884ed38c3
2 changed files with 15 additions and 3 deletions
  1. 13
    2
      src/views/system/agency/index.vue
  2. 2
    1
      src/views/system/userManage/index.vue

+ 13
- 2
src/views/system/agency/index.vue View File

<template v-slot="scope"> <template v-slot="scope">
<el-upload v-if="typeOption!=='info'" ref="upload" :file-list="scope.row.fileList" style="padding-top: 9px;" <el-upload v-if="typeOption!=='info'" ref="upload" :file-list="scope.row.fileList" style="padding-top: 9px;"
:limit="1" :on-exceed="handleExceed" class="upload-demo" :data="data" :limit="1" :on-exceed="handleExceed" class="upload-demo" :data="data"
:action="uploadUrl" @success="onSuccess($event, scope.row)">
:action="uploadUrl" @success="onSuccess($event, scope.row)" accept=".pdf,.doc,.docx,.xls,.xlsx"
:on-remove="(file, fileList) => handleRemove(file, fileList, scope.row)">
<el-button size="small" type="primary" icon="upload"> <el-button size="small" type="primary" icon="upload">
上传附件 上传附件
</el-button> </el-button>
</el-upload> </el-upload>
<view v-else> <view v-else>
<el-link underline v-for="item in scope.row.fileList" :herf="item.url" type="primary">{{item.name}}</el-link>
<el-link underline v-for="item in scope.row.fileList" :href="item.url"
target="_blank" rel="noopener noreferrer" type="primary">{{item.name}}</el-link>
</view> </view>
</template> </template>
</el-table-column> </el-table-column>
const handleExceed: UploadProps['onExceed'] = (files) => { const handleExceed: UploadProps['onExceed'] = (files) => {
ElMessage.error('只能上传一条附件!') ElMessage.error('只能上传一条附件!')
} }

const handleRemove = (file, fileList, row) => {
row.agreementAnnex = "";
console.log('Rrow', row)
console.log('RdataForm.configSetInfos', dataForm.configSetInfos)
}

function onSuccess(response: any, row: any) { function onSuccess(response: any, row: any) {
// import.meta.env.VITE_APP_UPLOAD_URL + // import.meta.env.VITE_APP_UPLOAD_URL +
// row.agreementAnnex = response.data.ossFilePath // row.agreementAnnex = response.data.ossFilePath
row.agreementAnnex = response.data.ossFilePath row.agreementAnnex = response.data.ossFilePath
console.log('Srow', row)
console.log('SdataForm.configSetInfos', dataForm.configSetInfos)
} }


onMounted(() => { onMounted(() => {

+ 2
- 1
src/views/system/userManage/index.vue View File

</template> </template>
</crud-template> </crud-template>
<RealNameAuthentication @success="successfulCertification" v-model="AuthenticationVisible" <RealNameAuthentication @success="successfulCertification" v-model="AuthenticationVisible"
:staffOpenId="staffOpenId" />
:customerOpenId="staffOpenId" />
<BatchAuth v-model="isBatch" :dataListArr="batchList" @closed="cancelBatch" @refresh-list="getList" <BatchAuth v-model="isBatch" :dataListArr="batchList" @closed="cancelBatch" @refresh-list="getList"
v-if="isBatchShow" /> v-if="isBatchShow" />
</div> </div>
const staffOpenId = ref() const staffOpenId = ref()
function realNameAuthentication(row) { function realNameAuthentication(row) {
AuthenticationVisible.value = true AuthenticationVisible.value = true
console.log("===>row",row)
staffOpenId.value = row.staffOpenId staffOpenId.value = row.staffOpenId
} }
function successfulCertification() { function successfulCertification() {

Loading…
Cancel
Save