|
@@ -168,7 +168,7 @@
|
|
|
<el-form-item v-if="dict.confirmWay == '附件'" label-width="70px" prop="linkUrls" label="上传附件">
|
|
|
<el-upload :on-exceed="exceedHandle" :limit="1" :disabled="isAppoval && (dict.isF == undefined ? true : false)" class="upload-demo" ref="upload"
|
|
|
:headers="upload.headers" :action="upload.url" :on-success="handleFileSuccess.bind(null, index)"
|
|
|
- :auto-upload="true" :file-list="dict.fileList" :on-remove="handleRemove" :on-change="handleChange" on->
|
|
|
+ :auto-upload="true" :file-list="dict.fileList" :on-remove="handleRemove" :on-change="handleChange" >
|
|
|
<el-button :disabled="isAppoval && (dict.isF == undefined ? true : false)" slot="trigger" size="small" type="primary">选取文件</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
@@ -546,6 +546,7 @@ export default {
|
|
|
|
|
|
// 文件上传成功处理
|
|
|
handleFileSuccess(index, response, file, fileList) {
|
|
|
+ console.log("success");
|
|
|
let linkUrls = [];
|
|
|
let fileNames = [];
|
|
|
fileList.forEach((item) => {
|