From 92907f6f6926077ef2a54cb1d2fbd4538c52b910 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期一, 21 四月 2025 18:02:42 +0800 Subject: [PATCH] Qx --- src/views/system/tijian/index.vue | 2 +- src/views/hosp/order/index.vue | 4 +++- src/main.js | 16 ++++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 42f906b..a98eff1 100644 --- a/src/main.js +++ b/src/main.js @@ -98,6 +98,22 @@ Vue.config.productionTip = false; +let lastVersion = localStorage.getItem('appVersion'); +const checkVersion = async () => { + const res = await axios.get('/api/version'); // 杩斿洖褰撳墠鐗堟湰鍙� + if (res.data.version !== lastVersion) { + localStorage.setItem('appVersion', res.data.version); + // ElMessageBox.confirm('妫�娴嬪埌鏂扮増鏈紝鏄惁鍒锋柊锛�', '鎻愮ず', { + // confirmButtonText: '鍒锋柊', + // }).then(() => { + window.location.reload(true); // 寮哄埗鍒锋柊 + // }); + } +}; + +// 瀹氭椂妫�鏌ワ紙濡傛瘡灏忔椂涓�娆★級 +setInterval(checkVersion, 60 * 60 * 1000); + new Vue({ el: "#app", router, diff --git a/src/views/hosp/order/index.vue b/src/views/hosp/order/index.vue index 854991a..9f61da4 100644 --- a/src/views/hosp/order/index.vue +++ b/src/views/hosp/order/index.vue @@ -68,7 +68,7 @@ <el-row :gutter="10" class="mb8"> <el-col :span="1.5"> - <el-button type="primary" icon="el-icon-download" size="mini" @click="handleExport" :disabled="single" + <el-button type="primary" icon="el-icon-download" size="mini" @click="handleExport" :disabled="singles" v-hasPermi="['hosp:order:export']">瀵煎嚭</el-button> </el-col> @@ -1039,6 +1039,7 @@ dataObj: {}, // 闈炲崟涓鐢� single: true, + singles: false, activeNames: "first", // 闈炲涓鐢� multiple: true, @@ -1636,6 +1637,7 @@ this.ids = selection.map((item) => item.orderId); this.single = selection.length !== 1; + this.singles= selection.length !== 1; this.multiple = !selection.length; if (tjNUms.length > 0) { shijianzhou(tjNUms).then((res) => { diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue index 6c24bdc..602e058 100644 --- a/src/views/system/tijian/index.vue +++ b/src/views/system/tijian/index.vue @@ -2941,7 +2941,7 @@ if (this.tableData1) { this.tableData1.forEach((item) => { if (typeof item.nowPrice === 'number') { - item.nowPrice = Number(item.nowPrice.toFixed(2)); + item.nowPrice = Number(item.nowPrice.toFixed(3)); } if (item.tjCategory != null) { this.tjCategory = item.tjCategory; -- Gitblit v1.8.0