From cbfc5ac3c45eff75e912ba6aeaad83533a1a4296 Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期二, 07 四月 2026 16:16:22 +0800
Subject: [PATCH] fix: 修复机器人任务信息等bug
---
Code/WCS/WIDESEAWCS_Client/src/views/Index.vue | 204 +++++++++++++++++++++++++-------------------------
1 files changed, 102 insertions(+), 102 deletions(-)
diff --git a/Code/WCS/WIDESEAWCS_Client/src/views/Index.vue b/Code/WCS/WIDESEAWCS_Client/src/views/Index.vue
index 68fe0a1..87753e2 100644
--- a/Code/WCS/WIDESEAWCS_Client/src/views/Index.vue
+++ b/Code/WCS/WIDESEAWCS_Client/src/views/Index.vue
@@ -59,25 +59,25 @@
<span style="display: none">{{ navIndex }}</span>
</el-tab-pane>
</el-tabs>
- <!-- 閸欐娊鏁懣婊冨礋 -->
+ <!-- 鍙抽敭鑿滃崟 -->
<div v-show="contextMenuVisible">
<ul :style="{ left: menuLeft + 'px', top: menuTop + 'px' }" class="contextMenu">
<li v-show="visibleItem.all">
<el-button link @click="closeTabs()">
<i class="el-icon-close"></i>
{{
- navigation.length == 2 ? "閸忔娊妫撮懣婊冨礋" : "閸忔娊妫撮幍鈧張?
+ navigation.length == 2 ? "鍏抽棴鑿滃崟" : "鍏抽棴鎵�鏈�"
}}</el-button>
</li>
<li v-show="visibleItem.left">
- <el-button link @click="closeTabs('left')"><i class="el-icon-back"></i>閸忔娊妫村锕佺珶</el-button>
+ <el-button link @click="closeTabs('left')"><i class="el-icon-back"></i>鍏抽棴宸﹁竟</el-button>
</li>
<li v-show="visibleItem.right">
<el-button link @click="closeTabs('right')">
- <i class="el-icon-right"></i>閸忔娊妫撮崣瀹犵珶</el-button>
+ <i class="el-icon-right"></i>鍏抽棴鍙宠竟</el-button>
</li>
<li v-show="visibleItem.other">
- <el-button link @click="closeTabs('other')"><i class="el-icon-right"></i>閸忔娊妫撮崗鏈电铂
+ <el-button link @click="closeTabs('other')"><i class="el-icon-right"></i>鍏抽棴鍏朵粬
</el-button>
</li>
</ul>
@@ -96,7 +96,7 @@
</el-scrollbar>
</div>
</div>
- <el-drawer title="闁瀚ㄦ稉濠氼暯" v-model="drawer_model" direction="rtl" destroy-on-close>
+ <el-drawer title="閫夋嫨涓婚" v-model="drawer_model" direction="rtl" destroy-on-close>
<div class="theme-selector">
<div @click="changeTheme(item.name)" class="item" v-for="(item, index) in theme_color" :key="index"
:style="{ background: item.color }">
@@ -107,7 +107,7 @@
</div>
</el-drawer>
- <el-drawer title="濞戝牊浼呴崚妤勩��" v-model="messageModel" direction="rtl" destroy-on-close>
+ <el-drawer title="娑堟伅鍒楄〃" v-model="messageModel" direction="rtl" destroy-on-close>
<Message :list="messageList"></Message>
</el-drawer>
</div>
@@ -151,14 +151,14 @@
otherTabs: true,
menuLeft: 0,
menuTop: 0,
- // contextMenuVisible: false, // 閸欐娊鏁崗鎶芥4閺�?闂�?
+ // contextMenuVisible: false, // 鍙抽敭鍏抽棴鏄惁鍙
};
},
setup(props, context) {
- // 閼惧嘲褰囬崗銊ョ湰鐏炵偞鈧冩嫲閺傝纭�
+ // 鑾峰彇鍏ㄥ眬灞炴�у拰鏂规硶
const { proxy } = getCurrentInstance();
- // 閼挎粌宕熺�佃壈鍩呮妯款吇鐎硅棄瀹�
+ // 鑿滃崟瀵艰埅榛樿瀹藉害
const menuWidth = ref(200);
const contextMenuVisible = ref(false);
const isCollapse = ref(false);
@@ -178,23 +178,23 @@
]);
const links = ref([
// {
- // text: "濡楀棙鐏︾憴鍡涱暥",
+ // text: "妗嗘灦瑙嗛鏁欑▼",
// path: "https://www.cctalk.com/m/group/90268531",
// id: -3,
// },
- // { text: "婢堆冪潌閺佺増宓�", path: "/bigdata", id: -3 },
+ // { text: "澶ф暟鎹�", path: "/bigdata", id: -3 },
// {
- // text: "濡楀棙鐏﹂弬鍥ㄣ��",
+ // text: "妗嗘灦鏂囨。",
// path: "http://v2.volcore.xyz/document/guide",
// id: -2,
// }, {
- // text: "濡楀棙鐏︽导浣风瑹閻�?,
+ // text: "妗嗘灦浜у搧",
// path: "http://pro.volcore.xyz/",
// id: 10,
// },
- { text: "娑擃亙姹夋稉顓炵妇", path: "/UserInfo", id: -1, icon: "el-icon-s-custom" },
+ { text: "涓汉淇℃伅", path: "/UserInfo", id: -1, icon: "el-icon-s-custom" },
{
- text: "鐎瑰鍙忛柅鈧崙?,
+ text: "瀹夊叏閫�鍑�",
path: "/login",
id: -4,
icon: "el-icon-switch-button",
@@ -204,9 +204,9 @@
'this.src="' + errorImgSrc + '"'
);
const selectId = ref("1");
- // 閵嗘劙顩绘い鐐光偓鎴炵垼缁涙儳绨崣?瑜版挸澧犻崣鎶芥暛闁鑵戦惃鍕綅閸�?
+ // 銆愰椤点�戞爣绛惧簭鍙�(褰撳墠鍙抽敭閫変腑鐨勮彍鍗�)
const selectMenuIndex = ref("0");
- //2022.05.29婢х偛濮瀟ab闁銆嶆稉搴ゅ綅閸楁洝浠堥崝銊ュ閼�?
+ //2022.05.29澧炲姞tab閫夐」涓庤彍鍗曡仈鍔ㄥ姛鑳�
const currentMenuId = ref(0);
const userName = ref("--");
const userInfo = ref({});
@@ -218,7 +218,7 @@
});
const userImg = ref("");
const navigation = reactive([
- { orderNo: "0", id: "1", name: "妫f牠銆�", path: "/home" },
+ { orderNo: "0", id: "1", name: "棣栭〉", path: "/home" },
]);
const logo = ref(imgUrl);
const theme = ref("blue2");
@@ -231,7 +231,7 @@
isCollapse.value = !isCollapse.value;
menuWidth.value = isCollapse.value ? 63 : 200;
};
- //2021.08.28瀵偓閺�鐐閸斻劍濮岄崣鐘哄綅閸楁洘鏌熷▔?
+ //2021.08.28寮�鏀炬墜鍔ㄦ姌鍙犺彍鍗曟柟娉�
_config.menu = {
show() {
toggleLeft();
@@ -247,14 +247,14 @@
localStorage.setItem("vol3_theme", name);
};
const to = (item) => {
- /* 2020.07.31婢х偛濮為幍瀣З閹垫挸绱憈abs*/
+ /* 2020.07.31澧炲姞鎵嬪姩鎵撳紑tabs*/
if (item.path.indexOf("http") != -1) {
window.open(item.path);
return;
}
if (typeof item == "string" || item.path == "/login") {
if (item == "/login" || item.path == "/login") {
- //绾喛顓婚弰顖氭儊闁偓閸�?
+ //纭鏄惁閫�鍑�
store.commit("clearUserInfo", "");
window.location.href = "/";
return;
@@ -266,59 +266,59 @@
open(item);
};
const open = (item, useRoute) => {
- /* 2020.07.31婢х偛濮為幍瀣З閹垫挸绱憈abs*/
+ /* 2020.07.31澧炲姞鎵嬪姩鎵撳紑tabs*/
let _index = navigation.findIndex((x) => {
return x.path == item.path;
});
if (_index == -1) {
navigation.push({
- // orderNo: String(navigation.length),// 鎼村繐褰�
+ // orderNo: String(navigation.length),// 搴忓彿
id: item.id + "",
- name: item.name || item.text || "閺冪姵鐖f0?,
+ name: item.name || item.text || "鏃犳爣绛�",
path: item.path,
- query: item.query, //2021.03.20娣囶喖顦查懛顏勭暰娑斿绨╁▎鈩冨ⅵ瀵偓$tabs閺冭泛寮弫棰佹丢婢惰京娈戦梻顕�顣�
+ query: item.query, //2021.03.20淇鑷畾涔変簩娆℃墦寮�$tabs鏃跺弬鏁颁涪澶辩殑闂
});
- //閺傜増澧﹀鈧惃鍓嘺b缁夋槒鍤﹂張鈧崥搴濈娑擃亪鈧銆�
+ //鏂板缓鎵撳紑鐨則ab閫変腑鍒版渶鍚庝竴涓�夐」
selectId.value = navigation.length - 1 + "";
} else {
selectId.value = _index + "";
}
if (useRoute === undefined) {
- //闂堢偞鐖i崙鍡氬綅閸楁洩绱濈拋鏉跨秿閺堚偓閸氬簼绔村▎陇鐑︽潪顒傛畱妞ょ敻娼伴敍宀�鏁ゆ禍搴″煕閺�?
+ //闈炴爣鍑嗚彍鍗曪紝璁板綍鏈�鍚庝竴娆¤烦杞殑椤甸潰锛岀敤浜庡埛鏂�
setItem(item);
router.push(item);
// this.$router.push(item);
}
currentMenuId.value = item.id * 1;
- // tab閼挎粌宕熺紒鎴濈暰閸欐娊鏁禍瀣╂
+ // tab鍙抽敭鑿滃崟缁戝畾鐐瑰嚮浜嬩欢
proxy.$nextTick(function (e) {
proxy.bindRightClickMenu(true);
});
};
const close = (path) => {
- /* 2020.07.31婢х偛濮為幍瀣З閹垫挸绱憈abs*/
+ /* 2020.07.31澧炲姞鎵嬪姩鎵撳紑tabs*/
let index = navigation.findIndex((x) => {
return x.path == path;
});
if (index == -1) {
- return _config.$Message.error("閺堫亝澹橀崚鎷屽綅閸�?);
+ return _config.$Message.error("鏈壘鍒拌彍鍗�");
}
removeNav(index);
};
const setItem = (item) => {
- /* 2020.07.31婢х偛濮為幍瀣З閹垫挸绱憈abs*/
+ /* 2020.07.31澧炲姞鎵嬪姩鎵撳紑tabs*/
localStorage.setItem(
window.location.origin + "_tabs",
JSON.stringify(item)
);
};
const getItem = () => {
- /* 2020.07.31婢х偛濮為幍瀣З閹垫挸绱憈abs*/
+ /* 2020.07.31澧炲姞鎵嬪姩鎵撳紑tabs*/
let nav = localStorage.getItem(window.location.origin + "_tabs");
return nav ? JSON.parse(nav) : null;
};
const selectNav = (item) => {
- //閸楀洨楠噀lement濮濓絽绱¢悧鍫滄叏閺�?
+ //鍗囩骇element姝e紡鐗堜慨鏀�
selectId.value = item.props.name;
let _path = navigation[item.index].path;
currentMenuId.value = (
@@ -335,13 +335,13 @@
const removeNav = (_index) => {
return new Promise(() => {
- //閸忔娊妫撮惃鍕秼閸撳秹銆�,鐠哄疇娴嗛崚鏉垮娑撯偓娑擃亪銆夐棃?
+ //鍏抽棴鐨勫綋鍓嶉」,璺宠浆鍒板墠涓�涓〉闈�
if (selectId.value == _index + "") {
console.log(navigation[_index - 1]);
setItem(navigation[_index - 1]);
router.push({
path: navigation[_index - 1].path,
- //2022.06.27娣囶喖顦瞭abs娴滃本顐奸崚鍥ㄥ床閸氬骸寮弫棰佹丢婢惰京娈戦梻顕�顣�
+ //2022.06.27淇tabs浜屾鍒囨崲鍚庡弬鏁颁涪澶辩殑闂
query: navigation[_index - 1].query,
});
navigation.splice(_index, 1);
@@ -366,28 +366,28 @@
});
};
const onSelect = (treeId) => {
- /* 2020.07.31婢х偛濮為幍瀣З閹垫挸绱憈abs*/
+ /* 2020.07.31澧炲姞鎵嬪姩鎵撳紑tabs*/
var item = getSelectMenuName(treeId);
open(item, false);
};
/**
- * 閺勫墽銇氶崣鎶芥暛閼挎粌宕�
- * @param {*} e 娴滃娆㈢�电钖�
+ * 鏄剧ず鍙抽敭鑿滃崟
+ * @param {*} e 浜嬩欢瀵硅薄
*/
const openTabsMenu = function (e) {
- e.preventDefault(); // 闂冨弶顒涙妯款吇閼挎粌宕熷鐟板毉
+ e.preventDefault(); // 闃叉榛樿鑿滃崟寮瑰嚭
let tabId = e.target.id.split("-")[1] * 1;
- //鐠佹澘缍嶈ぐ鎾冲闁鑵戦惃鍕綅閸楁槼ndex
+ //璁板綍褰撳墠閫変腑鐨勮彍鍗昳ndex
selectMenuIndex.value =
document.getElementById("pane-" + tabId).children[0].textContent * 1;
- //閸欘亝婀佹#鏍�夐弮鏈电瑝閺勫墽銇�
+ //鍙湁棣栭〉鏃朵笉鏄剧ず
if (navigation.length == 1) {
return;
}
- //妫f牠銆夌拋鍓х枂閺勫墽銇氶崗鎶芥4閸欏疇绔熼懣婊冨礋
+ //棣栭〉璁剧疆鏄剧ず鍏抽棴鍙宠竟鑿滃崟
if (!selectMenuIndex.value) {
visibleItem.all = false;
visibleItem.right = true;
@@ -395,22 +395,22 @@
visibleItem.other = false;
} else {
visibleItem.all = true;
- //娑撳秵妲搁張鈧崥搴濈娑擃亝妯夌粈鍝勫彠闂傤厼褰告潏纭呭綅閸�?
+ //涓嶆槸鏈�鍚庝竴涓樉绀哄叧闂彸杈硅彍鍗�
visibleItem.right = selectMenuIndex.value != navigation.length - 1;
- //閸欘亝婀佹稉銈勯嚋閼挎粌宕熼弮鏈电瑝閺勫墽銇氶崗鎶芥4瀹革箒绔�
+ //鍙湁涓や釜鑿滃崟鏃朵笉鏄剧ず鍏抽棴宸﹁竟
visibleItem.left = navigation.length != 2;
- //閸欘亝婀佹稉銈勯嚋閼挎粌宕熼弮鏈电瑝閺勫墽銇氶崗鎶芥4閸忔湹绮�
+ //鍙湁涓や釜鑿滃崟鏃朵笉鏄剧ず鍏抽棴鍏朵粬鑿滃崟
visibleItem.other = navigation.length != 2;
}
contextMenuVisible.value = true;
- // 鐠佸墽鐤嗛崣鎶芥暛閼挎粌宕熼弰鍓с仛閻ㄥ嫪缍呯純?
+ // 璁剧疆鍙抽敭鑿滃崟鏄剧ず鐨勪綅缃�
proxy.menuLeft =
e.target.getBoundingClientRect().left - (isCollapse.value ? 63 : 198); //-e.target.clientWidth
proxy.menuTop = 36;
};
/**
- * 閸忔娊妫撮崣鎶芥暛閼挎粌宕�
+ * 鍏抽棴鍙抽敭鑿滃崟
*/
const closeTabsMenu = () => {
contextMenuVisible.value = false;
@@ -422,25 +422,25 @@
});
};
/**
- * 閸忔娊妫撮崗璺虹暊閺嶅洨顒锋い?
- * @param {*} par 閸忔娊妫寸猾璇茬��(left,right,other)
+ * 鍏抽棴鍏朵粬鏍囩椤�
+ * @param {*} par 鍏抽棴绫诲瀷(left,right,other)
*/
const closeTabs = (value) => {
let _menuId = navigation[selectId.value * 1].id;
let currnetIndex = selectId.value * 1; // navigation.findIndex(c => { return c.id == selectId.value });
switch (value) {
case "left": {
- // 閸掔娀娅庡锔挎櫠tab閺嶅洨顒�
- navigation.splice(1, currnetIndex - 1); // 閸掔娀娅庡锔挎櫠tab閺嶅洨顒�
+ // 鍒犻櫎宸︿晶tab鏍囩
+ navigation.splice(1, currnetIndex - 1); // 鍒犻櫎宸︿晶tab鏍囩
break;
}
case "right": {
- // 閸掔娀娅庨崣鍏呮櫠tab閺嶅洨顒�
+ // 鍒犻櫎鍙充晶tab鏍囩
if (selectMenuIndex.value == 0) {
- navigation.splice(currnetIndex); // 閸掔娀娅庨崣鍏呮櫠tab閺嶅洨顒�
+ navigation.splice(currnetIndex); // 鍒犻櫎鍙充晶tab鏍囩
toHome();
} else {
- navigation.splice(currnetIndex + 1); // 閸掔娀娅庨崣鍏呮櫠tab閺嶅洨顒�
+ navigation.splice(currnetIndex + 1); // 鍒犻櫎鍙充晶tab鏍囩
if (selectMenuIndex.value < currnetIndex) {
navigation.splice(
selectMenuIndex.value,
@@ -451,13 +451,13 @@
break;
}
case "other": {
- // 閸掔娀娅庨崗鏈电铂閹碘偓閺堝〖ab閺嶅洨顒�
- navigation.splice(currnetIndex + 1); // 閸掔娀娅庨崣鍏呮櫠tab閺嶅洨顒�(鏉╂瑩鍣疯箛鍛淬�忛幐澶屽弾閸欐枼鍟嬪锕傘�庢惔蹇撳灩闂�?
- navigation.splice(1, currnetIndex - 1); // 閸掔娀娅庡锔挎櫠tab閺嶅洨顒�
+ // 鍒犻櫎鍏朵粬鎵�鏈塼ab鏍囩
+ navigation.splice(currnetIndex + 1); // 鍒犻櫎鍙充晶tab鏍囩(杩欓噷蹇呴』鎸夌収鍙斥啋宸﹂『搴忓垹闄�)
+ navigation.splice(1, currnetIndex - 1); // 鍒犻櫎宸︿晶tab鏍囩
break;
}
default: {
- //閸忔娊妫撮幍鈧張?
+ //鍏抽棴鎵�鏈夋爣绛�
navigation.splice(1, navigation.length);
toHome();
break;
@@ -473,7 +473,7 @@
watch(
() => contextMenuVisible.value,
(newVal, oldVal) => {
- // 閻╂垼顫�
+ // 鐩戣 contextMenuVisible 鐨勫彉鍖栵紝娣诲姞鎴栫Щ闄ょ偣鍑讳簨浠剁洃鍚櫒
if (newVal) {
document.body.addEventListener("click", closeTabsMenu);
} else {
@@ -483,7 +483,7 @@
);
/**
- * 缁崵绮洪崚娑樼紦瀵偓婵�?
+ * 绯荤粺鍒涘缓寮�濮�
*/
/**
* 鏂规硶鐩殑锛氳ˉ榻愬悗绔彍鍗曟湭閰嶇疆鏃剁殑鏂伴〉闈㈠叆鍙o紝閬垮厤鏂板椤甸潰鏃犲叆鍙c��
@@ -501,26 +501,26 @@
}, 0);
const defaultMenus = [
- {
- id: maxId + 1001,
- name: "绉熸埛绠$悊",
- url: "/Sys_Tenant",
- parentId: 0,
- icon: "el-icon-office-building",
- enable: 1,
- tableName: "Sys_Tenant",
- permission: ["Search", "Add", "Update", "Delete"],
- },
- {
- id: maxId + 1002,
- name: "浠诲姟鍘嗗彶",
- url: "/taskHty",
- parentId: 0,
- icon: "el-icon-time",
- enable: 1,
- tableName: "taskHty",
- permission: ["Search", "Export"],
- },
+ // {
+ // id: maxId + 1001,
+ // name: "绉熸埛绠$悊",
+ // url: "/Sys_Tenant",
+ // parentId: 0,
+ // icon: "el-icon-office-building",
+ // enable: 1,
+ // tableName: "Sys_Tenant",
+ // permission: ["Search", "Add", "Update", "Delete"],
+ // },
+ // {
+ // id: maxId + 1002,
+ // name: "浠诲姟鍘嗗彶",
+ // url: "/taskHty",
+ // parentId: 0,
+ // icon: "el-icon-time",
+ // enable: 1,
+ // tableName: "taskHty",
+ // permission: ["Search", "Export"],
+ // },
{
id: maxId + 1003,
name: "璋冨害鎺у埗",
@@ -557,7 +557,7 @@
http.get("api/Sys_Menu/getTreeMenu", {}, true).then((data) => {
data = ensureBuiltinMenus(data);
- data.push({ id: "1", name: "妫f牠銆�", url: "/home" }); // 娑撹桨绨¢懢宄板絿闁鑵慽d娴h法鏁�
+ data.push({ id: "1", name: "棣栭〉", url: "/home" }); // 涓轰簡鑾峰彇閫変腑id浣跨敤
data.forEach((d) => {
d.path = (d.url || "").replace("/Manager", "");
d.to = (d.url || "").replace("/Manager", "");
@@ -569,7 +569,7 @@
menuOptions.value = data;
permissionInited.value = true;
- //瀵偓閸氼垱绉烽幁顖涘腹闁緤绱檓ain.js娑擃叀顔曠純顔芥Ц閸氾箑绱戦崥鐥礽gnalR閿�?022.05.05
+ //寮�鍚秷鎭帹閫侊紙main.js涓缃槸鍚﹀紑鍚痵ignalR锛�2022.05.05
if (_config.$global.signalR) {
MessageConfig(http, (result) => {
messageList.unshift(result);
@@ -577,18 +577,18 @@
});
}
- //瑜版挸澧犻崚閿嬫煀閺勵垯绗夐弰顖烆浕妞�?
+ //褰撳墠鍒锋柊鏄笉鏄椤�
if (router.currentRoute.value.path != navigation[0].path) {
- //閺屻儲澹樼化鑽ょ埠閼挎粌宕�
+ //鏌ユ壘绯荤粺鑿滃崟
let item = menuOptions.value.find((x) => {
return x.path == router.currentRoute.value.path; //this.$route.path;
});
if (item) return onSelect(item.id);
- //閺屻儲澹樻い鍫曞劥韫囶偅宓庢潻鐐村复
+ //鏌ユ壘椤堕儴蹇嵎杩炴帴
item = links.value.find((x) => {
return x.path == router.currentRoute.value.path; //this.$route.path;
});
- //閺屻儲澹橀張鈧崥搴濈濞喡ょ儲鏉烆剛娈戞い鐢告桨
+ //鏌ユ壘鏈�鍚庤闂殑椤甸潰
if (!item) {
item = getItem();
}
@@ -635,7 +635,7 @@
};
},
/**
- * 閹稿倽娴囬柦鈺佺摍閸戣姤鏆�
+ * 鎸傝浇瀹屾垚鍚庢墽琛岀殑鍑芥暟
*/
mounted() {
let _date = showTime();
@@ -650,14 +650,14 @@
methods: {
/**
- * 缂佹垵鐣鹃崣鎶芥暛娴滃娆�
- * @param {*} enable 閺勵垰鎯侀崥顖滄暏閸欐娊鏁禍瀣╂[true:閸氼垳鏁�;false:缁備胶鏁�;]
- * @param {*} $event 娴滃娆�
+ * 缁戝畾鍙抽敭鑿滃崟浜嬩欢
+ * @param {*} enable 鏄惁鍚敤鍙抽敭鑿滃崟浜嬩欢[true:鍚敤;false:绂佺敤;]
+ * @param {*} $event 浜嬩欢瀵硅薄
*/
bindRightClickMenu(enable) {
if (!enable) return;
let that = this;
- // 娴h法鏁ら崢鐔烘晸js 娑撳搫宕熸稉鐚無m缂佹垵鐣炬Η鐘崇垼閸欏啿鍤禍瀣╂
+ // 浣跨敤鍘熺敓js 涓哄崟涓猟om缁戝畾榧犳爣鍙冲嚮浜嬩欢
that.$nextTick(() => {
let tab_top_dom = Object.assign(
[],
@@ -671,7 +671,7 @@
},
/**
- * 闁库偓濮d線鎸�涙劕鍤遍弫?
+ * 閿�姣侀挬瀛愬嚱鏁�
*/
destroyed() {
$this = null;
@@ -679,13 +679,13 @@
},
});
const week = new Array(
- "閺勭喐婀℃稉鈧�",
- "閺勭喐婀℃禍?,
- "閺勭喐婀℃稉?,
- "閺勭喐婀¢崶?,
- "閺勭喐婀℃禍?,
- "閺勭喐婀¢崗?,
- "閺勭喐婀¢弮?
+ "鏄熸湡涓�",
+ "鏄熸湡浜�",
+ "鏄熸湡涓�",
+ "鏄熸湡鍥�",
+ "鏄熸湡浜�",
+ "鏄熸湡鍏�",
+ "鏄熸湡鏃�"
);
function showTime() {
let date = new Date();
@@ -701,7 +701,7 @@
"." +
(month < 10 ? "0" + month : month) +
"." +
- (day < 10 ? "0" + day : day) + //202.08.08娣囶喖顦查弮銉︽埂婢垛晜鏆熺亸蹇庣艾10閺冭埖鍧婇崝?
+ (day < 10 ? "0" + day : day) + //202.08.08淇鏃ユ湡澶╂暟灏忎簬10鏃舵坊鍔�0
"" +
" " +
(hour < 10 ? "0" + hour : hour) +
@@ -709,7 +709,7 @@
(minutes < 10 ? "0" + minutes : minutes) +
":" +
(second < 10 ? "0" + second : second) +
- " " + //2020.08.30娣囶喖顦叉#鏍�夐弮銉︽埂閺勭喐婀℃径鈺�绗夐弰鍓с仛閻ㄥ嫰妫舵0?
+ " " + //2020.08.30淇棣栭〉鏃ユ湡鏄熸湡澶╀笉鏄剧ず鐨勯棶棰�
(week[date.getDay() - 1] || week[6])
);
}
--
Gitblit v1.9.3