| | |
| | | :option="option" |
| | | :page.sync="page" |
| | | :table-loading="loading" |
| | | :permission="permissionList" |
| | | @row-del="rowDel" |
| | | @row-update="rowUpdate" |
| | | @row-save="rowSave" |
| | |
| | | <el-button icon="el-icon-search" |
| | | plain |
| | | size="small" |
| | | v-if="permissionList.search" |
| | | type="primary" @click="searchHandler">查 询 |
| | | </el-button> |
| | | <advanced-query :options="options" :visible.sync="findvisible" |
| | |
| | | <el-button icon="el-icon-delete" |
| | | plain |
| | | size="small" |
| | | v-if="permissionList.delBtn" |
| | | type="danger" @click="deleteHandler">删 除 |
| | | </el-button> |
| | | <el-button icon="el-icon-edit" |
| | | plain |
| | | size="small" |
| | | v-if="permissionList.editBtn" |
| | | type="success" @click="editHandler">修 改 |
| | | </el-button> |
| | | <el-button icon="el-icon-refresh-right" |
| | | plain |
| | | size="small" |
| | | v-if="permissionList.breakBtn" |
| | | type="primary" @click="onLoad">刷 新 |
| | | </el-button> |
| | | </template> |
| | |
| | | |
| | | <script> |
| | | import {getList, add, editSave, deleteData} from "@/api/code/codeMatch"; |
| | | |
| | | import {mapGetters} from "vuex"; |
| | | export default { |
| | | name: "Match", |
| | | data() { |
| | |
| | | findvisible: false, |
| | | selectRow: [], |
| | | option: { |
| | | height: 700, |
| | | calcHeight: 80, |
| | | height: 'auto', |
| | | calcHeight: 20, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | |
| | | created() { |
| | | this.onLoad() |
| | | }, |
| | | computed:{ |
| | | ...mapGetters(["permission"]), |
| | | permissionList(){ |
| | | return{ |
| | | search:this.vaildData(this.permission.match.math_search,false), |
| | | delBtn:this.vaildData(this.permission.match.math_delete,false), |
| | | addBtn:this.vaildData(this.permission.match.math_add,false), |
| | | editBtn:this.vaildData(this.permission.match.math_edit,false), |
| | | breakBtn:this.vaildData(this.permission.match.math_break,false), |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | | searchHandler() { |
| | | this.findvisible = true; |
| | | }, |
| | | echoContion(row) { |
| | | |
| | | echoContion(val) { |
| | | console.log(...val) |
| | | // FindData({ |
| | | // templateOid: this.templateOid, |
| | | // codeClassifyOid: this.codeClassifyOid, |
| | | // ...val, |
| | | // }).then((res) => { |
| | | // this.tableData = res.data.data; |
| | | // this.page.total = res.data.total |
| | | // }); |
| | | }, |
| | | deleteHandler() { |
| | | const length = this.selectRow.length; |