Skip to content

Commit

Permalink
Switch to old questionnaire
Browse files Browse the repository at this point in the history
Revert "style(survey): polish survey page style."

This reverts commit 78ba3f7.

Revert "style(questionnaire): fix the style (#8)"

This reverts commit 327036e.

Revert "style(questionnaire): polish the style slightly. (#7)"

This reverts commit 90c3a7b.

Revert "feat-fixBugs-4 && add router guard"

This reverts commit cddd919.

Revert "添加问卷系统 (#5)"

This reverts commit 8323184.
  • Loading branch information
zhullyb committed Aug 21, 2023
1 parent 7dcb396 commit 184a668
Show file tree
Hide file tree
Showing 28 changed files with 906 additions and 2,169 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
"preview": "vite preview"
},
"dependencies": {
"@types/file-saver": "^2.0.5",
"axios": "^0.26.1",
"echarts": "^5.4.2",
"file-saver": "^2.0.5",
"pinia": "^2.1.4",
"qs": "^6.11.2",
"sass": "^1.63.6",
Expand Down
1,595 changes: 873 additions & 722 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions src/apis/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export const GetDataTotal = async (auth: string) => {
}

export const TestAdmin = async (auth: string) => {
return await request<{ data: string, msg: string }>({
url: '/api/user/login',
method: 'POST',
data: {
password: auth,
}
return await request<{ data: string }>({
url: '/api/test_admin',
method: 'GET',
headers: {
'Authorization': auth
},
})
}
92 changes: 0 additions & 92 deletions src/apis/questionnaire.ts

This file was deleted.

79 changes: 0 additions & 79 deletions src/components/IssueCard.vue

This file was deleted.

1 change: 0 additions & 1 deletion src/components/JHButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,4 @@ const prop = defineProps<{
border: none;
margin: auto;
}
</style>
22 changes: 4 additions & 18 deletions src/components/NavBarAdmin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ const btnOn = ref<boolean>(false);
const listShow = ref<boolean>(false);
const oldScrollPosition = ref<number>(0);
const hide = ref<boolean>(false);
const props = defineProps({
links: Object,
});
const { pageAdminNow } = storeToRefs(pageStore);
watch(pageAdminNow, () => {
handleScroll();
Expand Down Expand Up @@ -51,17 +48,16 @@ function logoClicked() {
<template>
<div :class="pageStore.pageType, hide ? 'hide' : ''" class="base" ref="base">
<img class="logo" :class="pageStore.pageType" src="https://download.tooc.xlj0.com/uploads/22/jhhome/public/photo/top/logo.png" @click="logoClicked" />
<div class="options" v-if="pageStore.pageType == 'normal'">
<div v-for="(l, index) in props.links? props.links : links" class="link" :class="index.toString() === pageStore.pageAdminNow.toString() ? 'select' : 'notSelect'">
<div v-for="(l, index) in links" class="link" :class="index == pageStore.pageAdminNow ? 'select' : 'notSelect'"
v-show="pageStore.pageType == 'normal'">
<router-link :to="l.link">{{ l.name }}</router-link>
</div>
</div>
<div class="listButton" :class="btnOn ? 'btnOn' : 'btnOff'"
v-show="pageStore.pageType == 'mini' || pageStore.pageType == 'middle'" @click="listBtnClicked"></div>

<div class="list" :class="pageStore.pageType" v-show="listShow">
<div v-for="(l, index) in props.links? props.links : links" class="listItem"
:class="index.toString() === pageStore.pageAdminNow.toString() ? 'select' : 'notSelect'" @click="listBtnClicked">
<div v-for="(l, index) in links" class="listItem"
:class="index == pageStore.pageAdminNow ? 'select' : 'notSelect'" @click="listBtnClicked">
<router-link :to="l.link">{{ l.name }}</router-link>
</div>
</div>
Expand Down Expand Up @@ -95,16 +91,6 @@ a {
font-size: large;
}
.link {
width: 10vw;
margin-left: auto;
}
.options {
display: flex;
width: 30vw;
margin-left: auto;
}
.base {
z-index: 10;
Expand Down
Loading

0 comments on commit 184a668

Please sign in to comment.