This commit is contained in:
zjf committed 2025-05-28 13:03:37 +08:00
1 parent c2ee643ce4
commit 848a233d19
3 files changed
+21 -3

No files matched your search

+7
View File
@@ -39,3 +39,10 @@ export function putObj(obj?: Object) {
})
}
export function syncTime() {
return request({
url: '/canteen/boxesBooking/anscyJob',
method: 'get'
})
}
+13 -1
View File
@@ -11,6 +11,7 @@
<el-form-item>
<el-button icon="search" type="primary" @click="getDataList"> 查询 </el-button>
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
<el-button icon="Timer" type="success" @click="handleSyncTime">同步时间</el-button>
</el-form-item>
</el-form>
</el-row>
@@ -91,7 +92,7 @@
<script setup lang="ts" name="systemBoxesAvailability">
import { BasicTableProps, useTable } from "/@/hooks/table"
import { fetchList, delObjs } from "/@/api/canteen/boxesAvailability"
import { fetchList, delObjs, syncTime } from "/@/api/canteen/boxesAvailability"
import { useMessage, useMessageBox } from "/@/hooks/message"
import { useDict } from "/@/hooks/dict"
@@ -153,4 +154,15 @@ const handleDelete = async (ids: string[]) => {
useMessage().error(err.msg)
}
}
// 同步时间操作
const handleSyncTime = async () => {
try {
await syncTime()
useMessage().success("同步时间成功")
getDataList()
} catch (err: any) {
useMessage().error(err.msg || "同步时间失败")
}
}
</script>
+1 -2
View File
@@ -63,8 +63,7 @@
<dict-tag :options="boxes_status" :value="scope.row.status" />
</template>
</el-table-column>
<el-table-column prop="price" label="包厢价格单位分" show-overflow-tooltip />
<el-table-column prop="merchantId" label="商户id" show-overflow-tooltip />
<!-- <el-table-column prop="price" label="包厢价格单位分" show-overflow-tooltip />-->
<el-table-column label="操作" width="150" fixed="right">
<template #default="scope">
<el-button