From 39ae52b3f65e2bba3b6570adb51e791cb3befff7 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 02 七月 2025 16:32:29 +0800
Subject: [PATCH] 提交
---
company/src/views/indexShop.vue | 95 ++++++++++++++++++++++++++++++++++++-----------
1 files changed, 72 insertions(+), 23 deletions(-)
diff --git a/company/src/views/indexShop.vue b/company/src/views/indexShop.vue
index 8c02270..0f4f29d 100644
--- a/company/src/views/indexShop.vue
+++ b/company/src/views/indexShop.vue
@@ -16,7 +16,7 @@
<div class="home_content_left_item" ref="picture3"></div>
</div>
<div class="home_content_right">
- <div class="home_content_right_label" v-if="tabs && tabs.length>0" >浠e姙浜嬮」</div>
+ <div class="home_content_right_label" v-if="tabs && tabs.length>0" >寰呭姙浜嬮」</div>
<el-tabs v-model="activeName" @tab-click="handleClick" >
<el-tab-pane v-for="a in tabs" :key="a.path" :name="a.name" >
<span slot="label" title="鐐瑰嚮鍒锋柊"> {{a.label }}
@@ -25,7 +25,7 @@
</el-tab-pane>
</el-tabs>
<div v-if="activeName === '0'" >
- <div class="home_content_right_list">
+ <div class="home_content_right_list" v-if="tableData0&&tableData0.length">
<div class="list_item" v-for="(item, index) in tableData0" :key="index">
<div class="list_item_left">
<span>{{item.title}}锛坽{ item.typeDetail }}锛�</span>
@@ -40,6 +40,11 @@
</div>
</div>
</div>
+ <div class="home_content_right_list" v-else>
+ <div class="list_item" style="width: 100%;font-size: 12px;display:block;color: #8c939d;text-align: center; padding: 20px">
+ 鏆傛棤娑堟伅
+ </div>
+ </div>
<div class="home_content_right_page">
<el-pagination
@current-change="handleCurrentChange0"
@@ -51,8 +56,8 @@
</div>
</div>
<div v-if="activeName === '1'" >
- <div class="home_content_right_list">
- <div class="list_item" v-for="(item, index) in tableData1" :key="index">
+ <div class="home_content_right_list" v-if="tableData1&&tableData1.length">
+ <div class="list_item" v-for="(item, index) in tableData1" :key="index">
<div class="list_item_left">
<span>{{item.title}}锛坽{ item.typeDetail }}锛�</span>
<span>{{item.info}}锛坽{item.content}}锛�</span>
@@ -66,6 +71,11 @@
</div>
</div>
</div>
+ <div class="home_content_right_list" v-else>
+ <div class="list_item" style="width: 100%;font-size: 12px;display:block;color: #8c939d;text-align: center; padding: 20px">
+ 鏆傛棤娑堟伅
+ </div>
+ </div>
<div class="home_content_right_page">
<el-pagination
@current-change="handleCurrentChange1"
@@ -76,14 +86,45 @@
</el-pagination>
</div>
</div>
+
+ <div v-if="activeName === '6'" >
+ <div class="home_content_right_list" v-if="tableData6&&tableData6.length">
+ <div class="list_item" v-for="(item, index) in tableData6" :key="index">
+ <div class="list_item_left">
+ <span>{{item.title}}锛坽{ item.typeDetail }}锛�</span>
+ <span>{{item.content}}</span>
+ </div>
+ <div class="list_item_center">
+ <span>{{item.companyName}}</span>
+ <span>鎻愪氦鏃堕棿 {{item.createDate}}</span>
+ </div>
+ <div class="list_item_right">
+ <span @click="jump('/business/contract')">鏌ョ湅</span>
+ </div>
+ </div>
+ </div>
+ <div class="home_content_right_list" v-else>
+ <div class="list_item" style="width: 100%;font-size: 12px;display:block;color: #8c939d;text-align: center; padding: 20px">
+ 鏆傛棤娑堟伅
+ </div>
+ </div>
+ <div class="home_content_right_page">
+ <el-pagination
+ @current-change="handleCurrentChange1"
+ :current-page="page1"
+ :page-size="5"
+ layout="total, prev, pager, next, jumper"
+ :total="totalPage1">
+ </el-pagination>
+ </div>
+ </div>
+
</div>
</div>
<OperaInsuranceApplyWindow ref="operaInsuranceApplyWindow" @success="handleCurrentChange0()"/>
- <dispatchUnitDetailsPlat ref="dispatchUnitDetailsPlat" @success="handleCurrentChange0()"/>
- <OperaSettleClaimsWindow ref="operaSettleClaimsWindow" @success="handleCurrentChange2()"/>
+ <OperaWtbApplyShopWindow ref="OperaWtbApplyShopWindow" @success="handleCurrentChange0()"/>
<OperaApplyChangeUnitDetailWindow ref="operaApplyChangeUnitDetailWindow" @success="handleCurrentChange0()"/>
<OperaApplyChangeDetailWindow ref="operaApplyChangeDetailWindow" @success="handleCurrentChange0()"/>
- <OperaTaxesWindow ref="OperaTaxesWindow" @success="handleCurrentChange1()"/>
</div>
</template>
@@ -91,20 +132,16 @@
import * as echarts from 'echarts'
import { mapState } from 'vuex'
import OperaInsuranceApplyWindow from '@/components/business/OperaInsuranceApplyWindow'
-import dispatchUnitDetailsPlat from '@/components/business/dispatchUnitDetailsPlat'
+import OperaWtbApplyShopWindow from '@/components/business/OperaWtbApplyShopWindow'
import OperaApplyChangeUnitDetailWindow from '@/components/business/OperaApplyChangeUnitDetailWindow'
-import OperaSettleClaimsWindow from '@/components/business/OperaSettleClaimsWindow'
import OperaApplyChangeDetailWindow from '@/components/business/OperaApplyChangeDetailWindow'
-import OperaTaxesWindow from '@/components/business/OperaTaxesWindow'
-import { fetchList as noticeList, deleById } from '@/api/business/notices'
+import { fetchList as noticeList } from '@/api/business/notices'
export default {
components: {
OperaInsuranceApplyWindow,
- dispatchUnitDetailsPlat,
- OperaTaxesWindow,
- OperaSettleClaimsWindow,
OperaApplyChangeDetailWindow,
- OperaApplyChangeUnitDetailWindow
+ OperaApplyChangeUnitDetailWindow,
+ OperaWtbApplyShopWindow
},
name: 'Index',
data () {
@@ -114,12 +151,15 @@
page0: 1,
page1: 1,
page2: 1,
+ page6: 1,
+ totalPage6: 0,
totalPage2: 0,
totalPage1: 0,
totalPage0: 0,
tableData0: [],
tableData1: [],
tableData2: [],
+ tableData6: [],
cate: [
{
name: '鎶曚繚鐢宠瀹℃牳',
@@ -168,7 +208,7 @@
detail (obj) {
if(obj && obj.type === 7){
if (obj.objType === 0) {
- this.$refs.operaInsuranceApplyWindow.open('鎶曚繚鐢宠璇︽儏', { id: obj.objId })
+ this.$refs.OperaWtbApplyShopWindow.open('鎶曚繚鐢宠璇︽儏', { id: obj.objId })
} else if (obj.objType === 1) {
this.$refs.operaApplyChangeDetailWindow.open('鍔犲噺淇濊鎯�', { id: obj.objId, applyId: obj.param1 })
} else if (obj.objType === 2) {
@@ -197,6 +237,7 @@
initLoadData () {
this.handleCurrentChange0(0)
this.handleCurrentChange1(0)
+ this.handleCurrentChange6(0)
},
getNoticeList (type, page) {
noticeList({
@@ -206,16 +247,17 @@
sorts: []
})
.then(response => {
- if (type === 0) {
+ if (type === 3) {
this.tableData0 = response.records
this.totalPage0 = response.total
}
- if (type === 1) {
+ if (type === 4) {
this.tableData1 = response.records
this.totalPage1 = response.total
- } if (type === 2) {
- this.tableData2 = response.records
- this.totalPage2 = response.total
+ }
+ if (type === 6) {
+ this.tableData6 = response.records
+ this.totalPage6 = response.total
}
})
.catch(e => {
@@ -223,8 +265,9 @@
})
},
initPanel () {
- this.tabs.push({ name: '0', label: '鐩存帴鎶曚繚浠e姙' })
- this.tabs.push({ name: '1', label: '濮旀墭鎶曚繚浠e姙' })
+ this.tabs.push({ name: '0', label: '鐩存帴鎶曚繚寰呭姙' })
+ this.tabs.push({ name: '1', label: '濮旀墭鎶曚繚寰呭姙' })
+ this.tabs.push({ name: '6', label: '鍚堝悓绛剧讲鎻愰啋' })
},
handleClick (e) {
this.activeName = e.name
@@ -232,6 +275,8 @@
this.handleCurrentChange0(0)
} else if (this.activeName === '1') {
this.handleCurrentChange1(0)
+ } else if (this.activeName === '6') {
+ this.handleCurrentChange6(0)
}
},
handleCurrentChange0 (page) {
@@ -242,6 +287,10 @@
this.page1 = page
this.getNoticeList(4, this.page1)
},
+ handleCurrentChange6 (page) {
+ this.page6 = page
+ this.getNoticeList(6, this.page6)
+ },
jump (url) {
if (!url) return
this.$router.push({ path: url })
--
Gitblit v1.9.3