| | |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad"> |
| | | <template slot="menuLeft"> |
| | | <el-button type="primary" |
| | | size="small" |
| | | icon="el-icon-search" |
| | | plain @click="searchHandler">查 询 |
| | | </el-button> |
| | | <advanced-query :options="options" :visible.sync="findvisible" |
| | | @echoContion="echoContion"></advanced-query> |
| | | <el-button type="danger" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | plain @click="deleteHandler">删 除 |
| | | </el-button> |
| | | <el-button type="success" |
| | | size="small" |
| | | icon="el-icon-edit" |
| | | plain>修 改 |
| | | </el-button> |
| | | <el-button type="primary" |
| | | size="small" |
| | | icon="el-icon-refresh-right" |
| | | plain>刷 新 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | |
| | | name: "Match", |
| | | data(){ |
| | | return{ |
| | | options: [ |
| | | { |
| | | fieid:'id', |
| | | title:'编号', |
| | | fieldType:'text', |
| | | queryField:'id' |
| | | }, |
| | | { |
| | | fieid:'name', |
| | | title:'名称', |
| | | fieldType:'text', |
| | | queryField:'name' |
| | | }, |
| | | { |
| | | fieid:'ignoreallspaceflag', |
| | | title:'忽略全部空格', |
| | | fieldType:'truefalse', |
| | | queryField:'ignoreallspaceflag' |
| | | }, |
| | | { |
| | | fieid:'ignorecaseflag', |
| | | title:'忽略大小写', |
| | | fieldType:'truefalse', |
| | | queryField:'ignorecaseflag' |
| | | }, |
| | | { |
| | | fieid:'ignorespaceflag', |
| | | title:'忽略空格', |
| | | fieldType:'truefalse', |
| | | queryField:'ignorespaceflag' |
| | | }, |
| | | { |
| | | fieid:'ignorewidthflag', |
| | | title:'忽略全半角', |
| | | fieldType:'truefalse', |
| | | queryField:'ignorewidthflag' |
| | | }, |
| | | { |
| | | fieid:'linkCharacter', |
| | | title:'忽略连接字符', |
| | | fieldType:'text', |
| | | queryField:'linkCharacter' |
| | | }, |
| | | ], |
| | | findvisible:false, |
| | | selectRow:[], |
| | | option:{ |
| | | height:700, |
| | | calcHeight: 80, |
| | |
| | | this.onLoad() |
| | | }, |
| | | methods:{ |
| | | searchHandler(){ |
| | | this.findvisible=true; |
| | | }, |
| | | echoContion(row){ |
| | | |
| | | }, |
| | | deleteHandler(){ |
| | | if(this.selectRow.length <= 0){ |
| | | this.$message.warning('请选择一条数据') |
| | | }else { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | const Obj = [...this.selectRow]; |
| | | return deleteData(item); |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | | rowDel(row){ |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | |
| | | }, |
| | | selectionChange(row){ |
| | | console.log(row) |
| | | this.selectRow=row; |
| | | }, |
| | | currentChange(currentPage) { |
| | | this.page.currentPage = currentPage; |