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