mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 06:36:44 +08:00
Compare commits
1 Commits
master
...
hotfix/【20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f908939e5c |
@@ -173,6 +173,19 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
},
|
||||
mounted() {
|
||||
let date = new Date()
|
||||
let month = date.getMonth() + 1
|
||||
if (month <= 9) {
|
||||
month = '0' + month
|
||||
}
|
||||
//默认展示当天数据
|
||||
this.postDate = date.getFullYear() + '-' + month + '-' + date.getDate()
|
||||
this.initData()
|
||||
},
|
||||
methods: {
|
||||
//切换当月、当天
|
||||
switchDayOrMonth(index) {
|
||||
@@ -218,7 +231,14 @@ export default {
|
||||
* 查询机构下拉列表
|
||||
* manageCode, manageLv传空查全国所有二级机构
|
||||
**/
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
let resData = await getBranchByUser({})
|
||||
this.$toast.clear()
|
||||
if (resData.result != '0') return this.$toast(resData.resultMessage)
|
||||
this.manageLv = resData.content.level
|
||||
//当前token查不出机构时,展示敬请期待
|
||||
@@ -275,6 +295,12 @@ export default {
|
||||
},
|
||||
// 查询列表数据
|
||||
queryOutOrderListFunc() {
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
queryOutOrderList({
|
||||
dateFlag: this.dateFlag,
|
||||
appntDate: this.postDate,
|
||||
@@ -284,6 +310,7 @@ export default {
|
||||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize
|
||||
}).then(res => {
|
||||
this.$toast.clear()
|
||||
if (res.result == 0) {
|
||||
if (res.content) {
|
||||
this.pageNum++
|
||||
@@ -388,16 +415,6 @@ export default {
|
||||
this.queryOutOrderListFunc()
|
||||
}
|
||||
},
|
||||
created() {
|
||||
let date = new Date()
|
||||
let month = date.getMonth() + 1
|
||||
if (month <= 9) {
|
||||
month = '0' + month
|
||||
}
|
||||
//默认展示当天数据
|
||||
this.postDate = date.getFullYear() + '-' + month + '-' + date.getDate()
|
||||
this.initData()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user