DESKTOP-2IO5MST\huting 1 год назад
Родитель
Сommit
361c4492c4
3 измененных файлов: 770 добавлений и 709 удалений
  1. 25
    19
      main.js
  2. 733
    685
      subpackage/orders/order-details-new.vue
  3. 12
    5
      subpackage/service/statistics/index.vue

+ 25
- 19
main.js Просмотреть файл

@@ -1,7 +1,9 @@
import App from "./App";
import * as utils from "@/utils/utils";
import store from "./stores";
import { fileURL } from "@/datas/fileURL.js";
import {
fileURL
} from "@/datas/fileURL.js";

//Vue2 内容
// #ifndef VUE3
@@ -13,37 +15,41 @@ Vue.config.productionTip = false;
App.mpType = "app";
Vue.prototype.$util = utils;
const app = new Vue({
...App,
...App,
});
app.$mount();
// #endif

//Vue3 内容
// #ifdef VUE3
import { createSSRApp } from "vue";
import {
createSSRApp
} from "vue";
import uView from "./uni_modules/vk-uview-ui";
// import request from '@/utils/network/request.js';
import { useCounterStore } from "@/stores/counter";
import {
useCounterStore
} from "@/stores/counter";

export function createApp() {
const app = createSSRApp(App);
const app = createSSRApp(App);

app.use(store);
app.use(uView);
app.use(store);
app.use(uView);

//系统属性全局注册
const counter = useCounterStore();
app.config.globalProperties.$systemInfo = counter.systemInfo;
app.config.globalProperties.$util = utils;
app.config.globalProperties.$imgUrl = fileURL + "/image/";
//系统属性全局注册
const counter = useCounterStore();
app.config.globalProperties.$systemInfo = counter.systemInfo;
app.config.globalProperties.$util = utils;
app.config.globalProperties.$imgUrl = fileURL + "/image/";

//全局网络注册
// app.config.globalProperties.$request = request
//全局网络注册
// app.config.globalProperties.$request = request

return {
app,
//Pinia, // 此处必须将 Pinia 返回
};
return {
app,
//Pinia, // 此处必须将 Pinia 返回
};
}

// #endif
// #endif

+ 733
- 685
subpackage/orders/order-details-new.vue
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 12
- 5
subpackage/service/statistics/index.vue Просмотреть файл

@@ -32,8 +32,8 @@
</view>
</view>
<view v-if="pieData !={} || chartData !={} || lineData !={} ">
<view v-if=" isShow===0">
<view class="title title_pie">
<view v-if=" isShow===0 ">
<view class=" title title_pie">
<view class="choice_item1"><uni-data-select v-model="selectPieValue" :localdata="pieRange"
@change="changePie" :clear="false"></uni-data-select></view>
</view>
@@ -91,6 +91,7 @@
export default {
data() {
return {
canvasShow: false,
dateTime: Date.now(), //日期
noDealDateTime: '', //没有处理过的时间,传给后端
dealDateTime: [], //处理过后的时间,前端展示
@@ -201,6 +202,10 @@
// this.noDealDateTime='2023-04-17';
this.dealDateTime = nowDate(new Date()).split('-');
this.reqPie(); //饼状图数据请求
window.addEventListener('setItem', () => {
console.log("此处发生变化")
})

},
methods: {

@@ -430,10 +435,12 @@
this.dateTime = e;
this.noDealDateTime = e;
this.reqPie(); //饼状图数据请求
// window.addEventListener("show", () => {
// console.log('它发生变化了')
// });

// this.canvasShow = getItem("show")
},
hideCanvas() {
console.log("影藏")
}
}
};
</script>

Загрузка…
Отмена
Сохранить