| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :option="option" |
| | | <avue-crud v-show="!detailVisible" :option="option" |
| | | :table-loading="loading" |
| | | :data="data" |
| | | :page.sync="page" |
| | |
| | | |
| | | </avue-crud> |
| | | |
| | | <taskinfo-detail v-if="detailVisible" ref="detailVisible" :detailInfo="detailInfo" @isDetail="isDetail"></taskinfo-detail> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import {getList, getDetail, add, update, remove} from "@/api/taskinfo/taskinfo"; |
| | | import {getList, add, update, remove} from "@/api/taskinfo/taskinfo"; |
| | | import option from "@/const/taskinfo/taskinfo"; |
| | | import {mapGetters} from "vuex"; |
| | | import OpenLayersMap from "@/components/OpenLayersMap"; |
| | | import TaskinfoDetail from "@/views/taskinfo/taskinfoDetail"; |
| | | |
| | | export default { |
| | | components: { OpenLayersMap }, |
| | | components: {TaskinfoDetail, OpenLayersMap }, |
| | | data() { |
| | | return { |
| | | form: {}, |
| | |
| | | }, |
| | | selectionList: [], |
| | | option: option, |
| | | data: [] |
| | | data: [], |
| | | detailVisible:false, |
| | | detailInfo:{}, |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | this.form.routeRange = toData |
| | | }, |
| | | goTaskinfoDetail(row){ |
| | | this.$router.push({ path: "/taskinfo/taskinfoDetail", query: row }); |
| | | // this.$router.push({ path: "/taskinfo/taskinfoDetail", query: row }); |
| | | this.rowClick(row) |
| | | }, |
| | | //点击当前行事件 |
| | | rowClick(val){ |
| | | this.$router.push({ path: "/taskinfo/taskinfoDetail", query: val }); |
| | | // this.$router.push({ path: "/taskinfo/taskinfoDetail", query: val }); |
| | | this.detailInfo = val |
| | | this.isDetail(); |
| | | }, |
| | | isDetail(){ |
| | | this.detailVisible = !this.detailVisible |
| | | } |
| | | } |
| | | }; |