From 26d075953ed24d6a1cca4b136b911edd6912e4ab Mon Sep 17 00:00:00 2001 From: xiangbo <975188351@qq.com> Date: Wed, 13 Aug 2025 17:34:45 +0800 Subject: [PATCH 1/8] =?UTF-8?q?style:=20ui=E7=95=8C=E9=9D=A2=E6=90=9C?= =?UTF-8?q?=E7=B4=A2,=E8=A1=A8=E6=A0=BC=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/views/school/index.vue | 8 +- src/views/testxb/index.vue | 11 + src/views/toschoolinfomanage/index.vue | 288 +++++++++++++++++++++++++ 4 files changed, 305 insertions(+), 4 deletions(-) create mode 100644 src/views/testxb/index.vue create mode 100644 src/views/toschoolinfomanage/index.vue diff --git a/.env.development b/.env.development index 17faa14..ab8609f 100644 --- a/.env.development +++ b/.env.development @@ -7,4 +7,4 @@ VITE_PUBLIC_PATH = / # 开发环境路由历史模式(Hash模式传"hash"、HTML5模式传"h5"、Hash模式带base参数传"hash,base参数"、HTML5模式带base参数传"h5,base参数") VITE_ROUTER_HISTORY = "hash" -VITE_API_BASEURL = "http://localhost:5199/api" +VITE_API_BASEURL = "http://192.168.2.33:5199/api" diff --git a/src/views/school/index.vue b/src/views/school/index.vue index c1d3d24..967f5de 100644 --- a/src/views/school/index.vue +++ b/src/views/school/index.vue @@ -95,8 +95,8 @@ const tableData: TableConfig = { edit: true, // 字段允许修改 setting: { datasource: [ - { Value: "true", Text: "√" }, - { Value: "false", Text: "X" } + { value: "true", text: "√" }, + { value: "false", text: "X" } ] } } @@ -110,5 +110,7 @@ const tableData: TableConfig = { 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/index.vue b/src/views/toschoolinfomanage/index.vue new file mode 100644 index 0000000..4aea880 --- /dev/null +++ b/src/views/toschoolinfomanage/index.vue @@ -0,0 +1,288 @@ + + + + + From fbac2ef72b490297dfb236a01d46fdfa63c46dfb Mon Sep 17 00:00:00 2001 From: xiangbo <975188351@qq.com> Date: Fri, 15 Aug 2025 14:06:52 +0800 Subject: [PATCH 2/8] =?UTF-8?q?feat:=20=E5=87=86=E5=A4=87=E5=90=88?= =?UTF-8?q?=E5=B9=B6main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/toschoolinfomanage.ts | 23 +++++++++++ src/views/toschoolinfomanage/index.vue | 53 ++++++++++++++++++++------ 2 files changed, 65 insertions(+), 11 deletions(-) create mode 100644 src/api/toschoolinfomanage.ts diff --git a/src/api/toschoolinfomanage.ts b/src/api/toschoolinfomanage.ts new file mode 100644 index 0000000..8d48758 --- /dev/null +++ b/src/api/toschoolinfomanage.ts @@ -0,0 +1,23 @@ +import { http } from "@/utils/http"; +import type { Res } from "@/utils/http/types"; + +/** + * @description 获取学校枚举下拉 + * @param {string} type 枚举类型 type=StatusEnum + * @return {object} + */ +export function getenum(data) { + return http.request>("post", `/back/schools/QueryCombo`, { + data + }); +} +/** + * @description 获取学校枚举下拉 + * @param {string} type 枚举类型 type=StatusEnum + * @return {object} + */ +export function getPageList(data) { + return http.request>("post", `/SchoolBusiness/PageList`, { + data + }); +} diff --git a/src/views/toschoolinfomanage/index.vue b/src/views/toschoolinfomanage/index.vue index 4aea880..a44f29a 100644 --- a/src/views/toschoolinfomanage/index.vue +++ b/src/views/toschoolinfomanage/index.vue @@ -69,7 +69,12 @@ 重置 - + +
+ 新建 + 批量导入 + 导出 +
@@ -126,7 +131,8 @@ From 4b06c403a7fcf6bc80ac2e61ebd3df8b0d87a0ee Mon Sep 17 00:00:00 2001 From: xiangbo <975188351@qq.com> Date: Fri, 15 Aug 2025 15:18:25 +0800 Subject: [PATCH 3/8] feat: save code --- src/components/hTable/index.vue | 46 +++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/src/components/hTable/index.vue b/src/components/hTable/index.vue index 3f7d273..9ad6ee4 100644 --- a/src/components/hTable/index.vue +++ b/src/components/hTable/index.vue @@ -20,6 +20,9 @@ import { Dialog, TableColumn, TableConfig } from "./hTable"; import hTableEdit from "./hTableEdit.vue"; import { hTableAPI } from "@/api/hTable"; import { getenum } from "@/api/enum"; +//按钮权限 +import { hasPerms } from "@/utils/auth"; + const props = defineProps({ //** 传入的表单数据 */ Row: { @@ -278,7 +281,7 @@ function handleReloadPaged(reload = true) { data.ConditionalType = "Like"; } data.FieldName = name.charAt(0).toUpperCase() + name.slice(1); - data.FieldValue = table.value.column[name].value; + data.FieldValue = table.value.column[name].value.toString(); if (table.value.column[name].searchType != undefined) { data.ConditionalType = table.value.column[name].searchType || 0; @@ -300,11 +303,10 @@ async function fetchInitData() { const element = table.value.column[key]; if (element.type === "dropdown") { if (!element.setting.datasource) { - // 存在值就不处理 - - let rdata = await eval(element.setting.datasourceStr); - element.setting.datasource = rdata.data; - console.log(key + " " + element.setting.datasourceStr, rdata); + // 不安全取消 存在值就不处理 + // let rdata = await eval(element.setting.datasourceStr); + // element.setting.datasource = rdata.data; + // console.log(key + " " + element.setting.datasourceStr, rdata); } } if ( @@ -380,9 +382,9 @@ function fetchPagedData() { @@ -397,7 +399,7 @@ function fetchPagedData() { >
Date: Fri, 15 Aug 2025 16:41:42 +0800 Subject: [PATCH 4/8] feat: save code1 --- src/api/toschoolinfomanage.ts | 2 +- src/views/toschoolinfomanage/addModal.vue | 354 ++++++++++++++++++++++ src/views/toschoolinfomanage/index.vue | 144 ++++----- 3 files changed, 428 insertions(+), 72 deletions(-) create mode 100644 src/views/toschoolinfomanage/addModal.vue diff --git a/src/api/toschoolinfomanage.ts b/src/api/toschoolinfomanage.ts index 8d48758..1806bf9 100644 --- a/src/api/toschoolinfomanage.ts +++ b/src/api/toschoolinfomanage.ts @@ -17,7 +17,7 @@ export function getenum(data) { * @return {object} */ export function getPageList(data) { - return http.request>("post", `/SchoolBusiness/PageList`, { + return http.request>("post", `/SchoolBusiness/QueryPageList`, { data }); } diff --git a/src/views/toschoolinfomanage/addModal.vue b/src/views/toschoolinfomanage/addModal.vue new file mode 100644 index 0000000..cd211da --- /dev/null +++ b/src/views/toschoolinfomanage/addModal.vue @@ -0,0 +1,354 @@ + + + + + + diff --git a/src/views/toschoolinfomanage/index.vue b/src/views/toschoolinfomanage/index.vue index a44f29a..f4ddc9c 100644 --- a/src/views/toschoolinfomanage/index.vue +++ b/src/views/toschoolinfomanage/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/toschoolinfomanage/index.vue b/src/views/toschoolinfomanage/index.vue index 354d55f..5b8873e 100644 --- a/src/views/toschoolinfomanage/index.vue +++ b/src/views/toschoolinfomanage/index.vue @@ -34,22 +34,31 @@ - + multiple + filterable + style="width: 300px" + > + + - - + + @@ -93,21 +102,38 @@ /> @@ -128,21 +154,26 @@ />
- + + + + @@ -202,6 +539,9 @@ function onClickSave() { display: flex; align-items: center; justify-content: space-between; + padding-bottom: 10px; + border-bottom: 1px solid #ccc; + margin-bottom: 10px; } .status-box { display: flex; diff --git a/src/views/toschoolinfomanage/index.vue b/src/views/toschoolinfomanage/index.vue index 5b8873e..ec32409 100644 --- a/src/views/toschoolinfomanage/index.vue +++ b/src/views/toschoolinfomanage/index.vue @@ -38,7 +38,6 @@ v-model="query.people" placeholder="请选择赴校人员" clearable - multiple filterable style="width: 300px" > @@ -125,7 +124,11 @@ - 详情 跟进 @@ -157,7 +160,13 @@ - +