parent
8d9838a022
commit
dd874abd10
@ -1,61 +1,62 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function save(data) {
|
||||
return request({
|
||||
url: '/api/admin/parameter/save',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function store(data) {
|
||||
return request({
|
||||
url: '/api/admin/parameter/store',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export function getparameter(param) {
|
||||
return request({
|
||||
url: '/api/admin/parameter/show',
|
||||
method: 'get',
|
||||
params: param
|
||||
})
|
||||
}
|
||||
|
||||
export function getparameteritem(number) {
|
||||
|
||||
return request({
|
||||
url: '/api/admin/parameter/show',
|
||||
method: 'get',
|
||||
params: {
|
||||
number: number
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export function listparameter(param) {
|
||||
return request({
|
||||
url: '/api/admin/parameter/index',
|
||||
method: 'get',
|
||||
params: param
|
||||
})
|
||||
}
|
||||
export function del(id) {
|
||||
return request({
|
||||
url: '/api/admin/parameter/delete',
|
||||
method: 'get',
|
||||
params: {
|
||||
id
|
||||
}
|
||||
})
|
||||
}
|
||||
export function delDetail(id) {
|
||||
return request({
|
||||
url: '/api/admin/parameter/detail-delete',
|
||||
method: 'get',
|
||||
params: {
|
||||
id
|
||||
}
|
||||
})
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function save(data) {
|
||||
return request({
|
||||
url: '/api/admin/parameter/save',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function store(data) {
|
||||
return request({
|
||||
url: '/api/admin/parameter/store',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
export function getparameter(param,loading = true) {
|
||||
return request({
|
||||
url: '/api/admin/parameter/show',
|
||||
method: 'get',
|
||||
params: param,
|
||||
isLoading:loading
|
||||
})
|
||||
}
|
||||
|
||||
export function getparameteritem(number) {
|
||||
|
||||
return request({
|
||||
url: '/api/admin/parameter/show',
|
||||
method: 'get',
|
||||
params: {
|
||||
number: number
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export function listparameter(param) {
|
||||
return request({
|
||||
url: '/api/admin/parameter/index',
|
||||
method: 'get',
|
||||
params: param
|
||||
})
|
||||
}
|
||||
export function del(id) {
|
||||
return request({
|
||||
url: '/api/admin/parameter/delete',
|
||||
method: 'get',
|
||||
params: {
|
||||
id
|
||||
}
|
||||
})
|
||||
}
|
||||
export function delDetail(id) {
|
||||
return request({
|
||||
url: '/api/admin/parameter/detail-delete',
|
||||
method: 'get',
|
||||
params: {
|
||||
id
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@ -1,245 +1,250 @@
|
||||
<template>
|
||||
<div class="login-container">
|
||||
|
||||
<vue-particles color="#ffffff" :particleOpacity="0.7" :particlesNumber="80" shapeType="circle" :particleSize="4"
|
||||
linesColor="#ffffff" :linesWidth="1" :lineLinked="true" :lineOpacity="0.4" :linesDistance="150" :moveSpeed="3"
|
||||
:hoverEffect="true" hoverMode="grab" :clickEffect="true" clickMode="push"> </vue-particles>
|
||||
|
||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on"
|
||||
label-position="left">
|
||||
|
||||
<div class="title-container">
|
||||
<h3 class="title">四世同堂业务管理系统</h3>
|
||||
</div>
|
||||
|
||||
<el-form-item prop="username">
|
||||
<span class="svg-container">
|
||||
<svg-icon icon-class="user" />
|
||||
</span>
|
||||
<el-input ref="username" v-model="loginForm.username" placeholder="请输入登录名" name="username" type="text"
|
||||
tabindex="1" auto-complete="on" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item prop="password">
|
||||
<span class="svg-container">
|
||||
<svg-icon icon-class="password" />
|
||||
</span>
|
||||
<el-input :key="passwordType" ref="password" v-model="loginForm.password" :type="passwordType"
|
||||
placeholder="请输入密码" name="password" tabindex="2" auto-complete="on" @keyup.enter.native="handleLogin" />
|
||||
<span class="show-pwd" @click="showPwd">
|
||||
<svg-icon :icon-class="passwordType === 'password' ? 'eye' : 'eye-open'" />
|
||||
</span>
|
||||
</el-form-item>
|
||||
|
||||
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;"
|
||||
@click.native.prevent="handleLogin">登录</el-button>
|
||||
|
||||
|
||||
</el-form>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
validUsername
|
||||
} from '@/utils/validate'
|
||||
|
||||
export default {
|
||||
name: 'Login',
|
||||
data() {
|
||||
const validateUsername = (rule, value, callback) => {
|
||||
if (!validUsername(value)) {
|
||||
callback(new Error('请正确输入登录名'))
|
||||
} else {
|
||||
callback()
|
||||
}
|
||||
}
|
||||
const validatePassword = (rule, value, callback) => {
|
||||
if (value.length < 6) {
|
||||
callback(new Error('密码输入错误'))
|
||||
} else {
|
||||
callback()
|
||||
}
|
||||
}
|
||||
return {
|
||||
loginForm: {
|
||||
username: 'admin',
|
||||
password: 'Admin2022'
|
||||
},
|
||||
loginRules: {
|
||||
username: [{
|
||||
required: true,
|
||||
trigger: 'blur',
|
||||
validator: validateUsername
|
||||
}],
|
||||
password: [{
|
||||
required: true,
|
||||
trigger: 'blur',
|
||||
validator: validatePassword
|
||||
}]
|
||||
},
|
||||
loading: false,
|
||||
passwordType: 'password',
|
||||
redirect: undefined
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
$route: {
|
||||
handler: function(route) {
|
||||
this.redirect = route.query && route.query.redirect
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
showPwd() {
|
||||
if (this.passwordType === 'password') {
|
||||
this.passwordType = ''
|
||||
} else {
|
||||
this.passwordType = 'password'
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.$refs.password.focus()
|
||||
})
|
||||
},
|
||||
handleLogin() {
|
||||
this.$refs.loginForm.validate(valid => {
|
||||
if (valid) {
|
||||
this.loading = true
|
||||
this.$store.dispatch('user/login', this.loginForm).then(() => {
|
||||
|
||||
this.$router.push({
|
||||
path: this.redirect || '/'
|
||||
})
|
||||
this.loading = false
|
||||
}).catch(() => {
|
||||
this.loading = false
|
||||
})
|
||||
} else {
|
||||
console.log('error submit!!')
|
||||
return false
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
#particles-js {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
/* 修复input 背景不协调 和光标变色 */
|
||||
/* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */
|
||||
|
||||
$bg:#122583;
|
||||
$light_gray:#122583;
|
||||
$cursor: #122583;
|
||||
|
||||
@supports (-webkit-mask: none) and (not (cater-color: $cursor)) {
|
||||
.login-container .el-input input {
|
||||
color: $cursor;
|
||||
}
|
||||
}
|
||||
|
||||
/* reset element-ui css */
|
||||
.login-container {
|
||||
.el-input {
|
||||
display: inline-block;
|
||||
height: 47px;
|
||||
width: 85%;
|
||||
|
||||
input {
|
||||
background: transparent;
|
||||
border: 0px;
|
||||
-webkit-appearance: none;
|
||||
border-radius: 0px;
|
||||
padding: 12px 5px 12px 15px;
|
||||
color: $light_gray;
|
||||
height: 47px;
|
||||
caret-color: $cursor;
|
||||
|
||||
&:-webkit-autofill {
|
||||
box-shadow: 0 0 0px 1000px $bg inset !important;
|
||||
-webkit-text-fill-color: $cursor !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-form-item {
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
border-radius: 5px;
|
||||
color: #454545;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
$bg:#122583;
|
||||
$dark_gray:#122583;
|
||||
$light_gray:#122583;
|
||||
|
||||
.login-container {
|
||||
min-height: 100%;
|
||||
width: 100%;
|
||||
//background-color: $bg;
|
||||
background: url("../../assets/bg.jpg") no-repeat;
|
||||
overflow: hidden;
|
||||
|
||||
.login-form {
|
||||
position: relative;
|
||||
width: 520px;
|
||||
max-width: 100%;
|
||||
padding: 20px 35px 0;
|
||||
margin: 160px auto;
|
||||
overflow: hidden;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.tips {
|
||||
font-size: 14px;
|
||||
color: #fff;
|
||||
margin-bottom: 10px;
|
||||
|
||||
span {
|
||||
&:first-of-type {
|
||||
margin-right: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.svg-container {
|
||||
padding: 6px 5px 6px 15px;
|
||||
color: $dark_gray;
|
||||
vertical-align: middle;
|
||||
width: 30px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.title-container {
|
||||
position: relative;
|
||||
|
||||
.title {
|
||||
font-size: 26px;
|
||||
color: $light_gray;
|
||||
margin: 0px auto 40px auto;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.show-pwd {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 7px;
|
||||
font-size: 16px;
|
||||
color: $dark_gray;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
}
|
||||
<template>
|
||||
<div class="login-container">
|
||||
|
||||
<vue-particles color="#ffffff" :particleOpacity="0.7" :particlesNumber="80" shapeType="circle" :particleSize="4"
|
||||
linesColor="#ffffff" :linesWidth="1" :lineLinked="true" :lineOpacity="0.4" :linesDistance="150" :moveSpeed="3"
|
||||
:hoverEffect="true" hoverMode="grab" :clickEffect="true" clickMode="push"> </vue-particles>
|
||||
|
||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on"
|
||||
label-position="left">
|
||||
|
||||
<div class="title-container">
|
||||
<h3 class="title">四世同堂业务管理系统</h3>
|
||||
</div>
|
||||
|
||||
<el-form-item prop="username">
|
||||
<span class="svg-container">
|
||||
<svg-icon icon-class="user" />
|
||||
</span>
|
||||
<el-input ref="username" v-model="loginForm.username" placeholder="请输入登录名" name="username" type="text"
|
||||
tabindex="1" auto-complete="on" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item prop="password">
|
||||
<span class="svg-container">
|
||||
<svg-icon icon-class="password" />
|
||||
</span>
|
||||
<el-input :key="passwordType" ref="password" v-model="loginForm.password" :type="passwordType"
|
||||
placeholder="请输入密码" name="password" tabindex="2" auto-complete="on" @keyup.enter.native="handleLogin" />
|
||||
<span class="show-pwd" @click="showPwd">
|
||||
<svg-icon :icon-class="passwordType === 'password' ? 'eye' : 'eye-open'" />
|
||||
</span>
|
||||
</el-form-item>
|
||||
|
||||
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;"
|
||||
@click.native.prevent="handleLogin">登录</el-button>
|
||||
|
||||
|
||||
</el-form>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
validUsername
|
||||
} from '@/utils/validate'
|
||||
|
||||
export default {
|
||||
name: 'Login',
|
||||
data() {
|
||||
const validateUsername = (rule, value, callback) => {
|
||||
if (!validUsername(value)) {
|
||||
callback(new Error('请正确输入登录名'))
|
||||
} else {
|
||||
callback()
|
||||
}
|
||||
}
|
||||
const validatePassword = (rule, value, callback) => {
|
||||
if (value.length < 6) {
|
||||
callback(new Error('密码输入错误'))
|
||||
} else {
|
||||
callback()
|
||||
}
|
||||
}
|
||||
return {
|
||||
loginForm: {
|
||||
username: 'admin',
|
||||
password: ''
|
||||
},
|
||||
loginRules: {
|
||||
username: [{
|
||||
required: true,
|
||||
trigger: 'blur',
|
||||
validator: validateUsername
|
||||
}],
|
||||
password: [{
|
||||
required: true,
|
||||
trigger: 'blur',
|
||||
validator: validatePassword
|
||||
}]
|
||||
},
|
||||
loading: false,
|
||||
passwordType: 'password',
|
||||
redirect: undefined
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
$route: {
|
||||
handler: function(route) {
|
||||
this.redirect = route.query && route.query.redirect
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
showPwd() {
|
||||
if (this.passwordType === 'password') {
|
||||
this.passwordType = ''
|
||||
} else {
|
||||
this.passwordType = 'password'
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.$refs.password.focus()
|
||||
})
|
||||
},
|
||||
handleLogin() {
|
||||
this.$refs.loginForm.validate(valid => {
|
||||
if (valid) {
|
||||
this.loading = true
|
||||
this.$store.dispatch('user/login', this.loginForm).then(() => {
|
||||
|
||||
this.$router.push({
|
||||
path: this.redirect || '/'
|
||||
})
|
||||
this.loading = false
|
||||
}).catch(() => {
|
||||
this.loading = false
|
||||
})
|
||||
} else {
|
||||
console.log('error submit!!')
|
||||
return false
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if(process.env.NODE_ENV === 'development'){
|
||||
this.loginForm.password = 'Admin2022'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
#particles-js {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
/* 修复input 背景不协调 和光标变色 */
|
||||
/* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */
|
||||
|
||||
$bg:#122583;
|
||||
$light_gray:#122583;
|
||||
$cursor: #122583;
|
||||
|
||||
@supports (-webkit-mask: none) and (not (cater-color: $cursor)) {
|
||||
.login-container .el-input input {
|
||||
color: $cursor;
|
||||
}
|
||||
}
|
||||
|
||||
/* reset element-ui css */
|
||||
.login-container {
|
||||
.el-input {
|
||||
display: inline-block;
|
||||
height: 47px;
|
||||
width: 85%;
|
||||
|
||||
input {
|
||||
background: transparent;
|
||||
border: 0px;
|
||||
-webkit-appearance: none;
|
||||
border-radius: 0px;
|
||||
padding: 12px 5px 12px 15px;
|
||||
color: $light_gray;
|
||||
height: 47px;
|
||||
caret-color: $cursor;
|
||||
|
||||
&:-webkit-autofill {
|
||||
box-shadow: 0 0 0px 1000px $bg inset !important;
|
||||
-webkit-text-fill-color: $cursor !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-form-item {
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
border-radius: 5px;
|
||||
color: #454545;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
$bg:#122583;
|
||||
$dark_gray:#122583;
|
||||
$light_gray:#122583;
|
||||
|
||||
.login-container {
|
||||
min-height: 100%;
|
||||
width: 100%;
|
||||
//background-color: $bg;
|
||||
background: url("../../assets/bg.jpg") no-repeat;
|
||||
overflow: hidden;
|
||||
|
||||
.login-form {
|
||||
position: relative;
|
||||
width: 520px;
|
||||
max-width: 100%;
|
||||
padding: 20px 35px 0;
|
||||
margin: 160px auto;
|
||||
overflow: hidden;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.tips {
|
||||
font-size: 14px;
|
||||
color: #fff;
|
||||
margin-bottom: 10px;
|
||||
|
||||
span {
|
||||
&:first-of-type {
|
||||
margin-right: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.svg-container {
|
||||
padding: 6px 5px 6px 15px;
|
||||
color: $dark_gray;
|
||||
vertical-align: middle;
|
||||
width: 30px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.title-container {
|
||||
position: relative;
|
||||
|
||||
.title {
|
||||
font-size: 26px;
|
||||
color: $light_gray;
|
||||
margin: 0px auto 40px auto;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.show-pwd {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 7px;
|
||||
font-size: 16px;
|
||||
color: $dark_gray;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -1,104 +0,0 @@
|
||||
<template>
|
||||
<div class="container" style="padding: 0px 20px">
|
||||
<!--查询-->
|
||||
<div>
|
||||
<div ref="lxHeader">
|
||||
<lx-header icon="md-apps" text="销售管理" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
|
||||
<div slot="content"></div>
|
||||
<slot>
|
||||
<div>
|
||||
<Input style="width: 200px; margin-right: 10px" placeholder="关键字搜索" />
|
||||
<Button type="primary" style="margin-left: 10px">查询</Button>
|
||||
<Button type="primary" style="margin-left: 10px" @click="isShowAdd = true">创建销售人员</Button>
|
||||
</div>
|
||||
</slot>
|
||||
</lx-header>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 表格 -->
|
||||
<xy-table :table-item="tableItem" :list="list"></xy-table>
|
||||
|
||||
<div style="display: flex;justify-content: flex-end;">
|
||||
<Page :total="10" show-elevator />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
components:{
|
||||
MyDialog
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
formLabelWidth: "120px",
|
||||
userNameStatus: true,
|
||||
form: {
|
||||
name: "",
|
||||
username: "",
|
||||
password: ""
|
||||
},
|
||||
rules: {
|
||||
name: [{
|
||||
required: true,
|
||||
message: '请输入姓名',
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
min: 3,
|
||||
max: 5,
|
||||
message: '长度在 3 到 5 个字符',
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
username: [{
|
||||
required: true,
|
||||
message: '请输入用户名',
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
min: 3,
|
||||
max: 5,
|
||||
message: '长度在 3 到 5 个字符',
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
password: [{
|
||||
required: true,
|
||||
message: '请输入密码',
|
||||
trigger: 'blur',
|
||||
}]
|
||||
},
|
||||
isShowAdd:false,
|
||||
tableItem:[
|
||||
{
|
||||
prop:"name",
|
||||
label:"姓名"
|
||||
},
|
||||
{
|
||||
prop:"username",
|
||||
label:"用户名"
|
||||
}
|
||||
],
|
||||
list:JSON.parse('{"status":1,"data":{"rows":[{"id":1,"username":"songwz","name":"\u5b8b\u536b\u5b97","mobile":"18962113007","avatar":null,"created_at":"2021-12-02T12:50:53.000000Z","updated_at":"2021-12-02T16:13:26.000000Z","deleted_at":null},{"id":3,"username":"ags","name":"\u5b8b\u6d4b\u8bd5","mobile":"13933193538","avatar":null,"created_at":"2021-12-02T12:56:41.000000Z","updated_at":"2021-12-02T12:56:41.000000Z","deleted_at":null},{"id":7,"username":"liuxy1","name":"\u5218\u7fd4\u5b87","mobile":"18550337240","avatar":null,"created_at":"2021-12-03T17:17:46.000000Z","updated_at":"2022-06-20T07:01:00.000000Z","deleted_at":null},{"id":8,"username":"liuyu","name":"\u5218\u745c","mobile":"18550337340","avatar":null,"created_at":"2021-12-08T07:57:37.000000Z","updated_at":"2022-05-06T08:24:00.000000Z","deleted_at":null},{"id":10,"username":"15995078066","name":"\u6c88\u9ece","mobile":"15995078066","avatar":null,"created_at":"2021-12-21T09:32:40.000000Z","updated_at":"2022-05-06T08:25:00.000000Z","deleted_at":null},{"id":11,"username":"18362235035","name":"\u7fc1\u96ea\u71d5","mobile":"18362235035","avatar":null,"created_at":"2021-12-21T09:33:18.000000Z","updated_at":"2022-05-06T08:25:13.000000Z","deleted_at":null},{"id":12,"username":"13813578617","name":"\u534e\u60e0\u7389","mobile":"13813578617","avatar":null,"created_at":"2021-12-21T09:33:50.000000Z","updated_at":"2022-05-06T08:25:20.000000Z","deleted_at":null},{"id":13,"username":"13915836633","name":"\u534e\u76ca\u840d","mobile":"13915836633","avatar":null,"created_at":"2021-12-21T09:34:17.000000Z","updated_at":"2022-05-06T08:25:29.000000Z","deleted_at":null},{"id":14,"username":"15861690406","name":"\u8c22\u4e9a\u6960","mobile":"15861690406","avatar":null,"created_at":"2021-12-21T09:34:50.000000Z","updated_at":"2022-05-06T08:25:36.000000Z","deleted_at":null},{"id":15,"username":"13961241491","name":"\u7a0b\u7476","mobile":"13961241491","avatar":null,"created_at":"2021-12-25T02:54:50.000000Z","updated_at":"2022-05-06T08:25:43.000000Z","deleted_at":null},{"id":16,"username":"15722790021","name":"\u9646\u96ea\u598d","mobile":"15722790021","avatar":null,"created_at":"2021-12-25T02:55:15.000000Z","updated_at":"2022-05-06T08:25:51.000000Z","deleted_at":null},{"id":17,"username":"13915808101","name":"\u7a0b\u7231\u7433","mobile":"13915808101","avatar":null,"created_at":"2022-01-04T07:55:52.000000Z","updated_at":"2022-05-06T08:25:58.000000Z","deleted_at":null},{"id":19,"username":"15851936391","name":"\u6f58\u96f7\u654f","mobile":"15851936391","avatar":null,"created_at":"2022-01-05T07:59:56.000000Z","updated_at":"2022-05-06T08:26:06.000000Z","deleted_at":null},{"id":20,"username":"15995090911","name":"\u5434\u5029\u5170","mobile":"15995090911","avatar":null,"created_at":"2022-01-05T08:00:29.000000Z","updated_at":"2022-01-05T08:00:29.000000Z","deleted_at":null}],"pager":""}}').data.rows
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// async init(){
|
||||
// let res = await getList()
|
||||
// console.log(res)
|
||||
// },
|
||||
submit(){
|
||||
this.isShowAdd = false
|
||||
console.log(this.form)
|
||||
}
|
||||
},
|
||||
created() {
|
||||
//this.init()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
</style>
|
||||
Loading…
Reference in new issue