Jelajahi Sumber

Merge branch 'FJC' into 'dev'

Fjc

See merge request skyeye/skyeye_frontend/skyeye-admin!97
zhu die 1 tahun lalu
induk
melakukan
382ab0e61f

+ 3 - 2
src/views/message/CustomSelectTree.vue

@@ -74,7 +74,8 @@ watch(
   height: 527px;
 }
 ::v-deep .el-select__selection {
-    max-height: 100px;
+    min-height: 25px;
+    max-height: 60px;
     overflow-y: auto;
-}
+  }
 </style>

+ 3 - 2
src/views/message/SelectTree.vue

@@ -66,7 +66,8 @@ watch(
   height: 527px;
 }
 ::v-deep .el-select__selection {
-    max-height: 100px;
+    min-height: 25px;
+    max-height: 60px;
     overflow-y: auto;
-}
+  }
 </style>

+ 3 - 2
src/views/message/designatedUserSelectTree.vue

@@ -68,7 +68,8 @@ onBeforeUpdate(()=>{
   height: 527px;
 }
 ::v-deep .el-select__selection {
-    max-height: 100px;
+    min-height: 25px;
+    max-height: 60px;
     overflow-y: auto;
-}
+  }
 </style>

+ 8 - 2
src/views/message/persongroup/components/GroupBoard.vue

@@ -57,7 +57,12 @@
         />
       </el-form-item>
       <el-form-item label="组内成员:" prop="userList" v-if="props.drawerTitle === '查看人员分组'">
-        <el-select v-model="ruleForm.userList" value-key="id" multiple disabled="true">
+        <el-select
+          v-model="ruleForm.userList"
+          value-key="id"
+          multiple
+          disabled="true"
+        >
           <el-option v-for="user in selectedUser" :key="user.id" :label="user.name" :value="user">
           </el-option>
         </el-select>
@@ -72,10 +77,10 @@
         v-else
       >
         <el-select
+          placeholder="请添加组内人员"
           v-model="ruleForm.userList"
           value-key="id"
           multiple
-          placeholder="请添加组内人员"
           @click="dialogVisible = true"
         >
           <el-option v-for="user in selectedUser" :key="user.id" :label="user.name" :value="user">
@@ -280,6 +285,7 @@ watch(
   margin-top: 24px;
   gap: 20px;
   ::v-deep .el-select__selection {
+    min-height: 25px;
     max-height: 60px;
     overflow-y: auto;
   }

+ 7 - 7
src/views/message/persongroup/components/Search.vue

@@ -12,9 +12,9 @@
       <el-button type="primary" style="margin-left: 15px" @click="getUserGroup">
         搜索
       </el-button>
-      <!-- <el-button style="margin-left: 15px" @click="resetSearch"
-        ><img src="../img/refresh.png" style="margin-right: 8px;" />重置
-      </el-button> -->
+      <el-button style="margin-left: 15px" @click="resetSearch">
+        重置
+      </el-button>
     </div>
   </div>
 </template>
@@ -26,10 +26,10 @@ import { storeToRefs } from 'pinia';
 const userGroup = userGroupList();
 const { queryStr } = storeToRefs(userGroup);
 const { getUserGroup } = userGroup;
-// const resetSearch = () => {
-//   queryStr.value = '';
-//   getUserGroup();
-// };
+const resetSearch = () => {
+  queryStr.value = '';
+  getUserGroup();
+};
 </script>
 
 <style lang="scss" scoped>

+ 2 - 2
src/views/message/persongroup/components/SelectTree.vue

@@ -6,7 +6,8 @@
         :style="{ width: '300px', height: '30px' }"
         placeholder="请输入搜索内容"
         :prefix-icon="Search"
-        @keyup.enter="onSearch"
+        @input="onSearch"
+        clearable
       />
       <el-tree
         ref="treeRef"
@@ -105,7 +106,6 @@ const onSearch = () => {
   } else {
     filterData.value = nodeData.value;
   }
-  queryStr.value = '';
 };
 const total = ref<number>(0);
 const selected = ref<number>(0);

+ 27 - 7
src/views/message/reportmessage/CustomReport.vue

@@ -20,6 +20,7 @@
           <el-col :span="22">
             <el-date-picker
               v-model="item.daterange"
