แก้ tap ข้างขวาใน addEmployee
This commit is contained in:
parent
5d20d4f279
commit
b7ee12468a
1 changed files with 3 additions and 7 deletions
|
|
@ -68,7 +68,7 @@ const options = ref<optionType[]>([
|
||||||
* ให้แสดง แทปด้านขวา เมื่อเข้าหน้า รายละเอียดทะเบียนประวัติ
|
* ให้แสดง แทปด้านขวา เมื่อเข้าหน้า รายละเอียดทะเบียนประวัติ
|
||||||
*/
|
*/
|
||||||
const tabScroll = () => {
|
const tabScroll = () => {
|
||||||
return route.name == "registryDetail" || route.name == "registryEmployeeAdd";
|
return route.name == "registryDetail";
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -157,10 +157,7 @@ const updateScroll = (position: number) => {
|
||||||
* ให้แสดง แทปด้านขวา เมื่อเข้าหน้า รายละเอียดทะเบียนประวัติ และ rightActive เท่ากับ true
|
* ให้แสดง แทปด้านขวา เมื่อเข้าหน้า รายละเอียดทะเบียนประวัติ และ rightActive เท่ากับ true
|
||||||
*/
|
*/
|
||||||
const activeBtn = () => {
|
const activeBtn = () => {
|
||||||
return (
|
return route.name == "registryDetail" && rightActive.value;
|
||||||
(route.name == "registryDetail" || route.name == "registryEmployeeAdd") &&
|
|
||||||
rightActive.value
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -225,8 +222,7 @@ const myEventHandler = (e: any, setSCroll: boolean) => {
|
||||||
const activeMenu = (path: string) => {
|
const activeMenu = (path: string) => {
|
||||||
if (path == "dashboard" && route.fullPath == "/") return true;
|
if (path == "dashboard" && route.fullPath == "/") return true;
|
||||||
|
|
||||||
if (path == "registry" && route.fullPath.includes("registryEmployee"))
|
if (path == "registry" && route.fullPath == "/") return false;
|
||||||
return false;
|
|
||||||
const bool = route.fullPath.includes(path);
|
const bool = route.fullPath.includes(path);
|
||||||
return bool;
|
return bool;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue