From e91f66feb3cdb688c255f60bcb3b81b029098dd3 Mon Sep 17 00:00:00 2001
From: 李林 <z1292839451@163.com>
Date: 星期四, 29 二月 2024 13:07:09 +0800
Subject: [PATCH] 功能调整
---
src/components/view/registrant-count.vue | 23 ++++++++++++++++++-----
1 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/src/components/view/registrant-count.vue b/src/components/view/registrant-count.vue
index 882b39a..5f89802 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>
@@ -97,8 +97,8 @@
name: null,
product: null,
orderBy: {
- field: 'update_time',
- order: 'asc'
+ field: 'create_time',
+ 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