Commit e571a063 authored by 罗新东's avatar 罗新东

修改了搜索切换tab不带参数的bug

parent 8867390d
Pipeline #7511 passed with stage
in 17 seconds
This diff is collapsed.
......@@ -19,13 +19,13 @@
<van-tabs
v-model="active"
@change="
postList();
postList(searchValue);
showIndex = null;
"
color="#2980f7"
animated
:sticky="true"
offset-top="3rem"
offset-top="2.93rem"
>
<van-tab v-for="(item, key) in tabs" :key="key" :title="item.title">
<!-- 内容列表 -->
......
......@@ -17,13 +17,13 @@
<van-tabs
v-model="active"
@change="
postList();
postList(searchValue);
showIndex = null;
"
color="#2980f7"
animated
:sticky="true"
offset-top="3rem"
offset-top="2.93rem"
>
<van-tab v-for="(item, key) in tabs" :key="key" :title="item.title">
<!-- 内容列表 -->
......@@ -36,7 +36,9 @@
>
<van-row gutter="">
<van-col span="7">隐患单编号:</van-col>
<van-col span="17">{{ item.businessId||item.id }}</van-col>
<van-col span="17">{{
item.businessId || item.id
}}</van-col>
</van-row>
<van-row gutter="">
<van-col span="7">所属项目:</van-col>
......@@ -75,7 +77,7 @@
>
<van-button
round
v-if="active==0"
v-if="active == 0"
type="info"
@click="goConfirm(item)"
>确认</van-button
......@@ -149,10 +151,10 @@ export default {
});
let formdata = new FormData();
formdata.append("select", select);
postFun(this.tabs[this.active]['api'], formdata)
postFun(this.tabs[this.active]["api"], formdata)
.then((res) => {
this.$toast.clear();
this.messageList = res.data||res.rows;
this.messageList = res.data || res.rows;
// 判断有无数据返回
if (this.messageList.length == 0) {
this.isHaveNews = true;
......@@ -176,7 +178,7 @@ export default {
this.$router.push({
name: "normal-detail",
params: {
id: data.taskId||data.id,
id: data.taskId || data.id,
},
});
this.showIndex = null;
......@@ -229,7 +231,7 @@ export default {
}
}
}
/deep/.van-tab__pane{
/deep/.van-tab__pane {
min-height: 8rem;
}
</style>
......@@ -20,13 +20,13 @@
<van-tabs
v-model="active"
@change="
getList();
getList(searchValue);
showIndex = null;
"
color="#2980f7"
animated
:sticky="true"
offset-top="3rem"
offset-top="2.93rem"
>
<van-tab v-for="(item, key) in tabs" :key="key" :title="item.title">
<div
......
......@@ -20,13 +20,13 @@
<van-tabs
v-model="active"
@change="
getList();
getList(searchValue);
showIndex = null;
"
color="#2980f7"
animated
:sticky="true"
offset-top="3rem"
offset-top="2.93rem"
>
<van-tab v-for="(item, key) in tabs" :key="key" :title="item.title">
<div class="con-list" @touchmove="showIndex = null">
......
......@@ -19,13 +19,13 @@
<van-tabs
v-model="active"
@change="
postList();
postList(searchValue);
showIndex = null;
"
color="#2980f7"
animated
:sticky="true"
offset-top="3rem"
offset-top="2.93rem"
>
<van-tab v-for="(item, key) in tabs" :key="key" :title="item.title">
<div class="con-list" @touchmove="showIndex = null">
......
......@@ -18,14 +18,14 @@
<!-- tab标签 -->
<van-tabs
v-model="active"
@change="postList"
@change="postList(searchValue);showIndex=null"
color="#2980f7"
animated
:sticky="true"
offset-top="3rem"
offset-top="2.93rem"
>
<van-tab v-for="(item, key) in tabs" :key="key" :title="item.title" :sticky="true"
offset-top="3rem">
offset-top="2.93rem">
<div v-show="key == active">
<div class="con-list" @touchmove="showIndex = null">
<van-cell-group
......
......@@ -29,14 +29,6 @@
>
<van-col span="18">{{ hdReport.proId }}</van-col>
</van-row>
<van-row gutter="">
<van-col span="6"
><span class="field-title"
>隐患级别:</span
></van-col
>
<van-col span="18">{{ hdReport.hdLev }}</van-col>
</van-row>
<van-row gutter="">
<van-col span="6"
><span class="field-title"
......@@ -53,7 +45,7 @@
>
<van-col span="18">{{ hdReport.hdType }}</van-col>
</van-row>
<!-- hdProjectId -->
<van-row gutter="">
<van-col span="6"
><span class="field-title"
......@@ -62,18 +54,29 @@
>
<van-col span="18">{{ hdReport.hdProjectId }}</van-col>
</van-row>
<van-row gutter="">
<van-col span="6"
><span class="field-title"
>隐患级别:</span
></van-col
>
<van-col span="18">{{ hdReport.hdLev }}</van-col>
</van-row>
<van-row gutter="">
<van-col span="6"
><span class="field-title"
>隐患项目名称:</span
></van-col
>
<van-col span="18">{{
hdReport.hdProjectName
}}</van-col>
</van-row>
<!-- hdProjectId -->
<!-- 隐藏的字段 -->
<div v-show="reportOpen">
<van-row gutter="">
<van-col span="6"
><span class="field-title"
>隐患项目名称:</span
></van-col
>
<van-col span="18">{{
hdReport.hdProjectName
}}</van-col>
</van-row>
<van-row gutter="">
<van-col span="6"
><span class="field-title"
......@@ -84,7 +87,6 @@
hdReport.hdDiscoveryTime
}}</van-col>
</van-row>
<van-row gutter="">
<van-col span="6"
><span class="field-title"
......@@ -103,6 +105,7 @@
>
<van-col span="18">{{ hdReport.dangerId }}</van-col>
</van-row>
<van-row gutter="">
<van-col span="6"
><span class="field-title"
......@@ -123,6 +126,7 @@
hdReport.hdDescribe
}}</van-col>
</van-row>
<van-row gutter="" v-if="hdReport.hdPictureList">
<van-col span="6"
><span class="field-title"
......@@ -138,6 +142,7 @@
:key="index"
>
<van-image
radius="6px"
width="100"
height="100"
:src="item.filePath"
......@@ -146,6 +151,7 @@
</div>
</van-col>
</van-row>
<van-row gutter="">
<van-col span="6"
><span class="field-title"
......@@ -164,8 +170,9 @@
<van-icon
name="play"
size="1rem"
color="#fff"
style="
border: solid 3px black;
border: solid 3px #fff;
position: absolute;
top: 50%;
left: 50%;
......@@ -215,7 +222,6 @@
v-for="(item, index) in hdConfirm"
:key="index"
>
<div class="step-wrap">
<van-row>
<van-col span="24"
......@@ -224,7 +230,7 @@
</div></van-col
>
</van-row>
<van-row gutter="">
<van-row gutter="">
<van-col span="9"
><span class="field-title"
>隐患确认信息:</span
......@@ -272,8 +278,8 @@
item.endTime
}}</van-col>
</van-row>
<van-row gutter="">
<van-row gutter="">
<van-col span="7"
><span class="field-title"
>认定意见:</span
......@@ -351,7 +357,7 @@
<van-col span="9"
><span class="field-title"
>认定隐患级别:</span
></van-col
></van-col
>
<van-col
span="10
......@@ -412,6 +418,7 @@
:key="index"
>
<van-image
radius="0.16rem"
width="100"
height="100"
:src="itemTwo.filePath"
......@@ -431,7 +438,20 @@
class="detail_video"
v-for="(itemTwo, index) in item.hdVideoList"
:key="index"
style="position: relative"
>
<van-icon
name="play"
size="1rem"
color="#fff"
style="
border: solid 3px #fff;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
"
/>
<video
:src="itemTwo.filePath"
@click="videoUrl = itemTwo.filePath"
......@@ -490,6 +510,7 @@
:key="index"
>
<van-image
radius="0.16rem"
width="100"
height="100"
:src="itemTwo.filePath"
......@@ -876,19 +897,22 @@ export default {
z-index: 99;
}
.detail_pic {
margin-right: 0.266667rem;
margin: 0 0.266667rem 0.266667rem 0;
float: left;
border-radius: 6px;
overflow: hidden;
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}
.detail_video {
width: 2.666667rem;
height: 2.666667rem;
margin-right: 0.266667rem;
margin:0 0.266667rem 0.266667rem 0;
float: left;
overflow: hidden;
// video {
// width: 2.666667rem;
// height: 2.666667rem;
// }
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
border-radius: 6px;
overflow: hidden;
}
}
......
......@@ -19,13 +19,13 @@
<van-tabs
v-model="active"
@change="
getList();
getList(searchValue);
showIndex = null;
"
color="#2980f7"
animated
:sticky="true"
offset-top="3rem"
offset-top="2.93rem"
>
<van-tab
v-for="(item, key) in tabs"
......
......@@ -19,13 +19,13 @@
<van-tabs
v-model="active"
@change="
postList();
postList(searchValue);
showIndex = null;
"
color="#2980f7"
animated
:sticky="true"
offset-top="3rem"
offset-top="2.93rem"
>
<van-tab v-for="(item, key) in tabs" :key="key" :title="item.title">
<!-- 内容列表 -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment