From f7634fbb893d1bc9416c52380732122120146e92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Mon, 4 Nov 2024 08:51:45 +0800 Subject: [PATCH] update --- src/api/modules/res.ts | 4 + src/views/base/scheme/index.vue | 4 +- src/views/base/stage/index.vue | 2 +- src/views/base/structure/index.vue | 2 +- src/views/base/subject/index.vue | 2 +- src/views/res/resource/index.vue | 330 ++++++++++++++---- .../res/test/components/uploadDialog.vue | 154 -------- src/views/res/test/index.vue | 313 ++++------------- 8 files changed, 338 insertions(+), 473 deletions(-) delete mode 100644 src/views/res/test/components/uploadDialog.vue diff --git a/src/api/modules/res.ts b/src/api/modules/res.ts index b06112a..09c79a7 100644 --- a/src/api/modules/res.ts +++ b/src/api/modules/res.ts @@ -16,3 +16,7 @@ export const getResList = (params: Resource.ReqResourceParams) => { export const addResData = params => { return http.post(`/dsRes/res/addResourceBase`, params, { loading: false }); }; + +export const delResData = params => { + return http.post(`/dsRes/res/delResourceBaseById`, params, { loading: false }); +}; diff --git a/src/views/base/scheme/index.vue b/src/views/base/scheme/index.vue index 4d7780c..de69f63 100644 --- a/src/views/base/scheme/index.vue +++ b/src/views/base/scheme/index.vue @@ -77,7 +77,7 @@ const tableReset = () => { // 表格配置项 const columns = reactive[]>([ - { type: "index", width: 70, label: "序号" }, + { type: "index", width: 100, label: "序号" }, { prop: "scheme_id", label: "版本ID" }, { prop: "scheme_name", label: "版本名称" }, { @@ -106,7 +106,7 @@ const columns = reactive[]>([ { label: "知识点", value: 2, tagType: "success" } ] }, - { prop: "operation", label: "操作", fixed: "right", width: 330 } + { prop: "operation", label: "操作", fixed: "right", width: 200 } ]); const dialogRef = ref | null>(null); diff --git a/src/views/base/stage/index.vue b/src/views/base/stage/index.vue index b08b8f7..91faa3b 100644 --- a/src/views/base/stage/index.vue +++ b/src/views/base/stage/index.vue @@ -18,7 +18,7 @@ const _toolButton = ["refresh"] as any; // const proTable = ref(); // 表格配置项 const columns = reactive[]>([ - { type: "index", width: 70, label: "序号" }, + { type: "index", width: 100, label: "序号" }, { prop: "stage_id", label: "学段ID" }, { prop: "stage_name", label: "学段名称" } // { prop: "operation", label: "操作", fixed: "right", width: 330 } diff --git a/src/views/base/structure/index.vue b/src/views/base/structure/index.vue index 3fb9747..38e818c 100644 --- a/src/views/base/structure/index.vue +++ b/src/views/base/structure/index.vue @@ -28,7 +28,7 @@ 搜索 - 重置 + diff --git a/src/views/base/subject/index.vue b/src/views/base/subject/index.vue index 67abb48..bf4fedc 100644 --- a/src/views/base/subject/index.vue +++ b/src/views/base/subject/index.vue @@ -51,7 +51,7 @@ const stageSelectChange = async e => { // 表格配置项 const columns = reactive[]>([ - { type: "index", width: 70, label: "序号" }, + { type: "index", width: 100, label: "序号" }, { prop: "subject_id", label: "学科ID" }, { prop: "subject_name", label: "学科名称" }, { prop: "subject_code", label: "学科代码" }, diff --git a/src/views/res/resource/index.vue b/src/views/res/resource/index.vue index 86c0969..5ec55d3 100644 --- a/src/views/res/resource/index.vue +++ b/src/views/res/resource/index.vue @@ -1,106 +1,282 @@ diff --git a/src/views/res/test/index.vue b/src/views/res/test/index.vue index df6f5d6..86c0969 100644 --- a/src/views/res/test/index.vue +++ b/src/views/res/test/index.vue @@ -1,267 +1,106 @@