Commit 14fb4b99 by 张权 Committed by chenwq

未审批通过隐藏按钮

1 parent 7702aef5
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import { aToExport,downloadIamge } from '@/common/constant' import { aToExport, downloadIamge } from '@/common/constant'
import glsxDialog from '@/components/glsx-dialog' import glsxDialog from '@/components/glsx-dialog'
export default { export default {
name: 'giftList', name: 'giftList',
...@@ -110,6 +110,9 @@ export default { ...@@ -110,6 +110,9 @@ export default {
name: row => { name: row => {
return '生成二维码' return '生成二维码'
}, },
condition: row => {
return row.scope.approveStatus == 2
},
attrs: { attrs: {
type: 'text', type: 'text',
fn: '生成二维码' fn: '生成二维码'
...@@ -302,7 +305,7 @@ export default { ...@@ -302,7 +305,7 @@ export default {
const params = { const params = {
appId, appId,
path: 'packageEquity/pages/directional/directional', path: 'packageEquity/pages/directional/directional',
envVersion: process.env.NODE_ENV === 'production' ? 'release':'trial', envVersion: process.env.NODE_ENV === 'production' ? 'release' : 'trial',
scene: `id=${this.curId}&merchantId=${merchantId}&staffUUID=${staffId}` scene: `id=${this.curId}&merchantId=${merchantId}&staffUUID=${staffId}`
} }
this.imgLoading = true this.imgLoading = true
...@@ -313,13 +316,13 @@ export default { ...@@ -313,13 +316,13 @@ export default {
this.imgLoading = false this.imgLoading = false
}) })
}, },
getAppId(){ getAppId() {
const host = window.location.host const host = window.location.host
if(host.indexOf('beta')>-1){ if (host.indexOf('beta') > -1) {
return 'wx9f91c1ec493eb425' return 'wx9f91c1ec493eb425'
}else if(host.indexOf('cgacar')>-1){ } else if (host.indexOf('cgacar') > -1) {
return 'wxfe82b8d65d07808f' return 'wxfe82b8d65d07808f'
}else{ } else {
return 'wxe10067a63c1856ac' return 'wxe10067a63c1856ac'
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!