|
|
|
@ -28,12 +28,12 @@ |
|
|
|
show-overflow-tooltip |
|
|
|
show-overflow-tooltip |
|
|
|
:formatter="(row: any, column: any, value: any) => formatter(row, column, value, item)" |
|
|
|
:formatter="(row: any, column: any, value: any) => formatter(row, column, value, item)" |
|
|
|
> |
|
|
|
> |
|
|
|
<template v-if="item.slot" #default="scope"> |
|
|
|
<template v-if="item.slot" #default="{ row }"> |
|
|
|
<slot :name="item.code" :row="scope.row"></slot> |
|
|
|
<slot :name="item.code" :row="row"></slot> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="item.dict" #default="{ row }"> |
|
|
|
<template v-if="item.dict" #default="{ row }"> |
|
|
|
{{ formatterByDist(item.dict, row[item.code]) }} |
|
|
|
{{ formatterByDist(item.dict, lodash.get(row, item.code)) }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
@ -58,6 +58,7 @@ import { useStore } from "vuex"; |
|
|
|
import { reactive, onMounted, ref, watch, onUpdated } from "vue"; |
|
|
|
import { reactive, onMounted, ref, watch, onUpdated } from "vue"; |
|
|
|
import { useI18n } from "vue3-i18n"; |
|
|
|
import { useI18n } from "vue3-i18n"; |
|
|
|
import { TableColumn } from "noob-mengyxu"; |
|
|
|
import { TableColumn } from "noob-mengyxu"; |
|
|
|
|
|
|
|
import * as lodash from "lodash-es"; |
|
|
|
// import { PageExample } from "noob-mengyxu"; |
|
|
|
// import { PageExample } from "noob-mengyxu"; |
|
|
|
const { t } = useI18n(); |
|
|
|
const { t } = useI18n(); |
|
|
|
const { state } = useStore(); |
|
|
|
const { state } = useStore(); |
|
|
|
|