Bladeren bron

Merge branch 'master' of http://www.baoxianzhanggui.com:8090/sxzgd/vue-insagent-pc

lihongxiao 3 jaren geleden
bovenliggende
commit
45045c1523

+ 11 - 3
src/http/moudules/insCompany.js

@@ -210,10 +210,10 @@ export const updateagreement = (agreementId,data) => {
 }
 /** 归属模版模块 */
 //分页获取
-export const pagebelong = (data) => {
+    export const pagebelong = (data) => {
     return axios({
-        url: '/ptl/attributionTemplate',
-        method: "get",
+        url: '/ptl/attributionTemplate/page',
+        method: "post",
         data
     })
 }
@@ -247,4 +247,12 @@ export const deletebelong = (id) => {
         method: "delete",
     })
 }
+// 
+export const getPtlInsAttributionTemplate = (data) => {
+    return axios({
+        url: '/ptl/attributionTemplate/getPtlInsAttributionTemplate',
+        method: "post",
+        data
+    })
+}
 /** 归属模版模块 */

+ 51 - 1
src/http/moudules/letter.js

@@ -319,7 +319,7 @@ export const gainAccidentSchemeList = (data) => {
 //获取允许报价的保险公司列表
 export const gainAllowQuoteList = () => {
     return axios({
-        url: "/esmInsCompany/gainAllowQuoteList",
+        url: "/insurance/order/getAgreementInsCompany",
         method: "get",
     })
 }
@@ -378,3 +378,53 @@ export const ycgainAccidentSchemeList = (data) => {
     })
 }
 
+/***
+    爬虫统一调用模块
+ * 
+ */
+
+// 报价
+export const pythonquote = (data) => {
+    return axios({
+        url: "/insurance/crawler/quote",
+        method: "post",
+        data
+    })
+}
+//核保
+export const pythonaudit=(data)=>{
+    return axios({
+        url:"/insurance/crawler/audit",
+        method:"post",
+        data
+    })
+}
+
+//提交影像
+export const pythonsubmitImage=(data)=>{
+    return axios({
+        url:"/insurance/crawler/submitImage",
+        method:"post",
+        data
+    })
+}
+//缴费状态查询
+export const pychonverifyPayment=(data)=>{
+    return axios({
+        url:"/insurance/crawler/verifyPayment",
+        method:"post",
+        data
+    })
+}
+
+//电子保单
+export const pythongetPolicyPrint=(data)=>{
+    return axios({
+        url:"/insurance/crawler/getPolicyPrint",
+        method:"post",
+        data
+    })
+}
+/***
+    爬虫统一调用模块
+ */

+ 155 - 16
src/views/AgreementManage/CarInsurance/AgreementEntry.vue

@@ -121,8 +121,8 @@
             </el-row>
             <el-row>
               <el-col :span="12">
-                <el-form-item label="合作公司" prop="insuranceCompany">
-                  <el-cascader style="width: 100%;" v-model="agreement.insuranceCompany" :show-all-levels="false"
+                <el-form-item label="合作公司" prop="insuranceCompanyId">
+                  <el-cascader style="width: 100%;" v-model="agreement.insuranceCompanyId" :show-all-levels="false"
                     :options="options" :props="optionProps" @change="handleChange" clearable></el-cascader>
                 </el-form-item>
               </el-col>
@@ -217,9 +217,9 @@
               <el-checkbox v-for="item in productList" :label="item.id" :key="item.id"
                 @change="event => pruductChange(event, item)">{{ item.name }}</el-checkbox>
             </el-checkbox-group>
-            <el-button type="success" :size="overSize" style="margin-left: 20px;"
+            <!-- <el-button type="success" :size="overSize" style="margin-left: 20px;"
               @click="otherproductsdialogVisible = true">
-              <i class="el-icon-s-operation"></i> 其他产品费用</el-button>
+              <i class="el-icon-s-operation"></i> 其他产品费用</el-button> -->
           </div>
           <div>
             <el-form ref="costform" :model="costform" label-width="100px" :size="overSize">
@@ -1091,6 +1091,59 @@
             </div>
           </div>
         </el-tab-pane>
