| | |
| | | |
| | | </el-form> |
| | | <!-- --> |
| | | <el-dialog title="添加巡检点" :close-on-click-modal="false" append-to-body :visible.sync="isShowModal" width="780px"> |
| | | <el-dialog title="添加巡检点" :close-on-click-modal="false" append-to-body :visible.sync="isShowModal" width="880px"> |
| | | <!-- <el-select class="w400" v-model="selPoint" clearable multiple filterable> |
| | | <el-option v-for="item in pointList" :value="item.id" :label="item.name"></el-option> |
| | | </el-select> --> |
| | |
| | | </el-form-item> |
| | | <el-button type="primary" @click="initData">搜索</el-button> |
| | | <el-button @click="reset">重置</el-button> |
| | | <el-button type="primary" @click="editClick()" icon="el-icon-plus" |
| | | v-permissions="['business:ywpatrolpoint:create']">新建巡检点</el-button> |
| | | </el-form> |
| | | |
| | | <el-table @selection-change="handleSelectionChange" v-loading="isWorking.search" :data="pointList" stripe> |
| | |
| | | <el-button type="primary" @click="subModal">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <OperaYwPatrolPointWindow ref="operaYwPatrolPointWindow" @success="handlePageChange" /> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import OperaYwPatrolPointWindow from '@/views/Inspection/components/OperaYwPatrolPointWindow' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import { fetchList as getFetchList } from '@/api/Inspection/ywPatrolPoint' |
| | | import { create, updateById, detailById } from '@/api/Inspection/ywPatrolLine' |
| | |
| | | export default { |
| | | name: 'OperaYwPatrolLineWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow, Pagination }, |
| | | components: { GlobalWindow, Pagination,OperaYwPatrolPointWindow }, |
| | | data() { |
| | | return { |
| | | // 表单数据 |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | editClick(row) { |
| | | this.$refs.operaYwPatrolPointWindow.open('新建巡检点') |
| | | // this.$refs.operaYwPatrolPointWindow.initData() |
| | | }, |
| | | confirm() { |
| | | const { form, list } = this |
| | | this.$refs['form'].validate((valid) => { |