ソースを参照

fix: 对照后端文档,修改默认数据tab的隐藏接口字段为isHide

bxy 1 年間 前
コミット
35aacf36de

+ 1 - 1
src/api/datamanagement/alert-default.ts

@@ -38,7 +38,7 @@ export const deleteDefaultTableData = (ids: number[]) => {
 // 更新默认问题单列表状态(加急/隐藏)
 export interface UpdateList {
   id: Number[],       // 问题单id,可批量操作
-  hide?: Boolean,     // 是否隐藏
+  isHide?: Boolean,     // 是否隐藏
   priority?: Number,  // 0-未加急,1-加急
 };
 export const updateDefaultTableData = (body: UpdateList) => {

+ 3 - 2
src/views/datamanager/alertformdata/components/default/Default.vue

@@ -97,7 +97,7 @@ const handleHideAll = () => {
   if (showActionBar.value) isActiveHide.value = !isActiveHide.value;
   const updateList = {
     id: chooseId.value,
-    hide: true,
+    isHide: true,
   };
   updateDefaultTableData(updateList).then(() => {
     getTableData();
@@ -174,6 +174,7 @@ const handleCopyToShow = () => {
     setTimeout(function () {
       isActiveCopy.value = !isActiveCopy.value;
     }, 1000);
+    handleSelectNone();
   })
 };
 
@@ -204,7 +205,7 @@ const handleShow = (row) => {
   const tempHide = row.isHide === false ? true : false;
   const updateList = {
     id: [row.id],
-    hide: tempHide,
+    isHide: tempHide,
   };
   updateDefaultTableData(updateList).then(() => {
     getTableData();