| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :option="option" |
| | | <avue-crud v-show="!isSetPlanUser" :option="option" |
| | | :table-loading="loading" |
| | | :data="data" |
| | | :page.sync="page" |
| | |
| | | |
| | | </template> |
| | | </avue-crud> |
| | | <taskplan-user v-show="isSetPlanUser" ref="taskplanUser" @setPlanUser="setPlanUser"></taskplan-user> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | |
| | | |
| | | <script> |
| | | import {getList, getDetail, add, update, remove, changeStatus} from "@/api/taskinfo/taskinfoPlan"; |
| | | import option from "@/const/taskinfo/taskinfoPlan"; |
| | | import {mapGetters} from "vuex"; |
| | | import TaskplanUser from "@/views/taskinfo/taskplanUser"; |
| | | |
| | | export default { |
| | | components: {TaskplanUser}, |
| | | data() { |
| | | return { |
| | | isSetPlanUser:false, |
| | | form: {}, |
| | | query: {}, |
| | | loading: true, |
| | |
| | | }) |
| | | }, |
| | | goToTaskplanUser(planId) { |
| | | this.$router.push({ path: "/taskinfo/taskplanUser", query: {planId:planId} }); |
| | | // this.$router.push({ path: "/taskinfo/taskplanUser", query: {planId:planId} }); |
| | | this.setPlanUser() |
| | | }, |
| | | setPlanUser() { |
| | | this.isSetPlanUser = !this.isSetPlanUser |
| | | } |
| | | } |
| | | }; |