|
@@ -51,11 +51,15 @@
|
|
|
<div class="notice-table" @click.stop v-loading="loading" >
|
|
|
<div class="tabs">
|
|
|
<ul>
|
|
|
- <li style="padding-left: 0; border: none" @click="pushInfoReq.whetherFlow = '';getPushInfo()" :class="pushInfoReq.whetherFlow === '' ? 'active' : ''">
|
|
|
- 全部({{pushInfoReq.total}})
|
|
|
+ <li style="padding-left: 0; border: none" @click="pushInfoReq.whetherFlow = '';getPushInfoInit()" :class="pushInfoReq.whetherFlow === '' ? 'active' : ''">
|
|
|
+ 全部<span v-if="pushInfoReq.whetherFlow === ''">({{pushInfoReq.total}})</span>
|
|
|
+ </li>
|
|
|
+ <li @click="pushInfoReq.whetherFlow = 1;getPushInfoInit()" :class="pushInfoReq.whetherFlow === 1 ? 'active' : ''">
|
|
|
+ 流程<span v-if="pushInfoReq.whetherFlow === 1">({{pushInfoReq.total}})</span>
|
|
|
+ </li>
|
|
|
+ <li @click="pushInfoReq.whetherFlow = 0;getPushInfoInit()" :class="pushInfoReq.whetherFlow === 0 ? 'active' : ''">
|
|
|
+ 业务<span v-if="pushInfoReq.whetherFlow === 0">({{pushInfoReq.total}})</span>
|
|
|
</li>
|
|
|
- <li @click="pushInfoReq.whetherFlow = 1;getPushInfo()" :class="pushInfoReq.whetherFlow === 1 ? 'active' : ''">流程</li>
|
|
|
- <li @click="pushInfoReq.whetherFlow = 0;getPushInfo()" :class="pushInfoReq.whetherFlow === 0 ? 'active' : ''">业务</li>
|
|
|
</ul>
|
|
|
<!-- <div class="more">查看更多></div> -->
|
|
|
</div>
|
|
@@ -85,7 +89,12 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<div >
|
|
|
- <el-pagination style="text-align: center;" :page-size="5" layout="prev, pager, next" :total="pushInfoReq.total" @current-change="handlePageChange" />
|
|
|
+ <el-pagination
|
|
|
+ style="text-align: center;"
|
|
|
+ :page-size="5" layout="prev, pager, next"
|
|
|
+ :current-page="pushInfoReq.pageNum"
|
|
|
+ :total="pushInfoReq.total"
|
|
|
+ @current-change="handlePageChange" />
|
|
|
</div>
|
|
|
<div class="notice-btn-box" style="margin-top: 20px">
|
|
|
<!-- <el-button plain disabled>点击清空</el-button> -->
|
|
@@ -181,7 +190,7 @@ const confirm = () => {
|
|
|
|
|
|
const socketInit = () => {
|
|
|
window.ws = new WebSocket(
|
|
|
- 'ws://'+ import.meta.env.VITE_APP_IP +':20001'+ import.meta.env.VITE_APP_WS_API +'/webStock/' +
|
|
|
+ 'ws://'+ import.meta.env.VITE_APP_IP + import.meta.env.VITE_APP_WS_API +'/webStock/' +
|
|
|
getToken()
|
|
|
// 'ws://192.168.1.97:8300/webStock/' + window.localStorage.getItem('token')
|
|
|
)
|
|
@@ -240,11 +249,15 @@ const handlePageChange = (val) => {
|
|
|
}
|
|
|
|
|
|
const loading = ref(false)
|
|
|
+const getPushInfoInit = () => {
|
|
|
+ pushInfoReq.value.pageNum = 1
|
|
|
+ getPushInfo()
|
|
|
+}
|
|
|
const getPushInfo = () => {
|
|
|
loading.value = true
|
|
|
proxy.post('/pushInfo/page',pushInfoReq.value).then(res=>{
|
|
|
noticeData.value = res.rows
|
|
|
- pushInfoReq.value.total = pushInfoReq.value.whetherFlow === '' ? res.total : pushInfoReq.value.total
|
|
|
+ pushInfoReq.value.total = res.total
|
|
|
console.log(pushInfoReq)
|
|
|
setTimeout(() => {
|
|
|
loading.value = false
|