@@ -49,6 +71,11 @@
{img: '../../static/images/info.png', name: '个人信息', url:'/pages/personInfo/personInfo'},
{img: '../../static/images/password.png', name: '修改密码', url:'/pages/modifyPassword/modifyPassword'},
]
+ const xjxList = [
+ {img: '../../static/images/info.png', name: '巡查任务', url:'/pages/mypage/compents/xcrw/index'},
+ {img: '../../static/images/password.png', name: '维修养护', url:'/pages/mypage/compents/wxyh/index'},
+ {img: '../../static/images/password.png', name: '问题处理', url:'/pages/mypage/compents/wtcl/index'},
+ ]
export default {
data() {
return {
@@ -57,13 +84,14 @@
userresponse:'防汛办',
version:'011.14.23',
func: func,
+ xjxList:xjxList,
default_src: uni.getStorageSync('avatar'),
}
},
methods: {
navigateToSubPage(index){
uni.navigateTo({
- url: func[index].url,
+ url: xjxList[index].url,
animationType:'pop-in',
})
},
@@ -210,4 +238,11 @@
color: white;
background-color: #007afd;
}
+ .xjxList{
+ display: flex;
+ flex-direction: column;
+ align-items: start;
+ justify-content: start;
+ height: 20vh;
+ }
diff --git a/pages/wtcl/detail/index.vue b/pages/wtcl/detail/index.vue
index 95063a5..e9ced5b 100644
--- a/pages/wtcl/detail/index.vue
+++ b/pages/wtcl/detail/index.vue
@@ -70,7 +70,7 @@
- afterRead(e,queItem)"
@delete="(e)=>deletePic(e,queItem)" name="handlePics" multiple
:maxCount="10">
@@ -128,10 +128,21 @@
console.log(uni.getStorageSync('value'));
this.queItem.handleUserName = uni.getStorageSync('value').userName
this.queItem.handleTime = moment().format('YYYY-MM-DD HH:mm:ss')
- },
+ this.queItem.handleUserId = uni.getStorageSync('value').userId
+ },
methods: {
submit(){
- // /inspect/detail/handle
+ //
+ if(this.queItem.handlePics?.length < 0 || !this.queItem.handleDesc){
+ console.log(this.queItem);
+ uni.$showMsg('请填写处理内容和上传图片');
+ return;
+ }else{
+ console.log(this.queItem);
+ uni.$http.post('/gunshiApp/xyt/inspect/detail/handle', this.queItem).then(res => {
+ uni.$showMsg(res.data.description);
+ })
+ }
},
// 删除图片
deletePic(event, o) {
@@ -143,7 +154,12 @@
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
console.log(event,'2342132');
let lists = [].concat(event.file)
+
+ if(!this.queItem[event.name]){
+ this.queItem[event.name]=[]
+ }
let fileListLen = this.queItem[event.name]?.length
+ console.log(this.queItem[event.name]);
lists.map((item) => {
this.queItem[event.name].push({
...item,
diff --git a/pages/wtcl/index.vue b/pages/wtcl/index.vue
index 57f9bdb..be6c131 100644
--- a/pages/wtcl/index.vue
+++ b/pages/wtcl/index.vue
@@ -5,8 +5,8 @@
fontSize:'18px'
}" :height='44' :safeAreaInsetTop=true leftIconSize='20' leftIconColor='rgb(153, 153, 153)'>
-
-
+
+
开始时间
diff --git a/pages/ylzList/index.vue b/pages/ylzList/index.vue
index b291430..b5f28e8 100644
--- a/pages/ylzList/index.vue
+++ b/pages/ylzList/index.vue
@@ -9,8 +9,8 @@
-
-
+
+
{{k}}
@@ -43,7 +43,23 @@
}
},
methods:{
-
+ getColor(v){
+ if(v>=0 && v<10){
+ return '#bdef9a'
+ }
+ if(v>=10 && v<25){ return '#bdef9a'}
+ if(v>=20 && v<50){return '#6ec1fb'}
+ if(v>=50 && v<100){return '#1d1bc7'}
+ if(v>=100 && v<250){return '#eb20f5'}
+ if(v>=250){return '#761e50'}
+
+ // #bdef9a 0-10,
+ // #bdef9a 10-25
+ // #6ec1fb 20-50
+ // #1d1bc7 50-100
+ // #eb20f5 100-250
+ // #761e50 >=250
+ },
// 获取雨量站
async getYlzData(){
try {