@@ -63,8 +63,8 @@
v-model="check"
:style="{padding:'10px 0px 20px 0px'}"
>
-
@@ -130,10 +130,12 @@
import moment from 'moment'
const tabsOptions = [
{
- name:'待执行',
+ name:'执行中',
+ value:1
},
{
- name:'已执行',
+ name:'完成',
+ value:2
},
]
@@ -142,12 +144,30 @@
return {
tabsOptions:tabsOptions,
show:false,
- check:['水库调洪','人员转移'],
+ tabVal:1,
+ check:['0','1'],
showStmPicker:false,
showEtmPicker:false,
stm:Number(moment(new Date()).add(-7,'days')),
etm:Number(new Date()),
- list:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]
+ list:[{
+ serial:'10',//调度指令编号
+ year:'2023',//调度令年度
+ executeOrgCode:'执行单位编码',//执行单位编码
+ executeOrgName:'执行单位名称',//执行单位名称
+ dispatchType:'水库调洪',//调度类型
+ forwardOrgName:'抄送单位',//抄送单位
+ startTm:'计划执行时间',//计划执行时间
+ endTm:'计划结束时间',//计划结束时间
+ content:'指令内容',//指令内容
+ createTm:'指令日期',//指令日期
+ createUserId:'指令发起人id',//指令发起人id
+ createUserName:'张三',//指令发起人
+ status:'1',//调令状态,0=待下发,1=执行中,2=完成
+ createTm:'2023-10-10 12:12:10',
+ dispatchId: '14'
+
+ }]
};
},
computed: {
@@ -160,6 +180,8 @@
},
methods: {
tabsChange(item) {
+ this.tabVal = item.value
+ this.submit()
},
myShow() {
this.show = true
@@ -170,34 +192,44 @@
reSet() {
this.stm = Number(moment(new Date()).add(-7,'days'))
this.etm = Number(new Date())
- this.check = ['水库调洪','人员转移']
+ this.check = ['0','1']
},
async submit() {
- this.close()
- // try{
- // const params = {
- // }
- // const res = await uni.$http.post('/gunshiApp/xfflood/current/situation/app/rv/warn',params)
- // this.list = res.data.data
- // this.close()
- // }catch(e){
- // //TODO handle the exception
- // this.$refs.uToast.show({
- // type: 'error',
- // title: '失败主题',
- // message: "请求失败",
- // })
- // setTimeout(()=>{
- // this.close()
- // },1000)
- // }
+ try{
+ const params = {
+ status:this.tabVal,
+ dispatchTypeList:this.check,
+ dateTimeRangeSo:{
+ start:moment(this.stm).format('YYYY-MM-DD HH:mm:sss'),
+ end:moment(this.etm).format('YYYY-MM-DD HH:mm:sss')
+ }
+ }
+ console.log('params',params)
+ const res = await uni.$http.post('/gunshiApp/xfflood/xfEmerDispatchR/app/list',params)
+ console.log('res',res)
+ this.list = res.data.data
+ this.close()
+ }catch(e){
+ //TODO handle the exception
+ this.$refs.uToast.show({
+ type: 'error',
+ title: '失败主题',
+ message: "请求失败",
+ })
+ setTimeout(()=>{
+ this.close()
+ },1000)
+ }
},
myNavigateTo (record) {
uni.navigateTo({
- url: '/pages/orderFeedback/orderInformation?obj='+JSON.stringify(record) // 跳转到对应路径的页面
+ url: '/pages/orderFeedback/orderInformation?obj='+JSON.stringify({...record,isDisabled:this.tabVal===1?false:true}) // 跳转到对应路径的页面
});
}
},
+ created() {
+ // this.submit()
+ }
}
diff --git a/pages/orderFeedback/orderInformation.vue b/pages/orderFeedback/orderInformation.vue
index 098eea1..9e06c29 100644
--- a/pages/orderFeedback/orderInformation.vue
+++ b/pages/orderFeedback/orderInformation.vue
@@ -12,15 +12,6 @@
leftIconSize='20'
leftIconColor='rgb(153, 153, 153)'
>
-
-
-
diff --git a/pages/orderFeedback/zl.vue b/pages/orderFeedback/zl.vue
index b832b40..20ea3a4 100644
--- a/pages/orderFeedback/zl.vue
+++ b/pages/orderFeedback/zl.vue
@@ -5,7 +5,7 @@
@@ -15,7 +15,7 @@
@@ -25,7 +25,7 @@
@@ -35,7 +35,7 @@
@@ -45,7 +45,7 @@
@@ -55,7 +55,7 @@
@@ -65,7 +65,7 @@
@@ -74,7 +74,7 @@
指令内容:
@@ -85,7 +85,7 @@
@@ -95,11 +95,12 @@
+