+              style="width: 327.5px;"
               type="daterange"
               range-separator="至"
               start-placeholder="开始日期"
@@ -51,7 +52,7 @@
           </el-col>
         </el-form-item>
 
-        <el-col class="text-center" :span="2">
+        <el-col class="text-center" :span="2" style="padding-bottom: 10px;">
           <span class="text-gray-500">—</span>
         </el-col>
 
@@ -62,7 +63,7 @@
           <el-col :span="22">
             <el-time-picker
               v-model="item.pushTime"
-              placeholder="09:00"
+              placeholder="选择时间"
               value-format="HH:mm:ss"
               style="width: 146.5px; height: 32px"
               :disabled="disableType.contentDisable"
@@ -88,6 +89,7 @@
         v-if="item.recipientType === '2'"
         label="选择分组:"
         required
+        style=" margin-top: 10px;"
         :prop="`customPushConfigList[` + index + `].userGroupList`"
         :rules="{ required: true, message: '请选择分组', trigger: 'change' }"
       >
@@ -96,7 +98,7 @@
             v-model="item.userGroupList"
             multiple
             placeholder="请选择分组"
-            style="width: 240px"
+            style="width: 326px; padding-bottom: 0px"
             :disabled="disableType.contentDisable"
           >
             <el-option
@@ -117,11 +119,13 @@
         label="选择人员:"
         required
         placeholder="请选择人员"
+        style="width: 526px; margin-top: 10px;"
         :prop="`customPushConfigList[` + index + `].customUserList`"
         :rules="{ required: true, message: '请选择推送人员', trigger: 'change' }"
       >
         <el-col :span="18">
           <CustomSelectTree
+            style="padding-bottom: 0;"
             :form="form"
             :disableType="disableType"
             :index="index"
@@ -135,6 +139,7 @@
   </div>
   <el-button
     type="primary"
+    :icon="Plus"
     @click="addCustom"
     class="addButton"
     :disabled="disableType.contentDisable"
@@ -148,6 +153,7 @@
   import { CircleCloseFilled } from '@element-plus/icons-vue';
   import { searchGroup } from '@/api/sendMessage/sendMessage';
   import CustomSelectTree from '../CustomSelectTree.vue';
+  import { Plus } from '@element-plus/icons-vue';
 
   const prop = defineProps(['form', 'disableType', 'ruleFormRef']);
   const emit = defineEmits(['customPropsChange']);
@@ -183,12 +189,11 @@
 </script>
 
 <style scoped>
-  .reportCard {
+.reportCard {
     margin-left: 87px;
-    margin-top: 12px;
+    margin-bottom: 16px;
+    padding: 12px 0px 0px 12px;
     background-color: #fafafa;
-    padding-top: 12px;
-    padding-bottom: 1px;
     width: 530px;
     position: relative;
   }
@@ -212,4 +217,19 @@
     width: 14px;
     height: 14px;
   }
+
+  .el-form-item--default {
+    /* margin-bottom: 8px; */
+    margin-bottom: 0px;
+    padding-bottom: 10px;
+}
+
+  .reportCard > .el-form-item:last-child{
+  /* background:#ff0000; */
+    padding-bottom: 16px;
+  }
+
+ ::v-deep .el-select__selection{
+    min-height: 25px;
+  }
 </style>

+ 25 - 8
src/views/message/reportmessage/MonthReport.vue

@@ -21,7 +21,7 @@
           </el-col>
       </el-form-item>
 
-      <el-col class="text-center" :span="2">
+      <el-col class="text-center" :span="2" style="padding-bottom: 10px;">
         <span class="text-gray-500">—</span>
       </el-col>
 
@@ -52,6 +52,7 @@
       v-if="form.recipientType === 2"
       label="选择分组:"
       required
+      style="margin-top: 10px;"
       prop="userGroupList"
       >
         <el-col :span="10">
@@ -59,7 +60,7 @@
             v-model="form.userGroupList"
             multiple
             placeholder="请选择分组"
-            style="width: 240px"
+            style="width: 326px"
             :disabled="disableType.contentDisable"
           >
             <el-option
