From f2647bf11f1b81b3dfa06469397ebf4317fdc198 Mon Sep 17 00:00:00 2001 From: Ggysh-7 <102372376+Ggysh-7@users.noreply.github.com> Date: Tue, 29 Nov 2022 23:12:48 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=B7=BB=E5=8A=A0=E5=9C=A8?= =?UTF-8?q?=E7=BA=BF=E3=80=81=E6=B7=BB=E5=8A=A0=E8=80=83=E8=AF=95=E3=80=81?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A1=88=E4=BE=8B=E3=80=81=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=B5=8B=E8=AF=84=E5=8A=9F=E8=83=BD=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexExam.js | 4 +- src/components/drawers/AddCase.vue | 24 +---------- src/components/drawers/AddOnline.vue | 18 +-------- src/components/drawers/AddTest.vue | 31 ++++++++++++-- src/components/drawers/EvList.vue | 27 ++----------- src/components/drawers/SelectTest.vue | 58 +++++++++++++++------------ 6 files changed, 68 insertions(+), 94 deletions(-) diff --git a/src/api/indexExam.js b/src/api/indexExam.js index b38ba155..9f3bdbeb 100644 --- a/src/api/indexExam.js +++ b/src/api/indexExam.js @@ -20,4 +20,6 @@ export const queryExaminationList = (obj) => http.post('/examination/queryExamin // 获取考试任务列表的接口-三方 export const queryExaminationAloneExtendList = (obj) => http.post('/examination/queryExaminationAloneExtendList', obj); // 对接三方考试任务保存接口-三方 -export const examinationTaskSave = (obj) => http.post('/examination/examinationTaskSave', obj); \ No newline at end of file +export const examinationTaskSave = (obj) => http.post('/examination/examinationTaskSave', obj); +//编辑考试信息 +export const updateExamination = (obj) => http.post('/examination/updateExamination', obj); \ No newline at end of file diff --git a/src/components/drawers/AddCase.vue b/src/components/drawers/AddCase.vue index 603ffe64..8b863d64 100644 --- a/src/components/drawers/AddCase.vue +++ b/src/components/drawers/AddCase.vue @@ -160,7 +160,6 @@ export default { currentPage: 1, tableDataTotal: 0, pageSize: 10, - searching:false, selectedRowKeys: [], apiTaskList: [], inputV1: "", @@ -222,23 +221,6 @@ export default { const getTableDate = (tableData) => { let data = tableData; let array = []; - if(state.searching){ - data.map((value, index) => { - let obj = { - key: index, - authorId: value.authorId, - authorName: value.authorName, - companyId: value.companyId, - coverUrl: value.coverUrl, - id: value.id, - casesId: value.casesId, - title: value.title, - }; - if(obj.title == state.inputV1){ - array.push(obj); - } - }); - } else { data.map((value, index) => { let obj = { key: index, @@ -252,7 +234,6 @@ export default { }; array.push(obj); }); - } state.tableData = array; }; //获取全部案例信息接口 @@ -264,7 +245,7 @@ export default { orderField: "", pageIndex: state.currentPage, pageSize: state.pageSize, - top: true, + isTop: "", }) .then((res) => { if (res.status === 200) { @@ -349,17 +330,14 @@ export default { //搜索案例列表 const searchList = ()=> { if(state.inputV1 !== ''){ - state.searching = true getAllCaseText() }else { - state.searching = false resetCase() } } //重置案例信息 const resetCase = () => { state.inputV1 = "" - state.searching = false state.selectedRowKeys=[] state.currentPage = 1 getAllCaseText(); diff --git a/src/components/drawers/AddOnline.vue b/src/components/drawers/AddOnline.vue index 0c372be7..a7ee93a1 100644 --- a/src/components/drawers/AddOnline.vue +++ b/src/components/drawers/AddOnline.vue @@ -198,7 +198,6 @@ export default { time: undefined, onlineClassesId: null, onlineName: "", - searching:false, selectV: "", selectedRowKeys: [], tableData: [], @@ -286,20 +285,7 @@ export default { let data = tableData; let array = []; data.map((value,index) => { - if(state.searching){ - let obj = { - key: index + 1, - num:"", - name:value.name, - contenttype:value.contentType == 10 ? "微课" : "录播课", - teacher:value.teacher, - sysCreateBy:value.sysCreateBy, - overtime:"", - }; - if(obj.name == state.inputV1 || obj.contenttype == state.selectV){ - array.push(obj); - } - } else { + { let obj = { key: index + 1, num:"", @@ -415,7 +401,6 @@ export default { //搜索在线列表 const searchList = ()=> { if(state.inputV1 !== '' || state.selectV !== ''){ - state.searching = true getAllOnlineText() }else { resetOnline() @@ -425,7 +410,6 @@ export default { const resetOnline = () => { state.inputV1 = ""; state.selectV = ""; - state.searching = false; state.selectedRowKeys = []; state.addOnlineList = []; state.currentPage = 1; diff --git a/src/components/drawers/AddTest.vue b/src/components/drawers/AddTest.vue index f4276b2f..268fed91 100644 --- a/src/components/drawers/AddTest.vue +++ b/src/components/drawers/AddTest.vue @@ -119,6 +119,7 @@ class="tag-style" v-if="paperName != ''" :closable="true" + @close="delTag" >{{ paperName }} +