尝试更新隐患类别tree
This commit is contained in:
parent
d5cbda9f89
commit
3469ab81a1
4
app.js
4
app.js
|
@ -97,8 +97,8 @@ App({
|
|||
perms:[],
|
||||
openid:null
|
||||
},
|
||||
serverUrl: 'https://safeyun.ctcshe.com/',
|
||||
//serverUrl: 'http://127.0.0.1:8000/',
|
||||
//serverUrl: 'https://safeyun.ctcshe.com/',
|
||||
serverUrl: 'http://127.0.0.1:8000/',
|
||||
//serverUrl: 'http://10.21.28.148:8000/',
|
||||
//serverUrl: 'http://192.168.0.103:8000/',
|
||||
//serverUrl:'http://10.0.11.195:8000/',
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<view class="btn"
|
||||
bindtap="toPath"
|
||||
data-index="{{index+1}}"
|
||||
wx:key="{{index}}"
|
||||
wx:key="unique"
|
||||
wx:for="{{currentPath}}">{{item.text}}</view>
|
||||
</view>
|
||||
</block>
|
||||
|
@ -22,13 +22,13 @@
|
|||
<view class="btn"
|
||||
bindtap="toPath"
|
||||
data-index="{{index}}"
|
||||
wx:key="{{index}}"
|
||||
wx:key="unique"
|
||||
wx:for="{{currentPath}}">{{item.text}}</view>
|
||||
</view>
|
||||
</block>
|
||||
<view class="list-view">
|
||||
<view wx:for="{{outValue}}"
|
||||
wx:key="{{index}}"
|
||||
wx:key="unique"
|
||||
class="list-view-item"
|
||||
bindtap="tapItem"
|
||||
data-text="{{item[contentKey]}}"
|
||||
|
|
|
@ -17,7 +17,7 @@ Page({
|
|||
method: 'GET',
|
||||
success: res => {
|
||||
if (res.statusCode === 200) {
|
||||
let zylxlist = res.data.rows
|
||||
let zylxlist = res.data
|
||||
this.setData({
|
||||
zylxlist: zylxlist,
|
||||
})
|
||||
|
|
|
@ -80,6 +80,19 @@
|
|||
<input class="weui-input" placeholder="请输入发现地点" bindinput="bindyhddInput" value="{{yhdd}}"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="weui-cell weui-cell_select">
|
||||
<view class="weui-cell__hd weui-cell__hd_in-select-after">
|
||||
<view class="weui-label">隐患类型</view>
|
||||
</view>
|
||||
|
||||
<view class="weui-cell__bd">
|
||||
<navigator url="/pages/area/tree">
|
||||
<view class="weui-select">
|
||||
{{yhqy__name}}
|
||||
</view>
|
||||
</navigator>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="weui-cells__title">隐患描述</view>
|
||||
<view class="weui-cells weui-cells_after-title">
|
||||
|
|
Loading…
Reference in New Issue