@@ -77,6 +78,7 @@
       label="选择人员:"
       required
       prop="customUserList.value"
+      style="width: 526px; margin-top: 10px;"
       :rules="{ required: true, message: '请选择推送人员', trigger: ['change'] }"
       >
         <el-col :span="18">
@@ -108,12 +110,27 @@
 </script>
 
 <style scoped>
-  .reportCard{
-    margin-left: 87px;
-    background-color: #FAFAFA;
-    padding-top: 12px;
-    width: 530px;
-  }
+.reportCard {
+  margin-left: 87px;
+  padding: 12px 0px 0px 12px;
+  margin-bottom: 16px;
+  background-color: #fafafa;
+  width: 530px;
+  box-sizing: border-box;
+}
+ 
+.el-form-item--default {
+    /* margin-bottom: 8px; */
+    margin-bottom: 0px;
+    padding-bottom: 10px;
+}
 
+.reportCard > .el-form-item:last-child{
+  /* background:#ff0000; */
+    padding-bottom: 16px;
+  }  
 
+ ::v-deep .el-select__selection{
+    min-height: 25px;
+  }
 </style>

+ 50 - 39
src/views/message/reportmessage/ReportOperation.vue

@@ -3,9 +3,7 @@
   <div class="page">
     <div class="top">
       <div class="topLeft" @click="clickBack">
-        <img src="./img/rollback.png" style="margin-right: 8px"/><span
-          >返回</span
-        >
+        <img src="./img/rollback.png" style="margin-right: 8px" /><span>返回</span>
       </div>
       <div class="topRight">
         <span v-if="pageType === 1">新建报表配置</span>
@@ -17,7 +15,7 @@
       <div class="left">
         <el-form
           ref="ruleFormRef"
-          style="max-width: 1000px"
+          style="max-width: 1000px;"
           :model="form"
           :rules="rules"
           label-width="auto"
@@ -30,6 +28,7 @@
             label="指定人员:"
             required
             prop="designatedUserList.value"
+            style="width: 660px;"
             :rules="{ required: true, message: '请选择推送人员', trigger: ['change'] }"
           >
             <el-col :span="18">
@@ -44,7 +43,7 @@
             >
               <el-tooltip :visible="weekVisible" placement="top">
                 <template #content>
-                  <span>自然周数据(周一至周日),<br />每次将推送上一周数据</span>
+                  <span>每次推送上个自然周数据</span><br /><div style="text-align: center;">(每周一至周日)</div>
                 </template>
                 <el-radio
                   :value="1"
@@ -56,7 +55,7 @@
 
               <el-tooltip :visible="monthVisible" placement="top">
                 <template #content>
-                  <span>自然月数据(每月第一天至最后一天),<br />每次将推送上个月数据</span>
+                  <span>每次推送上个自然月数据</span><br /><div style="text-align: center;">(每月第一天至最后一天)</div>
                 </template>
                 <el-radio
                   :value="2"
@@ -68,7 +67,7 @@
 
               <el-tooltip :visible="seasonVisible" placement="top">
                 <template #content>
-                  <span>自然季数据,<br />每次将推送上个季度数据</span>
+                  <span>每次将推送上个自然季度数据</span>
                 </template>
                 <el-radio
                   :value="3"
@@ -80,7 +79,7 @@
 
               <el-tooltip :visible="yearVisible" placement="top">
                 <template #content>
-                  <span>整年数据,<br />每次推送上一年数据</span>
+                  <span>每次推送上一数据</span>
                 </template>
                 <el-radio
                   :value="4"
@@ -117,7 +116,7 @@
             <YearReport :form="form" :disableType="disableType"></YearReport>
           </div>
 
-          <div v-if="form.statisticType === 5">
+          <div v-if="form.statisticType === 5" class="custom-report">
             <CustomReport
               ref="CustomReportComponent"
               :form="form"
@@ -137,20 +136,20 @@
             </el-checkbox-group>
           </el-form-item>
 
-          <el-form-item label="操作人:">
-            <el-input style="width: 425px" disabled :placeholder="operater" />
+          <el-form-item label="操作人:" style="margin-left: 10px;">
+            <el-input style="width: 425px; margin-left: -10px ;" disabled :placeholder="operater" />
           </el-form-item>
