f7cf8c90 by renchao@pashanhoo.com

style:所有材料信息功能的完善

1 parent 9c26d664
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-10-12 09:40:40
* @LastEditTime: 2023-10-12 09:49:08
-->
<template>
<div class="rlPopup">
......@@ -26,7 +26,7 @@
<el-upload class="fileUpdate" ref="upload" :key="key" action="" :show-file-list="false" :multiple="true" :auto-upload="false"
:on-change="handleChange"
accept=".JPG, .PNG, .JPEG,.jpg, .png, .jpeg">
<el-button icon="el-icon-upload" type="primary" v-if="ableOperation">上传</el-button>
<el-button icon="el-icon-upload" type="primary" :loading="upDateloading" v-if="ableOperation">上传</el-button>
</el-upload>
<!-- 左移右移 -->
<el-button type="primary" @click="handleMove('left')" v-if="ableOperation && thumbnailImages.length>0">左移</el-button>
......@@ -73,6 +73,7 @@
},
data () {
return {
upDateloading: false,
loading: false,
key: 0,
isScan: false,
......@@ -288,6 +289,7 @@
this.key++
return;
}
this.upDateloading = true
formData.append("bsmSj", this.previewImg.bsmSj);
formData.append("bsmSlsq", this.previewImg.bsmSlsq);
if (this.previewImg.imgList.length > 0) {
......@@ -300,6 +302,7 @@
message: '上传成功!',
type: 'success'
})
this.upDateloading = false
this.$refs.upload.clearFiles();
this.maxFileLength = 0
}
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-18 17:11:37
* @LastEditTime: 2023-10-12 09:54:01
-->
<template>
<div class="rlPopup">
......@@ -26,11 +26,11 @@
<el-upload class="fileUpdate" ref="upload" :key="key" action="" :show-file-list="false" :multiple="true" :auto-upload="false"
:on-change="handleChange"
accept=".JPG, .PNG, .JPEG,.jpg, .png, .jpeg">
<el-button icon="el-icon-upload" type="primary" v-if="ableOperation">上传</el-button>
<el-button icon="el-icon-upload" type="primary" :loading="upDateloading" v-if="ableOperation">上传</el-button>
</el-upload>
<!-- 左移右移 -->
<el-button type="primary" @click="handleMove('left')" v-if="ableOperation">左移</el-button>
<el-button type="primary" @click="handleMove('right')" v-if="ableOperation">右移</el-button>
<el-button type="primary" @click="handleMove('left')" v-if="ableOperation && thumbnailImages.length>0">左移</el-button>
<el-button type="primary" @click="handleMove('right')" v-if="ableOperation && thumbnailImages.length>0">右移</el-button>
<el-button type="primary" icon="el-icon-delete-solid" @click="handleDelete"
v-if="thumbnailImages.length>0 && ableOperation">删除</el-button>
<div v-if="ableOperation" class="pl-5">
......@@ -73,6 +73,7 @@
},
data () {
return {
upDateloading: false,
loading: false,
key: 0,
isScan: false,
......@@ -288,6 +289,7 @@
this.key++
return;
}
this.upDateloading = true
formData.append("bsmSj", this.previewImg.bsmSj);
formData.append("bsmSlsq", this.previewImg.bsmSlsq);
if (this.previewImg.imgList.length > 0) {
......@@ -300,6 +302,7 @@
message: '上传成功!',
type: 'success'
})
this.upDateloading = false
this.$refs.upload.clearFiles();
this.maxFileLength = 0
}
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-19 09:55:41
* @LastEditTime: 2023-10-12 09:56:45
-->
<template>
<div class="rlPopup">
......@@ -23,19 +23,6 @@
<div class="thumb-wrap">
<div class="thumb-wrap-button">
<el-button type="primary" @click="clickImage" v-if="previewImg.imgList.length>0">(放大) 显示(缩小)</el-button>
<!-- <el-upload class="fileUpdate" ref="upload" :key="key" action="" :show-file-list="false" :multiple="true" :auto-upload="false"
:on-change="handleChange"
accept=".JPG, .PNG, .JPEG,.jpg, .png, .jpeg">
<el-button icon="el-icon-upload" type="primary" v-if="ableOperation">上传</el-button>
</el-upload> -->
<!-- <el-button type="primary" @click="handleMove('left')" v-if="ableOperation">左移</el-button>
<el-button type="primary" @click="handleMove('right')" v-if="ableOperation">右移</el-button> -->
<!-- <el-button type="primary" icon="el-icon-delete-solid" @click="handleDelete"
v-if="thumbnailImages.length>0 && ableOperation">删除</el-button>
<div v-if="ableOperation" class="pl-5">
<el-button type="primary" @click="handleOpenScan" v-if="ableOperation" :loading="loading">{{scanTitle}}</el-button>
<el-button type="primary" @click="handleViewScan" v-if="isScan && ableOperation">拍照</el-button>
</div> -->
</div>
<ul>
<li v-for="(img, index) in thumbnailImages" :key="index" :class="{ active: previewImg.index === index }"
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-14 16:24:07
* @LastEditTime: 2023-10-12 09:55:54
-->
<template>
<div class="rlPopup">
......@@ -26,11 +26,11 @@
<el-upload class="fileUpdate" ref="upload" :key="key" action="" :show-file-list="false" :multiple="true" :auto-upload="false"
:on-change="handleChange"
accept=".JPG, .PNG, .JPEG,.jpg, .png, .jpeg">
<el-button icon="el-icon-upload" type="primary" v-if="ableOperation">上传</el-button>
<el-button icon="el-icon-upload" type="primary" :loading="upDateloading" v-if="ableOperation">上传</el-button>
</el-upload>
<!-- 左移右移 -->
<el-button type="primary" @click="handleMove('left')" v-if="ableOperation">左移</el-button>
<el-button type="primary" @click="handleMove('right')" v-if="ableOperation">右移</el-button>
<el-button type="primary" @click="handleMove('left')" v-if="ableOperation && thumbnailImages.length>0">左移</el-button>
<el-button type="primary" @click="handleMove('right')" v-if="ableOperation && thumbnailImages.length>0">右移</el-button>
<el-button type="primary" icon="el-icon-delete-solid" @click="handleDelete"
v-if="thumbnailImages.length>0 && ableOperation">删除</el-button>
<div v-if="ableOperation" class="pl-5">
......@@ -73,6 +73,7 @@
},
data () {
return {
upDateloading: false,
loading: false,
key: 0,
isScan: false,
......@@ -292,6 +293,7 @@
this.key++
return;
}
this.upDateloading = true
formData.append("bsmMaterial", this.previewImg.bsmMaterial);
if (this.previewImg.imgList.length > 0) {
formData.append("index", this.previewImg.imgList[this.previewImg.index].sxh);
......@@ -303,6 +305,7 @@
message: '上传成功!',
type: 'success'
})
this.upDateloading = false
this.$refs.upload.clearFiles();
this.maxFileLength = 0
}
......