| | |
| | | <el-input |
| | | v-model="formInline.tab" |
| | | :placeholder="$t('common.pleaseInput')" |
| | | style="width:200px" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | icon="el-icon-search" |
| | | size="small" |
| | | @click="getSelectDictTab" |
| | | class="primary" |
| | | >{{ $t('common.iquery') }}</el-button> |
| | | <el-button |
| | | icon="el-icon-refresh" |
| | | size="small" |
| | | @click="getRemoveForm" |
| | | type="info" |
| | | >{{ $t('common.reset') }}</el-button> |
| | | <el-form-item style="float:right"> |
| | | <el-button |
| | | v-if="btnStatus.insert" |
| | | icon="el-icon-edit" |
| | |
| | | >{{ |
| | | $t('common.delete') |
| | | }}</el-button> |
| | | <el-button |
| | | icon="el-icon-search" |
| | | size="small" |
| | | @click="getSelectDictTab" |
| | | class="primary" |
| | | >{{ $t('common.iquery') }}</el-button> |
| | | <el-button |
| | | icon="el-icon-refresh" |
| | | size="small" |
| | | @click="getRemoveForm" |
| | | type="info" |
| | | >{{ $t('common.reset') }}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="listData.pageIndex" |
| | | :page-sizes="[10, 20, 30, 40]" |
| | | :page-sizes="[10, 20, 50, 100]" |
| | | :page-size="listData.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count" |
| | |
| | | this.upform = row; |
| | | }, |
| | | //删除列表 |
| | | async DelFormData() { |
| | | DelFormData() { |
| | | var std = []; |
| | | |
| | | for (var i in this.multipleSelection) { |
| | | std.push(this.multipleSelection[i].id); |
| | | } |
| | | |
| | | const data = await deleteDicts({ ids: std.toString() }); |
| | | if (data.code != 200) { |
| | | this.$message.error('删除失败'); |
| | | } |
| | | this.listData.pageIndex = 1; |
| | | this.listData.pageSize = 10; |
| | | this.startQueryNameData(); |
| | | this.$confirm('此操作将永久删除该字段, 是否继续?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(async () => { |
| | | const data = await deleteDicts({ ids: std.toString() }); |
| | | if (data.code != 200) { |
| | | this.$message.error('删除失败'); |
| | | } |
| | | this.listData.pageIndex = 1; |
| | | this.listData.pageSize = 10; |
| | | this.startQueryNameData(); |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '删除成功!' |
| | | }); |
| | | }).catch(() => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: '已取消删除' |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | showPermsBtn() { |