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