huangbin 4 gadi atpakaļ
vecāks
revīzija
cc7da4f2d0

+ 7 - 10
src/views/platinum/platinum_agreement/compoments/add/index.vue

@@ -82,13 +82,10 @@ import { defineComponent, ref } from 'vue';
 import { handleForm } from './setup';
 import { FormState } from './interface';
 import { validateAction } from '@/common/setup/form';
-import { AgreementType } from '@/common/constants/enumCommon';
-import { getAgreementTypeList } from '@/views/platinum/platinum_agreement/setup';
-import {requestResultLoadingAndInfo} from "@/common/methods/request/resultInfo";
-import {addCustomerInfoOperate} from "@/services/proto/accountinfo";
-import {agreementConfigOperate} from "@/services/proto/manager";
-import {QHJAgreementConfigOperateReq} from "@/services/proto/manager/interface";
-import {getUserId} from "@/services/bus/account";
+import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
+import { agreementConfigOperate } from '@/services/proto/manager';
+import { QHJAgreementConfigOperateReq } from '@/services/proto/manager/interface';
+import { getUserId } from '@/services/bus/account';
 import { handleArgreementType } from '@/views/platinum/platinum_agreement/setup';
 
 export default defineComponent({
@@ -112,10 +109,10 @@ export default defineComponent({
                     agreementname: param.agreementname, // string 协议名称
                     agreementtype: Number(param.agreementtype), // uint32 协议类型 - 1:注册 2:登录 3:交易
                     agreementcontent: param.agreementcontent, // string 协议内容
-                    operatesrc: 1,// uint32 操作来源 - 1:管理端 2:终端
-                    operateid: getUserId() // uint64 操作人
+                    operatesrc: 1, // uint32 操作来源 - 1:管理端 2:终端
+                    operateid: getUserId(), // uint64 操作人
                 };
-                requestResultLoadingAndInfo(agreementConfigOperate, reqParam, loading,  ['新增协议成功', '新增协议失败:']).then(() => {
+                requestResultLoadingAndInfo(agreementConfigOperate, reqParam, loading, ['新增协议成功', '新增协议失败:']).then(() => {
                     cancel();
                     context.emit('refresh');
                 });