Browse Source

update

master
wanggang 1 year ago
parent
commit
dde7bb033f
  1. 7
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/table/index.js

7
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/table/index.js

@ -1,5 +1,6 @@
import html from "html";
import { reactive, ref } from "vue";
import { dayjs } from "element-plus";
export default {
template: html`<div class="app-table el-table" ref="tableRef">
@ -37,7 +38,10 @@ export default {
</template>
</template>
<div class="cell el-table__cell" :class="key" v-else-if="!item.hidden">
<div class="cell">{{row[key]}}</div>
<div class="cell">
<template v-if="item.input==='datetime'">{{dayjs(model[prop]).format('YYYY-MM-DD HH:mm:ss')}}</template>
<template v-else>{{row[key]}}</template>
</div>
</div>
</template>
</div>
@ -96,6 +100,7 @@ export default {
checkAllClick,
getSelection,
clearSelection,
dayjs,
};
},
};

Loading…
Cancel
Save