|
@@ -51,7 +51,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="16">
|
|
|
<el-form-item label="草图文件:">
|
|
|
- <hc-form-upload v-if="baseForm.pictureUrl" v-model="baseForm.pictureUrl" @item="pictureUrlItem" />
|
|
|
+ <hc-form-upload v-if="baseForm.pictureUrl" v-model="baseForm.pictureUrl" :options="{ preview: false }" @item="pictureUrlItem" />
|
|
|
<div v-else class="form-item-div">暂无文件</div>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -109,7 +109,7 @@
|
|
|
<hc-form-upload
|
|
|
v-model="baseForm.fileList" is-del is-res
|
|
|
:disabled="!isEdits || taskInfo.status === 2 || taskInfo.status === 3 || tableInfo.status === 1"
|
|
|
- :options="{ type: 'list', props: uploadFormProps, isArr: true, num: 0 }"
|
|
|
+ :options="{ type: 'list', props: uploadFormProps, preview: false, isArr: true, num: 0 }"
|
|
|
:upload="{ options: { multiple: false } }"
|
|
|
@success="uploadFileSuccess"
|
|
|
@item="uploadFileItem"
|
|
@@ -338,9 +338,9 @@ const pictureUrlItem = ({ file }) => {
|
|
|
|
|
|
//文件被点击
|
|
|
const uploadFileItem = ({ file }) => {
|
|
|
- const { url } = getObjValue(file)
|
|
|
- if (isNullES(url)) return
|
|
|
- toPdfPage(url)
|
|
|
+ const { pdfUrl } = getObjValue(file)
|
|
|
+ if (isNullES(pdfUrl)) return
|
|
|
+ toPdfPage(pdfUrl)
|
|
|
}
|
|
|
|
|
|
// 文件上传成功的回调
|