|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <div v-if="!visible_detail" class="simple-container">
|
|
|
+ <div class="simple-container">
|
|
|
<simple-form
|
|
|
:form="table_form"
|
|
|
@search="handleSearch"
|
|
@@ -10,7 +10,8 @@
|
|
|
:config="table_config"
|
|
|
:loading="table_loading"
|
|
|
:handle-row="table_handle_row"
|
|
|
- @detail="handleDetail"
|
|
|
+ @detail="handleVisible"
|
|
|
+ @edit="handleVisible"
|
|
|
></simple-table>
|
|
|
<simple-pagination
|
|
|
:page="page"
|
|
@@ -18,7 +19,15 @@
|
|
|
@change="handleChange"
|
|
|
></simple-pagination>
|
|
|
</div>
|
|
|
- <analysis v-else />
|
|
|
+ <simple-dialog
|
|
|
+ title="查看"
|
|
|
+ width="1200px"
|
|
|
+ @cancel="handleVisible"
|
|
|
+ @confirm="handleVisible"
|
|
|
+ :visible="template_visible"
|
|
|
+ >
|
|
|
+ <analysis />
|
|
|
+ </simple-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -26,11 +35,13 @@
|
|
|
import analysis from "./analysis.vue";
|
|
|
import simpleForm from "./components/form.vue";
|
|
|
import simpleTable from "./components/table.vue";
|
|
|
+import simpleDialog from "./components/dialog.vue";
|
|
|
import simplePagination from "./components/pagination.vue";
|
|
|
export default {
|
|
|
components: {
|
|
|
analysis,
|
|
|
simpleTable,
|
|
|
+ simpleDialog,
|
|
|
simpleForm,
|
|
|
simplePagination,
|
|
|
},
|
|
@@ -39,7 +50,7 @@ export default {
|
|
|
page: 1,
|
|
|
rows: 10,
|
|
|
total: 0,
|
|
|
- visible_detail: false,
|
|
|
+ template_visible: false,
|
|
|
table_loading: false,
|
|
|
table_search: {},
|
|
|
table_form: [
|
|
@@ -77,6 +88,7 @@ export default {
|
|
|
{
|
|
|
label: "撤回",
|
|
|
props: "delete",
|
|
|
+ popconfirm: true,
|
|
|
},
|
|
|
],
|
|
|
table_config: [
|
|
@@ -136,8 +148,8 @@ export default {
|
|
|
this.page = page;
|
|
|
this.handleInit();
|
|
|
},
|
|
|
- handleDetail() {
|
|
|
- this.visible_detail = !this.visible_detail;
|
|
|
+ handleVisible() {
|
|
|
+ this.template_visible = !this.template_visible;
|
|
|
},
|
|
|
handleReset() {
|
|
|
this.page = 1;
|