This commit is contained in:
parent
089f5367d6
commit
7204fcd9b4
|
@ -81,7 +81,7 @@ const show = () => {
|
|||
}
|
||||
|
||||
mitt.on("choseTown", (data) => {
|
||||
console.log(data, ...props.list);
|
||||
// console.log(data, ...props.list);
|
||||
let town = props.list.find((item) => item.name == data.name);
|
||||
if (town && town.code) {
|
||||
choseTownFn(town)
|
||||
|
|
|
@ -78,7 +78,8 @@ const cell = reactive([
|
|||
}
|
||||
])
|
||||
const initCell = () => {
|
||||
let all = pendingOrderCount.value + undeliveredOrderCount.value + doneOrderCountQuery.value;
|
||||
// console.log(pendingOrderCount.value , undeliveredOrderCount.value , doneOrderCountQuery.value);
|
||||
let all = (pendingOrderCount.value + undeliveredOrderCount.value + doneOrderCountQuery.value) || 1;
|
||||
cell[0].value = (pendingOrderCount.value / all * 100).toFixed(0);
|
||||
cell[0].label = (pendingOrderCount.value / all * 100).toFixed(2) + '%';
|
||||
cell[0].count = pendingOrderCount.value;
|
||||
|
@ -95,6 +96,10 @@ const openList = () => {
|
|||
mitt.emit('showBusinesses')
|
||||
}
|
||||
|
||||
mitt.on("more_order_index", (data)=>{
|
||||
openList()
|
||||
})
|
||||
|
||||
const orderCount = ref(0);
|
||||
const pendingOrderCount = ref(0);
|
||||
const undeliveredOrderCount = ref(0);
|
||||
|
|
|
@ -5,8 +5,9 @@ import path from 'path';
|
|||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
server: {
|
||||
host: '0.0.0.0'
|
||||
server: { // ← ← ← ← ← ←
|
||||
host: '0.0.0.0' ,// ← 新增内容 ←
|
||||
port:"8787"
|
||||
},
|
||||
optimizeDeps: {
|
||||
// 开发时 解决这些commonjs包转成esm包
|
||||
|
|
Loading…
Reference in New Issue