huangbin 4 лет назад
Родитель
Сommit
44b8c8ce06

+ 2 - 5
src/views/platinum/platinum_agreement/compoments/delete/index.vue

@@ -62,13 +62,9 @@
 </template>
 
 <script lang="ts">
-import { defineComponent, PropType, ref, watchEffect } from 'vue';
-import { closeModal } from '@/common/setup/modal/index';
+import { defineComponent, PropType } from 'vue';
 import { Des, handleDesList } from '@/common/components/commonDes';
 import { QhjAgreementChangeLog, QhjAgreementConfig } from '@/services/go/ermcp/qhj/interface';
-import { formatValue } from '@/common/methods';
-import { getAgreementTypeName } from '@/common/constants/enumsName';
-import { handleArgreementType } from '../../setup';
 import { queryTableList } from '@/common/setup/table';
 import { queryAgreementChangeLog } from '@/services/go/ermcp/qhj';
 import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
@@ -113,6 +109,7 @@ export default defineComponent({
             content,
             getContent,
             columns,
+            loading,
             cancel,
             desList,
             visible,

+ 1 - 1
src/views/platinum/platinum_agreement/compoments/detail/index.vue

@@ -10,7 +10,6 @@
     <template #footer>
       <a-button key="submit"
                 type="primary"
-                :loading="loading"
                 @click="cancel">关闭</a-button>
     </template>
     <a-form class="inlineForm">
@@ -89,6 +88,7 @@ export default defineComponent({
             content,
             getContent,
             columns,
+            loading,
             cancel,
             desList,
             visible,

+ 1 - 0
src/views/platinum/platinum_agreement/compoments/resume/index.vue

@@ -109,6 +109,7 @@ export default defineComponent({
             visibleContent,
             content,
             getContent,
+            loading,
             columns,
             cancel,
             desList,

+ 1 - 0
src/views/platinum/platinum_agreement/compoments/stop/index.vue

@@ -112,6 +112,7 @@ export default defineComponent({
             columns,
             cancel,
             desList,
+            loading,
             visible,
             tableList,
             submit,

+ 1 - 5
src/views/platinum/platinum_agreement/list/tab/index.vue

@@ -39,21 +39,17 @@
 </template>
 
 <script lang="ts">
-import { defineComponent, initData, getTableColumns, getTableEvent, queryTableList, _getBtnList } from '@/common/export/table';
+import { defineComponent, queryTableList, _getBtnList } from '@/common/export/table';
 import { queryAgreementConfig } from '@/services/go/ermcp/qhj';
 import { QhjAgreementConfig } from '@/services/go/ermcp/qhj/interface';
 import Filter from '../../compoments/filter/index.vue';
 import { getAgreementTypeName } from '@/common/constants/enumsName';
 import BtnList from '@/common/components/btnList/index.vue';
 import { handleArgreementType } from '../../setup';
-import { getBtnList_ } from '@/common/setup/table/button';
-import { BtnList as btnType } from '@/common/components/btnList/interface';
-import { handleModalComponent } from '@/common/setup/asyncComponent';
 import contextMenu from '@/common/components/contextMenu/temp.vue';
 
 import { defineAsyncComponent } from 'vue';
 import { ModalEnum } from '@/common/constants/modalNameEnum';
-import { handleContextMenu } from '@/common/components/contextMenu/setup';
 import { ComposeTableParam, handleComposeTable } from '@/common/setup/table/event';
 
 const Detail = defineAsyncComponent(() => import('../../compoments/detail/index.vue'));

+ 12 - 1
src/views/platinum/platinum_broker_management/platinum_broker_management_tab/index.vue

@@ -22,7 +22,18 @@ export default defineComponent({
         console.log('list', list);
 
         initData(() => {
-            url.value = `${serviceURL.pcMangerUrl}${list[0].url}?token=${token}&tabindex=1&resourcePCMenu=`;
+            if (list.length) {
+                let resourcePCMenu = 'resourcePCMenu=info';
+                const children = list[0].children;
+                const fn = (code: string) => children.find((e) => e.code === code);
+                if (fn('platinum_broker_management_check')) {
+                    resourcePCMenu += ':check';
+                }
+                if (fn('platinum_broker_management_resume')) {
+                    resourcePCMenu += ':active';
+                }
+                url.value = `${serviceURL.pcMangerUrl}${list[0].url}?token=${token}&tabindex=1&${resourcePCMenu}`;
+            }
         });
         return { url };
     },