Commit 64efcad8 by liang ce

input选人bug禁用

parent 1af991d1
import axios from 'axios' import axios from 'axios'
import qs from 'qs' import qs from 'qs'
// axios.defaults.baseURL = 'http://192.168.1.101:8300' // 本地荣 axios.defaults.baseURL = 'http://192.168.1.106:8400' // 本地荣
// axios.defaults.baseURL = 'http://192.168.1.102:8300' // 本地钱 // axios.defaults.baseURL = 'http://192.168.1.102:8300' // 本地钱
axios.defaults.baseURL = 'http://139.196.213.18:8300' // beta环境 // axios.defaults.baseURL = 'http://139.196.213.18:8300' // beta环境
let loadingInstance // 创建Loading 的实例 let loadingInstance // 创建Loading 的实例
axios.defaults.headers['Authorization'] = `Bearer ${localStorage.getItem('token')}` // 设置请求头为 Authorization axios.defaults.headers['Authorization'] = `Bearer ${localStorage.getItem('token')}` // 设置请求头为 Authorization
// 配置发送请求前的拦截器可以设置token信息 // 配置发送请求前的拦截器可以设置token信息
......
...@@ -7,21 +7,13 @@ const config = { ...@@ -7,21 +7,13 @@ const config = {
ddconfig: () => { ddconfig: () => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let senddate = qs.stringify({ let senddate = qs.stringify({
orgId: localStorage.getItem('orgId')
})
return axios.post(`http://139.196.213.18:8300/v1/auth/query_org_agent_id?${senddate}`).then((res) => {
localStorage.setItem('agentId', res.data.data)
resolve(res.data.data)
})
}).then((res) => {
let senddate = qs.stringify({
version: MINGPAY_CONSTANT.MINGPAY_CONSTANT_VERSION, version: MINGPAY_CONSTANT.MINGPAY_CONSTANT_VERSION,
url: location.href.replace(window.location.hash, ''), url: location.href.replace(window.location.hash, ''),
agentId: res, agentId: 25255,
orgId: localStorage.getItem('orgId') orgId: localStorage.getItem('orgId')
}) })
return axios.post(`http://139.196.213.18:8300/v1/auth/getJsAuthenticationParameter?${senddate}`).then((res) => { return axios.post(`http://192.168.1.106:8400/v1/auth/getJsAuthenticationParameter?${senddate}`).then((res) => {
let agentId = localStorage.getItem('agentId') let agentId = 25255
let timeStamp = res.data.data.timeStamp let timeStamp = res.data.data.timeStamp
let nonceStr = res.data.data.nonceStr let nonceStr = res.data.data.nonceStr
let signature = res.data.data.signature let signature = res.data.data.signature
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<a-spin :spinning="spinning"> <a-spin :spinning="spinning">
<div class="AccountManagement"> <div class="AccountManagement">
<div class="searchBox"> <div class="searchBox">
<a-input placeholder="选择成员" @click="choosePeople" style="width: 120px"/> <a-input placeholder="选择成员" disabled @click="choosePeople" style="width: 120px"/>
<a-input placeholder="输入卡号" v-model="searchSource.cardNum" style="width: 120px"/> <a-input placeholder="输入卡号" v-model="searchSource.cardNum" style="width: 120px"/>
<a-select placeholder="卡片状态" style="width: 120px;margin-right: 20px;" :allowClear="true" @change="selectHandleChangeCard"> <a-select placeholder="卡片状态" style="width: 120px;margin-right: 20px;" :allowClear="true" @change="selectHandleChangeCard">
<a-select-option value="ACTIVE">已绑卡</a-select-option> <a-select-option value="ACTIVE">已绑卡</a-select-option>
......
<template> <template>
<div class="RechargeRecord"> <div class="RechargeRecord">
<div class="searchBox"> <div class="searchBox">
<a-input placeholder="选择成员" @click="choosePeople"/> <a-input placeholder="选择成员" disabled @click="choosePeople"/>
<a-select placeholder="经办人" :allowClear="true" style="width: 120px;margin-right: 20px;" @change="selectAgent"> <a-select placeholder="经办人" :allowClear="true" style="width: 120px;margin-right: 20px;" @change="selectAgent">
<a-select-option v-for="(item, index) in agentList" :key="index" :value="item.ddUserId">{{ item.name }}</a-select-option> <a-select-option v-for="(item, index) in agentList" :key="index" :value="item.ddUserId">{{ item.name }}</a-select-option>
</a-select> </a-select>
......
<template> <template>
<div class="RecordsOfConsumption"> <div class="RecordsOfConsumption">
<div class="searchBox"> <div class="searchBox">
<a-input placeholder="消费人" @click="choosePeople" style="width: 120px"/> <a-input placeholder="消费人" @click="choosePeople" disabled style="width: 120px"/>
<a-select placeholder="状态" :allowClear="true" style="width: 120px;margin-right: 20px;" @change="selectHandRecords"> <a-select placeholder="状态" :allowClear="true" style="width: 120px;margin-right: 20px;" @change="selectHandRecords">
<a-select-option value="SUCCESS">已消费</a-select-option> <a-select-option value="SUCCESS">已消费</a-select-option>
<a-select-option value="REFUND_SUCCESS">已退款</a-select-option> <a-select-option value="REFUND_SUCCESS">已退款</a-select-option>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment