|
@@ -3,11 +3,11 @@
|
|
|
<image src="https://cczdsz.cn/app/images//background-from.png" mode="" class="background"></image>
|
|
|
<view>
|
|
|
<view class="sousuo">
|
|
|
- <u-search placeholder="请输入阀井名称" @click="showName=true" v-model="userName" :show-action="false"@search="getProjectList()" ></u-search>
|
|
|
+ <u-search placeholder="请输入阀井名称" @click="showName=true" v-model="valveWellName" :show-action="false"@search="getProjectList()" ></u-search>
|
|
|
<!-- <u-select v-model="showName" :list="workList" label-name="name" value-name="id" @confirm="worker()" @cancel="cancelWorker()"></u-select>
|
|
|
<u-search placeholder="请输入巡检柱名称" v-model="name" :show-action="false" :action-style="{'font-size':'40rpx'}"
|
|
|
@search="getProjectList()"></u-search> -->
|
|
|
- <u-search placeholder="请输入阀井位置" @click="showName=true" v-model="userId" :show-action="false" @search="getProjectList()"></u-search>
|
|
|
+ <u-search placeholder="请输入阀井位置" @click="showName=true" v-model="position" :show-action="false" @search="getProjectList()"></u-search>
|
|
|
</view>
|
|
|
|
|
|
<view v-for="(item,index) in list" :key="index">
|
|
@@ -45,15 +45,15 @@ export default {
|
|
|
value: '',
|
|
|
nameValue: '',
|
|
|
name:'',
|
|
|
- userName:'',
|
|
|
+ valveWellName:'',
|
|
|
civilPower: '',
|
|
|
form:{},
|
|
|
- userId:''
|
|
|
+ position:'',
|
|
|
+ userId:''
|
|
|
}
|
|
|
|
|
|
},
|
|
|
onLoad() {
|
|
|
- this.getProjectList();
|
|
|
this.getUserName();
|
|
|
//this.getWorker();
|
|
|
uni.setNavigationBarColor({
|
|
@@ -70,14 +70,14 @@ export default {
|
|
|
},
|
|
|
worker(e)
|
|
|
{
|
|
|
- this.userName=e[0].label
|
|
|
- this.userId=e[0].value
|
|
|
+ this.valveWellName=e[0].label
|
|
|
+ this.position=e[0].value
|
|
|
this.getProjectList()
|
|
|
},
|
|
|
cancelWorker()
|
|
|
{
|
|
|
- this.userName=''
|
|
|
- this.userId=''
|
|
|
+ this.valveWellName=''
|
|
|
+ this.position=''
|
|
|
},
|
|
|
time(e)
|
|
|
{
|
|
@@ -105,7 +105,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
getProjectList() {
|
|
|
- service.getvalveWellPositionlist({valveWellName:this.userName,position:this.userId,pageNum: this.params.pageNum , pageSize: 10}).then(res => {
|
|
|
+ service.getvalveWellPositionlist({remark:this.userId,valveWellName:this.valveWellName,position:this.position,pageNum: this.params.pageNum , pageSize: 10}).then(res => {
|
|
|
console.log(res)
|
|
|
if (res.total == 0) {
|
|
|
this.$UTILS.showPrompt('暂无项目!')
|
|
@@ -122,7 +122,9 @@ export default {
|
|
|
},
|
|
|
getUserName() {
|
|
|
service.getUserName().then(res => {
|
|
|
+ this.userId=res.id
|
|
|
this.civilPower = res.civilPower;
|
|
|
+ this.getProjectList();
|
|
|
})
|
|
|
},
|
|
|
},
|