问题修改

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

@ -45,17 +45,23 @@
<div style="margin-top: 20px;">
<el-table :data="tidList" @selection-change="selectionChangeProject" @select="selectChange">
<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">
<el-input v-model="scope.row.code"></el-input>
</template>
</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">
<el-input v-model="scope.row.name"></el-input>
</template>
</el-table-column>
<el-table-column label="文件上传" prop="twoData">
<el-table-column label="文件上传" prop="twoData" align="center">
<template #default="scope">
<!-- <el-upload v-model:file-list="fileList" class="upload-demo"
action="/api/blade-resource/oss/endpoint/put-file-attach"
@ -68,22 +74,24 @@
</div>
</template> -->
<!-- </el-upload> -->
<el-upload
class="upload-demo"
:headers="headers"
action="/api/blade-resource/oss/endpoint/put-file-attach"
:on-remove="(file, fileList) => handleRemove(response, file, scope.$index)"
:on-success="(response, file, fileList) => handleSuccess(response, file, fileList,scope.$index)"
multiple
accept=".pdf,.doc,.docx"
:limit="1"
:on-exceed="(files, fileList) =>handleExceed(files, fileList,scope.$index)"
: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-upload>
<div style="padding-top:10px;">
<el-upload
class="upload-demo"
:headers="headers"
action="/api/blade-resource/oss/endpoint/put-file-attach"
:on-remove="(file, fileList) => handleRemove(response, file, scope.$index)"
:on-success="(response, file, fileList) => handleSuccess(response, file, fileList,scope.$index)"
multiple
accept=".pdf,.doc,.docx"
:limit="1"
:on-exceed="(files, fileList) =>handleExceed(files, fileList,scope.$index)"
: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-upload>
</div>
</template>
</el-table-column>
</el-table>

Loading…
Cancel
Save