Commit e050667c authored by 黎博's avatar 黎博

更新

parent d6884816
<!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.1fbd899d7e3c50a54463666fe80020b6.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.136d85aa751bae5327c0.js></script></body></html>
\ No newline at end of file
<!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.85a9e3972675ea63153984cfb8de2bb9.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.8468fb45e2292623c210.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{"version":3,"sources":["webpack:///webpack/bootstrap b458bdd3278f69f5d742"],"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 b458bdd3278f69f5d742"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap a2e33217c7913fbfd3c2"],"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 a2e33217c7913fbfd3c2"],"sourceRoot":""}
\ No newline at end of file
<template>
<div id="app">
<router-view />
<router-view v-if="isRouterAlive" />
</div>
</template>
<script>
export default {
name: 'App'
name: 'App',
provide() {
return {
reload: this.reload
}
},
data() {
return {
isRouterAlive: true
}
},
methods: {
reload() {
this.isRouterAlive = false
this.$nextTick(() => {
this.isRouterAlive = true
})
}
}
}
</script>
......
<template>
<div>
<!-- 头部导航栏 -->
<el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item>数据工厂</el-breadcrumb-item>
<el-breadcrumb-item>生成新数据</el-breadcrumb-item>
</el-breadcrumb>
<!-- 卡片视图 -->
<el-card>
<!-- namespace下拉框 -->
<div class="filter">
<p>
Namespace:
<el-select
v-model="selectNamespace"
placeholder="请选择namespace"
@change="handleNamespaceChange"
>
<el-option
v-for="item in namespaceOptions"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</p>
<!-- 借款状态下拉框 -->
<p>
借款状态:
<el-select v-model="selectStatus" placeholder="请选择借款状态">
<el-option
v-for="item in statusOptions"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</p>
<!-- 数据个数 -->
<p>
数据个数:
<el-input-number
v-model="expectNum"
@change="handleExpectNumChange"
:min="1"
:max="100"
label="数据个数"
></el-input-number>
</p>
<!-- 查询数据按钮 -->
<p>
<el-button type="primary" style="margin-left:20px" @click="queryData">制造数据</el-button>
</p>
</div>
<!-- 数据表格 -->
<div class="dataTable">
<el-table :data="dataTable" border style="width: 100%">
<el-table-column type="phoneNo" label="phone_no" width="200px"></el-table-column>
<el-table-column prop="userId" label="user_id" width="150px"></el-table-column>
<el-table-column prop="uuid" label="uuid" width="300px"></el-table-column>
<el-table-column prop="status" label="status" width="100px"></el-table-column>
<el-table-column prop="status" label="注册渠道" width="100px"></el-table-column>
<el-table-column prop="status" label="创建时间" width="200px"></el-table-column>
</el-table>
</div>
</el-card>
</div>
</template>
<script>
export default {
data() {
return {
namespaceOptions: [],
statusOptions: [],
selectNamespace: '',
selectStatus: '',
expectNum: 1
}
},
created() {},
methods: {
getNamespaceOptions() {
this.$axios
.get('/allEnvInfo')
.then(response => {
this.namespaceOptions = response['data']['data']
})
.catch(error => console.log(error))
},
getStatusOptions() {
this.$axios
.get('/allUserLoanStatus')
.then(response => {
this.statusOptions = response['data']['data']
})
.catch(error => console.log(error))
},
handleExpectNumChange(newNum) {}
},
mounted() {
this.getNamespaceOptions()
this.getStatusOptions()
}
}
</script>
<style lang="less" scoped>
.dataTable {
margin-top: 20px;
}
.filter {
display: flex;
p {
margin-right: 20px;
}
}
</style>
......@@ -40,7 +40,7 @@ Vue.prototype.$axios = axios
Vue.prototype.$echarts = echarts
Vue.prototype.$message = Message
axios.defaults.baseURL = 'https://qa-platform-pre.liangkebang.net'
axios.defaults.baseURL = ''
Vue.use(Container)
Vue.use(Header)
......
import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login'
import Home from '../components/Home'
import Project from '../components/Automation/Project'
import Case from '../components/Automation/Case'
import Report from '../components/Automation/Report'
import GenNewLoanData from '../components/Data/GenNewLoanData'
import CheckOldLoanData from '../components/Data/CheckOldLoanData'
import Index from '../views/Index/Index'
import Login from '../views/Login/Login'
import Main from '../views/Main'
import Home from '../views/Home'
import Project from '../views/Automation/Project'
import Case from '../views/Automation/Case'
import Report from '../views/Automation/Report'
import GenNewLoanData from '../views/ProcessData/GenNewLoanData'
import CheckOldLoanData from '../views/ProcessData/CheckOldLoanData'
Vue.use(Router)
......@@ -15,7 +17,11 @@ const router = new Router({
routes: [
{
'path': '/',
redirect: '/home'
redirect: '/index'
},
{
'path': '/index',
component: Index
},
{
'path': '/login',
......@@ -25,6 +31,10 @@ const router = new Router({
'path': '/home',
component: Home,
children: [
{
'path': '/main',
component: Main
},
{
'path': '/project',
component: Project
......
......@@ -5,6 +5,7 @@
<img src="../assets/image/logo.png" alt />
<span>测试平台</span>
</div>
<el-button type="info" @click="logout">退出</el-button>
</el-header>
<el-container>
<el-aside width="200px">
......@@ -65,16 +66,29 @@
export default {
data() {
return {
activePath: ''
activePath: '',
selectNamespace: '',
// namespace
nsOptions: [
{ label: 'qa', value: 'qa' },
{ label: 'qa2', value: 'qa2' }
]
}
},
methods: {
logout() {
window.sessionStorage.clear()
this.$router.push('/')
},
saveNavState(curPath) {
this.activePath = curPath
window.sessionStorage.setItem('activePath', curPath)
}
},
created() {
if (window.sessionStorage.getItem('env') === null) {
this.$router.push('/')
}
this.activePath = window.sessionStorage.getItem('activePath')
}
}
......@@ -86,8 +100,11 @@ export default {
}
.el-header {
background-color: #2a2961;
display: flex;
justify-content: space-between;
color: #333;
text-align: center;
align-items: center;
line-height: 60px;
> div {
display: flex;
......
<template>
<div class="main">
<div class="container">
<h3 class="title">测试平台</h3>
<el-select
v-model="namespace"
placeholder="请选择环境"
@change="handleSelectChange"
style="width: 100%; margin-top: 20px"
>
<el-option
v-for="item in nsOptions"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
<el-button type="primary" style="width: 100%; margin-top: 40px;" @click="login">登录</el-button>
</div>
</div>
</template>
<script>
export default {
data() {
return {
namespace: '',
nsOptions: [
{ label: 'qa', value: 'qa' },
{ label: 'test1', value: 'test1' }
]
}
},
methods: {
// 给store.state.env赋值
handleSelectChange() {
window.sessionStorage.setItem('env', this.namespace)
},
login() {
if (this.namespace === '') {
return this.$message.error('请先选择环境')
}
this.$router.push('/main')
}
}
}
</script>
<style lang="less" scoped>
.main {
position: fixed;
height: 100%;
width: 100%;
background-color: #2d3a4b;
.container {
height: 300px;
width: 500px;
margin: 200px auto;
padding: 20px;
}
}
.title {
text-align: center;
font-size: 26px;
color: #ffffff;
}
.area {
margin-top: 40px;
}
</style>
......@@ -2,7 +2,7 @@
<div class="login_container">
<div class="login_box">
<div class="avatar_box">
<img src="../assets/image/qa.jpg" />
<img src="../../assets/image/qa.jpg" />
</div>
<el-form
:model="loginForm"
......
<template>
<div>
<h2>欢迎来到测试平台!</h2>
</div>
</template>
<script>
export default {}
</script>
<style lang="less" scoped>
</style>
......@@ -8,23 +8,7 @@
<!-- 卡片视图 -->
<el-card>
<!-- namespace下拉框 -->
<div class="filter">
<p>
Namespace:
<el-select
v-model="selectNamespace"
placeholder="请选择namespace"
@change="selectNamespaceChange"
>
<el-option
v-for="item in namespaceOptions"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</p>
<!-- 借款状态下拉框 -->
<p>
借款状态:
......@@ -39,7 +23,7 @@
</p>
<!-- 查询数据按钮 -->
<p>
<el-button type="primary" style="margin-left:20px" @click="getTableData">查询数据</el-button>
<el-button type="primary" style="margin-left:20px" @click="checkData">查询数据</el-button>
</p>
</div>
<!-- 数据表格 -->
......@@ -74,41 +58,39 @@
<script>
export default {
inject: ['reload'],
data() {
return {
namespaceOptions: [],
baseUrl: '',
// namespaceOptions: [],
statusOptions: [],
dataTable: [],
selectNamespace: '',
// selectNamespace: '',
selectStatus: '',
totalNum: 0,
queryInfo: {
namespace: '',
namespace: window.sessionStorage.getItem('env'),
status: '',
pageNum: 1,
pageSize: 10
}
}
},
created() {},
created() {
this.setBaseUrl()
},
methods: {
// 获取namespace选项
getNamespaceOptions() {
this.$axios
.get('/allEnvInfo')
.then(response => {
this.namespaceOptions = response['data']['data']
})
.catch(error => console.log(error))
setBaseUrl() {
this.$axios.defaults.baseURL = 'https://qa-platform-pre.liangkebang.net'
},
// 获取状态选项
getStatusOptions() {
this.$axios
.get('/allUserLoanStatus')
.then(response => {
.then((response) => {
this.statusOptions = response['data']['data']
})
.catch(error => console.log(error))
.catch((error) => console.log(error))
},
// 获取表格数据
getTableData() {
......@@ -120,13 +102,20 @@ export default {
}
this.dataTable = []
this.$axios
.get('/getLoanUserData', { params: this.queryInfo })
.then(response => {
.get('/getLoanUserData', {
params: this.queryInfo
})
.then((response) => {
this.dataTable = response.data.data.content
this.totalNum = response.data.data.totalNum
console.log(this.dataTable)
})
.catch(error => console.log(error))
.catch((error) => console.log(error))
},
checkData() {
this.queryInfo.pageNum = 1
this.queryInfo.pageSize = 10
this.getTableData()
},
// 用户状态改变
selectStatusChange() {
......@@ -146,7 +135,7 @@ export default {
}
},
mounted() {
this.getNamespaceOptions()
// this.getNamespaceOptions()
this.getStatusOptions()
}
}
......
<template>
<div>
<!-- 头部导航栏 -->
<el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item>数据工厂</el-breadcrumb-item>
<el-breadcrumb-item>生成新数据</el-breadcrumb-item>
</el-breadcrumb>
<!-- 卡片视图 -->
<el-card>
<div>
类型:
<el-select v-model="genDataBody.type" placeholder="请选择类型">
<el-option
v-for="item in typeOptions"
:key="item.type"
:label="item.typeName"
:value="item.type"
></el-option>
</el-select>
<!-- 渠道 -->
渠道:
<el-select v-model="genDataBody.channel" placeholder="请选择渠道">
<el-option
v-for="item in channelList"
:key="item.channel"
:label="item.channelName"
:value="item.channel"
></el-option>
</el-select>
<!-- 资方 -->
资方:
<el-input v-model="genDataBody.fundID" clearable placeholder="资方id" style="width: 200px;"></el-input>
</div>
<div>
期数:
<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-number
v-model="expectNum"
@change="handleExpectNumChange"
:min="1"
:max="100"
label="数据个数"
></el-input-number>
<!-- 查询数据按钮 -->
<el-button type="primary" style="margin-left:20px" @click="genData">生成数据</el-button>
</div>
<!-- 数据表格 -->
<div class="dataTable">
<el-table :data="dataTable" border style="width: 100%">
<el-table-column type="phoneNo" label="phone_no" width="100px"></el-table-column>
<el-table-column prop="userId" label="user_id" width="100px"></el-table-column>
<el-table-column prop="uuid" label="uuid" width="250px"></el-table-column>
<el-table-column prop="riskStatus" label="授信状态" width="100px"></el-table-column>
<el-table-column prop="channel" label="注册渠道" width="100px"></el-table-column>
<el-table-column prop="fundId" label="资方" width="100px"></el-table-column>
<el-table-column prop="createdAt" label="创建时间"></el-table-column>
</el-table>
</div>
</el-card>
</div>
</template>
<script>
export default {
data() {
return {
namespaceOptions: [],
typeOptions: [],
fundList: [],
channelList: [],
selectNamespace: '',
expectNum: '1',
// 生成数据接口的body
genDataBody: {
channel: '',
termNo: '',
amount: '',
fundID: '',
type: ''
}
}
},
created() {
this.setBaseUrl()
},
methods: {
setBaseUrl() {
this.$axios.defaults.baseURL =
'https://boss-' +
window.sessionStorage.getItem('env') +
'.liangkebang.net'
},
// 获取类型和渠道
getTypeOptions() {
this.$axios
.get('/oneclickdate/v1/channelCode')
.then((response) => {
this.typeOptions = response['data']['data']['typeList']
this.channelList = response['data']['data']['channelCodeList']
})
.catch((error) => console.log(error))
},
// 渠道变化
// selectChannelChange() {
// this.genDataBody.channel = this.selectChannel
// },
// 造数据
genData() {
if (this.genDataBody.type === '') {
return this.$message.error('借款状态不能为空')
}
this.$axios
.post('/oneclickdate/v1/type', this.genDataBody)
.then((response) => {
console.log(response)
})
.catch((error) => console.log(error))
}
},
mounted() {
this.getTypeOptions()
}
}
</script>
<style lang="less" scoped>
.dataTable {
margin-top: 20px;
}
.el-select {
margin-right: 15px;
margin-bottom: 10px;
}
.el-input {
margin-right: 15px;
}
</style>
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