Commit 4b6255b4 authored by 13841799530's avatar 13841799530

bug修复

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