Commit 4f7e1f74 by chenwq

bug修复

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