Commit 22980c16 22980c1696aaea8ba4434aa1b2ab883468b20e0e by zhanghao

commit

1 parent a46ac785
...@@ -916,6 +916,37 @@ ...@@ -916,6 +916,37 @@
916 </el-form> 916 </el-form>
917 </el-col> 917 </el-col>
918 <el-col :span="8"> 918 <el-col :span="8">
919 <el-form ref="create1053TestData" :model="create1053TestData" label-width="0px">
920 <el-card class="darkred" shadow="always">
921 <div slot="header" class="clearfix">
922 <span>创建1053测试数据</span>
923 </div>
924 <div class="text item">
925 <el-form-item>
926 <el-input placeholder="请输入代理人手机号" v-model="create1053TestData.agentPhone" clearable></el-input>
927 </el-form-item>
928 <el-form-item>
929 <el-input placeholder="请输入自动生成数据的个数,最大取值<=10" v-model="create1053TestData.count" clearable></el-input>
930 </el-form-item>
931 <el-form-item>
932 <el-select v-model="create1053TestData.type" placeholder="请选择数据类型">
933 <el-option
934 v-for="item in create1053TestDatatypeoptions"
935 :key="item.value"
936 :label="item.label"
937 :value="item.value">
938 </el-option>
939 </el-select>
940 </el-form-item>
941 <div style="margin: 15px 0;"></div>
942 <el-form-item>
943 <el-button round @click="create1053TestDataSubmit">提交</el-button>
944 </el-form-item>
945 </div>
946 </el-card>
947 </el-form>
948 </el-col>
949 <el-col :span="8">
919 <el-form ref="queryTiXian" :model="queryTiXian" label-width="0px"> 950 <el-form ref="queryTiXian" :model="queryTiXian" label-width="0px">
920 <el-card class="darkred" shadow="always"> 951 <el-card class="darkred" shadow="always">
921 <div slot="header" class="clearfix"> 952 <div slot="header" class="clearfix">
...@@ -1050,6 +1081,21 @@ ...@@ -1050,6 +1081,21 @@
1050 value: '0', 1081 value: '0',
1051 label: '未联系上' 1082 label: '未联系上'
1052 }], 1083 }],
1084 create1053TestData: {
1085 agentPhone: '',
1086 count: '',
1087 type: []
1088 },
1089 create1053TestDatatypeoptions: [{
1090 value: '0',
1091 label: '电话约访'
1092 }, {
1093 value: '1',
1094 label: '面见碰一碰'
1095 }, {
1096 value: '2',
1097 label: 'AI分享'
1098 }],
1053 smsCode: { 1099 smsCode: {
1054 phone: '', 1100 phone: '',
1055 code: 1111 1101 code: 1111
...@@ -1700,6 +1746,48 @@ ...@@ -1700,6 +1746,48 @@
1700 }); 1746 });
1701 }) 1747 })
1702 }, 1748 },
1749 create1053TestDataSubmit() {
1750 const loading = this.$loading({
1751 lock: true,
1752 text: '加载中...',
1753 spinner: 'el-icon-loading',
1754 background: 'rgba(0, 0, 0, 0.7)'
1755 });
1756 let config = {
1757 headers: {
1758 'Content-Type': 'application/x-www-form-urlencoded'
1759 }
1760 }
1761 this.$http.get('/tool/create1053Tool?'+this.$qs.stringify({
1762 agentPhone: this.create1053TestData.agentPhone,
1763 count: this.create1053TestData.count,
1764 type: this.create1053TestData.type.toString()
1765 }),config).then((res)=>{
1766 console.log(res);
1767 if(res.data=='成功') {
1768 this.$message({
1769 showClose: true,
1770 message: '数据创建成功',
1771 type: 'success'
1772 });
1773 } else {
1774 this.$message({
1775 showClose: true,
1776 message: res.data,
1777 type: 'error'
1778 });
1779 }
1780 loading.close()
1781 }).catch(error=>{
1782 console.log(error);
1783 loading.close()
1784 this.$message({
1785 showClose: true,
1786 message: '服务器处理失败,请核对参数!',
1787 type: 'error'
1788 });
1789 })
1790 },
1703 addPhoneAuthorSubmit() { 1791 addPhoneAuthorSubmit() {
1704 const loading = this.$loading({ 1792 const loading = this.$loading({
1705 lock: true, 1793 lock: true,
......