|
|
|
@ -54,7 +54,7 @@ |
|
|
|
import Vconsolefrom from 'vconsole'; |
|
|
|
import {Loading, showFailToast,showToast} from 'vant'; |
|
|
|
import {getEnterpriseMerchantAuthorization, getSzyptLoginAuth} from '../api/Home'; |
|
|
|
import {queryEnforcementInspectionProgramListNoPermissionNoPaging} from "@/api/enforce"; |
|
|
|
import {queryEnforcementNotice} from "@/api/enforce"; |
|
|
|
|
|
|
|
const isLoading = ref(true); |
|
|
|
const {useCommon} = $globalStore; |
|
|
|
@ -155,9 +155,9 @@ |
|
|
|
if (null != item) { |
|
|
|
router.push( |
|
|
|
{ |
|
|
|
path: "/enforce/enforcementPlanDetailed", |
|
|
|
path: "/enforce/enforceNotice", |
|
|
|
query: { |
|
|
|
id:item.id |
|
|
|
type:item.type |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
@ -165,7 +165,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
const queryList = () => { |
|
|
|
queryEnforcementInspectionProgramListNoPermissionNoPaging({isPublish:1,dateType:4}, success => { |
|
|
|
queryEnforcementNotice({isPublish:1,dateType:4}, success => { |
|
|
|
/* if (success.rows.length > 4) { |
|
|
|
for (let i = 0; i < 5; i++) { |
|
|
|
carouselList.push(success.rows[i]); |
|
|
|
@ -181,12 +181,12 @@ |
|
|
|
} |
|
|
|
noticeStr += success.rows[0].planName != null ? success.rows[0].planName + "" : ""; |
|
|
|
} else { */ |
|
|
|
carouselList = success.data; |
|
|
|
carouselList = success.rows; |
|
|
|
if(carouselList.length==0){ |
|
|
|
data.notNull=false |
|
|
|
} |
|
|
|
for (let index = 0; index < success.data.length; index++) { |
|
|
|
const element = success.data[index]; |
|
|
|
for (let index = 0; index < success.rows.length; index++) { |
|
|
|
const element = success.rows[index]; |
|
|
|
console.log(element); |
|
|
|
// element.planName = element.planYear + element.planName; |
|
|
|
if(element.timeType == 'quarter'){ |
|
|
|
@ -204,7 +204,8 @@ |
|
|
|
noticeObj.noticeList.push(element.planName); |
|
|
|
var obj = { |
|
|
|
content: element.planName, |
|
|
|
id:element.id |
|
|
|
id:element.id, |
|
|
|
type:element.type |
|
|
|
} |
|
|
|
data.noticeList.push(obj) |
|
|
|
} |
|
|
|
|