|
@@ -1,13 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="page">
|
|
<div class="page">
|
|
|
- <el-form
|
|
|
|
|
- :inline="true"
|
|
|
|
|
- :model="formInline"
|
|
|
|
|
- class="demo-form-inline"
|
|
|
|
|
- size="small"
|
|
|
|
|
- label-width="130px"
|
|
|
|
|
- style="text-align: center"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form :inline="true" :model="formInline" class="demo-form-inline" size="small" label-width="130px"
|
|
|
|
|
+ style="text-align: center">
|
|
|
<el-row style="padding: 20px">
|
|
<el-row style="padding: 20px">
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
<el-form-item label="请求类型:">
|
|
<el-form-item label="请求类型:">
|
|
@@ -19,117 +13,51 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
<el-form-item label="保险公司:">
|
|
<el-form-item label="保险公司:">
|
|
|
- <el-select
|
|
|
|
|
- class="widths1"
|
|
|
|
|
- filterable
|
|
|
|
|
- v-model="formInline.insCompanyId"
|
|
|
|
|
- @change="companyChange"
|
|
|
|
|
- clearable
|
|
|
|
|
- >
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="(item, index) in companyselect"
|
|
|
|
|
- :key="index.id"
|
|
|
|
|
- :label="item.namesimple"
|
|
|
|
|
- :value="item.id"
|
|
|
|
|
- ></el-option>
|
|
|
|
|
|
|
+ <el-select class="widths1" filterable v-model="formInline.insCompanyId" @change="companyChange" clearable>
|
|
|
|
|
+ <el-option v-for="(item, index) in companyselect" :key="index.id" :label="item.namesimple"
|
|
|
|
|
+ :value="item.id"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
- <el-button type="primary" size="small" @click="querySearch"
|
|
|
|
|
- >查询</el-button
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-button type="primary" size="small" @click="querySearch">查询</el-button>
|
|
|
<el-button type="danger" size="small" @click="add()">新增</el-button>
|
|
<el-button type="danger" size="small" @click="add()">新增</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
|
|
- <el-table
|
|
|
|
|
- size="small"
|
|
|
|
|
- :data="pageResult"
|
|
|
|
|
- height="690"
|
|
|
|
|
- border
|
|
|
|
|
- style="width: 100%"
|
|
|
|
|
- v-loading="loading"
|
|
|
|
|
- highlight-current-row
|
|
|
|
|
- stripe
|
|
|
|
|
- :header-cell-style="{
|
|
|
|
|
|
|
+ <el-table size="small" :data="pageResult" height="690" border style="width: 100%" v-loading="loading"
|
|
|
|
|
+ highlight-current-row stripe :header-cell-style="{
|
|
|
background: '#F2F7FC',
|
|
background: '#F2F7FC',
|
|
|
fontWeight: '700',
|
|
fontWeight: '700',
|
|
|
color: '#606266',
|
|
color: '#606266',
|
|
|
- }"
|
|
|
|
|
- >
|
|
|
|
|
- <el-table-column
|
|
|
|
|
- prop="id"
|
|
|
|
|
- label="ID"
|
|
|
|
|
- width="200"
|
|
|
|
|
- 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 prop="id" label="ID" width="200" 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">
|
|
<el-table-column label="操作" align="center" width="200" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
|
|
- size="mini"
|
|
|
|
|
- type="text"
|
|
|
|
|
- @click="CloseEdit(scope.$index, scope.row)"
|
|
|
|
|
- >编辑</el-button
|
|
|
|
|
- >
|
|
|
|
|
- <el-button
|
|
|
|
|
- size="mini"
|
|
|
|
|
- type="text"
|
|
|
|
|
- style="color: #f78989"
|
|
|
|
|
- @click="empowerBtn(scope.$index, scope.row)"
|
|
|
|
|
- >删除</el-button
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-button size="mini" type="text" @click="CloseEdit(scope.$index, scope.row)">编辑</el-button>
|
|
|
|
|
+ <el-button size="mini" type="text" style="color: #f78989"
|
|
|
|
|
+ @click="empowerBtn(scope.$index, scope.row)">删除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
|
|
<!-- 分页功能 -->
|
|
<!-- 分页功能 -->
|
|
|
<div class="block">
|
|
<div class="block">
|
|
|
- <el-pagination
|
|
|
|
|
- @size-change="applyhandleSizeChange"
|
|
|
|
|
- @current-change="applyhandleCurrentChange"
|
|
|
|
|
- :current-page="pageNum"
|
|
|
|
|
- :page-size="pageSize"
|
|
|
|
|
- :page-sizes="[10, 20, 50, 100]"
|
|
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
- :total="totalSize"
|
|
|
|
|
- ></el-pagination>
|
|
|
|
|
|
|
+ <el-pagination @size-change="applyhandleSizeChange" @current-change="applyhandleCurrentChange"
|
|
|
|
|
+ :current-page="pageNum" :page-size="pageSize" :page-sizes="[10, 20, 50, 100]"
|
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper" :total="totalSize"></el-pagination>
|
|
|
</div>
|
|
</div>
|
|
|
<el-dialog :title="dilogtitle" :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-form class="demo-ruleForm wrap-scrollbar scroll-style" :model="attributionform" ref="attributionform"
|
|
|
|
|
+ label-width="130px" size="small">
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="请求类型:">
|
|
<el-form-item label="请求类型:">
|
|
|
- <el-select
|
|
|
|
|
- class="widths1"
|
|
|
|
|
- v-model="attributionform.apiType"
|
|
|
|
|
- @change="apiChange"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-select class="widths1" v-model="attributionform.apiType" @change="apiChange">
|
|
|
<el-option label="API" :value="1"></el-option>
|
|
<el-option label="API" :value="1"></el-option>
|
|
|
<el-option label="python" :value="2"></el-option>
|
|
<el-option label="python" :value="2"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
@@ -137,18 +65,9 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="保险公司:">
|
|
<el-form-item label="保险公司:">
|
|
|
- <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 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>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -158,16 +77,9 @@
|
|
|
<h4>URL配置</h4>
|
|
<h4>URL配置</h4>
|
|
|
</div>
|
|
</div>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col
|
|
|
|
|
- :span="12"
|
|
|
|
|
- v-for="(apiitem, apiindex) in attributionform.api"
|
|
|
|
|
- :key="apiindex"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-col :span="12" v-for="(apiitem, apiindex) in attributionform.api" :key="apiindex">
|
|
|
<el-form-item :label="apiitem.apiName + ':'">
|
|
<el-form-item :label="apiitem.apiName + ':'">
|
|
|
- <el-input
|
|
|
|
|
- v-model="apiitem.url"
|
|
|
|
|
- placeholder="请输入指定链接"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
|
|
+ <el-input v-model="apiitem.url" placeholder="请输入指定链接"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</div>
|
|
</div>
|
|
@@ -176,24 +88,13 @@
|
|
|
<h4>配置参数</h4>
|
|
<h4>配置参数</h4>
|
|
|
</div>
|
|
</div>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col
|
|
|
|
|
- v-for="(configureitem, configureindex) in attributionform.fields"
|
|
|
|
|
- :key="configureindex"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-col v-for="(configureitem, configureindex) in attributionform.fields" :key="configureindex">
|
|
|
<el-col :span="10">
|
|
<el-col :span="10">
|
|
|
<el-form-item label="字段名:">
|
|
<el-form-item label="字段名:">
|
|
|
- <el-input
|
|
|
|
|
- v-model="configureitem.field"
|
|
|
|
|
- class="widths1"
|
|
|
|
|
- placeholder="请输入字段名"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
|
|
+ <el-input v-model="configureitem.field" class="widths1" placeholder="请输入字段名"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="标签:">
|
|
<el-form-item label="标签:">
|
|
|
- <el-input
|
|
|
|
|
- v-model="configureitem.label"
|
|
|
|
|
- class="widths1"
|
|
|
|
|
- placeholder="标签名"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
|
|
+ <el-input v-model="configureitem.label" class="widths1" placeholder="标签名"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="10">
|
|
<el-col :span="10">
|
|
@@ -204,19 +105,12 @@
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="是否可修改:">
|
|
<el-form-item label="是否可修改:">
|
|
|
- <el-switch
|
|
|
|
|
- v-model="configureitem.isEdit"
|
|
|
|
|
- @change="(event) => isEditchange(event, configureindex)"
|
|
|
|
|
- class="widths1"
|
|
|
|
|
- ></el-switch>
|
|
|
|
|
|
|
+ <el-switch v-model="configureitem.isEdit" @change="(event) => isEditchange(event, configureindex)"
|
|
|
|
|
+ class="widths1"></el-switch>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
<el-col :span="4">
|
|
|
- <el-button
|
|
|
|
|
- @click.prevent="removeDomain(configureitem)"
|
|
|
|
|
- size="small"
|
|
|
|
|
- >删除</el-button
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-button @click.prevent="removeDomain(configureitem)" size="small">删除</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -224,12 +118,7 @@
|
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button size="small" @click="configuration">新增配置</el-button>
|
|
<el-button size="small" @click="configuration">新增配置</el-button>
|
|
|
<el-button size="small" @click="dialogVisible = false">取 消</el-button>
|
|
<el-button size="small" @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button
|
|
|
|
|
- size="small"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- @click="submitForm('attributionform')"
|
|
|
|
|
- >提 交</el-button
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-button size="small" type="primary" @click="submitForm('attributionform')">提 交</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</div>
|
|
</div>
|
|
@@ -317,6 +206,16 @@ export default {
|
|
|
apiType: 11,
|
|
apiType: 11,
|
|
|
url: "",
|
|
url: "",
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ apiName: "客户信息确认验证码配置",
|
|
|
|
|
+ apiType: 12,
|
|
|
|
|
+ url: "",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ apiName: "客户信息校验验证码配置",
|
|
|
|
|
+ apiType: 13,
|
|
|
|
|
+ url: "",
|
|
|
|
|
+ },
|
|
|
],
|
|
],
|
|
|
pageRequest: {
|
|
pageRequest: {
|
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
@@ -411,7 +310,7 @@ export default {
|
|
|
this.attributionform.fields[id].isEdit = val;
|
|
this.attributionform.fields[id].isEdit = val;
|
|
|
},
|
|
},
|
|
|
//选择保险公司获取归属模板
|
|
//选择保险公司获取归属模板
|
|
|
- companyChange(e) {},
|
|
|
|
|
|
|
+ companyChange(e) { },
|
|
|
apiChange(e) {
|
|
apiChange(e) {
|
|
|
e == 2 ? (this.attributionform["api"] = this.pythonApi) : "";
|
|
e == 2 ? (this.attributionform["api"] = this.pythonApi) : "";
|
|
|
},
|
|
},
|
|
@@ -493,7 +392,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
-<style scoped >
|
|
|
|
|
|
|
+<style scoped>
|
|
|
.widths1 {
|
|
.widths1 {
|
|
|
width: 250px;
|
|
width: 250px;
|
|
|
}
|
|
}
|