Browse Source

每日资讯 完成

cxmo 10 months ago
parent
commit
4e15d03bc5
1 changed files with 20 additions and 26 deletions
  1. 20 26
      src/views/operation_manage/dayilyNews.vue

+ 20 - 26
src/views/operation_manage/dayilyNews.vue

@@ -1,10 +1,9 @@
 
-<script>
+<script setup>
 import { ref, reactive, onMounted } from 'vue'
 import { ElMessage, ElMessageBox } from 'element-plus'
 import moment from 'moment';
 import _ from 'lodash'
-import mDialog from '@/components/mDialog.vue'
 import * as reportEnInterface from '@/api/modules/reportEnApi';
 import * as dayApi from '@/api/modules/daynewsApi';
 
@@ -21,15 +20,6 @@ const formRules = reactive({
     abstract: [{ required: true, message:"报告摘要不能为空",trigger:'blur' }],
     overview:[{ required: true, message:"报告overview不能为空",trigger:'blur' }]
 })
-const baseForm = {
-    show: false,
-    classify: [],
-    title: 'China Macro and Commodity',
-    abstract: 'China Macro and Commodity',
-    overview:'',
-    author: '',
-    frequency: ''
-    }
 let configForm = reactive({
         show: false,
         classify: [],
@@ -102,7 +92,7 @@ function formatClassifyArr(tree){
         }
     }
     dfs(tree,0)
-    return tree
+    return tree.Child
 }
 /* 生成报告 */
 function createReport() {
@@ -290,9 +280,11 @@ onMounted(()=>{
       </div>
   
        <!-- 设置默认弹窗 -->
-      <mDialog 
+      <el-dialog 
         title="设置默认值" 
-        :show.sync="configForm.show" 
+        v-model="configForm.show"
+        :close-on-click-modal="false"
+        :modal-append-to-body="false"
         width="650px"
         class="set-config-dialog"
       >
@@ -314,7 +306,6 @@ onMounted(()=>{
                   children:'Child'
                 }"
                 placeholder="类型筛选"
-                size="medium"
                 style="width: 70%"
               />
             </el-form-item>
@@ -350,7 +341,7 @@ onMounted(()=>{
             </el-form-item>
           </el-form>
         </div>
-        <div slot="footer" style="margin-top: 20px;">
+        <div style="margin:30px 0;text-align:center">
           <el-button
           @click="cancelDialog"
           style="width: 132px; height: 40px"
@@ -361,12 +352,12 @@ onMounted(()=>{
             style="width: 132px; height: 40px"
             >保存</el-button>
         </div>
-      </mDialog>
+      </el-dialog>
   
       <!-- 编辑弹窗 -->
-      <mDialog 
+      <el-dialog
         title="编辑" 
-        :show.sync="editForm.show" 
+        v-model="editForm.show" 
         width="650px"
         class="set-config-dialog"
       >
@@ -392,11 +383,11 @@ onMounted(()=>{
             <el-button type="primary" @click="handleEdit">确定</el-button>
           </div>
         </div>
-      </mDialog>
+      </el-dialog>
     </div>
   </template>
   
-  <style lang="scss" scoped>
+<style lang="scss" scoped>
   *{ box-sizing: border-box; }
   .day-news-container {
     height: calc(100vh - 120px);
@@ -438,9 +429,12 @@ onMounted(()=>{
       }
     }
   }
-  .set-config-dialog {
-    :deep(.el-cascader .el-input) {
-      width: 100% !important;
+  :deep(.set-config-dialog) {
+    .el-cascader{
+        .el-input{
+            width: 100% !important;
+        }
+    
     }
-  }
-  </style>
+}
+</style>