Commit 4f7e1f74 by chenwq

bug修复

1 parent 2180530e
......@@ -572,13 +572,13 @@ export default {
item.optStautsShow = "驳回"
item.optRemarkShow = "驳回原因"
}
} else if (item.beforeStatus == 6) {
} else if (item.beforeStatus == 7) {
item.optShow = "区域运营审核"
item.optStautsShow = "通过"
item.optPerShow = "审核人"
item.optTimeShow = "审核时间"
item.optRemarkShow = "备注"
} else if (item.beforeStatus == 7) {
} else if (item.beforeStatus == 8) {
item.optShow = "运营补充"
item.optStautsShow = "通过"
item.optPerShow = "操作人"
......
......@@ -108,6 +108,12 @@
</template>
</glsx-combi-form>
</div>
<el-image-viewer
v-if="imgViewerVisible"
:on-close="closeImgViewer"
:url-list="imageFileArr"
:initial-index="initialIndex"
/>
</baseDialog>
</template>
......@@ -129,6 +135,9 @@ import { baseConfig } from "@/main"
import GlOssApi from "glsk-oss-jssdk"
export default {
name: "NewSignRefundDialog",
components: {
'el-image-viewer': () => import('element-ui/packages/image/src/image-viewer'),
},
data() {
var checkAmount = (rule, value, callback) => {
if (!value) {
......@@ -144,6 +153,8 @@ export default {
userInfo: this.$store.state.d2admin.user.info,
loading: false,
refundOldData: [],
imageFileArr: [],
imgViewerVisible: false,
// 标记apiList是否都正确返回数据
baseApiIdx: 0,
okParams: {},
......@@ -617,6 +628,9 @@ export default {
this.uploadFileList = newVal.filter(
(v) => !this.filterEmpty(v.uploadProgress) || v.fileUrl
) // 文件列表
const imageFileArr = newVal.filter(v => v.fileUrl && (v.fileUrl.includes('.png') || v.fileUrl.includes('jpg')))
this.imageFileArr = imageFileArr.map(item => { return item.fileUrl })
console.log(this.imageFileArr, 'this.imageFileArr')
}
},
deep: true
......@@ -1052,15 +1066,16 @@ export default {
},
// 预览文件
handleFileView(item) {
// if (!item.fileUrl) return
// if (item?.fileUrl.includes('.pdf')) { // pdf文件直接打开新窗口预览
// window.open(item.fileUrl)
// } else {
// this.imgViewerVisible = true
// this.imageFileArr.forEach((val, index) => {
// if (val == item.fileUrl) this.initialIndex = index
// })
// }
console.log(item, 'item--')
if (!item.fileUrl) return
if (item?.fileUrl.includes('.pdf')) { // pdf文件直接打开新窗口预览
window.open(item.fileUrl)
} else if (item.fileUrl.includes('.png') || item.fileUrl.includes('jpg')) {
this.imgViewerVisible = true
this.imageFileArr.forEach((val, index) => {
if (val == item.fileUrl) this.initialIndex = index
})
}
},
closeImgViewer() {
this.imgViewerVisible = false
......
......@@ -67,7 +67,7 @@
</span>
<!-- 下载 -->
<span style="margin-right: 10px;"
v-if="scope.scope.approveType == 1">
v-if="scope.scope.approveType == 1 && scope.scope.status != 8">
<auth-button :data="scope.scope"
:show-btn-ids="['9040808']" />
<span v-if="scope.scope.downCount != 0"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!