| | |
| | | <el-dialog |
| | | :title="!dataForm.id ? '新建' : '编辑'" |
| | | :close-on-click-modal="false" |
| | | width="80%" |
| | | width="20%" |
| | | :visible.sync="addVisible"> |
| | | <!-- 添加内容--> |
| | | <el-form :model="dataForm" label-width="100px" ref="dataForm"> |
| | | <el-row :gutter="20"> |
| | | <el-row :gutter="24"> |
| | | |
| | | <el-col :xs="24":sm="6":md="6":lg="6":xl="6"> |
| | | <el-col :xs="24":sm="24":md="24":lg="24":xl="24"> |
| | | <el-form-item label="名称" prop="name"> |
| | | <el-input v-model="dataForm.name" placeholder="名称" clearable></el-input> |
| | | </el-form-item> |
| | |
| | | } |
| | | }, |
| | | created () { |
| | | console.log('add create'); |
| | | //console.log('add create'); |
| | | this.init(this.row) |
| | | }, |
| | | methods: { |
| | |
| | | |
| | | ids.push(row.id) |
| | | |
| | | ids = ids.join(',') |
| | | //ids = ids.join(',') |
| | | this.$confirm('确定要永久删除此项?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | type: 'success', |
| | | message: '删除成功!' |
| | | }) |
| | | this.submitForm() |
| | | this.query (); |
| | | //this.submitForm() |
| | | }) |
| | | }).catch(() => { |
| | | this.$message({ |