Commit 4c3d683f authored by 黄卓's avatar 黄卓

最后操作时间

parent 8268a227
...@@ -11,7 +11,7 @@ const baseURL = process.env.VUE_APP_BASE_API ...@@ -11,7 +11,7 @@ const baseURL = process.env.VUE_APP_BASE_API
* @param pattern {String} '{y}-{m}-{d} {h}:{i}:{s}' * @param pattern {String} '{y}-{m}-{d} {h}:{i}:{s}'
* @returns {string|null} * @returns {string|null}
*/ */
export function parseTime(time, pattern) { export function parseTime(time, pattern = undefined) {
if (arguments.length === 0 || !time) { if (arguments.length === 0 || !time) {
return null return null
} }
......
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="address" prop="updateTime"
:formatter="(_, __, v) => parseTime(v)"
label="最后操作时间"> label="最后操作时间">
<!-- todo -->
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="原价"> label="原价">
...@@ -96,6 +96,7 @@ import {getOffer} from '@/api/ecw/offer' ...@@ -96,6 +96,7 @@ import {getOffer} from '@/api/ecw/offer'
import {getUnitList} from "@/api/ecw/unit" import {getUnitList} from "@/api/ecw/unit"
import {getCurrencyList} from "@/api/ecw/currency" import {getCurrencyList} from "@/api/ecw/currency"
import {getProductAttrList} from "@/api/ecw/productAttr" import {getProductAttrList} from "@/api/ecw/productAttr"
import { parseTime } from '@/utils/ruoyi'
export default { export default {
name: "OfferSpecial", name: "OfferSpecial",
components: { components: {
...@@ -105,6 +106,7 @@ export default { ...@@ -105,6 +106,7 @@ export default {
}, },
data() { data() {
return { return {
parseTime,
DICT_TYPE, DICT_TYPE,
getDictDataLabel, getDictDataLabel,
// 遮罩层 // 遮罩层
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment