Просмотр исходного кода

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

lihongxiao 3 лет назад
Родитель
Сommit
166699fca3

+ 2 - 2
config/dev.env.js

@@ -6,8 +6,8 @@ module.exports = merge(prodEnv, {
   NODE_ENV: '"development"',
   ENV_CONFIG:'"dev"',
   // BASE_URL: '"http://39.98.239.48/web-api"',//测试服务器
-  // BASE_URL: '"http://192.168.0.111:8080/"' 
-  BASE_URL: '"http://192.168.0.14:8080/"' 
+  BASE_URL: '"http://192.168.0.115:8080/"'
+  // BASE_URL: '"http://192.168.0.14:8080/"'
 
 })
 

+ 1 - 1
src/App.vue

@@ -1,7 +1,7 @@
 <template>
   <div id="app">
     <router-view v-if="isRouterAlive" />
-    <el-backtop :bottom="16" :right="60" :visibility-height="1100" class="backtop">
+    <el-backtop :bottom="16" :right="20" :visibility-height="1100" class="backtop">
       <div><i class="el-icon-caret-top" style="color:#ee7000;"></i></div>
     </el-backtop>
   </div>

+ 8 - 2
src/http/moudules/insCompany.js

@@ -7,7 +7,13 @@ export const findLeftInsTree = (data) => {
         data
     })
 }
