From 5953113240802cd0545fb94e6c4e6d413ece74cc Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期二, 24 三月 2026 11:50:07 +0800
Subject: [PATCH] WMS新增缺失前端页面并接入路由
---
Code/WCS/WIDESEAWCS_Client/src/views/Index.vue | 220 ++++++++++++++++++++++++++++++++++--------------------
1 files changed, 138 insertions(+), 82 deletions(-)
diff --git a/Code/WCS/WIDESEAWCS_Client/src/views/Index.vue b/Code/WCS/WIDESEAWCS_Client/src/views/Index.vue
index 553d045..68fe0a1 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, // 鍙抽敭鍏抽棴鏄�/闅�
+ // contextMenuVisible: false, // 閸欐娊鏁崗鎶芥4閺�?闂�?
};
},
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澧炲姞tab閫夐」涓庤彍鍗曡仈鍔ㄥ姛鑳�
+ //2022.05.29婢х偛濮瀟ab闁銆嶆稉搴ゅ綅閸楁洝浠堥崝銊ュ閼�?
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: "棣栭〉", path: "/home" },
+ { orderNo: "0", id: "1", name: "妫f牠銆�", 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澧炲姞鎵嬪姩鎵撳紑tabs*/
+ /* 2020.07.31婢х偛濮為幍瀣З閹垫挸绱憈abs*/
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澧炲姞鎵嬪姩鎵撳紑tabs*/
+ /* 2020.07.31婢х偛濮為幍瀣З閹垫挸绱憈abs*/
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 || "鏃犳爣棰�",
+ name: item.name || item.text || "閺冪姵鐖f0?,
path: item.path,
- query: item.query, //2021.03.20淇鑷畾涔変簩娆℃墦寮�$tabs鏃跺弬鏁颁涪澶辩殑闂
+ query: item.query, //2021.03.20娣囶喖顦查懛顏勭暰娑斿绨╁▎鈩冨ⅵ瀵偓$tabs閺冭泛寮弫棰佹丢婢惰京娈戦梻顕�顣�
});
- //鏂版墦寮�鐨則ab绉昏嚦鏈�鍚庝竴涓�夐」
+ //閺傜増澧﹀鈧惃鍓嘺b缁夋槒鍤﹂張鈧崥搴濈娑擃亪鈧銆�
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澧炲姞鎵嬪姩鎵撳紑tabs*/
+ /* 2020.07.31婢х偛濮為幍瀣З閹垫挸绱憈abs*/
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澧炲姞鎵嬪姩鎵撳紑tabs*/
+ /* 2020.07.31婢х偛濮為幍瀣З閹垫挸绱憈abs*/
localStorage.setItem(
window.location.origin + "_tabs",
JSON.stringify(item)
);
};
const getItem = () => {
- /* 2020.07.31澧炲姞鎵嬪姩鎵撳紑tabs*/
+ /* 2020.07.31婢х偛濮為幍瀣З閹垫挸绱憈abs*/
let nav = localStorage.getItem(window.location.origin + "_tabs");
return nav ? JSON.parse(nav) : null;
};
const selectNav = (item) => {
- //鍗囩骇element姝e紡鐗堜慨鏀�
+ //閸楀洨楠噀lement濮濓絽绱¢悧鍫滄叏閺�?
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淇tabs浜屾鍒囨崲鍚庡弬鏁颁涪澶辩殑闂
+ //2022.06.27娣囶喖顦瞭abs娴滃本顐奸崚鍥ㄥ床閸氬骸寮弫棰佹丢婢惰京娈戦梻顕�顣�
query: navigation[_index - 1].query,
});
navigation.splice(_index, 1);
@@ -366,28 +366,28 @@
});
};
const onSelect = (treeId) => {
- /* 2020.07.31澧炲姞鎵嬪姩鎵撳紑tabs*/
+ /* 2020.07.31婢х偛濮為幍瀣З閹垫挸绱憈abs*/
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) => {
- // 鐩戣
+ // 閻╂垼顫�
if (newVal) {
document.body.addEventListener("click", closeTabsMenu);
} else {
@@ -483,8 +483,63 @@
);
/**
- * 绯荤粺鍒涘缓寮�濮�
+ * 缁崵绮洪崚娑樼紦瀵偓婵�?
*/
+ /**
+ * 鏂规硶鐩殑锛氳ˉ榻愬悗绔彍鍗曟湭閰嶇疆鏃剁殑鏂伴〉闈㈠叆鍙o紝閬垮厤鏂板椤甸潰鏃犲叆鍙c��
+ * 鍙傛暟鍚箟锛歞ata 涓哄悗绔繑鍥炵殑鑿滃崟鏁扮粍銆�
+ * 杩斿洖鍊硷細杩斿洖琛ラ綈鍚庣殑鑿滃崟鏁扮粍銆�
+ * 鍏抽敭閫昏緫锛氫粎鍦ㄨ彍鍗曚腑涓嶅瓨鍦ㄧ浉鍚� url 鏃惰拷鍔犻粯璁よ彍鍗曪紝閬垮厤瑕嗙洊宸叉湁閰嶇疆銆�
+ * 寮傚父澶勭悊锛氳鏂规硶浠呮搷浣滃唴瀛樻暟鎹紝涓嶆秹鍙婂閮ㄨ皟鐢紝寮傚父鐢变笂灞傛祦绋嬬粺涓�鎹曡幏銆�
+ */
+ const ensureBuiltinMenus = (data) => {
+ const menus = Array.isArray(data) ? data : [];
+ const exists = (url) => menus.some((m) => (m.url || "") === url);
+ const maxId = menus.reduce((max, item) => {
+ const current = Number(item.id);
+ return Number.isFinite(current) ? Math.max(max, current) : max;
+ }, 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 + 1003,
+ name: "璋冨害鎺у埗",
+ url: "/scheduler",
+ parentId: 0,
+ icon: "el-icon-video-play",
+ enable: 1,
+ tableName: "scheduler",
+ permission: ["Search", "Update"],
+ },
+ ];
+
+ defaultMenus.forEach((menu) => {
+ if (!exists(menu.url)) {
+ menus.push(menu);
+ }
+ });
+ return menus;
+ };
const created = () => {
let _theme = localStorage.getItem("vol3_theme");
if (_theme) {
@@ -501,7 +556,8 @@
Object.assign(_config.$tabs, { open: open, close: close });
http.get("api/Sys_Menu/getTreeMenu", {}, true).then((data) => {
- data.push({ id: "1", name: "棣栭〉", url: "/home" }); // 涓轰簡鑾峰彇閫変腑id浣跨敤
+ data = ensureBuiltinMenus(data);
+ data.push({ id: "1", name: "妫f牠銆�", url: "/home" }); // 娑撹桨绨¢懢宄板絿闁鑵慽d娴h法鏁�
data.forEach((d) => {
d.path = (d.url || "").replace("/Manager", "");
d.to = (d.url || "").replace("/Manager", "");
@@ -513,7 +569,7 @@
menuOptions.value = data;
permissionInited.value = true;
- //寮�鍚秷鎭帹閫侊紙main.js涓缃槸鍚﹀紑鍚痵ignalR锛�2022.05.05
+ //瀵偓閸氼垱绉烽幁顖涘腹闁緤绱檓ain.js娑擃叀顔曠純顔芥Ц閸氾箑绱戦崥鐥礽gnalR閿�?022.05.05
if (_config.$global.signalR) {
MessageConfig(http, (result) => {
messageList.unshift(result);
@@ -521,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();
}
@@ -579,7 +635,7 @@
};
},
/**
- * 鎸傝浇閽╁瓙鍑芥暟
+ * 閹稿倽娴囬柦鈺佺摍閸戣姤鏆�
*/
mounted() {
let _date = showTime();
@@ -594,14 +650,14 @@
methods: {
/**
- * 缁戝畾鍙抽敭浜嬩欢
- * @param {*} enable 鏄惁鍚敤鍙抽敭浜嬩欢[true:鍚敤;false:绂佺敤;]
- * @param {*} $event 浜嬩欢
+ * 缂佹垵鐣鹃崣鎶芥暛娴滃娆�
+ * @param {*} enable 閺勵垰鎯侀崥顖滄暏閸欐娊鏁禍瀣╂[true:閸氼垳鏁�;false:缁備胶鏁�;]
+ * @param {*} $event 娴滃娆�
*/
bindRightClickMenu(enable) {
if (!enable) return;
let that = this;
- // 浣跨敤鍘熺敓js 涓哄崟涓猟om缁戝畾榧犳爣鍙冲嚮浜嬩欢
+ // 娴h法鏁ら崢鐔烘晸js 娑撳搫宕熸稉鐚無m缂佹垵鐣炬Η鐘崇垼閸欏啿鍤禍瀣╂
that.$nextTick(() => {
let tab_top_dom = Object.assign(
[],
@@ -615,7 +671,7 @@
},
/**
- * 閿�姣侀挬瀛愬嚱鏁�
+ * 闁库偓濮d線鎸�涙劕鍤遍弫?
*/
destroyed() {
$this = null;
@@ -623,13 +679,13 @@
},
});
const week = new Array(
- "鏄熸湡涓�",
- "鏄熸湡浜�",
- "鏄熸湡涓�",
- "鏄熸湡鍥�",
- "鏄熸湡浜�",
- "鏄熸湡鍏�",
- "鏄熸湡鏃�"
+ "閺勭喐婀℃稉鈧�",
+ "閺勭喐婀℃禍?,
+ "閺勭喐婀℃稉?,
+ "閺勭喐婀¢崶?,
+ "閺勭喐婀℃禍?,
+ "閺勭喐婀¢崗?,
+ "閺勭喐婀¢弮?
);
function showTime() {
let date = new Date();
@@ -645,7 +701,7 @@
"." +
(month < 10 ? "0" + month : month) +
"." +
- (day < 10 ? "0" + day : day) + //202.08.08淇鏃ユ湡澶╂暟灏忎簬10鏃舵坊鍔�0
+ (day < 10 ? "0" + day : day) + //202.08.08娣囶喖顦查弮銉︽埂婢垛晜鏆熺亸蹇庣艾10閺冭埖鍧婇崝?
"" +
" " +
(hour < 10 ? "0" + hour : hour) +
@@ -653,7 +709,7 @@
(minutes < 10 ? "0" + minutes : minutes) +
":" +
(second < 10 ? "0" + second : second) +
- " " + //2020.08.30淇棣栭〉鏃ユ湡鏄熸湡澶╀笉鏄剧ず鐨勯棶棰�
+ " " + //2020.08.30娣囶喖顦叉#鏍�夐弮銉︽埂閺勭喐婀℃径鈺�绗夐弰鍓с仛閻ㄥ嫰妫舵0?
(week[date.getDay() - 1] || week[6])
);
}
--
Gitblit v1.9.3