+        <el-tab-pane label="保险公司账号配置" name="inscommany">
+          <el-form class="demo-ruleForm wrap-scrollbar scroll-style" :model="attributionform" ref="attributionform"
+            label-width="130px" size="small">
+            <el-row>
+              <el-col :span="12">
+                <el-form-item label="api类型:">
+                  <el-select class="widths1" v-model="attributionform.apiType" @change="apiChange">
+                    <el-option label="API" :value="1"></el-option>
+                    <el-option label="python" :value="2"></el-option>
+                  </el-select>
+                </el-form-item>
+              </el-col>
+              <div v-if="attributionform.apiType == 2 && attributionform.fields.length > 0">
+                <el-col :span="24">
+                  <div>
+                    <h4>账号配置</h4>
+                  </div>
+                </el-col>
+                <el-col :span="12">
+                  <el-form-item label="用户名:" prop="username">
+                    <el-input v-model="attributionform.username" placeholder="请输入用户名"></el-input>
+                  </el-form-item>
+                </el-col>
+                <el-col :span="12">
+                  <el-form-item label="密码:" prop="password">
+                    <el-input v-model="attributionform.password" placeholder="请输入密码"></el-input>
+                  </el-form-item>
+                </el-col>
+              </div>
+              <template v-if="attributionform.fields.length > 0">
+                <el-col :span="24">
+                  <div>
+                    <h4>配置参数</h4>
+                  </div>
+                </el-col>
+                <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" :span="8"
+                  v-for="(domain, index) in  attributionform.fields" :key="domain.index">
+                  <el-form-item :label="domain.label + ':'" :prop="'fields.' + index + '.value'" :rules="{
+                    required: true, message: domain.label + '不能为空', trigger: 'blur'
+                  }">
+                    <el-input class="widths1" v-model="domain.value" :type="domain.type"></el-input>
+                  </el-form-item>
+                </el-col>
+              </template>
+            </el-row>
+          </el-form>
+        </el-tab-pane>
+        <el-tab-pane label="授权" name="authorize">
+          <el-tree class="filter-tree" :data="treedata" accordion :props="defaultProps" show-checkbox node-key="id"
+            :filter-node-method="filterNode" :default-checked-keys="treekeys" ref="trees" @check="treechange"
+            :default-expand-all="expandshow">
+          </el-tree>
+        </el-tab-pane>
       </el-tabs>
       <!-- 底部区域 -->
       <span slot="footer" class="dialog-footer">
