diff --git a/.env.development b/.env.development index f8f8e9a..f8eaae4 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,9 @@ VITE_PUBLIC_PATH = / # 开发环境路由历史模式(Hash模式传"hash"、HTML5模式传"h5"、Hash模式带base参数传"hash,base参数"、HTML5模式带base参数传"h5,base参数") VITE_ROUTER_HISTORY = "hash" + +VITE_API_BASEURL = "http://192.168.2.33:5199/api" # 接口地址 -VITE_API_BASEURL = "http://localhost:5199/api" +# VITE_API_BASEURL = "http://localhost:5199/api" #数据中心后台地址 VITE_API_USERCENTER_URL = "https://dca.w.23544.com:8843/api" diff --git a/.husky/commit-msg b/.husky/commit-msg deleted file mode 100644 index 5ee2d16..0000000 --- a/.husky/commit-msg +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -# shellcheck source=./_/husky.sh -. "$(dirname "$0")/_/husky.sh" - -PATH="/usr/local/bin:$PATH" - -npx --no-install commitlint --edit "$1" \ No newline at end of file diff --git a/.husky/common.sh b/.husky/common.sh deleted file mode 100644 index 5f0540b..0000000 --- a/.husky/common.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -command_exists () { - command -v "$1" >/dev/null 2>&1 -} - -# Workaround for Windows 10, Git Bash and Pnpm -if command_exists winpty && test -t 1; then - exec < /dev/tty -fi diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100644 index 6e229ea..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" -. "$(dirname "$0")/common.sh" - -[ -n "$CI" ] && exit 0 - -PATH="/usr/local/bin:$PATH" - -# Perform lint check on files in the staging area through .lintstagedrc configuration -pnpm exec lint-staged \ No newline at end of file diff --git a/src/api/exam.ts b/src/api/exam.ts index 5668245..10250c0 100644 --- a/src/api/exam.ts +++ b/src/api/exam.ts @@ -1,5 +1,5 @@ import { http } from "@/utils/http"; -import type { Res } from "@/utils/http/types"; +// import type { Res } from "@/utils/http/types"; /** * @description 导入表单 diff --git a/src/api/toschoolinfomanage.ts b/src/api/toschoolinfomanage.ts new file mode 100644 index 0000000..7ff18ec --- /dev/null +++ b/src/api/toschoolinfomanage.ts @@ -0,0 +1,58 @@ +import { http } from "@/utils/http"; +import type { Res } from "@/utils/http/types"; + +/** + * @description 获取学校枚举下拉 + * @param {string} type 枚举类型 type=StatusEnum + * @return {object} + */ +export function getenumApi(data) { + return http.request>("post", `/SchoolBusiness/QueryCombo`, { + data + }); +} +/** + * @description 获取学校枚举下拉 + * @param {string} type 枚举类型 type=StatusEnum + * @return {object} + */ +export function getPageListApi(data) { + return http.request>("post", `/SchoolBusiness/QueryPageList`, { + data + }); +} +/** + * @description 新增赴校信息或者编辑 id:0(新增),其他(编辑) + * @return {object} + */ +export function addOrEditApi(data: any) { + return http.request>("post", `/SchoolBusiness/Edit`, { + data + }); +} +/** + * @description 获取赴校信息详情 + * @param {string} type 枚举类型 type=StatusEnum + * @return {object} + */ +export function getSchoolBusinessDetailApi(id: string | number) { + return http.request>("get", `/SchoolBusiness/${id}`); +} +/** + * @description 删除赴校信息 + * @return {object} + */ +export function deleteSchoolBusinessApi(data: Array) { + return http.request>("post", `/SchoolBusiness/Del`, { + data + }); +} +/** + * @description 获取赴校人员下拉数据 + * @return {object} + */ +export function getSchoolBusinessPeopleListApi(data: object) { + return http.request>("post", `/Admin/QueryCombo`, { + data + }); +} \ No newline at end of file diff --git a/src/components/hTable/index.vue b/src/components/hTable/index.vue index 3ebbba5..b95d652 100644 --- a/src/components/hTable/index.vue +++ b/src/components/hTable/index.vue @@ -587,26 +587,28 @@ function fetchPagedData() { .columnTemplate .btn { margin-left: 0 !important; } + .columnTemplate { display: flex; + flex-direction: row; + flex-flow: row wrap; gap: 5px; + place-content: flex-start flex-start; + align-items: center; -webkit-box-orient: horizontal; -webkit-box-direction: normal; - -ms-flex-direction: row; - flex-direction: row; - flex-wrap: wrap; - align-items: center; - justify-content: flex-start; - align-content: flex-start; } + .sty .tab_tip { - white-space: nowrap; - text-overflow: ellipsis; overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } + .toolbar-container { padding-bottom: 5px; } + .maxWidth600px { max-width: 600px; } diff --git a/src/utils/http/index.ts b/src/utils/http/index.ts index 80282e0..31c201a 100644 --- a/src/utils/http/index.ts +++ b/src/utils/http/index.ts @@ -13,7 +13,7 @@ import { stringify } from "qs"; import NProgress from "../progress"; import { getToken, formatToken } from "@/utils/auth"; import { useUserStoreHook } from "@/store/modules/user"; -import { string } from "vue-types"; +// import { string } from "vue-types"; import router from "@/router"; /**请求后端的地址 未配置则访问BaseURL */ diff --git a/src/views/admin/index.vue b/src/views/admin/index.vue index f33bdf6..feebb3d 100644 --- a/src/views/admin/index.vue +++ b/src/views/admin/index.vue @@ -1,7 +1,7 @@ diff --git a/src/views/testxb/index.vue b/src/views/testxb/index.vue new file mode 100644 index 0000000..268449f --- /dev/null +++ b/src/views/testxb/index.vue @@ -0,0 +1,11 @@ + + + diff --git a/src/views/toschoolinfomanage/addModal.vue b/src/views/toschoolinfomanage/addModal.vue new file mode 100644 index 0000000..421c2a3 --- /dev/null +++ b/src/views/toschoolinfomanage/addModal.vue @@ -0,0 +1,526 @@ + + + + + + diff --git a/src/views/toschoolinfomanage/editModal.vue b/src/views/toschoolinfomanage/editModal.vue new file mode 100644 index 0000000..6e271e1 --- /dev/null +++ b/src/views/toschoolinfomanage/editModal.vue @@ -0,0 +1,564 @@ + + + + + + diff --git a/src/views/toschoolinfomanage/index.vue b/src/views/toschoolinfomanage/index.vue new file mode 100644 index 0000000..f84a76c --- /dev/null +++ b/src/views/toschoolinfomanage/index.vue @@ -0,0 +1,468 @@ + + + + +