diff --git a/src/api/market/apitype.js b/src/api/market/apitype.js index f6696ef..3ddb1ee 100644 --- a/src/api/market/apitype.js +++ b/src/api/market/apitype.js @@ -1,5 +1,18 @@ import request from '@/utils/request' +export function updbyid(data) { + return request({ + url: '/market/apitype/standing/'+data, + method: 'post' + }) +} +export function standing(data) { + return request({ + url: '/market/apitype/standing', + method: 'post', + data: data + }) +} export function getAirQuality(query,query2) { return request({ url: '/market/apitype/third/'+query+"/"+query2, diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 94d5d3f..7cb2718 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -8,6 +8,10 @@
+ + + + + + + + + + + + +
@@ -157,10 +177,13 @@ import Screenfull from '@/components/Screenfull' import SizeSelect from '@/components/SizeSelect' import Search from '@/components/HeaderSearch' import { findNoticeByNoticeId, findNoticeByNoticeIdAndUserId, listNoticeByUserId } from '../../api/system/notice' +import {standing, updbyid} from "../../api/market/apitype"; export default { data() { return { + standing:{}, + dialogFormVisible:false, drawer: false, // 阅读状态 默认为空(全部) readingStatu: '', @@ -215,6 +238,15 @@ export default { } }, methods: { + authentication(){ + standing(this.standing).then(res=>{ + console.log(res.result.res) + updbyid(res.result.res).then(res=>{ + console.log(res) + location.reload() + }) + }) + }, findNoticeByNoticeIdAndSta(noticeId,sta) { findNoticeByNoticeIdAndUserId({ noticeId: noticeId, sta: sta }).then(res => { this.noticeData = res.data diff --git a/src/views/market/apitype/index.vue b/src/views/market/apitype/index.vue index c13be5e..a5499ad 100644 --- a/src/views/market/apitype/index.vue +++ b/src/views/market/apitype/index.vue @@ -179,6 +179,7 @@ export default { data() { return { + dialogTableVisible:false, dialogVisible:false, all:"全部类型",