@@ -1477,7 +1530,7 @@ export default {
       totalSize: null,
       queryInfo: {
 
-        insuranceCompany: "",
+        insuranceCompanyId: "",
       },
       agreementdialogVisible: false, //控制协议对话框显示
       otherproductsdialogVisible: false,//其他产品费用对话框显示
@@ -1488,6 +1541,21 @@ export default {
       //产品list获取
       productList: [],//产品接口数据
       roductList1: ['车险'],//产品绑定list
+      treedata: [],//授权结构树
+      defaultProps: {//自定义参数
+        children: 'children',
+        label: 'name'
+      },
+      treekeys: [],
+      expandshow: false,
+      dept: [],//授权id数据
+      attributionform: {
+        fields: [],
+        apiType: "", //接口类型
+        templateId: "", //保险公司id
+        password: "",
+        username: "",
+      },
       agreement: {
         agreementAbbreviation: "",//协议简称	
         agreementCode: "",//协议代码
@@ -1498,7 +1566,7 @@ export default {
         dockingPhone: "",//联系方式(对接人)	
         endDate: "",//协议止期
         fileId: "",//	附件id
-        insuranceCompany: "",//合作公司	
+        insuranceCompanyId: "",//合作公司	
         matchType: "",//保单日期类型
         moneyTime: 0,//结算周期	
         moneyType: "",//佣金发放方式	
@@ -1835,9 +1903,18 @@ export default {
       activeTabs: "scheme",
       operType: "ADD", //'ADD','EDIT'
       dialogTitle: "新增协议",
+      attributionformRules: {
 
+        username: [
+          { required: true, message: "请输入账号", trigger: "blur" },
+        ],
+        password: [
+          { required: true, message: "请输入密码", trigger: "blur" },
+        ],
+      },
       addAgreementRules: {
         //新增协议的表单验证规则对象
+
         agreementCode: [
           { required: true, message: "请输入协议代码", trigger: "blur" },
         ],
@@ -1850,7 +1927,7 @@ export default {
         agreementType: [
           { required: true, message: "请选择协议类型", trigger: "blur" },
         ],
-        insuranceCompany: [
+        insuranceCompanyId: [
           { required: true, message: "请选择合作公司", trigger: "blur" },
         ],
         cooperationChannels: [
@@ -1937,7 +2014,7 @@ export default {
   watch: {
     containsSubChecked(val) {
       if (val) {
-        this.queryInfo.insuranceCompany = "";
+        this.queryInfo.insuranceCompanyId = "";
         this.findPage();
       } else {
         this.pageRequest.columnFilters.inscode.value = this.currentTreeNode.id;
@@ -2008,6 +2085,10 @@ export default {
       this.productList = res.data;
     })
     localStorage.setItem('rule', JSON.stringify(this.UnderwritingRules))
+    this.$api.dept.findDeptTree().then((res) => {
+      this.treedata = res.data;
+    })
+    this.defaultattributionform = JSON.parse(JSON.stringify(this.attributionform))
   },
   mounted() {
     this.findLeftTreeData();
@@ -2016,6 +2097,44 @@ export default {
     this.changeTreeWidth(200); // 初始化树的宽度
   },
   methods: {
+    //请求类型change
+    apiChange(e) {
+      let params = {
+        insCompanyId: this.agreement.insuranceCompanyId,
+        apiType: e,
+      }
+      this.$api.insCompany.getPtlInsAttributionTemplate(params).then(res => {
+        if (res.code == '200') {
+          this.attributionform.templateId = res.data.id;
+          this.attributionform.fields = res.data.fields;
+        } else {
+          this.attributionform.fields = [];
+          this.$message({
+            message: res.msg,
+            type: 'error'
+          });
+        }
+
+      })
+    },
+    //修改开关事件
+    isEditchange(val, id) {
+      this.attributionform.fields[id].isEdit = val;
+    },
+    //授权树节点过滤
+    filterNode(value, data) {
+      console.log(value, data)
+      if (!value) return true;
+      return data.name.indexOf(value) !== -1;
+    },
+    //获取选中节点
+    treechange(data, node) {
+      console.log(node)
+      this.dept = [];
+      node.checkedKeys.map(ele => {
+        this.dept.push(ele);
+      })
+    },
     //编辑事件
     uplatequery(index, row) {
       this.agreementId = row.id;
@@ -2023,10 +2142,19 @@ export default {
       this.dialogTitle = "协议编辑";
       this.$api.insCompany.agreementId(row.id).then(res => {
         if (res.code == '200') {
+          console.log(res)
           let scheme = res.data.scheme;
           this.agreement = res.data.agreement;
           this.costform.scheme = scheme;
           this.UnderwritingRules = res.data.underwritingRules;
+          this.attributionform = res.data.ptlAgreementAttribution;
+          if (res.data.dept.length > 0) {
+            res.data.dept.map(ele => {
+              this.treekeys.push(ele.deptId);
+              this.dept.push(ele.deptId);
+              return ele;
+            })
+          }
           scheme.map(ele => {
             this.roductList1.push(ele.productId)
             return ele;
@@ -2289,8 +2417,13 @@ export default {
         if (this.costform.scheme.length > 0) {
           this.costform.scheme = [];
         }
-        // let data = localStorage.getItem('rule')
-        // this.UnderwritingRules = JSON.parse(data)
+        this.attributionform = JSON.parse(JSON.stringify(this.defaultattributionform))
+        if (this.treekeys.length) {
+          this.$refs.trees.setCheckedKeys([])
+          this.expandshow = false;
+          this.parentkeys = [];
+        }
+
       }
     },
     //获取所有机构列表Start
@@ -2354,7 +2487,7 @@ export default {
     onZTreeClick: function (evt, treeId, treeNode) {
       // 点击事件
       this.containsSubChecked = false;
-      this.queryInfo.insuranceCompany = treeNode.id;
+      this.queryInfo.insuranceCompanyId = treeNode.id;
       this.findPage();
     },
     onZTreeCreated: function (ztreeObj) {
@@ -2408,7 +2541,7 @@ export default {
       let parmas = {
         pageNum: this.pageNum,
         pageSize: this.pageSize,
-        insuranceCompany: this.queryInfo.insuranceCompany
+        insuranceCompanyId: this.queryInfo.insuranceCompanyId
       }
       this.$api.insCompany.agreementPage(parmas).then(res => {
         this.pageResult = res.data.content;
@@ -2466,7 +2599,8 @@ export default {
     //-- formatter end--
     // 选择合作公司Start
     handleChange(value) {
-      this.agreement.insuranceCompany = value[value.length - 1];
+      console.log(value)
+      this.agreement.insuranceCompanyId = value[value.length - 1];
       this.carareaoptions = [];
       this.rulesForm.cancity = [];
       if (value.length == 0 || value.length == 1) {
@@ -2474,7 +2608,7 @@ export default {
         for (let i = 0; i < citydata.rawCitiesData.length; i++) {
           if (
             citydata.rawCitiesData[i].code.substring(0, 2) ==
-            this.agreement.insuranceCompany.substring(6, 8)
+            this.agreement.insuranceCompanyId.substring(6, 8)
           ) {
             this.carareaoptions = citydata.rawCitiesData[i].sub;
           }
@@ -2484,7 +2618,7 @@ export default {
       this.$api.insCompany
         .getInsCompanyById(value[value.length - 1])
         .then((res) => {
-          this.agreement.insureshort = res.data.namesimple;
+          this.agreement.insuranceCompany = res.data.namesimple;
         });
     },
     // 选择合作公司end
@@ -2569,7 +2703,10 @@ export default {
           agreement: this.agreement,
           scheme: this.costform.scheme,
           underwritingRules: this.UnderwritingRules,
+          attribution: this.attributionform,
+          dept: this.dept
         }
+        console.log(params)
         this.$api.insCompany.addagreement(params).then(res => {
           if (res.code == '200') {
             this.$message({
@@ -2580,13 +2717,15 @@ export default {
             this.findPage();
           }
         })
-        console.log(params)
       } else {
         let upparams = {
           agreement: this.agreement,
           scheme: this.costform.scheme,
           underwritingRules: this.UnderwritingRules,
+          attribution: this.attributionform,
+          dept: this.dept
         }
+        console.log(upparams)
         this.$api.insCompany.updateagreement(this.agreementId, upparams).then(res => {
           if (res.code == '200') {
             this.$message({

+ 1 - 6
src/views/Intro/Intro.vue

@@ -4,12 +4,7 @@
         @selectChange="selectChange" @inputINPUT="inputINPUT" @inputChange="inputChange"
         @querySelectValue="querySelectValue" @formSwitchChange="formSwitchChange" @buttonClick="buttonClick">
       </MyForm> -->
-      <h2>项目介绍</h2>
-        <ul>
-          <li>基于 Spring Boot、Spring Cloud、Vue、Element 的 Java EE 快速开发平台</li>
-          <li>旨在提供一套简洁易用的解决方案,帮助用户有效降低项目开发难度和成本</li>
-          <li>博客提供项目开发过程同步系列教程文章,手把手的教你如何开发同类系统</li>
-        </ul>
+    
   </div>
 </template>
 <script>

File diff suppressed because it is too large
+ 159 - 535
src/views/Letter/Letter.vue


+ 0 - 1
src/views/Letter/Orderlist.vue

@@ -559,7 +559,6 @@
 
                     <!-- 优惠政策 -->
                     <el-card id="demo4">
-
                         <el-row class="header">
                             <el-col>优惠政策</el-col>
                         </el-row>

+ 0 - 1
src/views/Sys/Companyconfiguration.vue

@@ -177,7 +177,6 @@ export default {
         }
     },
     methods: {
-      
         //获取选中节点
         treechange(data, node) {
             var treelist = [];

+ 42 - 75
src/views/Sys/Inscommanytemplate.vue

@@ -9,7 +9,8 @@
             highlight-current-row stripe
             :header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#606266' }">
             <el-table-column prop="id" label="ID" width="200" align="center"></el-table-column>
-            <el-table-column prop="insCompanyId" label="保险公司" width="100" align="center"></el-table-column>
+            <el-table-column prop="insCompanyId" label="保险公司ID" width="100" align="center"></el-table-column>
+            <el-table-column prop="insCompanyName" label="保险公司简称" width="100" align="center"></el-table-column>
             <el-table-column prop="fields" label="配置参数" align="center" :formatter="configureformatter"></el-table-column>
             <el-table-column label="操作" align="center" width="200" fixed="right">
                 <template slot-scope="scope">
@@ -26,15 +27,15 @@
                 :current-page="pageNum" :page-size="pageSize" :page-sizes="[10, 20, 50, 100]"
                 layout="total, sizes, prev, pager, next, jumper" :total="totalSize"></el-pagination>
         </div>
-        <el-dialog title="续保配置新增" :visible.sync="dialogVisible" width="1000px">
+        <el-dialog :title="dilogtitle" :visible.sync="dialogVisible" width="1000px">
             <el-form class="demo-ruleForm wrap-scrollbar scroll-style" :model="attributionform" ref="attributionform"
                 label-width="130px" size="small">
                 <el-row>
                     <el-col :span="12">
                         <el-form-item label="请求类型:">
                             <el-select class="widths1" v-model="attributionform.apiType" @change="apiChange">
-                                <el-option label="API" value="1"></el-option>
-                                <el-option label="python" value="2"></el-option>
+                                <el-option label="API" :value="1"></el-option>
+                                <el-option label="python" :value="2"></el-option>
                             </el-select>
                         </el-form-item>
                     </el-col>
@@ -53,7 +54,7 @@
                             </div>
                         </el-col>
                         <el-col :span="12" v-for="(apiitem, apiindex) in attributionform.api" :key="apiindex">
-                            <el-form-item :label="apiitem.name + ':'">
+                            <el-form-item :label="apiitem.apiName + ':'">
                                 <el-input v-model="apiitem.url"  placeholder="请输入指定链接"  ></el-input>
                             </el-form-item>
                         </el-col>
@@ -64,7 +65,7 @@
                         </div>
                     </el-col>
                     <el-col v-for="(configureitem, configureindex) in attributionform.fields" :key="configureindex">
-                        <el-col :span="12">
+                        <el-col :span="10">
                             <el-form-item label="字段名:">
                                 <el-input v-model="configureitem.field" class="widths1" placeholder="请输入字段名"></el-input>
                             </el-form-item>
@@ -72,7 +73,7 @@
                                 <el-input v-model="configureitem.label" class="widths1" placeholder="标签名"></el-input>
                             </el-form-item>
                         </el-col>
-                        <el-col :span="12">
+                        <el-col :span="10">
                             <el-form-item label="表单类型:">
                                 <el-radio-group v-model="configureitem.type">
                                     <el-radio label="text"></el-radio>
@@ -81,37 +82,34 @@
 
                             </el-form-item>
                             <el-form-item label="是否可修改:">
-                                <el-switch v-model="configureitem.edit"
+                                <el-switch v-model="configureitem.isEdit"
                                     @change="(event) => isEditchange(event, configureindex)" class="widths1"></el-switch>
                             </el-form-item>
                         </el-col>
-                        <el-col :span="4" v-show="configureindex != 0 && show">
+                        <el-col :span="4" >
                             <el-button @click.prevent="removeDomain(configureitem)" size="small">删除</el-button>
                         </el-col>
                     </el-col>
                 </el-row>
             </el-form>
             <span slot="footer" class="dialog-footer">
-                <el-button size="small" @click="configuration" v-if="show">新增配置</el-button>
+                <el-button size="small" @click="configuration" >新增配置</el-button>
                 <el-button size="small" @click="dialogVisible = false">取 消</el-button>
                 <el-button size="small" type="primary" @click="submitForm('attributionform')">提 交</el-button>
             </span>
         </el-dialog>
-
+        
     </div>
 </template>
 <script>
 export default {
     data() {
         return {
-            switchvalue: false, //开启开关
-            updatevalue: false, //修改开关
+            dilogtitle:"新增",
             filterText: "",
             treedata: [], //树形数据
-            show: true,
             loading: false, //加载效果
-            dialogVisible: false, //归属信息弹框
-            empowerdialogVisible: false, //授权弹框
+            dialogVisible: false, //新增弹框
             pageNum: 1, //页数
             pageSize: 20, //条数
             totalSize: null, //总数
@@ -121,7 +119,7 @@ export default {
                 fields: [
                     {
                         field: "",
-                        edit: false,
+                        isEdit: false,
                         label: "",
                         type: "",
                         value: "",
@@ -130,34 +128,35 @@ export default {
                 apiType: "", //接口类型
                 insCompanyId: "", //保险公司id
             },
+            attributionform1:{},
             pythonApi: [
                 {
-                    name: "归属配置",
+                    apiName: "归属配置",
                     apiType: 1,
                     url: "",
                 },
                 {
-                    name: "报价",
+                    apiName: "报价",
                     apiType: 2,
                     url: "",
                 }, {
-                    name: "影像上传",
+                    apiName: "影像上传",
                     apiType: 3,
                     url: "",
                 }, {
-                    name: "核保",
+                    apiName: "核保",
                     apiType: 4,
                     url: "",
                 }, {
-                    name: "缴费查询",
+                    apiName: "缴费查询",
                     apiType: 5,
                     url: "",
                 }, {
-                    name: "保单下载",
+                    apiName: "保单下载",
                     apiType: 6,
                     url: "",
                 }, {
-                    name: "非车险查询",
+                    apiName: "非车险查询",
                     apiType: 7,
                     url: "",
                 }
@@ -195,7 +194,7 @@ export default {
                 fields: [
                     {
                         field: "",
-                        edit: false,
+                        isEdit: false,
                         label: "",
                         type: "",
                         value: "",
@@ -214,8 +213,13 @@ export default {
             return data;
         },
         findpage() {
+            let params={
+                pageNum:this.pageNum,
+                pageSize:this.pageSize,
+                insCompanyId:"",
+            }
             this.$api.insCompany
-                .pagebelong(this.pageNum, this.pageSize)
+                .pagebelong(params)
                 .then((res) => {
                     if (res.code == "200") {
                         this.pageResult = res.data.content;
@@ -233,64 +237,29 @@ export default {
         configuration() {
             this.attributionform.fields.push({
                 field: "",
-                edit: false,
+                isEdit: false,
                 label: "",
                 type: "",
                 value: "",
             });
         },
-        //开启开关事件
-        isOpenchange(val) {
-            if (val) {
-                this.attributionform.isOpen = 1;
-            } else {
-                this.attributionform.isOpen = 0;
-            }
-        },
         //修改开关事件
         isEditchange(val, id) {
-            this.attributionform.fields[id].edit = val;
-        },
-        //获取选中节点
-        treechange(data, node) {
-            var treelist = [];
-            node.checkedKeys.map((ele) => {
-                treelist.push(ele);
-            });
-            this.treeparams.deptIds = treelist;
-        },
-        //节点过滤
-        filterNode(value, data) {
-            console.log(value, data);
-            if (!value) return true;
-            return data.name.indexOf(value) !== -1;
+            this.attributionform.fields[id].isEdit = val;
         },
         //选择保险公司获取归属模板
         companyChange(e) { },
         apiChange(e){
             e==2? this.attributionform['api']=this.pythonApi:"";
-            console.log(this.attributionform)
         },
-        //提交授权
-        // treesubmit() {
-        //     if (this.treeparams.deptIds.length > 0) {
-        //         this.$api.insCompany.authorize(this.treeparams).then((res) => {
-        //             if (res.code == "200") {
-        //                 this.$message({ message: "保存成功", type: "success" });
-        //                 this.empowerdialogVisible = false;
-        //             }
-        //         });
-        //     } else {
-        //         this.$message({ message: "未选择归属机构", type: "warning" });
-        //     }
-        // },
+     
         //提交表单
         submitForm(formName) {
             this.$refs[formName].validate((valid) => {
                 if (valid) {
                     if (this.id) {
                         this.$api.insCompany
-                            .updateTemplate(this.id, this.attributionform)
+                            .updatebelong(this.id, this.attributionform)
                             .then((res) => {
                                 if (res.code == "200") {
                                     this.$message({ message: "修改成功", type: "success" });
@@ -301,6 +270,7 @@ export default {
                                 }
                             });
                     } else {
+                        console.log(this.attributionform)
                         this.$api.insCompany
                             .addbelong(this.attributionform)
                             .then((res) => {
@@ -318,8 +288,7 @@ export default {
         },
         //删除操作
         empowerBtn(index, row) {
-            this.$api.insCompany.deleteTemplate(row.id).then((res) => {
-                console.log(res);
+            this.$api.insCompany.deletebelong(row.id).then((res) => {
                 if (res.code == "200") {
                     this.findpage();
                     this.$message({ message: res.msg, type: "success" });
@@ -328,14 +297,12 @@ export default {
         },
         //编辑操作
         CloseEdit(index, row) {
-            (this.show = false), (this.attributionform = row);
-            this.id = row.id;
-            this.dialogVisible = true;
-            if (row.isOpen == 1) {
-                this.switchvalue = true;
-            } else {
-                this.switchvalue = false;
-            }
+            this.dilogtitle="编辑"
+            this.id=row.id;
+           this.$api.insCompany.querybelong(row.id).then(res=>{
+            this.attributionform=res.data;
+            this.dialogVisible=true;
+           })
         },
         // 设置每页条数
         applyhandleSizeChange(val) {

Some files were not shown because too many files changed in this diff