|
@@ -3,17 +3,7 @@
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="24" class="main animate__animated animate__backInRight">
|
|
<el-col :span="24" class="main animate__animated animate__backInRight">
|
|
<el-col :span="24" class="one">
|
|
<el-col :span="24" class="one">
|
|
- <data-table
|
|
|
|
- @query="search"
|
|
|
|
- :fields="fields"
|
|
|
|
- :opera="opera"
|
|
|
|
- :data="list"
|
|
|
|
- :total="total"
|
|
|
|
- @view="toView"
|
|
|
|
- :select="true"
|
|
|
|
- :selected="selected"
|
|
|
|
- @handleSelect="handleSelect"
|
|
|
|
- >
|
|
|
|
|
|
+ <data-table @query="search" :fields="fields" :opera="opera" :data="list" :total="total" @view="toView">
|
|
<template #selfbtn>
|
|
<template #selfbtn>
|
|
<el-button type="primary" size="mini" @click="toExport()">导出</el-button>
|
|
<el-button type="primary" size="mini" @click="toExport()">导出</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -28,7 +18,7 @@
|
|
</el-row>
|
|
</el-row>
|
|
<e-dialog :dialog="dialog" @toClose="toClose">
|
|
<e-dialog :dialog="dialog" @toClose="toClose">
|
|
<template slot="info">
|
|
<template slot="info">
|
|
- <form-1 :form="form" v-if="dialog.type == '1'" @toSave="toSave" :statusList="statusList"></form-1>
|
|
|
|
|
|
+ <file-1 :form="exportform" v-if="dialog.type == '1'" @toSave="toSave" :statusList="statusList"></file-1>
|
|
<info-1 :form="form" v-else-if="dialog.type == '2'"></info-1>
|
|
<info-1 :form="form" v-else-if="dialog.type == '2'"></info-1>
|
|
</template>
|
|
</template>
|
|
</e-dialog>
|
|
</e-dialog>
|
|
@@ -43,7 +33,7 @@ export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
props: {},
|
|
props: {},
|
|
components: {
|
|
components: {
|
|
- form1: () => import('./parts/form-1.vue'),
|
|
|
|
|
|
+ file1: () => import('./parts/file-1.vue'),
|
|
info1: () => import('./parts/info-1.vue'),
|
|
info1: () => import('./parts/info-1.vue'),
|
|
},
|
|
},
|
|
data: function () {
|
|
data: function () {
|
|
@@ -68,13 +58,13 @@ export default {
|
|
],
|
|
],
|
|
// 列表数据总数
|
|
// 列表数据总数
|
|
total: 0,
|
|
total: 0,
|
|
- // 多选值
|
|
|
|
- selected: [],
|
|
|
|
//弹框
|
|
//弹框
|
|
dialog: { title: '详细信息', show: false, type: '1' },
|
|
dialog: { title: '详细信息', show: false, type: '1' },
|
|
form: { order: [] },
|
|
form: { order: [] },
|
|
// 状态
|
|
// 状态
|
|
statusList: apply_status,
|
|
statusList: apply_status,
|
|
|
|
+ // 导出
|
|
|
|
+ exportform: {},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async created() {
|
|
async created() {
|
|
@@ -88,21 +78,19 @@ export default {
|
|
this.$set(this, `form`, data);
|
|
this.$set(this, `form`, data);
|
|
this.dialog = { title: '详细信息', show: true, type: '2', widths: '40%' };
|
|
this.dialog = { title: '详细信息', show: true, type: '2', widths: '40%' };
|
|
},
|
|
},
|
|
- // 多选
|
|
|
|
- handleSelect(data) {
|
|
|
|
- this.$set(this, `selected`, data);
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
//导出数据
|
|
//导出数据
|
|
async toExport() {
|
|
async toExport() {
|
|
- console.log(this.selected);
|
|
|
|
|
|
+ this.dialog = { title: '导出条件', show: true, type: '1', widths: '40%' };
|
|
},
|
|
},
|
|
- // 提交保存,创建/修改
|
|
|
|
|
|
+ //导出
|
|
async toSave({ data }) {
|
|
async toSave({ data }) {
|
|
console.log(data);
|
|
console.log(data);
|
|
},
|
|
},
|
|
//关闭
|
|
//关闭
|
|
toClose() {
|
|
toClose() {
|
|
this.form = { order: [] };
|
|
this.form = { order: [] };
|
|
|
|
+ this.exportform = {};
|
|
this.dialog = { title: '详细信息', show: false, type: '1' };
|
|
this.dialog = { title: '详细信息', show: false, type: '1' };
|
|
this.search();
|
|
this.search();
|
|
},
|
|
},
|