-          <div class="two-btns">
-            <el-button
-              type="primary"
-              @click="submitForm(ruleFormRef)"
-              :disabled="disableType.contentDisable"
-            >
-              确定
-            </el-button>
-            <el-button @click="clickBack">取消</el-button>
-          </div>
         </el-form>
+        <div class="two-btns">
+          <el-button @click="clickBack">取消</el-button>
+          <el-button
+            type="primary"
+            @click="submitForm(ruleFormRef)"
+            :disabled="disableType.contentDisable"
+          >
+            确定
+          </el-button>
+        </div>
       </div>
       <div class="right">
         <TemplateExample :form="form" :disableType="disableType"></TemplateExample>
@@ -172,13 +171,16 @@ import { addMassage, searchMassage, editMassage } from '@/api/sendMessage/sendMe
 import { ElMessage } from 'element-plus';
 import { storeToRefs } from 'pinia';
 import { useUserStore } from '@/store/modules/user';
+import { useFormList } from './store/useFormList';
 import { useRoute, useRouter } from 'vue-router';
 import DesignatedUserList from '@/views/message/designatedUserSelectTree.vue';
 import type { FormProps } from 'element-plus';
 const labelPosition = ref<FormProps['labelPosition']>('left');
 
 const useUser = useUserStore();
+const FormList = useFormList();
 const { info } = storeToRefs(useUser);
+const { type } = storeToRefs(FormList);
 let operater = info.value.nickname;
 
 const weekVisible = ref(false); // 控制Tooltip显示
