|
@@ -25,7 +25,9 @@
|
|
{{ item.title }}
|
|
{{ item.title }}
|
|
</div>
|
|
</div>
|
|
<div class="flex6 response flex justify-between">
|
|
<div class="flex6 response flex justify-between">
|
|
- <div class="text7">提交时间:{{ item.noticeTime }}</div>
|
|
|
|
|
|
+ <div class="text7">
|
|
|
|
+ 提交时间:{{ $common.transBaseDateTime(item.createTime) }}
|
|
|
|
+ </div>
|
|
<div class="text8" v-if="item.isRead == 1">已阅</div>
|
|
<div class="text8" v-if="item.isRead == 1">已阅</div>
|
|
<div class="text8" v-else style="color: rgba(226, 81, 0, 1)">
|
|
<div class="text8" v-else style="color: rgba(226, 81, 0, 1)">
|
|
待阅
|
|
待阅
|
|
@@ -39,64 +41,64 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import { listForApp } from "@/service/api_company.js";
|
|
|
|
|
|
+import { listForApp } from '@/service/api_company.js'
|
|
export default {
|
|
export default {
|
|
- data() {
|
|
|
|
- return {
|
|
|
|
- active: "",
|
|
|
|
- isUpLoading: false,
|
|
|
|
- isDownLoading: false,
|
|
|
|
- upFinished: false,
|
|
|
|
- noticList: [],
|
|
|
|
- search: {
|
|
|
|
- pageNum: 1,
|
|
|
|
- pageSize: "10",
|
|
|
|
- createdBy: "smx_h5_userId",
|
|
|
|
- },
|
|
|
|
- };
|
|
|
|
- },
|
|
|
|
- mounted() {
|
|
|
|
- this.getList();
|
|
|
|
- },
|
|
|
|
- methods: {
|
|
|
|
- getTabs(e) {
|
|
|
|
- console.log(e);
|
|
|
|
- this.search.isRead = e == "全部" ? "" : e;
|
|
|
|
- this.search.pageNum = 1;
|
|
|
|
- this.isUpLoading = false;
|
|
|
|
- this.isDownLoading = false;
|
|
|
|
- this.upFinished = false;
|
|
|
|
- this.noticList = [];
|
|
|
|
- this.getList();
|
|
|
|
- },
|
|
|
|
- toDetail(id) {
|
|
|
|
- this.$router.push("/citySafeNoticDetail?id=" + id);
|
|
|
|
- },
|
|
|
|
- async getList() {
|
|
|
|
- listForApp(this.search).then((res) => {
|
|
|
|
- if (res.data.rows.length) {
|
|
|
|
- if (this.noticList.length >= res.data.total) {
|
|
|
|
- this.upFinished = true;
|
|
|
|
- } else {
|
|
|
|
- this.isDownLoading = false;
|
|
|
|
- this.noticList.push(...res.data.rows);
|
|
|
|
- this.isUpLoading = false;
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- this.noticList = [];
|
|
|
|
- this.isDownLoading = false;
|
|
|
|
- this.isUpLoading = false;
|
|
|
|
- this.upFinished = true;
|
|
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ active: '',
|
|
|
|
+ isUpLoading: false,
|
|
|
|
+ isDownLoading: false,
|
|
|
|
+ upFinished: false,
|
|
|
|
+ noticList: [],
|
|
|
|
+ search: {
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: '10',
|
|
|
|
+ createdBy: 'smx_h5_userId'
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- });
|
|
|
|
},
|
|
},
|
|
- onLoadList() {
|
|
|
|
- this.search.pageNum++;
|
|
|
|
- this.isDownLoading = false;
|
|
|
|
- this.getList();
|
|
|
|
|
|
+ mounted() {
|
|
|
|
+ this.getList()
|
|
},
|
|
},
|
|
- },
|
|
|
|
-};
|
|
|
|
|
|
+ methods: {
|
|
|
|
+ getTabs(e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ this.search.isRead = e == '全部' ? '' : e
|
|
|
|
+ this.search.pageNum = 1
|
|
|
|
+ this.isUpLoading = false
|
|
|
|
+ this.isDownLoading = false
|
|
|
|
+ this.upFinished = false
|
|
|
|
+ this.noticList = []
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
|
|
+ toDetail(id) {
|
|
|
|
+ this.$router.push('/citySafeNoticDetail?id=' + id)
|
|
|
|
+ },
|
|
|
|
+ async getList() {
|
|
|
|
+ listForApp(this.search).then((res) => {
|
|
|
|
+ if (res.data.rows.length) {
|
|
|
|
+ if (this.noticList.length >= res.data.total) {
|
|
|
|
+ this.upFinished = true
|
|
|
|
+ } else {
|
|
|
|
+ this.isDownLoading = false
|
|
|
|
+ this.noticList.push(...res.data.rows)
|
|
|
|
+ this.isUpLoading = false
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ this.noticList = []
|
|
|
|
+ this.isDownLoading = false
|
|
|
|
+ this.isUpLoading = false
|
|
|
|
+ this.upFinished = true
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ onLoadList() {
|
|
|
|
+ this.search.pageNum++
|
|
|
|
+ this.isDownLoading = false
|
|
|
|
+ this.getList()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
@@ -157,4 +159,4 @@ export default {
|
|
.text8 {
|
|
.text8 {
|
|
color: rgba(45, 140, 240, 1);
|
|
color: rgba(45, 140, 240, 1);
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|