Commit e1ff9083 authored by 黎博's avatar 黎博

修改

parent f8403380
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>QA测试平台</title><link href=/static/css/app.ae523ffc55f90e6ad73ecdcfa25d4fc3.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.32d532b5d2eda429f2bc.js></script><script type=text/javascript src=/static/js/app.36551005e684515bfe29.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>QA测试平台</title><link href=/static/css/app.7031a1feb24c01e574bd99d5e432bcd4.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.32d532b5d2eda429f2bc.js></script><script type=text/javascript src=/static/js/app.58fa156a70a242115509.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{"version":3,"sources":["webpack:///webpack/bootstrap caa58fdb925ff6835e59"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","p","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAAT,EAGAE,EAAAQ,EAAAN,EAGAF,EAAAS,EAAA,SAAAL,EAAAM,EAAAC,GACAX,EAAAY,EAAAR,EAAAM,IACAhB,OAAAmB,eAAAT,EAAAM,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAX,EAAAiB,EAAA,SAAAZ,GACA,IAAAM,EAAAN,KAAAa,WACA,WAA2B,OAAAb,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAO,EAAAC,GAAsD,OAAA1B,OAAAC,UAAAC,eAAAC,KAAAsB,EAAAC,IAGtDpB,EAAAqB,EAAA,IAGArB,EAAAsB,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.2ae2e69a05c33dfc65f8.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap caa58fdb925ff6835e59"],"sourceRoot":""} {"version":3,"sources":["webpack:///webpack/bootstrap 838d81cd3de05a66a340"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","p","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAAT,EAGAE,EAAAQ,EAAAN,EAGAF,EAAAS,EAAA,SAAAL,EAAAM,EAAAC,GACAX,EAAAY,EAAAR,EAAAM,IACAhB,OAAAmB,eAAAT,EAAAM,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAX,EAAAiB,EAAA,SAAAZ,GACA,IAAAM,EAAAN,KAAAa,WACA,WAA2B,OAAAb,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAO,EAAAC,GAAsD,OAAA1B,OAAAC,UAAAC,eAAAC,KAAAsB,EAAAC,IAGtDpB,EAAAqB,EAAA,IAGArB,EAAAsB,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.2ae2e69a05c33dfc65f8.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 838d81cd3de05a66a340"],"sourceRoot":""}
\ No newline at end of file \ No newline at end of file
...@@ -32,7 +32,8 @@ export default { ...@@ -32,7 +32,8 @@ export default {
{ label: 'qa3', value: 'qa3' }, { label: 'qa3', value: 'qa3' },
{ label: 'test1', value: 'test1' }, { label: 'test1', value: 'test1' },
{ label: 'xjfq', value: 'xjfq' }, { label: 'xjfq', value: 'xjfq' },
{ label: 'xyqb', value: 'xyqb' } { label: 'xyqb', value: 'xyqb' },
{ label: 'vcc', value: 'vcc' }
] ]
} }
}, },
......
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
// 获取状态选项 // 获取状态选项
getStatusOptions() { getStatusOptions() {
this.$axios this.$axios
.get('/allUserLoanStatus') .get('/query/getAllStatus')
.then((response) => { .then((response) => {
this.statusOptions = response['data']['data'] this.statusOptions = response['data']['data']
}) })
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
} }
this.dataTable = [] this.dataTable = []
this.$axios this.$axios
.get('/getLoanUserData', { .get('/query/loanUser', {
params: this.queryInfo params: this.queryInfo
}) })
.then((response) => { .then((response) => {
......
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
<el-card> <el-card>
<div> <div>
借款状态: 借款状态:
<el-select v-model="genDataBody.type" placeholder="请选择类型"> <el-select v-model="genDataBody.status" placeholder="请选择类型">
<el-option <el-option
v-for="item in typeOptions" v-for="item in statusOptions"
:key="item.type" :key="item.label"
:label="item.typeName" :label="item.label"
:value="item.type" :value="item.value"
></el-option> ></el-option>
</el-select> </el-select>
<!-- 渠道 --> <!-- 渠道 -->
...@@ -22,36 +22,42 @@ ...@@ -22,36 +22,42 @@
<el-select v-model="genDataBody.channel" placeholder="请选择渠道"> <el-select v-model="genDataBody.channel" placeholder="请选择渠道">
<el-option <el-option
v-for="item in channelList" v-for="item in channelList"
:key="item.channel" :key="item.channelId"
:label="item.channelName" :label="item.name"
:value="item.channel" :value="item.channelId"
></el-option> ></el-option>
</el-select> </el-select>
<!-- 资方 --> <!-- 资方 -->
资方: 资方:
<el-input v-model="genDataBody.fundID" clearable placeholder="资方id" style="width: 200px;"></el-input> <el-select v-model="genDataBody.fundId" placeholder="请选择资方">
<el-option
v-for="item in fundList"
:key="item.fundId"
:label="item.name"
:value="item.fundId"
></el-option>
</el-select>
</div> </div>
<div> <div>
手机号: 手机号:
<el-input v-model="genDataBody.phone" clearable placeholder="手机号" style="width: 200px;"></el-input> <el-input v-model="genDataBody.phone" clearable placeholder="手机号" style="width: 200px;"></el-input>期数:
期数:
<el-input v-model="genDataBody.termNo" clearable placeholder="期数" style="width: 200px"></el-input>金额: <el-input v-model="genDataBody.termNo" clearable placeholder="期数" style="width: 200px"></el-input>金额:
<el-input v-model="genDataBody.amount" clearable placeholder="金额" style="width: 200px"></el-input> <el-input v-model="genDataBody.amount" clearable placeholder="金额" style="width: 200px"></el-input>
<!-- 数据个数 --> <!-- 数据个数 -->
数据个数: <!-- 数据个数:
<el-input-number <el-input-number
v-model="expectNum" v-model="expectNum"
@change="handleExpectNumChange" @change="handleExpectNumChange"
:min="1" :min="1"
:max="100" :max="100"
label="数据个数" label="数据个数"
></el-input-number> ></el-input-number>-->
<!-- 查询数据按钮 --> <!-- 查询数据按钮 -->
<el-button type="primary" style="margin-left:20px" @click="genData">生成数据</el-button> <el-button type="primary" style="margin-top:20px" @click="genData">生成数据</el-button>
</div> </div>
<!-- 数据表格 --> <!-- 数据表格 -->
<div class="dataTable"> <div class="dataTable">
<el-table :data="dataTable" border style="width: 100%"> <el-table :data="dataTableList" border style="width: 100%">
<el-table-column type="phoneNo" label="phone_no" width="100px"></el-table-column> <el-table-column type="phoneNo" label="phone_no" width="100px"></el-table-column>
<el-table-column prop="channel" label="注册渠道id" width="100px"></el-table-column> <el-table-column prop="channel" label="注册渠道id" width="100px"></el-table-column>
<el-table-column prop="fundId" label="资方id" width="100px"></el-table-column> <el-table-column prop="fundId" label="资方id" width="100px"></el-table-column>
...@@ -74,19 +80,27 @@ export default { ...@@ -74,19 +80,27 @@ export default {
data() { data() {
return { return {
namespaceOptions: [], namespaceOptions: [],
typeOptions: [], statusOptions: [
{ label: '审核通过', value: 0 },
{ label: '审核拒绝', value: 1 },
{ label: '放款中', value: 2 },
{ label: '放款成功', value: 3 },
{ label: '放款失败', value: 4 }
],
fundList: [], fundList: [],
channelList: [], channelList: [],
selectNamespace: '', selectNamespace: '',
expectNum: '1', expectNum: '1',
dataTableList: [],
// 生成数据接口的body // 生成数据接口的body
genDataBody: { genDataBody: {
namespace: window.sessionStorage.getItem('env'),
phone: '', phone: '',
channel: '', channel: '',
termNo: '', termNo: '6',
amount: '', amount: '10000',
fundID: '', fundId: '',
type: '' status: ''
} }
} }
}, },
...@@ -95,54 +109,55 @@ export default { ...@@ -95,54 +109,55 @@ export default {
}, },
methods: { methods: {
setBaseUrl() { setBaseUrl() {
this.$axios.defaults.baseURL = this.$axios.defaults.baseURL = 'https://qa-platform-pre.liangkebang.net'
'https://boss-' +
window.sessionStorage.getItem('env') +
'.liangkebang.net'
}, },
// 获取类型和渠道 // 获取资方和渠道列表
getTypeOptions() { getSupportChannelAndFund() {
this.$axios this.$axios.get('/gen/supportChannelAndFund').then((resp) => {
.get('/oneclickdate/v1/channelCode') this.channelList = resp.data.data.channelList
.then((response) => { this.fundList = resp.data.data.fundList
this.typeOptions = response['data']['data']['typeList'] })
this.channelList = response['data']['data']['channelCodeList']
})
.catch((error) => {
console.log(error)
return this.$$message.error('获取类型和渠道失败!')
})
}, },
// 渠道变化
// selectChannelChange() {
// this.genDataBody.channel = this.selectChannel
// },
// 造数据 // 造数据
genData() { genData() {
if (this.genDataBody.type === '') { if (this.genDataBody.status === '') {
return this.$message.error('借款状态不能为空') return this.$message.error('借款状态不能为空')
} }
if (this.genDataBody.channel === '') { if (this.genDataBody.channel === '') {
return this.$message.error('渠道不能为空') return this.$message.error('渠道不能为空')
} }
if (this.genDataBody.fundID === '') { if (this.genDataBody.fundId === '') {
return this.$message.error('资方不能为空') return this.$message.error('资方不能为空')
} }
this.$axios this.$axios
.post('/oneclickdate/v1/type', this.genDataBody) .post('/gen/loanUser', this.genDataBody)
.then((resp) => { .then((resp) => {
console.log(resp) setTimeout(this.queryGenProgress(this.genData.phoneNo), 5000)
return this.$message.success('开始生成数据...') this.$message.success('开始生成数据...')
}) })
.catch((error) => { .catch((error) => {
console.log(error) console.log(error)
return this.$message.error('数据生成失败!') return this.$message.error('数据接口返回失败!')
})
},
// 查询造数据过程中的用户状态
queryGenProgress(phoneNo) {
this.$axios
.get('/gen/userStatus', {
params: {
namespace: window.sessionStorage.get('env'),
phoneNo: phoneNo
}
})
.then((resp) => {
console.log('查询用户状态的响应:' + resp)
this.dataTable = resp.data.data
}) })
}, },
retryToGen(phoneNo) {} retryToGen(phoneNo) {}
}, },
mounted() { mounted() {
this.getTypeOptions() this.getSupportChannelAndFund()
} }
} }
</script> </script>
......
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