Merge branch '6-29印度股票' of http://124.156.157.155:8060/r/dg/dabao_admin into 6-29印度股票
# Conflicts:
# .env
# .env.development
# .env.preview
# admin.zip
# src/views/userlist/agentcomponents/EditAgentinfodialog.vue
# src/views/userlist/agentcomponents/addagentdialog.vue
6 files modified
1 files added
| | |
| | | # VUE_APP_API_BASE_URL=http://www.jqydl.com:8091/ |
| | | # VUE_APP_API_BASE_URL= https://api.dfddgj346.xyz/ |
| | | # VUE_APP_API_BASE_URL=https://www.rksv.store:8091/ |
| | | <<<<<<< HEAD |
| | | VUE_APP_API_BASE_URL=https://api.ambaracapital.net/ |
| | | # VUE_APP_API_BASE_URL=http://192.168.10.7:8091/ |
| | | ======= |
| | | VUE_APP_API_BASE_URL=https://api.pentagon-member.com/ |
| | | # VUE_APP_API_BASE_URL=http://192.168.10.5:8091/ |
| | | >>>>>>> 7bea4880ad378d6a0ffef45f2bb15f92f7b80bd0 |
| | | # VUE_APP_API_BASE_URL=https://api.guosen.org/ |
| | |
| | | # VUE_APP_API_BASE_URL=https://api.marwadi.online/ |
| | | # VUE_APP_API_BASE_URL=https://www.rksv.store:8091/ |
| | | # VUE_APP_API_BASE_URL=https://api.dfddgj346.xyz/ |
| | | <<<<<<< HEAD |
| | | VUE_APP_API_BASE_URL=http://192.168.10.7:8091/ |
| | | # VUE_APP_API_BASE_URL=https://api.ambaracapital.net/ |
| | | ======= |
| | | # VUE_APP_API_BASE_URL=http://192.168.10.5:8091/ |
| | | VUE_APP_API_BASE_URL=https://api.pentagon-member.com/ |
| | | >>>>>>> 7bea4880ad378d6a0ffef45f2bb15f92f7b80bd0 |
| | | # VUE_APP_API_BASE_URL= https://www.prudentcapitals.net/ |
| | | # VUE_APP_API_BASE_URL=https://api.guosen.org/ |
| | |
| | | |
| | | VUE_APP_PREVIEW=true |
| | | |
| | | <<<<<<< HEAD |
| | | # VUE_APP_API_BASE_URL=https://api.ambaracapital.net/ |
| | | |
| | | VUE_APP_API_BASE_URL=http://192.168.10.7:8091/ |
| | | VUE_APP_API_BASE_URL=http://192.168.10.7:8091/ |
| | | ======= |
| | | VUE_APP_API_BASE_URL=https://api.pentagon-member.com/ |
| | | |
| | | # VUE_APP_API_BASE_URL=http://192.168.10.5:8091/ |
| | | >>>>>>> 7bea4880ad378d6a0ffef45f2bb15f92f7b80bd0 |
| | |
| | | agentdelAgent: '/admin/agent/delAgent.do', // 删除代理 |
| | | agentupdate: '/admin/agent/update.do', // 修改代理信息 |
| | | agentadd: '/admin/agent/add.do', // 添加下级代理 |
| | | getParensAgent: '/admin/agent/getParensAgent.do', // 上级代理列表 |
| | | stockgetMarket: '/api/stock/getMarket.do', // 获取大盘指数行情 |
| | | adminsetSiteStyle: '/api/admin/setSiteStyle.do', // 设置网站风格 |
| | | admingetSiteStyle: '/api/admin/getSiteStyle.do', // 获取网站风格 |
| | |
| | | }) |
| | | } |
| | | |
| | | export function getParensAgent(parameter) { |
| | | return request({ |
| | | url: userApi.getParensAgent, |
| | | method: 'get', |
| | | params: parameter |
| | | }) |
| | | } |
| | | |
| | | export function stockgetMarket(parameter) { |
| | | return request({ |
| | | url: userApi.stockgetMarket, |
| | |
| | | placeholder="请选择上级代理" |
| | | v-decorator="['parentId', { rules: [{ required: true, message: '请选择上级代理' }] }]" |
| | | > |
| | | <a-select-option value="0">总代理</a-select-option> |
| | | |
| | | <a-select-option :value="item.id" v-for="(item, index) in parentIdList" :key="index">{{ |
| | | item.agentName |
| | | }}</a-select-option> |
| | | </a-select> |
| | | </a-form-item> |
| | | <a-form-item label="代理名称" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | |
| | | <a-form-item label="代理编码" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input |
| | | placeholder="请输入代理编码" |
| | | <<<<<<< HEAD |
| | | v-decorator="['agentCode', { rules: [{ validator: checkSixDigitNumber, message: '请输入六位数字' }] }]" |
| | | ======= |
| | | v-decorator="[ |
| | | 'agentCode', |
| | | { rules: [{ required: true, validator: checkSixDigitNumber, message: '请输入六位数字' }] }, |
| | | ]" |
| | | >>>>>>> 7bea4880ad378d6a0ffef45f2bb15f92f7b80bd0 |
| | | /> |
| | | </a-form-item> |
| | | </a-form> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { agentadd } from '@/api/home' |
| | | import { agentadd, getParensAgent } from '@/api/home' |
| | | export default { |
| | | components: {}, |
| | | props: { |
| | |
| | | addUserform: this.$form.createForm(this), |
| | | addUserdialog: false, |
| | | addUserDialogloading: false, |
| | | parentIdList: [], |
| | | } |
| | | }, |
| | | methods: { |
| | | <<<<<<< HEAD |
| | | checkSixDigitNumber(rule, value, callback) { |
| | | const num = parseInt(value); |
| | | if (isNaN(num) || value.length !== 6) { |
| | | callback(new Error('请输入6位数字')); |
| | | } else { |
| | | callback(); |
| | | ======= |
| | | initGetParensAgent() { |
| | | getParensAgent().then((res) => { |
| | | if (res.status == 0) { |
| | | this.parentIdList = [{ |
| | | id: 0, |
| | | agentName: '总代理' |
| | | },...res.data] |
| | | } else { |
| | | this.$message.error(res.msg) |
| | | } |
| | | }) |
| | | }, |
| | | checkSixDigitNumber(rule, value, callback) { |
| | | const num = parseInt(value) |
| | | if (isNaN(num) || value.length !== 6) { |
| | | callback(new Error('请输入6位数字')) |
| | | } else { |
| | | callback() |
| | | >>>>>>> 7bea4880ad378d6a0ffef45f2bb15f92f7b80bd0 |
| | | } |
| | | }, |
| | | // 新增用户取消弹窗 |
| | |
| | | if (!errors) { |
| | | this.addUserDialogloading = true |
| | | agentadd(values).then((res) => { |
| | | if(values.parentId == 0) values.parentId = null |
| | | if (res.status == 0) { |
| | | this.addUserdialog = false |
| | | this.$message.success(res.msg) |
| | |
| | | </a-form> |
| | | </div> |
| | | <div class="table-operator"> |
| | | <a-button type="primary" icon="plus" @click="$refs.addagentdialog.addUserdialog = true">添加下级代理</a-button> |
| | | <a-button type="primary" icon="plus" @click="$refs.addagentdialog.addUserdialog = true, $refs.addagentdialog.initGetParensAgent()">添加下级代理</a-button> |
| | | </div> |
| | | </a-card> |
| | | |
| | |
| | | }, |
| | | }, |
| | | { |
| | | title: '代理等级', |
| | | dataIndex: 'agentLevel', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '代理状态', |
| | | dataIndex: 'isLock', |
| | | align: 'center', |