Commit 4b6255b4 authored by 13841799530's avatar 13841799530

bug修复

解润东
20220105
parent d36c9f7b
...@@ -97,10 +97,12 @@ export default { ...@@ -97,10 +97,12 @@ export default {
}, },
/* 结束上报接口请求 */ /* 结束上报接口请求 */
end(nums){ end(nums){
if(nums.troubleNumber>0){
if(!this.submitTroubleNumber){ if(!this.submitTroubleNumber){
this.$toast.fail('您需要至少提交一个问题才能结束上报!') this.$toast.fail('您需要至少提交一个问题才能结束上报!')
return return
} }
}
this.$dialog.confirm({ this.$dialog.confirm({
title: '提示', title: '提示',
message: '您已提交'+this.submitTroubleNumber+'个问题'+'确定结束检查上报?', message: '您已提交'+this.submitTroubleNumber+'个问题'+'确定结束检查上报?',
......
...@@ -11,6 +11,16 @@ ...@@ -11,6 +11,16 @@
<template> <template>
<div> <div>
<LHeader v-bind:text="text" :goback="goback"></LHeader> <LHeader v-bind:text="text" :goback="goback"></LHeader>
<van-search
v-model="value"
show-action
placeholder="请输入搜索内容"
@search="onSearch"
>
<template #action>
<div @click="onSearch" >搜索</div>
</template>
</van-search>
<div class="card" v-for="(item,index) in noticeList" :key="index" @click="cardLocation(item)"> <div class="card" v-for="(item,index) in noticeList" :key="index" @click="cardLocation(item)">
<div>负责人姓名:{{item.realName}}</div> <div>负责人姓名:{{item.realName}}</div>
<div>检查名称:{{item.name}}</div> <div>检查名称:{{item.name}}</div>
...@@ -42,6 +52,7 @@ export default { ...@@ -42,6 +52,7 @@ export default {
}, },
data() { data() {
return { return {
value:'',//列表搜索关键字值
goback:'save-workbench',//返回工作台 goback:'save-workbench',//返回工作台
noticeList:[],//整改通知管理列表 noticeList:[],//整改通知管理列表
text:'整改通知管理', text:'整改通知管理',
...@@ -60,7 +71,7 @@ export default { ...@@ -60,7 +71,7 @@ export default {
loadingType: 'spinner', loadingType: 'spinner',
duration: 0 duration: 0
}) })
getFun('check/notify/list').then((Response)=>{ getFun('check/notify/list',{name:this.value}).then((Response)=>{
this.$toast.clear() this.$toast.clear()
this.noticeList=Response.data this.noticeList=Response.data
this.noticeList.forEach((item)=>{ this.noticeList.forEach((item)=>{
...@@ -68,6 +79,10 @@ export default { ...@@ -68,6 +79,10 @@ export default {
item.OpenText="展开 ▼"; item.OpenText="展开 ▼";
}) })
}) })
},
/* 搜索查询列表接口 */
onSearch(){
this.init()
}, },
cardLocation(item){ cardLocation(item){
sessionStorage.setItem('projectId',item.projectId) sessionStorage.setItem('projectId',item.projectId)
......
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