修改字典展示
This commit is contained in:
@@ -82,7 +82,7 @@ public class KpiController extends BaseController {
|
||||
* @return 货位分析数据
|
||||
*/
|
||||
@GetMapping("/spaceAnalysis")
|
||||
public AjaxResult getSpaceAnalysis(@RequestParam("warehouseId") String warehouseId) {
|
||||
public AjaxResult getSpaceAnalysis(@RequestParam(value = "warehouseId",required = false) String warehouseId) {
|
||||
return success(kpiService.getSpaceAnalysis(warehouseId));
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ function install() {
|
||||
...item,
|
||||
dictLabel: i18n.t(item.dictLabel) || item.dictLabel
|
||||
}))
|
||||
//console.log(translatedData)
|
||||
console.log(translatedData)
|
||||
store.dispatch('dict/setDict', { key: dictMeta.type, value: translatedData })
|
||||
resolve(translatedData)
|
||||
}).catch(error => {
|
||||
|
||||
@@ -40,10 +40,10 @@
|
||||
@change="handleQuery"
|
||||
>
|
||||
<el-option
|
||||
v-for="dict in statusOptions"
|
||||
:key="dict.dictValue"
|
||||
:label="dict.dictLabel"
|
||||
:value="dict.dictValue"
|
||||
v-for="dict in dict.type.receive_bill_status"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -282,8 +282,6 @@ export default {
|
||||
return {
|
||||
// 仓库选项列表
|
||||
warehouseOptions: [],
|
||||
// 单据状态字典
|
||||
statusOptions: [],
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
detailLoading: true,
|
||||
@@ -520,12 +518,6 @@ export default {
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
/** 获取字典数据 */
|
||||
getDictList() {
|
||||
getDicts("receive_bill_status").then(response => {
|
||||
this.statusOptions = response.data;
|
||||
});
|
||||
},
|
||||
/** 获取仓库列表 */
|
||||
getWarehouseList() {
|
||||
listWarehouse(this.queryWarehouseParams).then(response => {
|
||||
|
||||
@@ -107,8 +107,8 @@
|
||||
<!-- 字典标签 -->
|
||||
<el-table-column :label="$t('systemManagement_DictManagement.dictLabel')" align="center" prop="dictLabel">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="(scope.row.listClass == '' || scope.row.listClass == 'default') && (scope.row.cssClass == '' || scope.row.cssClass == null)">{{ scope.row.dictLabel }}</span>
|
||||
<el-tag v-else :type="scope.row.listClass == 'primary' ? '' : scope.row.listClass" :class="scope.row.cssClass">{{ scope.row.dictLabel }}</el-tag>
|
||||
<span v-if="(scope.row.listClass == '' || scope.row.listClass == 'default') && (scope.row.cssClass == '' || scope.row.cssClass == null)">{{ $t(scope.row.dictLabel) }}</span>
|
||||
<el-tag v-else :type="scope.row.listClass == 'primary' ? '' : scope.row.listClass" :class="scope.row.cssClass">{{ $t(scope.row.dictLabel) }}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 字典键值 -->
|
||||
|
||||
Reference in New Issue
Block a user