字典国际化,国际化整理,部分样式修改
This commit is contained in:
@@ -331,3 +331,10 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
.el-form-item >>> .el-form-item__label {
|
||||
white-space: nowrap;
|
||||
width: auto;
|
||||
min-width: fit-content;
|
||||
}
|
||||
</style>
|
||||
@@ -328,3 +328,10 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
.el-form-item >>> .el-form-item__label {
|
||||
white-space: nowrap;
|
||||
width: auto;
|
||||
min-width: fit-content;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="app-container">
|
||||
<!-- 统计卡片 -->
|
||||
<el-row :gutter="20" class="stats-row">
|
||||
<el-col :span="4">
|
||||
<el-col :span="5" >
|
||||
<el-card class="stats-card">
|
||||
<div class="stats-content">
|
||||
<div class="stats-icon agv-icon">
|
||||
@@ -15,7 +15,7 @@
|
||||
</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-col :span="5">
|
||||
<el-card class="stats-card">
|
||||
<div class="stats-content">
|
||||
<div class="stats-icon ctu-icon">
|
||||
@@ -54,7 +54,7 @@
|
||||
</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-col :span="4">
|
||||
<el-card class="stats-card">
|
||||
<div class="stats-content">
|
||||
<div class="stats-icon finish-icon">
|
||||
|
||||
@@ -192,6 +192,7 @@
|
||||
<script>
|
||||
import { listData, getData, delData, addData, updateData } from "@/api/system/dict/data"
|
||||
import { optionselect as getDictOptionselect, getType } from "@/api/system/dict/type"
|
||||
import i18n from "@/lang";
|
||||
|
||||
export default {
|
||||
name: "Data",
|
||||
@@ -295,6 +296,10 @@ export default {
|
||||
getList() {
|
||||
this.loading = true
|
||||
listData(this.queryParams).then(response => {
|
||||
response.rows = response.rows.map(item => ({
|
||||
...item,
|
||||
dictLabel: i18n.t(item.dictLabel) || item.dictLabel
|
||||
}))
|
||||
this.dataList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
@@ -399,4 +404,4 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@@ -146,11 +146,11 @@
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="90px">
|
||||
<!-- 岗位名称 -->
|
||||
<el-form-item :label="$t('systemManagement_PostManagement.postName')" prop="postName">
|
||||
<el-input v-model="form.postName" :placeholder="$t('systemManagement_PostManagement.placeholderPostName')" />
|
||||
<el-input v-model="form.postName" :placeholder="$t('systemManagement_PostManagement.placeholderpostName')" />
|
||||
</el-form-item>
|
||||
<!-- 岗位编码 -->
|
||||
<el-form-item :label="$t('systemManagement_PostManagement.postCode')" prop="postCode">
|
||||
<el-input v-model="form.postCode" :placeholder="$t('systemManagement_PostManagement.placeholderPostCode')" />
|
||||
<el-input v-model="form.postCode" :placeholder="$t('systemManagement_PostManagement.placeholderpostCode')" />
|
||||
</el-form-item>
|
||||
<!-- 岗位顺序 -->
|
||||
<el-form-item :label="$t('systemManagement_PostManagement.postSort')" prop="postSort">
|
||||
|
||||
Reference in New Issue
Block a user