From bb472b43a0a58b3156a28b9cfb4ff4030932c6c5 Mon Sep 17 00:00:00 2001
From: “zhuo” <“zhuo@itcast.cn”>
Date: 星期一, 08 一月 2024 17:29:11 +0800
Subject: [PATCH] 员工数据对比
---
src/components/view/registrant-count.vue | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/src/components/view/registrant-count.vue b/src/components/view/registrant-count.vue
index 882b39a..4998eb2 100644
--- a/src/components/view/registrant-count.vue
+++ b/src/components/view/registrant-count.vue
@@ -47,7 +47,7 @@
<el-row class="title">
<el-col :span="12" style="padding-left: 20px;">鍛樺伐鏁版嵁缁熻</el-col>
<el-col :span="12" style="text-align: right;">
- <el-button size="small" @click="">
+ <el-button size="small" @click="$refs.ValueTable.openDownDia()" v-if="outPower">
<i class="el-icon-download" style="color: #3A7BFA;"></i>
<span style="color: #3A7BFA;">瀵煎嚭</span>
</el-button>
@@ -79,7 +79,7 @@
</div>
</div>
<div class="table">
- <ValueTable ref="ValueTable" :url="$api.dataReporting.selectRegistrantCountDtoPageList" :componentData="componentData" :key="upIndex"/>
+ <ValueTable ref="ValueTable" :url="$api.dataReporting.selectRegistrantCountDtoPageList" :componentData="componentData" :key="upIndex" :downUrl="$api.dataReporting.downRegistrantCountFile"/>
</div>
</div>
</template>
@@ -98,7 +98,7 @@
product: null,
orderBy: {
field: 'update_time',
- order: 'asc'
+ order: 'desc'
}
},
isIndex: false,
@@ -111,13 +111,15 @@
upIndex: 0,
addDia: false,
product: [],
- custom:[]
+ custom:[],
+ outPower: true
}
},
mounted() {
this.entityCopy = this.HaveJson(this.componentData.entity)
this.selectProductEnumList()
this.selectCustomEnumList()
+ this.getPower()
},
methods: {
refreshTable() {
@@ -136,6 +138,17 @@
this.$axios.get(this.$api.enums.selectCustomEnumList).then(res=>{
this.custom = res.data
})
+ },
+ // 鏉冮檺鍒嗛厤
+ getPower() {
+ let power = JSON.parse(sessionStorage.getItem('power'))
+ let outPower = false
+ for (var i = 0; i < power.length; i++) {
+ if (power[i].menuMethod == 'downRegistrantCountFile') {
+ outPower = true
+ }
+ }
+ this.outPower = outPower
}
}
}
--
Gitblit v1.9.3