问题修改

dev-scheduling
jinna 5 days ago
parent 3da27665cd
commit 79ca2a726f
  1. 46
      src/views/productionTesting/components/trialStandard.vue

@ -45,17 +45,23 @@
<div style="margin-top: 20px;"> <div style="margin-top: 20px;">
<el-table :data="tidList" @selection-change="selectionChangeProject" @select="selectChange"> <el-table :data="tidList" @selection-change="selectionChangeProject" @select="selectChange">
<el-table-column type="selection" width="55px"></el-table-column> <el-table-column type="selection" width="55px"></el-table-column>
<el-table-column label="编码" prop="code"> <el-table-column label="编码" prop="code" align="center">
<template #header>
<span><i style="color: red">*</i>类型</span>
</template>
<template #default="scope"> <template #default="scope">
<el-input v-model="scope.row.code"></el-input> <el-input v-model="scope.row.code"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="标准" prop="name"> <el-table-column label="标准" prop="name" align="center">
<template #header>
<span><i style="color: red">*</i>类型</span>
</template>
<template #default="scope"> <template #default="scope">
<el-input v-model="scope.row.name"></el-input> <el-input v-model="scope.row.name"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="文件上传" prop="twoData"> <el-table-column label="文件上传" prop="twoData" align="center">
<template #default="scope"> <template #default="scope">
<!-- <el-upload v-model:file-list="fileList" class="upload-demo" <!-- <el-upload v-model:file-list="fileList" class="upload-demo"
action="/api/blade-resource/oss/endpoint/put-file-attach" action="/api/blade-resource/oss/endpoint/put-file-attach"
@ -68,22 +74,24 @@
</div> </div>
</template> --> </template> -->
<!-- </el-upload> --> <!-- </el-upload> -->
<el-upload <div style="padding-top:10px;">
class="upload-demo" <el-upload
:headers="headers" class="upload-demo"
action="/api/blade-resource/oss/endpoint/put-file-attach" :headers="headers"
:on-remove="(file, fileList) => handleRemove(response, file, scope.$index)" action="/api/blade-resource/oss/endpoint/put-file-attach"
:on-success="(response, file, fileList) => handleSuccess(response, file, fileList,scope.$index)" :on-remove="(file, fileList) => handleRemove(response, file, scope.$index)"
multiple :on-success="(response, file, fileList) => handleSuccess(response, file, fileList,scope.$index)"
accept=".pdf,.doc,.docx" multiple
:limit="1" accept=".pdf,.doc,.docx"
:on-exceed="(files, fileList) =>handleExceed(files, fileList,scope.$index)" :limit="1"
:file-list="fileList" :on-exceed="(files, fileList) =>handleExceed(files, fileList,scope.$index)"
:disabled="disabled" :file-list="fileList"
> :disabled="disabled"
<el-button size="small" type="primary">点击上传</el-button> >
<!-- <div slot="tip" class="el-upload__tip">支持扩展名:.pdf.doc.docx(最大5M)</div> --> <el-button size="small" type="primary">点击上传</el-button>
</el-upload> <!-- <div slot="tip" class="el-upload__tip">支持扩展名:.pdf.doc.docx(最大5M)</div> -->
</el-upload>
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

Loading…
Cancel
Save