-
+//获取顶级保险公司
+export const gainTopList = (data) => {
+  return axios({
+      url: '/esmInsCompany/gainTopList?type='+data,
+      method: 'get',
+  })
+}
 //通过id得到一个保险公司实体
 export const getInsCompanyById = (id) => {
     return axios({
@@ -255,7 +261,7 @@ export const deletebelong = (id) => {
         method: "delete",
     })
 }
-// 
+//
 export const getPtlInsAttributionTemplate = (data) => {
     return axios({
         url: '/ptl/attributionTemplate/getPtlInsAttributionTemplate',

Разница между файлами не показана из-за своего большого размера
+ 461 - 187
src/views/AgreementManage/CarInsurance/AgreementEntry.vue


+ 104 - 44
src/views/Esm/Esmcompany.vue

@@ -3,17 +3,27 @@
     <div class="main-container">
       <div class="page page-product-manage">
         <div class="com-pro-search">
-          <el-form label-position="left" ref="searchForm" size="medium" :model="searchForm" label-width="90px">
+          <el-form label-position="left" ref="searchForm" size="small" :model="searchForm" label-width="100px">
             <el-row>
               <el-col :span="6">
-                <el-form-item label="部门名称:" prop="classname">
-                  <el-input clearable v-model="searchForm.classname" placeholder="请输入部门名称" style="width: 85%"></el-input>
+                <el-form-item label="供应商名称:" prop="classname">
+                  <el-input clearable v-model="searchForm.classname" placeholder="请输入供应商名称"
+                    style="width: 250px;"></el-input>
                 </el-form-item>
+
               </el-col>
-              <el-col :span="6" style="margin-top: 2px">
-                <el-button size="medium" type="primary" style="background-color: #00bc70; border: 1px solid #00bc70"
+              <el-col :span="6">
+                <el-form-item label="供应商类型:" prop="classname">
+                  <el-select v-model="searchForm.type" placeholder="请选择供应商" style="width: 250px;">
+                    <el-option label="保司" value="1"></el-option>
+                    <el-option label="渠道" value="2"></el-option>
+                  </el-select>
+                </el-form-item>
+              </el-col>
+              <el-col :span="4" style="margin-top: 2px">
+                <el-button size="small" type="primary" style="background-color: #00bc70; border: 1px solid #00bc70"
                   @click="searchInfor()">搜索</el-button>
-                <el-button size="medium" style="background-color: #ffffff; border: 1px solid c6e2ff"
+                <el-button size="small" style="background-color: #ffffff; border: 1px solid c6e2ff"
                   @click="resetfrom()">重置</el-button>
               </el-col>
             </el-row>
@@ -28,14 +38,15 @@
             background: '#F2F7FC',
             fontWeight: '900',
             color: '#606266',
-          }" size="small"  @row-click="handleRowClick">
+          }" size="small" @row-click="handleRowClick">
           <el-table-column prop="name" label="供应商名称"> </el-table-column>
-          <el-table-column prop="id" label="编号" >
+          <el-table-column prop="id" label="编号">
           </el-table-column>
-          <el-table-column prop="address" label="保司类型">
+          <el-table-column prop="type" label="保司类型">
             <template slot-scope="scope">
-              <el-tag v-if="scope.row.openQuote == '1'" type="primary">开启</el-tag>
-              <el-tag v-if="scope.row.openQuote == '0' || scope.row.openQuote == null" type="success">关闭</el-tag>
+              <el-tag  v-if="scope.row.type == '0'"  size="small">渠道</el-tag>
+              <el-tag  v-if="scope.row.type == '1'" type="danger" size="small">财险</el-tag>
+              <el-tag  v-if="scope.row.type == '2'" type="warning" size="small">寿险</el-tag>
             </template>
           </el-table-column>
           <!-- <el-table-column prop="address" label="状态" width="180">
@@ -50,8 +61,8 @@
             <template slot-scope="scope">
               <el-button type="text" size="mini" icon="el-icon-edit" @click="handleTableEdit(scope.row)">修改</el-button>
               <el-button type="text" size="mini" icon="el-icon-plus" @click="handleAddCompany(scope.row)">新增</el-button>
-              <el-button type="text" size="mini" icon="el-icon-delete"
-                @click="handleTableBatchDelete(scope.row)">删除</el-button>
+              <el-button v-if="['0', '2'].includes(scope.row.type) || scope.row.childnode" type="text" size="mini"
+                icon="el-icon-delete" @click="handleTableBatchDelete(scope.row)">删除</el-button>
             </template>
           </el-table-column>
         </el-table>
@@ -62,12 +73,12 @@
     <el-dialog v-dialogDrag :title="dialogTitle" :visible.sync="dialogVisible" width="900px" @close="closeVisible"
       :close-on-click-modal="false">
       <el-form :model="dataForm" :rules="rules" ref="dataForm" label-width="120px" size="small">
-        <el-row >
+        <el-row>
           <el-col :span="8" v-if="operType == 'ADD2'">
             <el-form-item label="选择公司地区" prop="area">
-            <el-cascader size="small" v-model="dataForm.area" :options="areaList" :props="optionProps"
-              @change="areaHandleChange"></el-cascader>
-            <!-- <el-cascader
+              <el-cascader size="small" v-model="dataForm.area" :options="areaList" :props="optionProps"
+                @change="areaHandleChange"></el-cascader>
+              <!-- <el-cascader
               size="small"
               v-model="area"
               :options="areaList"
@@ -76,20 +87,24 @@
               filterable
               clearable
             ></el-cascader> -->
-          </el-form-item>
-        </el-col>
+            </el-form-item>
+          </el-col>
           <el-col :span="8">
             <el-form-item label="保司类型" prop="type">
-              <el-select v-model="dataForm.type" placeholder="请选择供应商类型">
-                <el-option
-                  v-for="item in typeOptions"
-                  :key="item.dictValue"
-                  :label="item.dictTag"
+              <el-select v-model="dataForm.type" placeholder="请选择供应商类型" @change="typeOptionsChange"
+                :disabled="operType == 'ADD2' || operType == 'EDIT'">
+                <el-option v-for="item in typeOptions" :key="item.dictValue" :label="item.dictTag"
                   :value="item.dictValue">
                 </el-option>
               </el-select>
             </el-form-item>
           </el-col>
+          <el-col :span="8" v-if="operType == 'ADD3'">
+            <el-form-item label="code编码" prop="code">
+              <el-input v-model="dataForm.code" placeholder="请输入code编码" maxlength="4" type="text"
+                show-word-limit></el-input>
+            </el-form-item>
+          </el-col>
         </el-row>
         <el-row>
           <el-col :span="8">
@@ -190,6 +205,7 @@ export default {
   },
   data() {
     return {
+      type: "",
       value: false,
       /**Split 开始 */
       leftSplitWidth: 20,
@@ -235,7 +251,7 @@ export default {
           },
         },
       },
-      typeOptions:[],
+      typeOptions: [],
       columns: [
         { prop: "id", label: "供应商编码", minWidth: 80, sortable: false },
         { prop: "name", label: "供应商名称", minWidth: 80, sortable: false },
@@ -258,10 +274,12 @@ export default {
         parentId: "0", //上级编码
         namesimple: "", //保险公司简称
         remark: "", //备注
-        orderNum: 0,
+        orderNum: 0,//排序
         logo: "",
-        openQuote: 0, //状态0为关闭,1为开启
         cnName: "", //拼音
+        code: "",//编码
+        type: "",//保司类型
+
       },
       imgList1: [],
       rules: {
@@ -280,6 +298,9 @@ export default {
         area: [
           { required: true, message: "请选择供应商名称", trigger: "change" },
         ],
+        code: [
+          { required: true, message: "请输入code编码", trigger: "blur" },
+        ],
         name: [
           { required: true, message: "请输入供应商名称", trigger: "blur" },
         ],
@@ -300,17 +321,32 @@ export default {
       },
       searchForm: {
         classname: "",
-        status: "",
+        type: "",
       },
       isshow: false,
       // 是否禁用上传
       uploadDisabled: false,
       //点击表格展开折叠
       expanded: false,
+      childnode: false,//子节点标识
     };
   },
+  watch: {
+    "dataForm.code": {
+      handler(val, oldVal) {
+        if (val) {
+          this.dataForm.code = val.toUpperCase();
+          this.dataForm.id = val + this.type + '000000'
+        }
+
+      },
+      deep: true
+    },
+  },
   mounted() {
     this.findLeftTreeData();
+    // 字典
+    this.getDicType("supplierTypeEnum", 'typeOptions')
     //用像素初始化左边的split的宽度
     // this.changeTreeWidth(240); // 初始化树的宽度
     this.ztreeNodes.forEach((val) => {
@@ -318,6 +354,10 @@ export default {
     });
   },
   methods: {
+    typeOptionsChange(e) {
+      this.type = e;
+      this.dataForm.id = e + '000000'
+    },
     // 搜索
     searchInfor() {
       this.findLeftTreeData();
@@ -329,7 +369,6 @@ export default {
         console.log(this.$refs.expandTable);
         this.$refs.expandTable.toggleRowExpansion(i, isExpand);
         if (i.children) {
-          console.log("kkk");
           this.forTableData(i.children, isExpand);
         }
       });
@@ -371,15 +410,28 @@ export default {
     },
     /**Split 结束 */
     //--tree begin-------
+
+    // 递归函数 ,操作子节点
+    addTypeToChildren(node) {
+      if (node.children.length === 0) {
+        return;
+      }
+      // 给当前节点的每个子节点添加type数据
+      for (const child of node.children) {
+        child.childnode = true;
+        this.addTypeToChildren(child);
+      }
+    },
     // 获取树数据
-    findLeftTreeData: function () {
-      var that = this;
-      const params = new URLSearchParams();
-      params.append("name", that.searchForm.classname);
-      that.$api.insCompany.findLeftInsTree(params).then((res) => {
-        that.ztreeNodes = res.data;
+    findLeftTreeData() {
+      this.$api.insCompany.findLeftInsTree(this.searchForm).then((res) => {
+        for (const node of res.data) {
+          this.addTypeToChildren(node)
+        }
+        this.ztreeNodes = res.data;
       });
     },
+
     onZTreeClick: function (evt, treeId, treeNode) {
       // 点击事件
       this.currentTreeNode = treeNode;
@@ -418,14 +470,14 @@ export default {
         .then(data != null ? data.callback : "");
     },
     areaHandleChange(value) {
+      console.log(value)
       if (value != "") {
         this.dataForm.id =
-          this.dataForm.parentId.substring(0, 6) + value[value.length - 1];
+          this.dataForm.parentId.substring(0, 4) + this.dataForm.type + value[value.length - 1];
       } else {
         this.dataForm.id = "";
       }
     },
-
     handleAddType() {
       // 添加保险总公司
       this.operType = "ADD3";
@@ -434,24 +486,31 @@ export default {
       this.dialogVisible = true;
       this.imgList1 = [];
       this.uploadDisabled = false;
-      this.$api.insCompany.dicType("supplierTypeEnum").then(res=>{
-        if(res.code==200){
-          this.typeOptions=res.data.ddList
-        }
-      })
+
     },
     handleAddCompany(row) {
       this.operType = "ADD2";
       this.dialogTitle = "新增保险分公司";
       this.dataForm.parentId = row.id;
+      this.dataForm.type = row.type;
       this.dataForm.logo = "";
       this.dataForm.openQuote = row.openQuote;
       this.dialogVisible = true;
       this.imgList1 = [];
       this.uploadDisabled = false;
     },
+    //系统字典统一调用
+    getDicType(type, options) {
+      this.$api.insCompany.dicType(type).then(res => {
+        if (res.code == 200) {
+          this[options] = res.data.ddList
+        }
+      })
+    },
     handleTableEdit(row) {
+      this.childnode = row.childnode;
       this.operType = "EDIT";
+      this.dialogTitle = "信息编辑";
       //查询详情
       this.$api.insCompany.getInsCompanyById(row.id).then((res) => {
         this.dataForm.id = res.data.id;
@@ -463,6 +522,7 @@ export default {
         this.dataForm.cnName = res.data.cnName;
         this.dataForm.openQuote = res.data.openQuote;
         this.dataForm.logo = res.data.logo;
+        this.dataForm.type = res.data.type;
         if (res.data.openQuote == "1") {
           this.value = true;
         } else {
@@ -475,7 +535,7 @@ export default {
           this.imgList1.push({ url: res.data.logo });
           this.uploadDisabled = true;
         }
-      this.dialogVisible = true;
+        this.dialogVisible = true;
 
       });
     },
@@ -518,7 +578,7 @@ export default {
     },
     //提交确认
     submitForm(formName) {
-      console.log(this.dataForm,1111111 )
+      console.log(this.dataForm, 1111111)
       this.$refs[formName].validate((valid) => {
         if (valid) {
           if (this.operType == "ADD1" || this.operType == "ADD2" || this.operType == "ADD3") {

+ 84 - 0
src/views/PeopleManage/Agent/AgentManage.vue

@@ -5,26 +5,39 @@
         <!-- 左侧树Start -->
         <SplitArea :size="leftSplitWidth" :minSize="240">
           <div>
+            <div>
             <div>
               <!-- <el-checkbox v-model="containsSubDeptChecked"
                 >包含下级机构</el-checkbox
               > -->
 
+              <kt-button style="
               <kt-button style="
                   background-color: #ffc000;
                   border: #ffc000;
                 " icon="fa fa-plus" label="添加人员" type="primary" perms="sys:agent:add" @click="handleAddButton" />
+                " icon="fa fa-plus" label="添加人员" type="primary" perms="sys:agent:add" @click="handleAddButton" />
             </div>
             <el-divider></el-divider>
             <!-- 左侧树形结构 -->
             <el-tree :data="ztreeNodes" :props="{ children: 'children', label: 'name' }" node-key="id"
               :default-expanded-keys="['9']" @node-click="onZTreeClick"></el-tree>
+            <el-tree :data="ztreeNodes" :props="{ children: 'children', label: 'name' }" node-key="id"
+              :default-expanded-keys="['9']" @node-click="onZTreeClick"></el-tree>
           </div>
         </SplitArea>
         <!-- 左侧树End -->
 
         <!-- 右侧列表页面Start -->
         <SplitArea :size="rightSplitWidth">
+          <templateTable :formList="formList" :searchData.sync="queryFrom" :tableConfig="tableConfig" :btnGroup="btnGroup"
+            :data="pageResult" @getList="findPage" @handleSearchList="handleSearchList" :pagination="pageData">
+            <div style="display:inline-block;" slot="upload">
+              <el-upload class="upload" ref="upload" :show-file-list="false" :limit="1" action="#"
+                :http-request="carfrontChange" :multiple="false">
+                <el-button type="primary" size="small" @click="$refs.upload.clearFiles()">导入新用户</el-button>
+              </el-upload>
+            </div>
           <templateTable :formList="formList" :searchData.sync="queryFrom" :tableConfig="tableConfig" :btnGroup="btnGroup"
             :data="pageResult" @getList="findPage" @handleSearchList="handleSearchList" :pagination="pageData">
             <div style="display:inline-block;" slot="upload">
@@ -39,6 +52,7 @@
       </Split>
     </el-main>
 
+    <!-- 新新增修改界面 -->
     <!-- 新新增修改界面 -->
 
     <el-dialog :title="dialogTitle" width="60%" :visible.sync="dialogVisible" :close-on-click-modal="false"
@@ -283,12 +297,17 @@ export default {
           prop: "status",
           type: "select",
           options: JSON.parse(localStorage.getItem('user_statusoptions'))
+          options: JSON.parse(localStorage.getItem('user_statusoptions'))
         },
       ],
+      btnGroup: [{
+        name: 'upload',
+        slot: true
       btnGroup: [{
         name: 'upload',
         slot: true
       },],
+      tableConfig: {
       tableConfig: {
         columns: [
           // 数据列
@@ -297,9 +316,24 @@ export default {
             prop: "pdeptName",
             label: "机构名称", type: 'text',
           },
+          // 数据列
+          { prop: "deptId", label: "部门编码", type: 'text' },
+          {
+            prop: "pdeptName",
+            label: "机构名称", type: 'text',
+          },
 
           { prop: "deptName", label: "部门名称", type: 'text', },
 
+          { prop: "userId", label: "工号", type: 'text', },
+          { prop: "name", label: "姓名", type: 'text', },
+          {
+            prop: "sex",
+            label: "性别", type: 'text',
+          },
+          { prop: "mobile", label: "联系电话", type: 'text', },
+          { prop: "deptName", label: "部门名称", type: 'text', },
+
           { prop: "userId", label: "工号", type: 'text', },
           { prop: "name", label: "姓名", type: 'text', },
           {
@@ -318,16 +352,33 @@ export default {
         loading: true,
         isPaginationShow: true,
         isShowIndex: true,
+        optBtns: [
+            prop: "roleId",
+            label: "角色", type: 'text',
+          },
+          {
+            prop: "status",
+            label: "状态", type: 'text',
+          },],
+        loading: true,
+        isPaginationShow: true,
+        isShowIndex: true,
         optBtns: [
           {
             type: 'primary',
             label: '编辑',
             icon: "fa fa-edit",
             click: (row, index) => { return this.handleTableEdit(row) },
+            type: 'primary',
+            label: '编辑',
+            icon: "fa fa-edit",
+            click: (row, index) => { return this.handleTableEdit(row) },
           }
         ]
       },
       recommenderOptions: [],
+      pageData: {
+      recommenderOptions: [],
       pageData: {
         pageNum: 1,
         pageSize: 10,
@@ -369,6 +420,7 @@ export default {
         status: [{ required: true, message: "请选择状态", trigger: "change" }],
         // roleId: [{ required: true, message: "请填写角色", trigger: "blur" }],
       },
+      },
       filterObject: {},
       peopleid: "",
       peopledeptid: "",
@@ -403,6 +455,9 @@ export default {
       sexoptions: JSON.parse(localStorage.getItem('sexOptions')),
       user_statusoptions: JSON.parse(localStorage.getItem('user_statusoptions')),
       roles: JSON.parse(localStorage.getItem('find_all')),
+      sexoptions: JSON.parse(localStorage.getItem('sexOptions')),
+      user_statusoptions: JSON.parse(localStorage.getItem('user_statusoptions')),
+      roles: JSON.parse(localStorage.getItem('find_all')),
       option: [], //机构列表
     };
   },
@@ -431,6 +486,7 @@ export default {
     },
   },
   methods: {
+    // excel导入
     // excel导入
     carfrontChange(file) {
       const params = new FormData(); // 声明formData数据类型
@@ -452,10 +508,12 @@ export default {
     queryStaffInfo() {
       this.findPage();
     },
+    sexFormatter(row) {
     sexFormatter(row) {
       // return this.sexoptions[row.sex]
       // return row.sex+'1'
       // console.log(val,1)
+      // console.log(val,1)
     },
     changeTreeWidth(widthVal) {
       // 初始化树的宽度
@@ -470,10 +528,12 @@ export default {
       });
     },
     onZTreeClick: function (evt, treeId, treeNode) {
+      console.log(evt)
       // 点击事件
       this.currentTreeNode = evt;
       this.deptId = this.currentTreeNode.id;
       this.pageData.pageNum = 1;
+      this.pageData.pageNum = 1;
       this.findPage();
       // this.formData.deptId = [];
       // this.platform(treeId);
@@ -487,14 +547,19 @@ export default {
     },
     //联级选择器触发事件
     handleChange(val) {
+      if (val && val.length !== 0) {
       if (val && val.length !== 0) {
         this.formData.deptId = val.at(-1);
         this.formData.referrerId = ''
+        this.$api.user.selectfindByreferrerId({ deptId: this.formData.deptId }).then((res) => {
+          this.recommenderOptions = res.data
+        this.formData.referrerId = ''
         this.$api.user.selectfindByreferrerId({ deptId: this.formData.deptId }).then((res) => {
           this.recommenderOptions = res.data
         });
       }
 
+
     },
     // 右侧列表的方法Start
     findPage(data) {
@@ -502,15 +567,24 @@ export default {
       this.$api.user
         // .findPage({dto,pageNum:this.pageData.pageNum,pageSize:this.pageData.pageSize})
         .findPage({ ...this.pageData, dto: { ...data, roleId: '20', deptId: this.deptId } })
+        .findPage({ ...this.pageData, dto: { ...data, roleId: '20', deptId: this.deptId } })
         .then((res) => {
+          if (res.code == 200 && res.data.content.length > 0) {
+            res.data.content.forEach(val => {
+              if (val.sex && val.sex !== '' && val.sex !== null) {
+                val.sex = this.sexoptions.find(ele => ele.value == val.sex).label
           if (res.code == 200 && res.data.content.length > 0) {
             res.data.content.forEach(val => {
               if (val.sex && val.sex !== '' && val.sex !== null) {
                 val.sex = this.sexoptions.find(ele => ele.value == val.sex).label
               }
+              if (val.status && val.status !== '' && val.status !== null) {
+                val.status = this.user_statusoptions.find(ele => ele.value == val.status).label
               if (val.status && val.status !== '' && val.status !== null) {
                 val.status = this.user_statusoptions.find(ele => ele.value == val.status).label
               }
+              if (val.roleId && val.roleId !== '' && val.roleId !== null) {
+                val.roleId = this.roles.find(ele => ele.id == val.roleId).name
               if (val.roleId && val.roleId !== '' && val.roleId !== null) {
                 val.roleId = this.roles.find(ele => ele.id == val.roleId).name
               }
@@ -521,9 +595,14 @@ export default {
           this.pageData.pageNum = res.data.pageNum;
           this.pageData.pageSize = res.data.pageSize;
           this.pageData.totalSize = res.data.totalSize;
+          this.pageData.pageNum = res.data.pageNum;
+          this.pageData.pageSize = res.data.pageSize;
+          this.pageData.totalSize = res.data.totalSize;
         })
 
+
     },
+    handleSearchList(data) {
     handleSearchList(data) {
       this.findPage(data)
     },
@@ -557,12 +636,15 @@ export default {
               });
               this.findPage();
             }
+            else {
             else {
               this.$message.error(res.msg);
             }
+            }
           });
         })
         .catch(() => { });
+        .catch(() => { });
     },
     //添加人员
     handleAddButton() {
@@ -583,6 +665,7 @@ export default {
       this.activeName = '1'
       this.dialogTitle = "新增代理人";
       this.dialogVisible = true;
+
     },
     // 新增或修改的弹出框Start
     getDictItems(typeName) {
@@ -603,6 +686,7 @@ export default {
           done();
         })
         .catch((_) => { });
+        .catch((_) => { });
     },
     closeDialog() {
       // 清空数据

+ 3 - 3
src/views/Sys/Continuousconfiguration.vue

@@ -38,7 +38,7 @@
                 <el-row>
                     <el-col :span="10">
                         <el-form-item label="保险公司:">
-                            <el-select class="widths1" v-model="attributionform.companyId" @change="companyChange">
+                            <el-select class="widths1" filterable  v-model="attributionform.companyId" @change="companyChange">
                                 <el-option v-for="(item, index) in companyselect" :key="index.id" :label="item.namesimple"
                                     :value="item.id"></el-option>
                             </el-select>
@@ -167,8 +167,8 @@ export default {
         }
     },
     created() {
-        this.$api.insCompany.findPage(this.pageRequest).then((res) => {
-            this.companyselect = res.data.content;
+        this.$api.insCompany.gainTopList(this.pageRequest).then((res) => {
+            this.companyselect = res.data;
         })
         this.findpage();
 

+ 5 - 6
src/views/Sys/Inscommanytemplate.vue

@@ -41,7 +41,7 @@
                     </el-col>
                     <el-col :span="12">
                         <el-form-item label="保险公司:">
-                            <el-select class="widths1" v-model="attributionform.insCompanyId" @change="companyChange">
+                            <el-select class="widths1" filterable  v-model="attributionform.insCompanyId" @change="companyChange">
                                 <el-option v-for="(item, index) in companyselect" :key="index.id" :label="item.namesimple"
                                     :value="item.id"></el-option>
                             </el-select>
@@ -98,7 +98,7 @@
                 <el-button size="small" type="primary" @click="submitForm('attributionform')">提 交</el-button>
             </span>
         </el-dialog>
-        
+
     </div>
 </template>
 <script>
@@ -177,8 +177,8 @@ export default {
         };
     },
     created() {
-        this.$api.insCompany.findPage(this.pageRequest).then((res) => {
-            this.companyselect = res.data.content;
+        this.$api.insCompany.gainTopList("1").then((res) => {
+            this.companyselect = res.data;
         });
         this.findpage();
     },
@@ -252,7 +252,6 @@ export default {
         apiChange(e){
             e==2? this.attributionform['api']=this.pythonApi:"";
         },
-     
         //提交表单
         submitForm(formName) {
             this.$refs[formName].validate((valid) => {
@@ -326,4 +325,4 @@ export default {
 .widths1 {
     width: 250px;
 }
-</style>
+</style>

Некоторые файлы не были показаны из-за большого количества измененных файлов