| | |
| | | index: true, |
| | | viewBtn: false, |
| | | editBtn: false, |
| | | addBtn: false, |
| | | selection: true, |
| | | dialogClickModal: false, |
| | | column: [ |
| | |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/taskinfo/taskinfoDetail') |
| | | }, |
| | | { |
| | | path: 'taskplanUser', |
| | | name: '设置巡检人员', |
| | | meta: { |
| | | i18n: 'detail', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/taskinfo/taskplanUser') |
| | | } |
| | | ] |
| | | }, |
| | |
| | | <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 |
| | | } |
| | | } |
| | | }; |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :option="option" |
| | | :table-loading="loading" |
| | | :data="data" |
| | |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad"> |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | size="small" |
| | | icon="el-icon-back" |
| | | plain |
| | | @click="handleBack">返 回 |
| | | </el-button> |
| | | <el-button type="primary" |
| | | size="small" |
| | | icon="el-icon-plus" |
| | | @click.native="$refs.crud.rowAdd">新 增 |
| | | </el-button> |
| | | <el-button type="danger" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | handleBack() { |
| | | this.$emit('setPlanUser'); |
| | | }, |
| | | handleDelete() { |
| | | if (this.selectionList.length === 0) { |
| | | this.$message.warning("请选择至少一条数据"); |