mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 03:36:43 +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: {
|
methods: {
|
||||||
//切换当月、当天
|
//切换当月、当天
|
||||||
switchDayOrMonth(index) {
|
switchDayOrMonth(index) {
|
||||||
@@ -218,7 +231,14 @@ export default {
|
|||||||
* 查询机构下拉列表
|
* 查询机构下拉列表
|
||||||
* manageCode, manageLv传空查全国所有二级机构
|
* manageCode, manageLv传空查全国所有二级机构
|
||||||
**/
|
**/
|
||||||
|
this.$toast.loading({
|
||||||
|
duration: 0, // 持续展示 toast
|
||||||
|
forbidClick: true, // 禁用背景点击
|
||||||
|
loadingType: 'spinner',
|
||||||
|
message: '加载中……'
|
||||||
|
})
|
||||||
let resData = await getBranchByUser({})
|
let resData = await getBranchByUser({})
|
||||||
|
this.$toast.clear()
|
||||||
if (resData.result != '0') return this.$toast(resData.resultMessage)
|
if (resData.result != '0') return this.$toast(resData.resultMessage)
|
||||||
this.manageLv = resData.content.level
|
this.manageLv = resData.content.level
|
||||||
//当前token查不出机构时,展示敬请期待
|
//当前token查不出机构时,展示敬请期待
|
||||||
@@ -275,6 +295,12 @@ export default {
|
|||||||
},
|
},
|
||||||
// 查询列表数据
|
// 查询列表数据
|
||||||
queryOutOrderListFunc() {
|
queryOutOrderListFunc() {
|
||||||
|
this.$toast.loading({
|
||||||
|
duration: 0, // 持续展示 toast
|
||||||
|
forbidClick: true, // 禁用背景点击
|
||||||
|
loadingType: 'spinner',
|
||||||
|
message: '加载中……'
|
||||||
|
})
|
||||||
queryOutOrderList({
|
queryOutOrderList({
|
||||||
dateFlag: this.dateFlag,
|
dateFlag: this.dateFlag,
|
||||||
appntDate: this.postDate,
|
appntDate: this.postDate,
|
||||||
@@ -284,6 +310,7 @@ export default {
|
|||||||
pageNum: this.pageNum,
|
pageNum: this.pageNum,
|
||||||
pageSize: this.pageSize
|
pageSize: this.pageSize
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
this.$toast.clear()
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
if (res.content) {
|
if (res.content) {
|
||||||
this.pageNum++
|
this.pageNum++
|
||||||
@@ -388,16 +415,6 @@ export default {
|
|||||||
this.queryOutOrderListFunc()
|
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>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user