|
@@ -153,6 +153,7 @@
|
|
props: uploadFormProps,
|
|
props: uploadFormProps,
|
|
isArr: true,
|
|
isArr: true,
|
|
num: 0,
|
|
num: 0,
|
|
|
|
+ preview: false,
|
|
}"
|
|
}"
|
|
:upload="{ options: { multiple: false } }"
|
|
:upload="{ options: { multiple: false } }"
|
|
@item="uploadFileItem"
|
|
@item="uploadFileItem"
|
|
@@ -173,6 +174,7 @@
|
|
<script setup>
|
|
<script setup>
|
|
import { nextTick, ref, watch } from 'vue'
|
|
import { nextTick, ref, watch } from 'vue'
|
|
import { useAppStore } from '~src/store'
|
|
import { useAppStore } from '~src/store'
|
|
|
|
+import { toPdfPage } from '~uti/btn-auth'
|
|
import { getDictionaryData, isNumberReg } from '~uti/tools'
|
|
import { getDictionaryData, isNumberReg } from '~uti/tools'
|
|
import { arrIndex, arrToKey, formValidate, getArrValue, getObjValue, isArray, isNullES } from 'js-fast-way'
|
|
import { arrIndex, arrToKey, formValidate, getArrValue, getObjValue, isArray, isNullES } from 'js-fast-way'
|
|
import ChangeRequest from './changeRequest.vue'
|
|
import ChangeRequest from './changeRequest.vue'
|
|
@@ -463,9 +465,9 @@ const uploadFileSuccess = ({ res }, resolve) => {
|
|
|
|
|
|
//文件被点击
|
|
//文件被点击
|
|
const uploadFileItem = ({ file }) => {
|
|
const uploadFileItem = ({ file }) => {
|
|
- const { url } = getObjValue(file)
|
|
|
|
- if (isNullES(url)) return
|
|
|
|
- toPdfPage(url)
|
|
|
|
|
|
+ const { pdfUrl } = getObjValue(file)
|
|
|
|
+ if (isNullES(pdfUrl)) return
|
|
|
|
+ toPdfPage(pdfUrl)
|
|
}
|
|
}
|
|
|
|
|
|
//保存
|
|
//保存
|