From d2bc6e096f0806b78ea92d4b90a21d3627d406c7 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 08 三月 2024 18:28:42 +0800
Subject: [PATCH] mrshi
---
company/src/components/enterprise/insuranceRecords.vue | 114 +++++++++++++++++++++++++++------------------------------
1 files changed, 54 insertions(+), 60 deletions(-)
diff --git a/company/src/components/enterprise/insuranceRecords.vue b/company/src/components/enterprise/insuranceRecords.vue
index 81016c5..c5ec098 100644
--- a/company/src/components/enterprise/insuranceRecords.vue
+++ b/company/src/components/enterprise/insuranceRecords.vue
@@ -56,67 +56,61 @@
</template>
<script>
- import BaseOpera from '@/components/base/BaseOpera'
- import GlobalWindow from '@/components/common/GlobalWindow'
- import { findList, exportExcel } from '@/api/business/member'
- export default {
- name: 'insuranceRecords',
- extends: BaseOpera,
- components: { GlobalWindow },
- data () {
- return {
- form: {
- id: null,
- name: '',
- idcardNo: '',
- solutionsStatus: ''
- },
- list: []
- }
- },
- methods: {
- open (title, target) {
- this.title = title
- this.list = []
- this.visible = true
- // 鏂板缓
- if (target == null) {
- this.$nextTick(() => {
- this.$refs.form.resetFields()
- this.form[this.configData['field.id']] = null
- })
- return
- }
- // 缂栬緫
- this.$nextTick(() => {
- for (const key in this.form) {
- this.form[key] = target[key]
- }
- })
- this.getList()
- },
- expr() {
- exportExcel({
- capacity: 1000,
- page: 1,
- model: {
- memberId: this.form.id
- }
- }).then(res => {
- console.log(res)
- this.download(res)
- })
- },
- getList() {
- findList({
- memberId: this.form.id
- }).then(res => {
- console.log(res)
- this.list = res
- })
- }
- }
+import BaseOpera from '@/components/base/BaseOpera'
+import GlobalWindow from '@/components/common/GlobalWindow'
+import { findList, exportExcel } from '@/api/business/member'
+export default {
+ name: 'insuranceRecords',
+ extends: BaseOpera,
+ components: { GlobalWindow },
+ data () {
+ return {
+ form: {
+ id: null,
+ name: '',
+ idcardNo: '',
+ solutionsStatus: ''
+ },
+ list: []
}
+ },
+ methods: {
+ open (title, target) {
+ this.title = title
+ this.list = []
+ this.visible = true
+ this.form = {
+ id: null,
+ name: '',
+ idcardNo: '',
+ solutionsStatus: ''
+ }
+ this.form = target
+ // 鏂板缓
+ this.getList()
+ },
+ expr () {
+ exportExcel({
+ capacity: 1000,
+ page: 1,
+ model: {
+ memberId: this.form.id
+ }
+ }).then(res => {
+ console.log(res)
+ this.download(res)
+ })
+ },
+ getList () {
+ findList({
+ memberId: this.form.id || -1
+ }).then(res => {
+ console.log(res)
+ this.list = res
+ })
+ }
+ }
+}
</script>
<style lang="scss" scoped>
--
Gitblit v1.9.3