清除异常

This commit is contained in:
aixianling
2021-11-30 15:25:24 +08:00
parent 1c3a641cf4
commit 86b7e3f190
2 changed files with 295 additions and 296 deletions

View File

@@ -68,7 +68,7 @@ const start = () => {
navigationStyle: "custom" navigationStyle: "custom"
} }
} }
findApp('src/apps', file => { findApp('src/utils', file => {
if (/.*\\.+\\App[^\\]+\.vue/g.test(file)) { if (/.*\\.+\\App[^\\]+\.vue/g.test(file)) {
let app = { let app = {
name: file.replace(/.*\\([^\\]+).vue/g, '$1'), name: file.replace(/.*\\([^\\]+).vue/g, '$1'),

View File

@@ -10,14 +10,14 @@
<label> <label>
<b v-if="index==0 && item.readStatus==0"></b> <b v-if="index==0 && item.readStatus==0"></b>
<div class="tag" v-if="index==1" :style="color(item.status)"> <div class="tag" v-if="index==1" :style="color(item.status)">
{{$dict.getLabel("announcementStatus",item.status)}} {{ $dict.getLabel("announcementStatus", item.status) }}
</div> </div>
{{item.title}} {{ item.title }}
</label> </label>
<u-gap height="16"></u-gap> <u-gap height="16"></u-gap>
<span class="info"> <span class="info">
<text>{{item.releaseUserName}}</text> <text>{{ item.releaseUserName }}</text>
<text>{{item.releaseTime}}</text> <text>{{ item.releaseTime }}</text>
</span> </span>
</template> </template>
<template v-else> <template v-else>
@@ -26,14 +26,14 @@
<label> <label>
<b v-if="index==0 && item.readStatus==0"></b> <b v-if="index==0 && item.readStatus==0"></b>
<div class="tag" v-if="index==1" :style="color(item.status)"> <div class="tag" v-if="index==1" :style="color(item.status)">
{{$dict.getLabel("announcementStatus",item.status)}} {{ $dict.getLabel("announcementStatus", item.status) }}
</div> </div>
{{item.title}} {{ item.title }}
</label> </label>
<u-gap height="16"></u-gap> <u-gap height="16"></u-gap>
<span class="info"> <span class="info">
<text>{{item.releaseUserName}}</text> <text>{{ item.releaseUserName }}</text>
<text>{{item.releaseTime}}</text> <text>{{ item.releaseTime }}</text>
</span> </span>
</div> </div>
<img :src="item.imgUrl" alt=""> <img :src="item.imgUrl" alt="">
@@ -51,7 +51,7 @@
<div class="colum" v-for="(item,index) in optList" :key="index" @click="handleOpt(item)"> <div class="colum" v-for="(item,index) in optList" :key="index" @click="handleOpt(item)">
<u-icon :name="item.icon" size="100" :custom-style="{backgroundColor:'#fff',borderRadius:'8px'}"></u-icon> <u-icon :name="item.icon" size="100" :custom-style="{backgroundColor:'#fff',borderRadius:'8px'}"></u-icon>
<u-gap height="16"></u-gap> <u-gap height="16"></u-gap>
{{item.name}} {{ item.name }}
</div> </div>
</u-row> </u-row>
<div class="btn" @click="show=false">关闭</div> <div class="btn" @click="show=false">关闭</div>
@@ -66,12 +66,12 @@
</template> </template>
<script> <script>
import AiAdd from "../../components/AiAdd"; import AiAdd from "../../components/AiAdd";
import AiEmpty from "../../components/AiEmpty"; import AiEmpty from "../../components/AiEmpty";
import AiTopFixed from "../../components/AiTopFixed"; import AiTopFixed from "../../components/AiTopFixed";
import {add, detail, read} from "./components" import {add, detail, read} from "./components"
export default { export default {
name: "AppNotification", name: "AppNotification",
appName: "通知公告", appName: "通知公告",
components: {AiAdd, AiEmpty, AiTopFixed, add, detail, read}, components: {AiAdd, AiEmpty, AiTopFixed, add, detail, read},
@@ -135,9 +135,9 @@
}, },
methods: { methods: {
emitShow(){ emitShow() {
const {id} = this.$route.query const {id} = this.$route.query
if(id){ if (id) {
this.comp = "detail"; this.comp = "detail";
this.params = { this.params = {
id, id,
@@ -148,7 +148,7 @@
this.current = 1; this.current = 1;
this.getList(); this.getList();
}, },
emitReachBottom(){ emitReachBottom() {
this.current = this.current + 1; this.current = this.current + 1;
this.getList() this.getList()
}, },
@@ -199,7 +199,6 @@
flag: false flag: false
}; };
this.showList = false; this.showList = false;
return
} }
}, },
color(status) { color(status) {
@@ -250,13 +249,13 @@
this.dataList = this.current > 1 ? [...this.dataList, ...res.data.records] : res.data.records this.dataList = this.current > 1 ? [...this.dataList, ...res.data.records] : res.data.records
} }
}) })
}
}, },
} }
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.notification { .notification {
min-height: 100%; min-height: 100%;
background-color: #F5F5F5; background-color: #F5F5F5;
padding-bottom: 32px; padding-bottom: 32px;
@@ -385,5 +384,5 @@
} }
} }
} }
} }
</style> </style>