fix: 修复前端人员性别sex显示错误

This commit is contained in:
chenchun
2024-07-25 20:07:45 +08:00
parent a074cdefa5
commit 0a54ba9cae
3 changed files with 5 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ namespace Yi.Framework.Rbac.SqlSugarCore.DataSeeds
{
DictLabel = "男",
DictValue = "0",
DictValue = "Male",
DictType = "sys_user_sex",
OrderNum = 100,
Remark = "性别男",
@@ -41,7 +41,7 @@ namespace Yi.Framework.Rbac.SqlSugarCore.DataSeeds
{
DictLabel = "女",
DictValue = "1",
DictValue = "Woman",
DictType = "sys_user_sex",
OrderNum = 99,
Remark = "性别女",
@@ -54,7 +54,7 @@ namespace Yi.Framework.Rbac.SqlSugarCore.DataSeeds
{
DictLabel = "未知",
DictValue = "2",
DictValue = "Unknown",
DictType = "sys_user_sex",
OrderNum = 98,
Remark = "性别未知",

View File

@@ -110,7 +110,7 @@
<!-- <router-link :to="'/system/dict-data/index/' + scope.row.id" class="link-type">
</router-link> -->
<span @click="handleToPath(scope.row.id)">{{ scope.row.dictType }}</span>
<span style="color: blue; cursor: pointer; " @click="handleToPath(scope.row.id)">{{ scope.row.dictType }}</span>
</template>
</el-table-column>
<el-table-column label="状态" align="center" prop="state">

View File

@@ -158,7 +158,7 @@
<el-col :span="12">
<el-form-item label="用户性别">
<el-select v-model="form.sex" placeholder="请选择">
<el-option v-for="dict in sys_user_sex" :key="dict.value" :label="dict.label" :value="JSON.parse(dict.value) "></el-option>
<el-option v-for="dict in sys_user_sex" :key="dict.value" :label="dict.label" :value="dict.value "></el-option>
</el-select>
</el-form-item>
</el-col>