修改字典bug

This commit is contained in:
yyhouc 2023-05-23 17:24:18 +08:00
parent 9bd0352569
commit b45651c803
2 changed files with 6 additions and 6 deletions

View File

@ -25,14 +25,14 @@
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
<el-row :gutter="35" v-for="(v, k) in state.ruleForm.children" :key="k">
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item :prop="`list[${k}].label`" label-width="180">
<el-form-item :prop="`list[${k}].label`" label-width="240">
<template #label>
<el-button type="primary" circle size="small" @click="onAddRow" v-if="k === 0">
<el-button type="primary" circle size="small" @click="onAddRow" v-if="k === state.ruleForm.children.length-1">
<el-icon>
<ele-Plus />
</el-icon>
</el-button>
<el-button type="danger" circle size="small" @click="onDelRow(k)" v-else>
<el-button type="danger" circle size="small" @click="onDelRow(k)">
<el-icon>
<ele-Delete />
</el-icon>

View File

@ -3,7 +3,7 @@
<el-card shadow="hover" class="layout-padding-auto">
<div class="system-user-search mb15">
<el-input size="default" placeholder="Please enter a dictionary name" style="max-width: 180px" v-model="state.query.dictValue"> </el-input>
<el-button size="default" type="primary" class="ml10">
<el-button size="default" type="primary" class="ml10" @click="getTableData()">
<el-icon>
<ele-Search />
</el-icon>
@ -79,7 +79,7 @@ const state = reactive({
//
const getTableData = () => {
state.tableData.loading = true;
getList().then((res) => {
getList({dictValue_equal:state.query.dictValue}).then((res) => {
state.tableData.data = res;
state.tableData.loading = false;
});