huangbin 4 年之前
父节点
当前提交
4a75cf38d0

+ 1 - 3
src/assets/styles/index.css

@@ -559,9 +559,6 @@
 .formFieldSet + .formFieldSet {
   margin-top: 35px;
 }
-.formFieldSet_form {
-  margin-top: 35px;
-}
 .ant-form legend {
   width: auto;
   margin-left: 20px;
@@ -1592,6 +1589,7 @@ body {
   height: calc(100% - 40px);
 }
 .iframe-container > iframe {
+  border: 0;
   width: 100%;
   height: 100%;
 }

+ 1 - 0
src/assets/styles/index.less

@@ -301,6 +301,7 @@ body {
 .iframe-container {
     height: calc(100% - 40px);
     > iframe {
+        border: 0;
         width: 100%;
         height: 100%;
     }

+ 12 - 7
src/views/platinum/platinum_agreement/setup.ts

@@ -41,12 +41,17 @@ export function handleArgreementType(formState?: UnwrapRef<FormState>) {
 
 // 处理权限按钮
 export function handlePermissionBtn(btnList: BtnList[], item: QhjAgreementConfig) {
-    const { isvalid } = item
-    const arr: string[] = []
-    if (isvalid === 1) { // 正常
-        arr.push('platinum_agreement_resume')
-    } else if (isvalid === 2) { // 停用
-        arr.push('platinum_agreement_stop')
+    if (item) {
+        const { isvalid } = item
+        const arr: string[] = []
+        if (isvalid === 1) { // 正常
+            arr.push('platinum_agreement_resume')
+        } else if (isvalid === 2) { // 停用
+            arr.push('platinum_agreement_stop')
+        }
+        return btnList.filter(e => !arr.includes(e.code))
+    } else {
+        return []
     }
-    return btnList.filter(e => !arr.includes(e.code))
+
 }

+ 3 - 2
src/views/platinum/platinum_promotion_report/platinum_promotion_report_tab/index.vue

@@ -1,7 +1,8 @@
 <template>
   <!-- 推广报表: 推广报表-->
-  <div class="iframe-container ">
-    <iframe :src="url" style="border: 0;"></iframe>
+  <div class="iframe-container">
+    <iframe :src="url"
+            style="border: 0;"></iframe>
   </div>
 </template>