This commit is contained in:
gtz217 2022-08-05 15:28:21 +08:00
parent 6e65dd1b8b
commit 9f68a54e2c
5 changed files with 33 additions and 21 deletions

View File

@ -2,7 +2,7 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-28 10:22:30 * @Date: 2022-07-28 10:22:30
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-08-04 15:55:57 * @LastEditTime: 2022-08-05 15:26:49
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\pages\eqInspection\eqInspection-detail.vue * @FilePath: \hf-pda\src\pages\eqInspection\eqInspection-detail.vue
--> -->
@ -63,14 +63,19 @@
</van-col> </van-col>
<van-col :span="15" :offset="1" /> <van-col :span="15" :offset="1" />
<van-col :span="24" style="padding-left: .25rem"> <van-col :span="24" style="padding-left: .25rem">
<van-uploader <van-row>
v-model="fileList" <van-uploader
:max-count="1" v-model="fileList"
:max-size="10485760" :max-count="1"
accept=".doc,.docx,.xls,.xlsx,.pdf,image/*" :max-size="10485760"
:after-read="upload" accept=".doc,.docx,.xls,.xlsx,.pdf,image/*"
@oversize="oversize" :after-read="upload"
/> @oversize="oversize"
/>
</van-row>
<van-row style="color: #666">
注意附件最大限制为<span style="color: #ee0a24">10M</span>仅支持<span style="color: #ee0a24">docdocxxlsxlsxpdf</span>以及图片文件的上传
</van-row>
</van-col> </van-col>
<van-col :span="22" :offset="1"> <van-col :span="22" :offset="1">
<van-button type="info" round size="large" @click="handleSubmit"> <van-button type="info" round size="large" @click="handleSubmit">

View File

@ -2,7 +2,7 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-28 10:22:30 * @Date: 2022-07-28 10:22:30
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-08-04 15:55:50 * @LastEditTime: 2022-08-05 15:26:44
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\pages\eqInspection\eqInspection-edit.vue * @FilePath: \hf-pda\src\pages\eqInspection\eqInspection-edit.vue
--> -->
@ -93,7 +93,7 @@
</van-swipe-cell> </van-swipe-cell>
</van-col> </van-col>
</template> </template>
<van-col :span="22" :offset="1" style="font-size: .4rem">暂无</van-col> <van-col v-else :span="22" :offset="1" style="font-size: .4rem">暂无</van-col>
</van-row> </van-row>
</div> </div>
<div class="eq-main-edit-item"> <div class="eq-main-edit-item">
@ -119,14 +119,19 @@
</van-col> </van-col>
<van-col :span="15" :offset="1" /> <van-col :span="15" :offset="1" />
<van-col :span="24" style="padding-left: .25rem"> <van-col :span="24" style="padding-left: .25rem">
<van-uploader <van-row>
v-model="fileList" <van-uploader
:max-count="1" v-model="fileList"
:max-size="10485760" :max-count="1"
accept=".doc,.docx,.xls,.xlsx,.pdf,image/*" :max-size="10485760"
:after-read="upload" accept=".doc,.docx,.xls,.xlsx,.pdf,image/*"
@oversize="oversize" :after-read="upload"
/> @oversize="oversize"
/>
</van-row>
<van-row style="color: #666">
注意附件最大限制为<span style="color: #ee0a24">10M</span>仅支持<span style="color: #ee0a24">docdocxxlsxlsxpdf以及图片文件</span>的上传
</van-row>
</van-col> </van-col>
<van-col :span="22" :offset="1"> <van-col :span="22" :offset="1">
<van-button type="info" round size="large" @click="handleSubmit"> <van-button type="info" round size="large" @click="handleSubmit">

View File

@ -177,6 +177,7 @@ export default {
// //
handleSearch () { handleSearch () {
this.dataList = [] this.dataList = []
this.queryList.current = 1
this.$nextTick(() => { this.$nextTick(() => {
this.getDataList() this.getDataList()
}) })

View File

@ -119,6 +119,7 @@ export default {
// //
handleSearch () { handleSearch () {
this.dataList = [] this.dataList = []
this.queryList.current = 1
this.$nextTick(() => { this.$nextTick(() => {
this.getDataList() this.getDataList()
}) })

View File

@ -2,7 +2,7 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-25 14:18:00 * @Date: 2022-07-25 14:18:00
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-08-05 09:56:34 * @LastEditTime: 2022-08-05 15:28:06
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\util\request.js * @FilePath: \hf-pda\src\util\request.js
*/ */
@ -19,7 +19,7 @@ let toast = null
// token加入header // token加入header
service.interceptors.request.use((config) => { service.interceptors.request.use((config) => {
// console.log(store.state) // console.log(store.state)
if (config.responseType) { if (config.responseType || config.file) {
config.timeout = 15000 config.timeout = 15000
toast = Toast.loading({ toast = Toast.loading({
mask: true, mask: true,