This commit is contained in:
X1627315083
2023-12-14 15:49:59 +08:00
parent 72ea60ec7b
commit f8d476df50
3 changed files with 19 additions and 4 deletions

1
.env
View File

@@ -1,2 +1,3 @@
# NODE_ENV = 'production' # NODE_ENV = 'production'
NODE_ENV = 'development'
VUE_APP_BASE_URL = 'http://www.aida.com.hk' VUE_APP_BASE_URL = 'http://www.aida.com.hk'

View File

@@ -32,6 +32,13 @@
@click.stop="changeLanguage()" @click.stop="changeLanguage()"
></div> ></div>
</div> </div>
<div
v-if="userInfo.userId == 83"
class="trialApproval button_second"
@click="turnToPage('trialApproval')"
>
Trial Approval
</div>
</div> </div>
<nav class="header_nav_content"> <nav class="header_nav_content">
<div <div
@@ -596,9 +603,10 @@ export default defineComponent({
transform: rotate(180deg); transform: rotate(180deg);
animation-direction: 0.5s; animation-direction: 0.5s;
} }
} }
.trialApproval{
margin-left: 2rem;
}
} }
} }

View File

@@ -67,6 +67,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent,ref,createVNode,computed} from 'vue' import { defineComponent,ref,createVNode,computed} from 'vue'
import { setCookie, getCookie, WriteCookie } from "@/tool/cookie";
import HeaderComponent from "@/component/HomePage/Header.vue"; import HeaderComponent from "@/component/HomePage/Header.vue";
import HistoryDetail from "@/component/Detail/HistoryDetail.vue"; import HistoryDetail from "@/component/Detail/HistoryDetail.vue";
import router from '@/router/index' import router from '@/router/index'
@@ -133,8 +134,13 @@ export default defineComponent({
let historyTable:any = this.$refs.historyTable let historyTable:any = this.$refs.historyTable
this.historyTableHeight = historyTable.clientHeight - 130 this.historyTableHeight = historyTable.clientHeight - 130
this.getHistoryList() this.getHistoryList()
// if() this.userInfo = JSON.parse((getCookie("userInfo") as any));
router.replace('/login')
if(this.userInfo.userId == 83){
}else{
router.replace('/home')
}
}, },
methods:{ methods:{