Commit 9b8b7ae6 9b8b7ae6b1bc6994480df69832c3da6603cb2e82 by 牛先锋

用户信息增加我的业务经理查询

1 parent eda686da
......@@ -14,8 +14,8 @@ import VCharts from 'v-charts'
Vue.config.productionTip = false
Vue.prototype.$http = axios
Vue.prototype.$qs=qs
axios.defaults.baseURL = 'http://39.105.142.246:9090'
// axios.defaults.baseURL = 'http://127.0.0.1:9090'
//axios.defaults.baseURL = 'http://39.105.142.246:9090'
axios.defaults.baseURL = 'http://192.168.8.203:9090'
Vue.use(Element, { size: 'small', zIndex: 3000 });
Vue.use(vueClipboard);
......
......@@ -165,8 +165,11 @@
</el-card>
</el-form>
</el-col>
</el-row>
<el-row style="margin-bottom: 15px;">
<el-col :span="8">
<el-form ref="smsCode" :model="smsCode222" label-width="0px">
<el-form ref="smsCode1" :model="smsCode222" label-width="0px">
<el-card class="darkred" shadow="always">
<div slot="header" class="clearfix">
<span>测试设置短信验证码</span>
......@@ -186,6 +189,43 @@
</el-card>
</el-form>
</el-col>
<el-col :span="8">
<el-form ref="queryPhoneCode" :model="queryPhoneCode" label-width="0px">
<el-card class="darkred" shadow="always">
<div slot="header" class="clearfix">
<span>测试查询短信验证码</span>
</div>
<div class="text item">
<el-form-item>
<el-input placeholder="请输入手机号" v-model="queryPhoneCode222.phone" clearable></el-input>
</el-form-item>
<el-form-item>
<el-select v-model="queryPhoneCode222.huanjing" placeholder="请选择执行环境">
<el-option
v-for="item in queryPhoneCode222Options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<div style="margin: 15px 0;"></div>
<el-form-item>
<el-button round @click="queryPhoneCodeSubmit222">查询验证码</el-button>
</el-form-item>
</div>
</el-card>
</el-form>
<el-dialog
title="短信验证码:"
:visible.sync="dialogQueryPhoneCode"
width="30%">
<span>{{myQueryPhoneCode}}</span>
<span slot="footer" class="dialog-footer">
<el-button type="primary" v-clipboard:copy="JSON.stringify(myQueryPhoneCode)" v-clipboard:success="onCopy" @click="dialogQueryPhoneCode = false">点击复制</el-button>
</span>
</el-dialog>
</el-col>
</el-row>
</div>
</template>
......@@ -263,7 +303,7 @@
code: 1111
},
smsCode222: {
phone: '',
phone: '15910793402',
code: 6666
},
baomingWeijihuo: {
......@@ -275,6 +315,17 @@
phone: '',
huanjing: []
},
queryPhoneCode222: {
phone: '15910793402',
huanjing: []
},
queryPhoneCode222Options: [{
value: '0',
label: '测试环境'
}, {
value: '1',
label: '线上环境'
}],
queryPhoneCodeOptions: [{
value: '0',
label: '测试环境'
......@@ -405,7 +456,7 @@
'Content-Type': 'application/x-www-form-urlencoded'
}
}
this.$http.get('/tool2/smsCode2?'+this.$qs.stringify({
this.$http.get('/tool2/smsCode222?'+this.$qs.stringify({
phone: this.smsCode222.phone,
code: this.smsCode222.code
}),config).then((res)=>{
......@@ -438,6 +489,50 @@
});
})
},
queryPhoneCodeSubmit222() {
const loading = this.$loading({
lock: true,
text: '加载中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
let config = {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}
this.$http.get('/tool2/queryPhoneCode222?'+this.$qs.stringify({
phone: this.queryPhoneCode222.phone,
type: this.queryPhoneCode222.huanjing.toString()
}),config).then((res)=>{
console.log(res);
if(res.data=='codenull') {
this.$message({
showClose: true,
message: '该手机号验证码为空',
type: 'error'
});
} else if(res.data=='typeError') {
this.$message({
showClose: true,
message: '执行环境参数错误',
type: 'error'
});
} else {
this.myQueryPhoneCode = res.data
this.dialogQueryPhoneCode = true
}
loading.close();
}).catch(error=>{
console.log(error);
loading.close();
this.$message({
showClose: true,
message: '服务器处理失败,请核对参数!',
type: 'error'
});
})
},
//-----------------------------------------------------------测试----------------------------------
baomingWeijihuoSubmit() {
const loading = this.$loading({
......
......@@ -88,6 +88,41 @@
</el-table-column>
</el-table>
<br/>
<br/>
<span>我的业务经理(tbl_customer_ownership)</span>
<el-table
:data="myCusOwner"
border
style="width: 100%"
:header-cell-style="{background: 'deepskyblue', color: 'snow'}">
<el-table-column
prop="uid"
label="UID"
min-width="1">
</el-table-column>
<el-table-column
prop="agentUid"
label="代理人uid"
min-width="1">
</el-table-column>
<el-table-column
prop="chooseAgentUid"
label="业务经理uid"
min-width="1">
</el-table-column>
<el-table-column
prop="chooseTime"
label="选择代理人时间"
min-width="1">
</el-table-column>
</el-table>
<br/>
<br/>
<span>代理人详情表(tbl_agent_properties)</span>
<el-table
......@@ -222,7 +257,8 @@
tblAgentProperties: [],
tblAgentCustomers: [],
tblAgentCustomersAll: [],
tblJiHuoAgentProperties: []
tblJiHuoAgentProperties: [],
myCusOwner: []
}
},
mounted() {
......@@ -251,6 +287,7 @@
this.tblAgentCustomers=res.data.tblAgentCustomers
this.tblAgentCustomersAll=res.data.tblAgentCustomersAll
this.tblJiHuoAgentProperties=res.data.tblJiHuoAgentProperties
this.myCusOwner=res.data.myCusOwner
loading.close();
}).catch(error=>{
console.log(error);
......