From b58772e88d83aa8d05ceaee62924cce829809816 Mon Sep 17 00:00:00 2001 From: Pengxiansen <2422914688@qq.com> Date: Mon, 17 Feb 2025 11:47:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/configGrowth.js | 4 +- src/views/growthpath/EditingTasks.vue | 212 ++++++++------------------ src/views/growthpath/PathManage.vue | 18 +-- vue.config.js | 14 +- 4 files changed, 70 insertions(+), 178 deletions(-) diff --git a/src/api/configGrowth.js b/src/api/configGrowth.js index ab3fedbe..2f010b28 100644 --- a/src/api/configGrowth.js +++ b/src/api/configGrowth.js @@ -18,8 +18,8 @@ import { boeRequest } from "@/api/request"; // "application/x-www-form-urlencoded"; axios.defaults.withCredentials = true; const http = axios.create({ - // baseURL: '/growth', - baseURL: process.env.VUE_APP_BASE_API_GROWTH, + baseURL: '/growth', + // baseURL: process.env.VUE_APP_BASE_API_GROWTH, timeout: 1000 * 15, // headers: { "Content-Type": "multipart/form-data" }, headers: { "Content-Type": "application/json" }, diff --git a/src/views/growthpath/EditingTasks.vue b/src/views/growthpath/EditingTasks.vue index 73cf452d..7f434630 100644 --- a/src/views/growthpath/EditingTasks.vue +++ b/src/views/growthpath/EditingTasks.vue @@ -8,9 +8,7 @@
- {{ - basicData.growthName - }} + {{ basicData.growthName }}
创建时间:{{ basicData?.createTime }}
@@ -57,7 +55,7 @@ :activeKey="activeKey" :infoType="2" @dataListUp="dataListUp" - @refresh="getListTask" + @refresh="getListTask(1)" >
@@ -234,6 +232,26 @@
+
+
+ +
+
@@ -284,7 +302,7 @@ const activeKey = ref("1"); // tabs切换 const tabsChange = (val) => { console.log(val); - getListTask(); + getListTask(1); }; const courseRef = ref({}); const editTaskForType = (ele) => { @@ -333,19 +351,28 @@ onMounted(() => { getListTask(); }); const dataListUp = (val) => { - getListTask(); + getListTask(1); }; const listDatas = ref([]); const spinning = ref(false); -const getListTask = () => { +const pageSize = ref(10); +const pageNum = ref(1); +const total = ref(0); +const getListTask = (num) => { + if (num) { + pageNum.value = num; + } spinning.value = true; notPublishedTaskList({ growthId: growId, type: activeKey.value, + pageSize: pageSize.value, + pageNum: pageNum.value, }) .then((res) => { if (res.data.code === 200) { listDatas.value = res.data.data.records; + total.value = res.data.data.total; } spinning.value = false; }) @@ -404,7 +431,33 @@ const withdraw = (element) => { flex-direction: column; min-width: 933px; background-color: rgba(245, 247, 250, 1); + .tableBox { + margin-top: 21px; + margin-bottom: 20px; + .ant-checkbox-wrapper { + align-items: center; + margin-top: -2px; + } + .ant-table-selection-column { + padding: 0px !important; + padding-left: 60px !important; + } + + .ant-table-thead > tr > th { + background-color: rgba(239, 244, 252, 1); + } + + th.h { + background-color: #eff4fc !important; + } + + .ant-table-tbody + > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) + > td { + background: #f6f9fd; + } + } .right { flex: 1; // background-color: #fff; @@ -684,50 +737,6 @@ const withdraw = (element) => { } } - .tableBox { - margin-top: 21px; - margin-bottom: 20px; - - .chosen { - background-color: #f2f6fc; - opacity: 1; - } - - .ghost { - // background-color: red; - opacity: 0; - } - - .classify { - margin-left: 10px !important; - padding-left: 9px !important; - } - - .ant-checkbox-wrapper { - align-items: center; - margin-top: -2px; - } - - .ant-table-selection-column { - padding: 0px !important; - padding-left: 60px !important; - } - - .ant-table-thead > tr > th { - background-color: rgba(239, 244, 252, 1); - } - - th.h { - background-color: #eff4fc !important; - } - - .ant-table-tbody - > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) - > td { - background: #f6f9fd; - } - } - .xwid { position: relative; margin-top: 30px; @@ -779,107 +788,6 @@ const withdraw = (element) => { } } } - - .talk { - margin-top: 24px; - margin-bottom: 11px; - width: 100%; - height: 50px; - background: #f5faff; - border: 1px solid #4ea6ff; - // opacity: 0.22; - display: flex; - align-items: center; - - .im { - width: 14px; - height: 15px; - margin-left: 27px; - margin-top: -3px; - } - - .xu { - height: 100%; - line-height: 50px; - margin-left: 13px; - - .yi { - color: #4f5156; - font-size: 14px; - } - - .zon { - color: #999ba3; - font-size: 14px; - margin-left: 34px; - } - - .th { - color: #4ea6ff; - } - } - } - - .tableBox { - margin-block-end: 20px; - - .classify { - margin-left: 11px !important; - padding-left: 9px !important; - } - - .ant-checkbox-wrapper { - align-items: center; - margin-top: -2px; - } - - .ant-table-selection-column { - padding: 0px !important; - padding-left: 38px !important; - } - - .ant-table-thead > tr > th { - background-color: rgba(239, 244, 252, 1); - } - - th.h { - background-color: #eff4fc !important; - } - - .ant-table-tbody - > tr:hover:not(.ant-table-expanded-row):not( - .ant-table-row-selected - ) - > td { - background: #f6f9fd; - } - - .pa { - left: 0; - width: 100%; - // height: 20px; - // background-color: red; - display: flex; - justify-content: center; - position: absolute; - bottom: 0px; - } - } - - .tablebox1 { - margin-bottom: 80px; - - .pa { - left: 0; - width: 100%; - // height: 20px; - // background-color: red; - display: flex; - justify-content: center; - position: absolute; - bottom: 0px; - } - } } } diff --git a/src/views/growthpath/PathManage.vue b/src/views/growthpath/PathManage.vue index 7bc7e794..292eadb2 100644 --- a/src/views/growthpath/PathManage.vue +++ b/src/views/growthpath/PathManage.vue @@ -489,23 +489,7 @@
- +
diff --git a/vue.config.js b/vue.config.js index 25e4c860..11016132 100644 --- a/vue.config.js +++ b/vue.config.js @@ -18,15 +18,15 @@ module.exports = defineConfig({ overlay: false,// 解决代码抛出异常 }, proxy: { - "/professional": { - target: 'http://192.168.150.97:32002', - // target: 'http://192.168.237.141:32002', - changeOrigin: true, - }, - // "/growth": { - // target: 'https:' + process.env.VUE_APP_BOE_API_URL, + // "/professional": { + // target: 'http://192.168.150.97:32002', + // // target: 'http://192.168.237.141:32002', // changeOrigin: true, // }, + "/growth": { + target: 'https:' + process.env.VUE_APP_BOE_API_URL, + changeOrigin: true, + }, "/manageApi": { target: 'https:' + process.env.VUE_APP_PROXY_URL, changeOrigin: true, //表示是否改变原域名