mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 15:06:45 +08:00
刷新方法测试
This commit is contained in:
BIN
public/images/refresh.png
Normal file
BIN
public/images/refresh.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 496 B |
22
src/assets/js/utils/refresh.js
Normal file
22
src/assets/js/utils/refresh.js
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
export default {
|
||||||
|
refreshImg() {
|
||||||
|
if (window.WebViewJavascriptBridge) {
|
||||||
|
EWebBridge.webCallAppInJs('webview_right_button', {
|
||||||
|
btns: [
|
||||||
|
{
|
||||||
|
img: 'images/refresh.png',
|
||||||
|
route: {
|
||||||
|
flag: '',
|
||||||
|
extra: {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
refreshCallBack(data) {
|
||||||
|
if (data.trigger == 'right_button_click') {
|
||||||
|
location.reload()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
import Selectors from '@/views/ebiz/institutionalPerform/InstitutionalManpower/components/Selectors'
|
import Selectors from '@/views/ebiz/institutionalPerform/InstitutionalManpower/components/Selectors'
|
||||||
import util from '@/views/ebiz/institutionalPerform/InstitutionalManpower/components/js/util'
|
import util from '@/views/ebiz/institutionalPerform/InstitutionalManpower/components/js/util'
|
||||||
import { branchOfficeApi } from '@/api/ebiz/branchOffice/branchOffice'
|
import { branchOfficeApi } from '@/api/ebiz/branchOffice/branchOffice'
|
||||||
import refreshLogo from '@/assets/images/ebiz/refresh.png'
|
import refresh from '@/assets/js/utils/refresh'
|
||||||
import { Tabs, Tab } from 'vant'
|
import { Tabs, Tab } from 'vant'
|
||||||
export default {
|
export default {
|
||||||
name: 'InstitutionalManpower',
|
name: 'InstitutionalManpower',
|
||||||
@@ -74,8 +74,6 @@ export default {
|
|||||||
items: [],
|
items: [],
|
||||||
bzbfTotol: 0,
|
bzbfTotol: 0,
|
||||||
queryColumns: ['活动人力', '合格人力', '桂冠人力', '新增人力'],
|
queryColumns: ['活动人力', '合格人力', '桂冠人力', '新增人力'],
|
||||||
|
|
||||||
refreshLogo,
|
|
||||||
active: 1,
|
active: 1,
|
||||||
// 当前的机构编码
|
// 当前的机构编码
|
||||||
curCode: '',
|
curCode: '',
|
||||||
@@ -92,7 +90,7 @@ export default {
|
|||||||
this.items=[]
|
this.items=[]
|
||||||
this.queryColumns.forEach(() => {
|
this.queryColumns.forEach(() => {
|
||||||
|
|
||||||
this.items.push('0.00')
|
this.items.push('0')
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
let sum1 = 0
|
let sum1 = 0
|
||||||
@@ -214,22 +212,25 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if (process.env.NODE_ENV != 'development') {
|
if (process.env.NODE_ENV != 'development') {
|
||||||
setTimeout(() => {
|
|
||||||
// eslint-disable-next-line no-undef
|
refresh.refreshImg()
|
||||||
EWebBridge.webCallAppInJs('webview_right_button', {
|
window.appCallBack=refresh.refreshCallBack()
|
||||||
btns: [
|
// setTimeout(() => {
|
||||||
{
|
// // eslint-disable-next-line no-undef
|
||||||
img: this.$assetsUrl + 'images/ebiz/refresh.png',
|
// EWebBridge.webCallAppInJs('webview_right_button', {
|
||||||
route: {
|
// btns: [
|
||||||
flag: '',
|
// {
|
||||||
extra: {
|
// img: 'images/refresh.png',
|
||||||
url: location.origin + '/#/institutionalPerform/BranchOffice'
|
// route: {
|
||||||
}
|
// flag: '',
|
||||||
}
|
// extra: {
|
||||||
}
|
// url: location.origin + '/#/institutionalPerform/BranchOffice'
|
||||||
]
|
// }
|
||||||
})
|
// }
|
||||||
}, 1000)
|
// }
|
||||||
|
// ]
|
||||||
|
// })
|
||||||
|
// }, 1000)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|||||||
Reference in New Issue
Block a user