@@ -204,6 +206,7 @@ const statisticType = ref<number>(
 let queryType = { type: reportType.value, statisticType: statisticType.value };
 
 const form = reactive<reportMessage>({
+  configIdList: null,
   type: 0,
   statisticType: 0,
   monthAndDayList: ['1', '1'],
@@ -232,22 +235,22 @@ const rules = reactive({
   // customUserList: [{ required: true, message: '请选择推送人员', trigger: 'change, blur' }],
 });
 
-  // const form = reactive<reportMessage>({
-  //   configIdList: null,
-  //   type: 0,
-  //   statisticType: 0,
-  //   monthAndDayList: ['1', '1'],
-  //   dayOfWeek: 1,
-  //   monthList: [''],
-  //   dayOfMonthList: ['1'],
-  //   pushTimeList: ['09:00:00'],
-  //   pushChannel: [],
-  //   userGroupList: [],
-  //   designatedUserList: [],
-  //   recipientType: undefined,
-  //   customPushConfigList: [],
-  //   customUserList: []
-  // });
+// const form = reactive<reportMessage>({
+//   configIdList: null,
+//   type: 0,
+//   statisticType: 0,
+//   monthAndDayList: ['1', '1'],
+//   dayOfWeek: 1,
+//   monthList: [''],
+//   dayOfMonthList: ['1'],
+//   pushTimeList: ['09:00:00'],
+//   pushChannel: [],
+//   userGroupList: [],
+//   designatedUserList: [],
+//   recipientType: undefined,
+//   customPushConfigList: [],
+//   customUserList: []
+// });
 const submitForm = async (formEl: FormInstance | undefined) => {
   if (!formEl) return;
   await formEl.validate((valid, fields) => {
@@ -283,6 +286,7 @@ const resetForm = (formEl: FormInstance | undefined) => {
 };
 
 const clickBack = () => {
+  type.value = reportType.value;
   router.back();
 };
 
@@ -352,17 +356,24 @@ onBeforeMount(() => {
     }
     .topRight {
       margin-left: 20px;
+
     }
   }
   .content {
     display: flex;
     height: calc(100vh - 130px);
     .left {
+      display: flex;
+      flex-direction: column;
       position: relative;
       padding: 20px 0 0 32px;
-      width: 669px;
+      width: 769px;
       border-right: 1px solid rgba(0, 0, 0, 0.06);
       overflow-y: auto;
+      .custom-report{
+        max-height: calc(100vh - 450px);
+        overflow-y: auto;
+      }
       .two-btns {
         position: absolute;
         right: 33px;
@@ -371,7 +382,7 @@ onBeforeMount(() => {
     }
     .right {
       height: 299px;
-      width: 448px;
+      width: 363px;
       margin-left: 31px;
       margin-top: 20px;
       background: #ffffff;

+ 21 - 18
src/views/message/reportmessage/TemplateExample.vue

@@ -22,11 +22,11 @@
                     【报表周期】 xxxx-xx-xx - xxxx-xx-xx <br />
                     【累计报警次数】 XX次 <br />
                     【报警类型排行TOP5】 <br />
-                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(1) 报警问题: 发生XX次 <br />
-                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(2) 报警问题: 发生XX次 <br />
-                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(3) 报警问题: 发生XX次 <br />
-                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(4) 报警问题: 发生XX次 <br />
-                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(5) 报警问题: 发生XX次 <br />
+                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(1) 报警问题: 发生xx次 <br />
+                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(2) 报警问题: 发生xx次 <br />
+                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(3) 报警问题: 发生xx次 <br />
+                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(4) 报警问题: 发生xx次 <br />
+                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(5) 报警问题: 发生xx次 <br />
                 </div>
             </div>
         </div>
@@ -56,11 +56,11 @@
                     【报表周期】 xxxx-xx-xx - xxxx-xx-xx <br />
                     【平台累计访问次数】 XX次 <br />
                     【车间访问数量排行TOP5】 <br />
-                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(1) 车间一:  被访问XX次 <br />
-                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(2) 车间二:  被访问XX次 <br />
-                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(3) 车间三:  被访问XX次 <br />
-                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(4) 车间四:  被访问XX次 <br />
-                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(5) 车间五:  被访问XX次 <br />
+                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(1) 车间一:  被访问xx次 <br />
+                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(2) 车间二:  被访问xx次 <br />
+                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(3) 车间三:  被访问xx次 <br />
+                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(4) 车间四:  被访问xx次 <br />
+                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(5) 车间五:  被访问xx次 <br />
                 </div>
             </div>
         </div>
@@ -89,11 +89,11 @@
                 <div class="reportTitle">
                     【报表周期】 xxxx-xx-xx - xxxx-xx-xx <br />
                     【人员平台访问数据】 <br />
-                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(1) 人员1:  访问XX次, 其中访问车间1XX次<br />
-                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(2) 人员2:  访问XX次, 其中访问车间1XX次 <br />
-                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(3) 人员3:  访问XX次, 其中访问车间1XX次 <br />
-                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(4) 人员4:  访问XX次, 其中访问车间1XX次 <br />
-                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(5) 人员5:  访问XX次, 其中访问车间1XX次 <br />
+                    (1) 人员1:  访问xx次, 其中访问车间xx次<br />
+                    (2) 人员2:  访问xx次, 其中访问车间xx次 <br />
+                    (3) 人员3:  访问xx次, 其中访问车间xx次 <br />
+                    (4) 人员4:  访问xx次, 其中访问车间xx次 <br />
+                    (5) 人员5:  访问xx次, 其中访问车间xx次 <br />
                 </div>
             </div>
         </div>
@@ -111,14 +111,16 @@
 
 .exampleTitleDiv{
     /* width: 448px; */
+    width: 100%;
     height: 44px;
     background: #FAFAFA;
     border-radius: 3px 3px 0px 0px;
-    border: 1px solid #E9E9E9;
+    border-bottom: 1px solid #E9E9E9;
   }
 
   .exampleTitle{
     display: inline-block;
+      
     height: 22px;
     font-family: PingFangSC, PingFang SC;
     font-weight: 500;
@@ -146,6 +148,7 @@
     text-transform: none;
     margin-left: 24px;
     margin-top: 16px;
+    margin-bottom: 12px;
   }
 
   .reportblock {
@@ -156,13 +159,13 @@
 
   .reportTitle {
     display: inline-block;
-    width: 245;
+    width: 245px;
     height: 22px;
     font-family: PingFangSC, PingFang SC;
     font-weight: 400;
     font-size: 14px;
     color: rgba(0,0,0,0.45);
-    line-height: 22px;
+    line-height: 24px;
     text-align: left;
     font-style: normal;
   }

+ 20 - 10
src/views/message/reportmessage/WeekReport.vue

@@ -21,7 +21,7 @@
         </el-col>
       </el-form-item>
 
-      <el-col class="text-center" :span="2">
+      <el-col class="text-center" :span="2"  style="padding-bottom: 10px;">
         <span class="text-gray-500">—</span>
       </el-col>
 
@@ -47,13 +47,13 @@
         <el-radio :value="3">自定义</el-radio>
       </el-radio-group>
     </el-form-item>
-    <el-form-item v-if="form.recipientType === 2" label="选择分组:" required prop="userGroupList">
+    <el-form-item v-if="form.recipientType === 2" label="选择分组:" required prop="userGroupList" style=" margin-top: 10px;">
       <el-col :span="10">
         <el-select
           v-model="form.userGroupList"
           multiple
           placeholder="请选择分组"
-          style="width: 330px"
+          style="width: 326px;"
           :disabled="disableType.contentDisable"
         >
           <el-option
@@ -70,7 +70,7 @@
       label="选择人员:"
       required
       prop="customUserList.value"
-      style="width: 530px"
+      style="width: 526px; margin-top: 10px;"
       :rules="{ required: true, message: '请选择推送人员', trigger: ['change'] }"
     >
       <el-col :span="18">
@@ -100,15 +100,25 @@ onMounted(() => {
 <style scoped>
 .reportCard {
   margin-left: 87px;
-  padding: 12px 12px 12px 12px;
+  padding: 12px 0px 0px 12px;
+  margin-bottom: 16px;
   background-color: #fafafa;
   width: 530px;
   box-sizing: border-box;
 }
-.el-form-item:nth-child() {
-  margin: 0px;
-}
-.el-form-item:nth-child() {
-  margin-top: 16px;
+ 
+.el-form-item--default {
+    /* margin-bottom: 8px; */
+    margin-bottom: 0px;
+    padding-bottom: 10px;
 }
+
+.reportCard > .el-form-item:last-child{
+  /* background:#ff0000; */
+    padding-bottom: 16px;
+  }
+
+ ::v-deep .el-select__selection{
+    min-height: 25px;
+  }
 </style>

+ 28 - 14
src/views/message/reportmessage/YearReport.vue

@@ -12,14 +12,14 @@
               :options="yearArray"
               @change="handleChange"
               placeholder="每年1月1日"
-              style="width: 145.5px;"
+              style="width: 146.5px; height: 32px;"
              :disabled="disableType.contentDisable"
             />
           </el-col>
         </el-form-item>
 
-        <el-col class="text-center" :span="2">
-          <span class="text-gray-500">-</span>
+        <el-col class="text-center" :span="2" style="padding-bottom: 10px;"   >
+          <span class="text-gray-500"></span>
         </el-col>
 
         <el-form-item 
@@ -31,7 +31,7 @@
                v-model="prop.form.pushTimeList[0]"
                   placeholder="09:00"
                   value-format="HH:mm:ss"
-                  style="width: 126.5px; height: 32px;"
+                  style="width: 146.5px; height: 32px;"
                   :disabled="disableType.contentDisable"
                   />
             </el-col>
@@ -53,6 +53,7 @@
       v-if="prop.form.recipientType === 2"
       label="选择分组:"
       required
+      style="margin-top: 10px;"
       prop="userGroupList"
       >
         <el-col :span="10">
@@ -60,7 +61,7 @@
             v-model="prop.form.userGroupList"
             multiple
             placeholder="请选择分组"
-            style="width: 240px"
+            style="width: 326px;"
             :disabled="disableType.contentDisable"
           >
             <el-option
@@ -78,6 +79,7 @@
       label="选择人员:"
       required
       prop="customUserList.value"
+      style="width: 526px; margin-top: 10px;"
       :rules="{ required: true, message: '请选择推送人员', trigger: ['change'] }"
       >
         <el-col :span="18">
@@ -134,15 +136,27 @@
 </script>
 
 <style scoped>
-  .reportCard{
-    margin-left: 87px;
-    background-color: #FAFAFA;
-    padding-top: 12px;
-    width: 530px;
-    .el-sellect{
-
-    }
-  }
+.reportCard {
+  margin-left: 87px;
+  padding: 12px 0px 0px 12px;
+  margin-bottom: 16px;
+  background-color: #fafafa;
+  width: 530px;
+  box-sizing: border-box;
+}
+ 
+.el-form-item--default {
+    /* margin-bottom: 8px; */
+    margin-bottom: 0px;
+    padding-bottom: 10px;
+}
 
+.reportCard > .el-form-item:last-child{
+  /* background:#ff0000; */
+    padding-bottom: 16px;
+  }  
 
+ ::v-deep .el-select__selection{
+    min-height: 25px;
+  }
 </style>

+ 4 - 3
src/views/message/reportmessage/class.ts

@@ -75,6 +75,7 @@ export interface computeCustom {
 interface UserList {
     id: string;
     userNickname: string;
+    userLoginName: string;
     userId: number;
   }
 
@@ -114,12 +115,12 @@ export const toReportMessage = (form: reportMessage, receivedData: finalReportMe
     
     if(form.customUserList.value.length > 0){
         form.customUserList.value = form.customUserList.value.map((user) => {
-            return {"id": `u${user.userId}`, "name": user.userNickname, "userId": user.userId}
+            return {"id": `u${user.userId}`, "name": user.userLoginName + '-' + user.userNickname, "userId": user.userId}
         })
     }
     if(form.designatedUserList.value.length > 0){
         form.designatedUserList.value = form.designatedUserList.value.map((user) => {
-            return {"id": `u${user.userId}`, "name": user.userNickname, "userId": user.userId}
+            return {"id": `u${user.userId}`, "name": user.userLoginName + '-' + user.userNickname, "userId": user.userId}
         })
     }
     if(receivedData.statisticType === 2){
@@ -151,7 +152,7 @@ export const toReportMessage = (form: reportMessage, receivedData: finalReportMe
             tempconfig['recipientType'] = config.recipientType.toString()
             tempconfig['userGroupList'] = config.userGroupList
             tempconfig['customUserList'] = config.customUserList.map((user:UserList) => {
-                return {"id": `u${user.userId}`, "name": user.userNickname, "userId": user.userId}
+                return {"id": `u${user.userId}`, "name": user.userLoginName + '-' + user.userNickname, "userId": user.userId}
             })
             tempconfig['userGroupList'] = config.userGroupList?.map((user:any) => user.id)
             customPushConfigList.push(tempconfig)

+ 5 - 1
src/views/message/reportmessage/components/Form.vue

@@ -16,7 +16,7 @@
       ref="tableRef"
     >
       <template #tableTitle>
-        <el-button type="primary" :icon="Plus" @click="CreateReport(type)">新建报表</el-button>
+        <el-button type="primary" :icon="Plus" @click="CreateReport(type)">新建报表配置</el-button>
       </template>
       <template #empty>
         <div class="empty-content flex flex-col items-center">
@@ -116,6 +116,7 @@ const handleDelete = (record: Recordable) => {
   ElMessageBox.confirm('删除之后,这条数据无法恢复', '请确认是否删除', {
     confirmButtonText: '确定',
     cancelButtonText: '取消',
+    type: 'warning',
   })
     .then(() => {
       deleteReportConfig(type.value, record.statisticType).then(() => {
@@ -143,4 +144,7 @@ watch(
   position: relative;
   width: 100%;
 }
+::v-deep .el-dialog__body{
+  height: 600px;
+}
 </style>

+ 5 - 4
src/views/message/reportmessage/components/LogForm.vue

@@ -75,9 +75,10 @@ onMounted(() => {
 </script>
 
 <style lang="scss" scoped>
-::v-deep .s-table {
-  .el-table__body-wrapper {
-    overflow-y: auto;
-  }
+.log-form {
+  height: 100%;
+}
+::v-deep .el-table--fit {
+  height: 528px !important;
 }
 </style>

+ 1 - 1
src/views/message/reportmessage/overviewColumns.ts

@@ -11,7 +11,7 @@ const { getForm } = formStore;
 import { updateStatus, updateStatusParams } from './api/index'
 export const reportDataCol: BasicColumn[] = [
   {
-    label: '报表类型',
+    label: '报表周期',
     prop: 'statisticType',
     render(record) {
       const typeName = statisticTypeName.find(item => item.value === record.row.statisticType);