@@ -2,4 +2,5 @@ | |||||
ENV = 'development' | ENV = 'development' | ||||
# base api | # base api | ||||
VUE_APP_BASE_API = '/dev-api' | |||||
#VUE_APP_BASE_API = '/dev-api' | |||||
VUE_APP_BASE_API = 'https://id.ssjlai.com/gateway/core' |
@@ -1,6 +1,6 @@ | |||||
# just a flag | # just a flag | ||||
ENV = 'production' | ENV = 'production' | ||||
# base api | |||||
VUE_APP_BASE_API = '/prod-api' | |||||
#VUE_APP_BASE_API = '/dev-api' | |||||
VUE_APP_BASE_API = 'https://ai.ssjlai.com/gateway/core' | |||||
@@ -4,5 +4,6 @@ NODE_ENV = production | |||||
ENV = 'test' | ENV = 'test' | ||||
# base api | # base api | ||||
VUE_APP_BASE_API = '/stage-api' | |||||
#VUE_APP_BASE_API = '/dev-api' | |||||
VUE_APP_BASE_API = 'https://id.ssjlai.com/gateway/core' | |||||
@@ -1,7 +1,7 @@ | |||||
<!-- | <!-- | ||||
* @Date: 2021-11-29 11:14:13 | * @Date: 2021-11-29 11:14:13 | ||||
* @LastEditors: JinxuChen | * @LastEditors: JinxuChen | ||||
* @LastEditTime: 2021-12-03 17:11:59 | |||||
* @LastEditTime: 2021-12-06 18:13:14 | |||||
* @FilePath: \GpsCardAdmin\README.md | * @FilePath: \GpsCardAdmin\README.md | ||||
* @description: | * @description: | ||||
--> | --> | ||||
@@ -38,4 +38,11 @@ FEATURE | |||||
- 取消 右键标签刷新操作 | - 取消 右键标签刷新操作 | ||||
- 修改 右键标签为中文 | - 修改 右键标签为中文 | ||||
- 增加 标签刷新 | - 增加 标签刷新 | ||||
- 修复 刷新错误的问题 | |||||
- 修复 刷新错误的问题 | |||||
## v1.0.4F | |||||
`2021年12月6日` | |||||
FEATURE | |||||
- 增加 封装接口地址 | |||||
- 修改 登录账号密码 telpo telpo#1234 |
@@ -0,0 +1,22 @@ | |||||
/* | |||||
* @Date: 2021-12-06 17:31:43 | |||||
* @LastEditors: JinxuChen | |||||
* @LastEditTime: 2021-12-06 18:07:02 | |||||
* @FilePath: \GpsCardAdmin\src\api\off-limits-manage.js | |||||
* @description: 封装告警识别内容接口 | |||||
*/ | |||||
import request from '@/utils/request' | |||||
export const APILimits = { | |||||
getRecognition | |||||
}; | |||||
export default APILimits; | |||||
// 自动报警通用关键词查询 | |||||
function getRecognition(params) { | |||||
return request({ | |||||
url: '/api/v1/Fence/AreaGeneralFilterQuery', | |||||
method: 'post', | |||||
data: params, | |||||
}); | |||||
} |
@@ -1,18 +1,26 @@ | |||||
/* | |||||
* @Date: 2021-11-30 15:35:16 | |||||
* @LastEditors: JinxuChen | |||||
* @LastEditTime: 2021-12-06 17:23:57 | |||||
* @FilePath: \GpsCardAdmin\src\api\user.js | |||||
* @description: | |||||
*/ | |||||
import request from '@/utils/request' | import request from '@/utils/request' | ||||
export function login(data) { | |||||
const baseUrl = process.env.VUE_APP_BASE_API.replace('core', 'auth'); | |||||
export function login(params) { | |||||
return request({ | return request({ | ||||
url: '/vue-admin-template/user/login', | |||||
url: `${baseUrl}/identityController/login`, | |||||
method: 'post', | method: 'post', | ||||
data | |||||
data: params | |||||
}) | }) | ||||
} | } | ||||
export function getInfo(token) { | |||||
export function getInfo(params) { | |||||
return request({ | return request({ | ||||
url: '/vue-admin-template/user/info', | |||||
method: 'get', | |||||
params: { token } | |||||
url: '/api/v1/Ability/study_ai/terminal/auth', | |||||
method: 'post', | |||||
data: params | |||||
}) | }) | ||||
} | } | ||||
@@ -7,13 +7,15 @@ | |||||
/> | /> | ||||
<breadcrumb class="breadcrumb-container" /> | <breadcrumb class="breadcrumb-container" /> | ||||
<div class="left-menu"> | |||||
<span class="current-user">当前用户:{{currentUser}}</span> | |||||
<!-- todo 接口暂没有名称 暂时取消显示 --> | |||||
<div class="left-menu" v-show="false"> | |||||
<span class="current-user">当前用户:{{name}}</span> | |||||
</div> | </div> | ||||
<div class="right-menu"> | <div class="right-menu"> | ||||
<el-dropdown class="avatar-container" trigger="click"> | <el-dropdown class="avatar-container" trigger="click"> | ||||
<div class="avatar-wrapper"> | <div class="avatar-wrapper"> | ||||
<img :src="avatar+'?imageView2/1/w/80/h/80'" class="user-avatar" /> | |||||
<!-- <img :src="avatar+'?imageView2/1/w/80/h/80'" class="user-avatar" /> --> | |||||
<img :src="avatarImg" /> | |||||
<i class="el-icon-caret-bottom" /> | <i class="el-icon-caret-bottom" /> | ||||
</div> | </div> | ||||
<el-dropdown-menu slot="dropdown" class="user-dropdown"> | <el-dropdown-menu slot="dropdown" class="user-dropdown"> | ||||
@@ -36,18 +38,20 @@ | |||||
import { mapGetters } from "vuex"; | import { mapGetters } from "vuex"; | ||||
import Breadcrumb from "@/components/Breadcrumb"; | import Breadcrumb from "@/components/Breadcrumb"; | ||||
import Hamburger from "@/components/Hamburger"; | import Hamburger from "@/components/Hamburger"; | ||||
import { getToken, setToken, removeToken } from '@/utils/auth'; | |||||
import { resetRouter } from '@/router' | |||||
export default { | export default { | ||||
components: { | components: { | ||||
Breadcrumb, | Breadcrumb, | ||||
Hamburger | Hamburger | ||||
}, | }, | ||||
computed: { | computed: { | ||||
...mapGetters(["sidebar", "avatar"]) | |||||
...mapGetters(["sidebar", "avatar", "name"]) | |||||
}, | }, | ||||
data() { | data() { | ||||
return { | return { | ||||
currentUser: this.$store.getters.name | |||||
/* currentUser: this.$store.getters.name, */ | |||||
avatarImg: require('../../assets/telpo.png') | |||||
} | } | ||||
}, | }, | ||||
methods: { | methods: { | ||||
@@ -55,7 +59,9 @@ export default { | |||||
this.$store.dispatch("app/toggleSideBar"); | this.$store.dispatch("app/toggleSideBar"); | ||||
}, | }, | ||||
async logout() { | async logout() { | ||||
await this.$store.dispatch("user/logout"); | |||||
/* await this.$store.dispatch("user/logout"); */ | |||||
removeToken() // must remove token first | |||||
resetRouter() | |||||
this.$router.push(`/login?redirect=${this.$route.fullPath}`); | this.$router.push(`/login?redirect=${this.$route.fullPath}`); | ||||
} | } | ||||
} | } | ||||
@@ -1,3 +1,10 @@ | |||||
/* | |||||
* @Date: 2021-11-30 15:34:49 | |||||
* @LastEditors: JinxuChen | |||||
* @LastEditTime: 2021-12-06 18:06:34 | |||||
* @FilePath: \GpsCardAdmin\src\permission.js | |||||
* @description: | |||||
*/ | |||||
import router from './router' | import router from './router' | ||||
import store from './store' | import store from './store' | ||||
import { Message } from 'element-ui' | import { Message } from 'element-ui' | ||||
@@ -32,8 +39,7 @@ router.beforeEach(async(to, from, next) => { | |||||
} else { | } else { | ||||
try { | try { | ||||
// get user info | // get user info | ||||
await store.dispatch('user/getInfo') | |||||
/* await store.dispatch('user/getInfo'); */ | |||||
next() | next() | ||||
} catch (error) { | } catch (error) { | ||||
// remove token and go to login page to re-login | // remove token and go to login page to re-login | ||||
@@ -1,9 +1,17 @@ | |||||
/* | |||||
* @Date: 2021-11-30 15:35:16 | |||||
* @LastEditors: JinxuChen | |||||
* @LastEditTime: 2021-12-06 16:07:16 | |||||
* @FilePath: \GpsCardAdmin\src\store\getters.js | |||||
* @description: | |||||
*/ | |||||
const getters = { | const getters = { | ||||
sidebar: state => state.app.sidebar, | sidebar: state => state.app.sidebar, | ||||
device: state => state.app.device, | device: state => state.app.device, | ||||
visitedViews: state => state.tagsView.visitedViews, | visitedViews: state => state.tagsView.visitedViews, | ||||
cachedViews: state => state.tagsView.cachedViews, | cachedViews: state => state.tagsView.cachedViews, | ||||
token: state => state.user.token, | token: state => state.user.token, | ||||
authToken: state => state.user.authToken, | |||||
avatar: state => state.user.avatar, | avatar: state => state.user.avatar, | ||||
name: state => state.user.name, | name: state => state.user.name, | ||||
roles: state => state.user.roles, | roles: state => state.user.roles, | ||||
@@ -1,10 +1,13 @@ | |||||
import { login, logout, getInfo } from '@/api/user' | |||||
import { getToken, setToken, removeToken } from '@/utils/auth' | |||||
import { login, logout, getInfo } from '@/api/user'; | |||||
import { getToken, setToken, removeToken } from '@/utils/auth'; | |||||
import { getAuthToken, setAuthToken, removeAuthToken } from '@/utils/auth-token'; | |||||
import APPId from '@/utils/appId' | |||||
import { resetRouter } from '@/router' | import { resetRouter } from '@/router' | ||||
const getDefaultState = () => { | const getDefaultState = () => { | ||||
return { | return { | ||||
token: getToken(), | token: getToken(), | ||||
authToken: getAuthToken(), | |||||
name: '', | name: '', | ||||
avatar: '' | avatar: '' | ||||
} | } | ||||
@@ -19,44 +22,51 @@ const mutations = { | |||||
SET_TOKEN: (state, token) => { | SET_TOKEN: (state, token) => { | ||||
state.token = token | state.token = token | ||||
}, | }, | ||||
SET_AUTH_TOKEN: (state, authToken) => { | |||||
state.authToken = authToken | |||||
}, | |||||
SET_NAME: (state, name) => { | SET_NAME: (state, name) => { | ||||
state.name = name | state.name = name | ||||
}, | }, | ||||
SET_AVATAR: (state, avatar) => { | SET_AVATAR: (state, avatar) => { | ||||
state.avatar = avatar | state.avatar = avatar | ||||
}, | |||||
SET_ROLES: (state, roles) => { | |||||
state.roles = roles | |||||
} | } | ||||
} | } | ||||
const actions = { | const actions = { | ||||
// user login | // user login | ||||
login({ commit }, userInfo) { | login({ commit }, userInfo) { | ||||
const { username, password } = userInfo | |||||
const { loginName, password } = userInfo | |||||
return new Promise((resolve, reject) => { | return new Promise((resolve, reject) => { | ||||
login({ username: username.trim(), password: password }).then(response => { | |||||
const { data } = response | |||||
commit('SET_TOKEN', data.token) | |||||
setToken(data.token) | |||||
resolve() | |||||
login({ loginName: loginName.trim(), password: password, appId: APPId }).then(response => { | |||||
console.log("response", response); | |||||
const { data } = response; | |||||
commit('SET_TOKEN', data.authToken); | |||||
setToken(data.authToken) | |||||
resolve(data) | |||||
}).catch(error => { | }).catch(error => { | ||||
reject(error) | reject(error) | ||||
}) | }) | ||||
}) | }) | ||||
}, | }, | ||||
// get user info | // get user info | ||||
getInfo({ commit, state }) { | |||||
getInfo({ commit}) { | |||||
return new Promise((resolve, reject) => { | return new Promise((resolve, reject) => { | ||||
getInfo(state.token).then(response => { | |||||
const { data } = response | |||||
let manufactorId = '5bf13062-a41e-4d00-ba14-1101aad12650' | |||||
getInfo({manufactorId: manufactorId}).then(response => { | |||||
const { data } = response; | |||||
/* data['roles'] = ['admin'] */ | |||||
if (!data) { | if (!data) { | ||||
return reject('Verification failed, please Login again.') | |||||
return reject('验证过期,请重新登录!') | |||||
} | } | ||||
const { name, avatar } = data | |||||
commit('SET_NAME', name) | |||||
commit('SET_AVATAR', avatar) | |||||
/* const { roles, name} = data | |||||
commit('SET_ROLES', roles) | |||||
commit('SET_NAME', name) */ | |||||
commit('SET_AUTH_TOKEN', data); | |||||
setAuthToken(data); | |||||
resolve(data) | resolve(data) | ||||
}).catch(error => { | }).catch(error => { | ||||
reject(error) | reject(error) | ||||
@@ -79,13 +89,13 @@ const actions = { | |||||
}, | }, | ||||
// remove token | // remove token | ||||
resetToken({ commit }) { | |||||
resetToken({ commit, state }) { | |||||
return new Promise(resolve => { | return new Promise(resolve => { | ||||
removeToken() // must remove token first | removeToken() // must remove token first | ||||
commit('RESET_STATE') | commit('RESET_STATE') | ||||
resolve() | resolve() | ||||
}) | }) | ||||
} | |||||
}, | |||||
} | } | ||||
export default { | export default { | ||||
@@ -0,0 +1,7 @@ | |||||
const APPID = process.env.NODE_ENV === 'production' | |||||
? | |||||
'0e2654a6-b323-4147-aa92-43ec1b092694' /* pro 生产环境 appid */ | |||||
: | |||||
// 'fe76405a-4b2c-4403-bef8-91728f23ef0c'; /* dev 开发环境 appid */ | |||||
'0e2654a6-b323-4147-aa92-43ec1b092694'; /* 开发环境使用正式环境的 appid 方便调试 */ | |||||
export default APPID; |
@@ -0,0 +1,22 @@ | |||||
/* | |||||
* @Date: 2021-11-30 15:34:34 | |||||
* @LastEditors: JinxuChen | |||||
* @LastEditTime: 2021-12-06 16:10:40 | |||||
* @FilePath: \GpsCardAdmin\src\utils\auth-token.js | |||||
* @description: | |||||
*/ | |||||
import Cookies from 'js-cookie' | |||||
const TokenKey = 'authtoken' | |||||
export function getAuthToken() { | |||||
return Cookies.get(TokenKey) | |||||
} | |||||
export function setAuthToken(token) { | |||||
return Cookies.set(TokenKey, token) | |||||
} | |||||
export function removeAuthToken() { | |||||
return Cookies.remove(TokenKey) | |||||
} |
@@ -1,6 +1,13 @@ | |||||
/* | |||||
* @Date: 2021-11-30 15:34:34 | |||||
* @LastEditors: JinxuChen | |||||
* @LastEditTime: 2021-12-06 14:32:08 | |||||
* @FilePath: \GpsCardAdmin\src\utils\auth.js | |||||
* @description: | |||||
*/ | |||||
import Cookies from 'js-cookie' | import Cookies from 'js-cookie' | ||||
const TokenKey = 'vue_admin_template_token' | |||||
const TokenKey = 'token' | |||||
export function getToken() { | export function getToken() { | ||||
return Cookies.get(TokenKey) | return Cookies.get(TokenKey) | ||||
@@ -1,8 +1,8 @@ | |||||
/* | /* | ||||
* @Date: 2021-11-30 15:09:25 | * @Date: 2021-11-30 15:09:25 | ||||
* @LastEditors: JinxuChen | * @LastEditors: JinxuChen | ||||
* @LastEditTime: 2021-12-03 15:26:11 | |||||
* @LastEditTime: 2021-12-06 18:29:49 | |||||
* @FilePath: \GpsCardAdmin\src\utils\model.js | * @FilePath: \GpsCardAdmin\src\utils\model.js | ||||
* @description: 版本号 | * @description: 版本号 | ||||
*/ | */ | ||||
export const VersionModel = '1.0.3'; | |||||
export const VersionModel = '1.0.4'; |
@@ -7,7 +7,7 @@ import { getToken } from '@/utils/auth' | |||||
const service = axios.create({ | const service = axios.create({ | ||||
baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url | baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url | ||||
// withCredentials: true, // send cookies when cross-domain requests | // withCredentials: true, // send cookies when cross-domain requests | ||||
timeout: 5000 // request timeout | |||||
/* timeout: 5000 */// request timeout | |||||
}) | }) | ||||
// request interceptor | // request interceptor | ||||
@@ -19,7 +19,7 @@ service.interceptors.request.use( | |||||
// let each request carry token | // let each request carry token | ||||
// ['X-Token'] is a custom headers key | // ['X-Token'] is a custom headers key | ||||
// please modify it according to the actual situation | // please modify it according to the actual situation | ||||
config.headers['X-Token'] = getToken() | |||||
config.headers['AuthToken'] = store.getters.token; | |||||
} | } | ||||
return config | return config | ||||
}, | }, | ||||
@@ -46,7 +46,7 @@ service.interceptors.response.use( | |||||
const res = response.data | const res = response.data | ||||
// if the custom code is not 20000, it is judged as an error. | // if the custom code is not 20000, it is judged as an error. | ||||
if (res.code !== 20000) { | |||||
if (res.code !== 0) { | |||||
Message({ | Message({ | ||||
message: res.message || 'Error', | message: res.message || 'Error', | ||||
type: 'error', | type: 'error', | ||||
@@ -1,7 +1,7 @@ | |||||
<!-- | <!-- | ||||
* @Date: 2021-11-29 11:20:35 | * @Date: 2021-11-29 11:20:35 | ||||
* @LastEditors: JinxuChen | * @LastEditors: JinxuChen | ||||
* @LastEditTime: 2021-11-30 14:07:24 | |||||
* @LastEditTime: 2021-12-06 14:26:50 | |||||
* @FilePath: \GpsCardAdmin\src\views\dashboard\index.vue | * @FilePath: \GpsCardAdmin\src\views\dashboard\index.vue | ||||
* @description: | * @description: | ||||
--> | --> | ||||
@@ -20,6 +20,9 @@ export default { | |||||
...mapGetters([ | ...mapGetters([ | ||||
'name' | 'name' | ||||
]) | ]) | ||||
}, | |||||
mounted() { | |||||
console.log(this.$store.getters.name); | |||||
} | } | ||||
} | } | ||||
</script> | </script> | ||||
@@ -3,7 +3,7 @@ | |||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left"> | <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left"> | ||||
<div class="title-container"> | <div class="title-container"> | ||||
<h3 class="title">Login Form</h3> | |||||
<h3 class="title">登录</h3> | |||||
</div> | </div> | ||||
<el-form-item prop="username"> | <el-form-item prop="username"> | ||||
@@ -12,8 +12,8 @@ | |||||
</span> | </span> | ||||
<el-input | <el-input | ||||
ref="username" | ref="username" | ||||
v-model="loginForm.username" | |||||
placeholder="Username" | |||||
v-model="loginForm.loginName" | |||||
placeholder="用户名" | |||||
name="username" | name="username" | ||||
type="text" | type="text" | ||||
tabindex="1" | tabindex="1" | ||||
@@ -30,7 +30,7 @@ | |||||
ref="password" | ref="password" | ||||
v-model="loginForm.password" | v-model="loginForm.password" | ||||
:type="passwordType" | :type="passwordType" | ||||
placeholder="Password" | |||||
placeholder="密码" | |||||
name="password" | name="password" | ||||
tabindex="2" | tabindex="2" | ||||
auto-complete="on" | auto-complete="on" | ||||
@@ -43,7 +43,7 @@ | |||||
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">Login</el-button> | <el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">Login</el-button> | ||||
<div class="tips"> | |||||
<div class="tips" v-show="false"> | |||||
<span style="margin-right:20px;">username: admin</span> | <span style="margin-right:20px;">username: admin</span> | ||||
<span> password: any</span> | <span> password: any</span> | ||||
</div> | </div> | ||||
@@ -60,25 +60,25 @@ export default { | |||||
data() { | data() { | ||||
const validateUsername = (rule, value, callback) => { | const validateUsername = (rule, value, callback) => { | ||||
if (!validUsername(value)) { | if (!validUsername(value)) { | ||||
callback(new Error('Please enter the correct user name')) | |||||
callback(new Error('请输入账号')) | |||||
} else { | } else { | ||||
callback() | callback() | ||||
} | } | ||||
} | } | ||||
const validatePassword = (rule, value, callback) => { | const validatePassword = (rule, value, callback) => { | ||||
if (value.length < 6) { | if (value.length < 6) { | ||||
callback(new Error('The password can not be less than 6 digits')) | |||||
callback(new Error('密码长度不能少于6位')) | |||||
} else { | } else { | ||||
callback() | callback() | ||||
} | } | ||||
} | } | ||||
return { | return { | ||||
loginForm: { | loginForm: { | ||||
username: 'admin', | |||||
password: '111111' | |||||
loginName: 'telpo', | |||||
password: 'telpo#1234' | |||||
}, | }, | ||||
loginRules: { | loginRules: { | ||||
username: [{ required: true, trigger: 'blur', validator: validateUsername }], | |||||
loginName: [{ required: true, trigger: 'blur', validator: validateUsername }], | |||||
password: [{ required: true, trigger: 'blur', validator: validatePassword }] | password: [{ required: true, trigger: 'blur', validator: validatePassword }] | ||||
}, | }, | ||||
loading: false, | loading: false, | ||||
@@ -106,10 +106,13 @@ export default { | |||||
}) | }) | ||||
}, | }, | ||||
handleLogin() { | handleLogin() { | ||||
let _this = this; | |||||
this.$refs.loginForm.validate(valid => { | this.$refs.loginForm.validate(valid => { | ||||
if (valid) { | if (valid) { | ||||
this.loading = true | this.loading = true | ||||
this.$store.dispatch('user/login', this.loginForm).then(() => { | |||||
this.$store.dispatch('user/login', this.loginForm).then(res => { | |||||
console.log("res", res.userName); | |||||
_this.$store.dispatch('user/getInfo'); | |||||
this.$router.push({ path: this.redirect || '/' }) | this.$router.push({ path: this.redirect || '/' }) | ||||
this.loading = false | this.loading = false | ||||
}).catch(() => { | }).catch(() => { | ||||
@@ -1,7 +1,7 @@ | |||||
<!-- | <!-- | ||||
* @Date: 2021-11-30 09:44:24 | * @Date: 2021-11-30 09:44:24 | ||||
* @LastEditors: JinxuChen | * @LastEditors: JinxuChen | ||||
* @LastEditTime: 2021-12-01 17:33:03 | |||||
* @LastEditTime: 2021-12-06 18:28:18 | |||||
* @FilePath: \GpsCardAdmin\src\views\off-limits-manage\alarm-recognition\index.vue | * @FilePath: \GpsCardAdmin\src\views\off-limits-manage\alarm-recognition\index.vue | ||||
* @description: | * @description: | ||||
--> | --> | ||||
@@ -133,6 +133,7 @@ import TopMenu from "@/components/TopMenu"; | |||||
import TTable from "../../../components/TTable/TTable"; | import TTable from "../../../components/TTable/TTable"; | ||||
import Pagination from "@/components/Pagination"; | import Pagination from "@/components/Pagination"; | ||||
import UploadExcelComponent from "@/components/UploadExcel/index.vue"; | import UploadExcelComponent from "@/components/UploadExcel/index.vue"; | ||||
import APILimits from '@/api/off-limits-manage' | |||||
export default { | export default { | ||||
name: "", | name: "", | ||||
components: { TTable, TopMenu, Pagination, UploadExcelComponent }, | components: { TTable, TopMenu, Pagination, UploadExcelComponent }, | ||||
@@ -269,7 +270,19 @@ export default { | |||||
.catch(() => {}); | .catch(() => {}); | ||||
}, | }, | ||||
// 获取分页数据 | // 获取分页数据 | ||||
getList() {}, | |||||
getList() { | |||||
let reqBody = { | |||||
pageNumber: 1, | |||||
begNumber: 20, | |||||
categoryId: '', | |||||
keyword: '', | |||||
} | |||||
APILimits.getRecognition(reqBody).then(res => { | |||||
console.log("res", res); | |||||
/* this.list = res.data; */ | |||||
}); | |||||
}, | |||||
beforeUpload(file) { | beforeUpload(file) { | ||||
const isLt1M = file.size / 1024 / 1024 < 1; | const isLt1M = file.size / 1024 / 1024 < 1; | ||||
@@ -290,6 +303,9 @@ export default { | |||||
}); | }); | ||||
this.dialogUpload = false; | this.dialogUpload = false; | ||||
} | } | ||||
}, | |||||
mounted() { | |||||
this.getList() | |||||
} | } | ||||
}; | }; | ||||
</script> | </script> | ||||