init code
This commit is contained in:
30
src/App.vue
Normal file
30
src/App.vue
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<router-view />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "app",
|
||||||
|
data() {
|
||||||
|
return {};
|
||||||
|
},
|
||||||
|
watch: {},
|
||||||
|
created() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {},
|
||||||
|
computed: {}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss">
|
||||||
|
#app {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.avue--detail .el-col{
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
15
src/api/common.js
Normal file
15
src/api/common.js
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import request from "@/router/axios";
|
||||||
|
import { time } from "echarts";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文件流返回
|
||||||
|
* @param url 接口地址
|
||||||
|
*/
|
||||||
|
export const exportBlob = (url) => {
|
||||||
|
return request({
|
||||||
|
url: url,
|
||||||
|
method: 'get',
|
||||||
|
responseType: 'blob',
|
||||||
|
timeout: 1000000
|
||||||
|
})
|
||||||
|
}
|
||||||
123
src/api/flow/flow.js
Normal file
123
src/api/flow/flow.js
Normal file
@@ -0,0 +1,123 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const modelList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/model/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const managerList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/manager/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const followList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/follow/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const removeModel = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/model/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const deployModel = (params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/model/deploy',
|
||||||
|
method: 'post',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const changeState = (params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/manager/change-state',
|
||||||
|
method: 'post',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const deployUpload = (category, tenantIds, files) => {
|
||||||
|
const formData = new FormData();
|
||||||
|
formData.append('category', category);
|
||||||
|
formData.append('tenantIds', tenantIds);
|
||||||
|
files.forEach(file => {
|
||||||
|
formData.append('files', file);
|
||||||
|
});
|
||||||
|
return request({
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "multipart/form-data"
|
||||||
|
},
|
||||||
|
url: '/api/blade-flow/manager/deploy-upload',
|
||||||
|
method: 'post',
|
||||||
|
data: formData
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const deleteDeployment = (deploymentIds) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/manager/delete-deployment',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
deploymentIds,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const deleteProcessInstance = (params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/follow/delete-process-instance',
|
||||||
|
method: 'post',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const submitModel = (data) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/model/submit',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const detail = (params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/model/detail',
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const modelView = (params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/process/model-view',
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
64
src/api/logs.js
Normal file
64
src/api/logs.js
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getUsualList = (current, size) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-log/usual/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
current,
|
||||||
|
size
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getApiList = (current, size) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-log/api/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
current,
|
||||||
|
size
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getErrorList = (current, size) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-log/error/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
current,
|
||||||
|
size
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const getUsualLogs = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-log/usual/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export const getApiLogs = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-log/api/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export const getErrorLogs = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-log/error/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
49
src/api/payment/paymentRecord.js
Normal file
49
src/api/payment/paymentRecord.js
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/payment/record/page',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDetail = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/payment/record/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/payment/record/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/payment/record/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/payment/record/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
22
src/api/report/report.js
Normal file
22
src/api/report/report.js
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-report/report/rest/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-report/report/rest/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
50
src/api/resource/attach.js
Normal file
50
src/api/resource/attach.js
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/attach/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDetail = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/attach/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/attach/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/attach/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/attach/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
59
src/api/resource/oss.js
Normal file
59
src/api/resource/oss.js
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/oss/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDetail = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/oss/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/oss/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/oss/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/oss/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const enable = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/oss/enable',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
72
src/api/resource/sms.js
Normal file
72
src/api/resource/sms.js
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/sms/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDetail = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/sms/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/sms/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/sms/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/sms/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const enable = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/sms/enable',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const send = (code, phones, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-resource/sms/endpoint/send-message',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
code,
|
||||||
|
phones,
|
||||||
|
params,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
80
src/api/statics/staticsDetails.js
Normal file
80
src/api/statics/staticsDetails.js
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/otc-statics/details/page',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getTeamData = (params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/otc-statics/details/team-data',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getLocationData = (params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/otc-statics/details/location-data',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getIsWhiteData = (params) =>{
|
||||||
|
return request({
|
||||||
|
url: '/api/otc-statics/details/is-white-data',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDetail = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/otc-statics/details/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/otc-statics/details/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/otc-statics/details/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/otc-statics/details/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
50
src/api/statics/staticsSummary.js
Normal file
50
src/api/statics/staticsSummary.js
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/otc-statics/summary/page',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDetail = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/otc-statics/summary/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/otc-statics/summary/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/otc-statics/summary/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/otc-statics/summary/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
50
src/api/system/client.js
Normal file
50
src/api/system/client.js
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/client/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDetail = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/client/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/client/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/client/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/client/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
81
src/api/system/dept.js
Normal file
81
src/api/system/dept.js
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dept/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getLazyList = (parentId, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dept/lazy-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
parentId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dept/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dept/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dept/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDept = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dept/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDeptTree = (tenantId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dept/tree',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
tenantId,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDeptLazyTree = (parentId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dept/lazy-tree',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
parentId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
89
src/api/system/dict.js
Normal file
89
src/api/system/dict.js
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getParentList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict/parent-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getChildList = (current, size, parentId, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict/child-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
parentId: parentId,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const getDict = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export const getDictTree = () => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict/tree?code=DICT',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDictionary = (params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict/dictionary',
|
||||||
|
method: 'get',
|
||||||
|
params,
|
||||||
|
})
|
||||||
|
}
|
||||||
89
src/api/system/dictbiz.js
Normal file
89
src/api/system/dictbiz.js
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict-biz/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getParentList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict-biz/parent-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getChildList = (current, size, parentId, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict-biz/child-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
parentId: parentId,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict-biz/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict-biz/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict-biz/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const getDict = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict-biz/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export const getDictTree = () => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict-biz/tree?code=DICT',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDictionary = (params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/dict-biz/dictionary',
|
||||||
|
method: 'get',
|
||||||
|
params,
|
||||||
|
})
|
||||||
|
}
|
||||||
106
src/api/system/menu.js
Normal file
106
src/api/system/menu.js
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/menu/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getLazyList = (parentId, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/menu/lazy-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
parentId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getLazyMenuList = (parentId, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/menu/lazy-menu-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
parentId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getMenuList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/menu/menu-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getMenuTree = (tenantId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/menu/tree',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
tenantId,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/menu/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/menu/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/menu/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getMenu = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/menu/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getTopMenu = () => request({
|
||||||
|
url: '/api/blade-system/menu/top-menu',
|
||||||
|
method: 'get'
|
||||||
|
});
|
||||||
|
|
||||||
|
export const getRoutes = (topMenuId) => request({
|
||||||
|
url: '/api/blade-system/menu/routes',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
topMenuId,
|
||||||
|
}
|
||||||
|
});
|
||||||
39
src/api/system/param.js
Normal file
39
src/api/system/param.js
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/param/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/param/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/param/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/param/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
60
src/api/system/post.js
Normal file
60
src/api/system/post.js
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/post/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getPostList = (tenantId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/post/select',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
tenantId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDetail = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/post/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/post/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/post/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/post/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
89
src/api/system/role.js
Normal file
89
src/api/system/role.js
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/role/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export const grantTree = () => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/menu/grant-tree',
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const grant = (roleIds, menuIds, dataScopeIds, apiScopeIds) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/role/grant',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
roleIds,
|
||||||
|
menuIds,
|
||||||
|
dataScopeIds,
|
||||||
|
apiScopeIds
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/role/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/role/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/role/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const getRole = (roleIds) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/menu/role-tree-keys',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
roleIds,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getRoleTree = (tenantId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/role/tree',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
tenantId,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getRoleTreeById = (roleId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/role/tree-by-id',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
roleId,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
97
src/api/system/scope.js
Normal file
97
src/api/system/scope.js
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getListDataScope = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/data-scope/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const removeDataScope = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/data-scope/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const addDataScope = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/data-scope/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const updateDataScope = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/data-scope/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getMenuDataScope = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/data-scope/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getListApiScope = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/api-scope/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const removeApiScope = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/api-scope/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const addApiScope = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/api-scope/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const updateApiScope = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/api-scope/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getMenuApiScope = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/api-scope/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
102
src/api/system/tenant.js
Normal file
102
src/api/system/tenant.js
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/tenant/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDetail = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/tenant/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/tenant/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/tenant/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/tenant/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const setting = (ids, form) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/tenant/setting',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
...form,
|
||||||
|
ids
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const datasource = (tenantId, datasourceId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/tenant/datasource',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
tenantId,
|
||||||
|
datasourceId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const info = (domain) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/tenant/info',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
domain
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const packageInfo = (tenantId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/tenant/package-detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
tenantId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const packageSetting = (tenantId, packageId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/tenant/package-setting',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
tenantId,
|
||||||
|
packageId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
50
src/api/system/tenantpackage.js
Normal file
50
src/api/system/tenantpackage.js
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/tenant-package/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDetail = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/tenant-package/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/tenant-package/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/tenant-package/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/tenant-package/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
77
src/api/system/topmenu.js
Normal file
77
src/api/system/topmenu.js
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/topmenu/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDetail = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/topmenu/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/topmenu/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/topmenu/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/topmenu/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const grantTree = () => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/menu/grant-top-tree',
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getTopTree = (topMenuIds) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/menu/top-tree-keys',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
topMenuIds,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const grant = (topMenuIds, menuIds) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-system/topmenu/grant',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
topMenuIds,
|
||||||
|
menuIds,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
130
src/api/system/user.js
Normal file
130
src/api/system/user.js
Normal file
@@ -0,0 +1,130 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params, deptId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-user/page',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
deptId,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-user/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-user/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-user/update',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const updatePlatform = (userId, userType, userExt) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-user/update-platform',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
userId,
|
||||||
|
userType,
|
||||||
|
userExt,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getUser = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-user/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getUserPlatform = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-user/platform-detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getUserInfo = () => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-user/info',
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const resetPassword = (userIds) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-user/reset-password',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
userIds,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const updatePassword = (oldPassword, newPassword, newPassword1) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-user/update-password',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
oldPassword,
|
||||||
|
newPassword,
|
||||||
|
newPassword1,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const updateInfo = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-user/update-info',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const grant = (userIds, roleIds) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-user/grant',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
userIds,
|
||||||
|
roleIds,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const unlock = (userIds) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-user/unlock',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
userIds,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
69
src/api/tool/code.js
Normal file
69
src/api/tool/code.js
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/code/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const build = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/code/gen-code',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
system: 'saber'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/code/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/code/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/code/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const copy = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/code/copy',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
id,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getCode = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/code/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
50
src/api/tool/datasource.js
Normal file
50
src/api/tool/datasource.js
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/datasource/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDetail = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/datasource/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/datasource/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/datasource/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/datasource/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
111
src/api/tool/model.js
Normal file
111
src/api/tool/model.js
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/model/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDetail = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/model/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/model/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/model/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/model/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getTableList = (datasourceId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/model/table-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
datasourceId,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getTableInfo = (modelId, datasourceId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/model/table-info',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
modelId,
|
||||||
|
datasourceId,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getTableInfoByName = (tableName, datasourceId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/model/table-info',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
tableName,
|
||||||
|
datasourceId,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getModelPrototype = (modelId, datasourceId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/model/model-prototype',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
modelId,
|
||||||
|
datasourceId,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const submitModelPrototype = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/model-prototype/submit-list',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const prototypeDetail = (modelId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-develop/model-prototype/select',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
modelId,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
115
src/api/user.js
Normal file
115
src/api/user.js
Normal file
@@ -0,0 +1,115 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
import website from "@/config/website";
|
||||||
|
|
||||||
|
export const loginByUsername = (tenantId, deptId, roleId, username, password, type, key, code) => request({
|
||||||
|
url: '/api/blade-auth/oauth/token',
|
||||||
|
method: 'post',
|
||||||
|
headers: {
|
||||||
|
'Tenant-Id': tenantId,
|
||||||
|
'Dept-Id': (website.switchMode ? deptId : ''),
|
||||||
|
'Role-Id': (website.switchMode ? roleId : ''),
|
||||||
|
'Captcha-Key': key,
|
||||||
|
'Captcha-Code': code,
|
||||||
|
},
|
||||||
|
params: {
|
||||||
|
tenantId,
|
||||||
|
username,
|
||||||
|
password,
|
||||||
|
grant_type: (website.captchaMode ? "captcha" : "password"),
|
||||||
|
scope: "all",
|
||||||
|
type
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export const loginBySocial = (tenantId, source, code, state) => request({
|
||||||
|
url: '/api/blade-auth/oauth/token',
|
||||||
|
method: 'post',
|
||||||
|
headers: {
|
||||||
|
'Tenant-Id': tenantId
|
||||||
|
},
|
||||||
|
params: {
|
||||||
|
tenantId,
|
||||||
|
source,
|
||||||
|
code,
|
||||||
|
state,
|
||||||
|
grant_type: "social",
|
||||||
|
scope: "all",
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
export const loginBySso = (state, code) => request({
|
||||||
|
url: '/api/blade-auth/oauth/token',
|
||||||
|
method: 'post',
|
||||||
|
headers: {
|
||||||
|
'Tenant-Id': state
|
||||||
|
},
|
||||||
|
params: {
|
||||||
|
tenantId: state,
|
||||||
|
code,
|
||||||
|
grant_type: "authorization_code",
|
||||||
|
scope: "all",
|
||||||
|
redirect_uri: website.redirectUri,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
export const refreshToken = (refresh_token, tenantId, deptId, roleId) => request({
|
||||||
|
url: '/api/blade-auth/oauth/token',
|
||||||
|
method: 'post',
|
||||||
|
headers: {
|
||||||
|
'Tenant-Id': tenantId,
|
||||||
|
'Dept-Id': (website.switchMode ? deptId : ''),
|
||||||
|
'Role-Id': (website.switchMode ? roleId : '')
|
||||||
|
},
|
||||||
|
params: {
|
||||||
|
tenantId,
|
||||||
|
refresh_token,
|
||||||
|
grant_type: "refresh_token",
|
||||||
|
scope: "all",
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export const registerGuest = (form, oauthId) => request({
|
||||||
|
url: '/api/blade-user/register-guest',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
tenantId: form.tenantId,
|
||||||
|
name: form.name,
|
||||||
|
account: form.account,
|
||||||
|
password: form.password,
|
||||||
|
oauthId
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export const getButtons = () => request({
|
||||||
|
url: '/api/blade-system/menu/buttons',
|
||||||
|
method: 'get'
|
||||||
|
});
|
||||||
|
|
||||||
|
export const getCaptcha = () => request({
|
||||||
|
url: '/api/blade-auth/oauth/captcha',
|
||||||
|
method: 'get',
|
||||||
|
authorization: false
|
||||||
|
});
|
||||||
|
|
||||||
|
export const logout = () => request({
|
||||||
|
url: '/api/blade-auth/oauth/logout',
|
||||||
|
method: 'get',
|
||||||
|
authorization: false
|
||||||
|
});
|
||||||
|
|
||||||
|
export const getUserInfo = () => request({
|
||||||
|
url: '/api/blade-auth/oauth/user-info',
|
||||||
|
method: 'get'
|
||||||
|
});
|
||||||
|
|
||||||
|
export const sendLogs = (list) => request({
|
||||||
|
url: '/api/blade-auth/oauth/logout',
|
||||||
|
method: 'post',
|
||||||
|
data: list
|
||||||
|
});
|
||||||
|
|
||||||
|
export const clearCache = () => request({
|
||||||
|
url: '/api/blade-auth/oauth/clear-cache',
|
||||||
|
method: 'get',
|
||||||
|
authorization: false
|
||||||
|
});
|
||||||
91
src/api/vrMerchant/vr_merchant.js
Normal file
91
src/api/vrMerchant/vr_merchant.js
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/vr/merchant/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDetail = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/vr/merchant/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/vr/merchant/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/vr/merchant/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/vr/merchant/update',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const review = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/vr/merchant/update',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getConfigList = () => {
|
||||||
|
return request({
|
||||||
|
url: '/api/vr/merchant/config_list',
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const updateConfig = (cfg) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/vr/merchant/update_config',
|
||||||
|
method: 'post',
|
||||||
|
data: cfg,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const removeConfig = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/vr/merchant/remove_config',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const sendVideo = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/vr/merchant/video/save',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
57
src/api/vrMerchant/vr_merchant_video.js
Normal file
57
src/api/vrMerchant/vr_merchant_video.js
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const getList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/vr/merchant/video/list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDetail = (id) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/vr/merchant/video/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const remove = (ids) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/vr/merchant/video/remove',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
ids,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const add = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/vr/merchant/video/submit',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const update = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/vr/merchant/video/update',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const review = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/vr/merchant/video/update',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
34
src/api/work/process.js
Normal file
34
src/api/work/process.js
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
// =====================参数===========================
|
||||||
|
|
||||||
|
export const historyFlowList = (processInstanceId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/process/history-flow-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
processInstanceId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// =====================请假流程===========================
|
||||||
|
|
||||||
|
export const leaveProcess = (data) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-desk/process/leave/start-process',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const leaveDetail = (businessId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-desk/process/leave/detail',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
businessId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
81
src/api/work/work.js
Normal file
81
src/api/work/work.js
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
import request from '@/router/axios';
|
||||||
|
|
||||||
|
export const startList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/work/start-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const claimList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/work/claim-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const todoList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/work/todo-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const sendList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/work/send-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const doneList = (current, size, params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/work/done-list',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
current,
|
||||||
|
size,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const claimTask = (taskId) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/work/claim-task',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
taskId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const completeTask = (data) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-flow/work/complete-task',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
45
src/cache.js
Normal file
45
src/cache.js
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
import Vue from 'vue'
|
||||||
|
import store from './store';
|
||||||
|
Vue.mixin({
|
||||||
|
beforeRouteEnter: function (to, from, next) {
|
||||||
|
next(() => {
|
||||||
|
let avueView = document.getElementById('avue-view');
|
||||||
|
if (avueView && to.meta.savedPosition) {
|
||||||
|
avueView.scrollTop = to.meta.savedPosition
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
beforeRouteLeave: function (to, from, next) {
|
||||||
|
let avueView = document.getElementById('avue-view');
|
||||||
|
if (from && from.meta.keepAlive) {
|
||||||
|
if (avueView) {
|
||||||
|
from.meta.savedPosition = avueView.scrollTop
|
||||||
|
}
|
||||||
|
const result = this.$route.meta.keepAlive === true && store.state.tags.tagList.some(ele => {
|
||||||
|
return ele.value === this.$route.fullPath;
|
||||||
|
});
|
||||||
|
if (this.$vnode && !result) {
|
||||||
|
from.meta.savedPosition = 0
|
||||||
|
if (this.$vnode.parent && this.$vnode.parent.componentInstance && this.$vnode.parent.componentInstance.cache) {
|
||||||
|
if (this.$vnode.componentOptions) {
|
||||||
|
let key = this.$vnode.key == null
|
||||||
|
? this.$vnode.componentOptions.Ctor.cid + (this.$vnode.componentOptions.tag ? `::${this.$vnode.componentOptions.tag}` : '')
|
||||||
|
: this.$vnode.key;
|
||||||
|
let cache = this.$vnode.parent.componentInstance.cache;
|
||||||
|
let keys = this.$vnode.parent.componentInstance.keys;
|
||||||
|
if (cache[key]) {
|
||||||
|
if (keys.length) {
|
||||||
|
let index = keys.indexOf(key);
|
||||||
|
if (index > -1) {
|
||||||
|
keys.splice(index, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
delete cache[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
next();
|
||||||
|
},
|
||||||
|
});
|
||||||
126
src/components/basic-block/main.vue
Normal file
126
src/components/basic-block/main.vue
Normal file
@@ -0,0 +1,126 @@
|
|||||||
|
<template>
|
||||||
|
<div class="basic-block"
|
||||||
|
:style="styleName">
|
||||||
|
<div class="box"
|
||||||
|
:style="boxStyleName">
|
||||||
|
<router-link :to="to">
|
||||||
|
<span v-text="text"></span>
|
||||||
|
<p v-text="dept"></p>
|
||||||
|
<i :class="icon"></i>
|
||||||
|
</router-link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'basicBlock',
|
||||||
|
props: {
|
||||||
|
icon: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
|
background: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
|
to: {
|
||||||
|
type: Object,
|
||||||
|
default: () => {
|
||||||
|
return {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
text: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
|
dept: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
|
time: {
|
||||||
|
type: [Number, String]
|
||||||
|
},
|
||||||
|
gutter: {
|
||||||
|
type: [Number, String],
|
||||||
|
default: 5,
|
||||||
|
},
|
||||||
|
color: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
|
width: {
|
||||||
|
type: [Number, String]
|
||||||
|
},
|
||||||
|
height: {
|
||||||
|
type: [Number, String]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
styleName () {
|
||||||
|
return {
|
||||||
|
animationDelay: `${this.time / 25}s`,
|
||||||
|
width: this.setPx(this.width),
|
||||||
|
height: this.setPx(this.height),
|
||||||
|
margin: this.setPx(this.gutter)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
boxStyleName () {
|
||||||
|
return {
|
||||||
|
backgroundColor: this.color,
|
||||||
|
backgroundImage: `url('${this.background}')`,
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.basic-block {
|
||||||
|
opacity: 0;
|
||||||
|
|
||||||
|
box-sizing: border-box;
|
||||||
|
color: #fff;
|
||||||
|
animation: mymove 1s;
|
||||||
|
animation-fill-mode: forwards;
|
||||||
|
.box {
|
||||||
|
position: relative;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 15px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
transition: all 1s;
|
||||||
|
background-size: cover;
|
||||||
|
&:hover {
|
||||||
|
transform: rotateY(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
span {
|
||||||
|
display: block;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
width: 80%;
|
||||||
|
font-size: 10px;
|
||||||
|
color: #eee;
|
||||||
|
line-height: 22px;
|
||||||
|
}
|
||||||
|
i {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 15px;
|
||||||
|
right: 15px;
|
||||||
|
font-size: 50px !important ;
|
||||||
|
}
|
||||||
|
@keyframes mymove {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
transform: scale(0);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
55
src/components/basic-container/main.vue
Executable file
55
src/components/basic-container/main.vue
Executable file
@@ -0,0 +1,55 @@
|
|||||||
|
<template>
|
||||||
|
<div class="basic-container"
|
||||||
|
:style="styleName"
|
||||||
|
:class="{'basic-container--block':block}">
|
||||||
|
<el-card class="basic-container__card">
|
||||||
|
<slot></slot>
|
||||||
|
</el-card>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "basicContainer",
|
||||||
|
props: {
|
||||||
|
radius: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: 10
|
||||||
|
},
|
||||||
|
background: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
block: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
styleName () {
|
||||||
|
return {
|
||||||
|
borderRadius: this.setPx(this.radius),
|
||||||
|
background: this.background,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.basic-container {
|
||||||
|
padding: 10px 6px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
&--block {
|
||||||
|
height: 100%;
|
||||||
|
.basic-container__card {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&__card {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
&:first-child {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
24
src/components/error-page/403.vue
Normal file
24
src/components/error-page/403.vue
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<template>
|
||||||
|
<div class="error-page">
|
||||||
|
<div class="img"
|
||||||
|
style=" background-image: url('/img/bg/403.svg');"></div>
|
||||||
|
<div class="content">
|
||||||
|
<h1>403</h1>
|
||||||
|
<div class="desc">抱歉,你无权访问该页面</div>
|
||||||
|
<div class="actions">
|
||||||
|
<router-link :to="{path:'/'}">
|
||||||
|
<el-button type="primary">返回首页</el-button>
|
||||||
|
</router-link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "error-403"
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@import "./style.scss";
|
||||||
|
</style>
|
||||||
24
src/components/error-page/404.vue
Normal file
24
src/components/error-page/404.vue
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<template>
|
||||||
|
<div class="error-page">
|
||||||
|
<div class="img"
|
||||||
|
style=" background-image: url('/img/bg/404.svg');"></div>
|
||||||
|
<div class="content">
|
||||||
|
<h1>404</h1>
|
||||||
|
<div class="desc">抱歉,你访问的页面不存在</div>
|
||||||
|
<div class="actions">
|
||||||
|
<router-link :to="{path:'/'}">
|
||||||
|
<el-button type="primary">返回首页</el-button>
|
||||||
|
</router-link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "error-404"
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@import "./style.scss";
|
||||||
|
</style>
|
||||||
24
src/components/error-page/500.vue
Normal file
24
src/components/error-page/500.vue
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<template>
|
||||||
|
<div class="error-page">
|
||||||
|
<div class="img"
|
||||||
|
style=" background-image: url('/img/bg/500.svg');"></div>
|
||||||
|
<div class="content">
|
||||||
|
<h1>500</h1>
|
||||||
|
<div class="desc">抱歉,服务器出错了</div>
|
||||||
|
<div class="actions">
|
||||||
|
<router-link :to="{path:'/'}">
|
||||||
|
<el-button type="primary">返回首页</el-button>
|
||||||
|
</router-link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "error-500"
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@import "./style.scss";
|
||||||
|
</style>
|
||||||
32
src/components/error-page/style.scss
Normal file
32
src/components/error-page/style.scss
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
.error-page {
|
||||||
|
background: #f0f2f5;
|
||||||
|
margin-top: -30px;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
.img {
|
||||||
|
margin-right: 80px;
|
||||||
|
height: 360px;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 430px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: 50% 50%;
|
||||||
|
background-size: contain;
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
h1 {
|
||||||
|
color: #434e59;
|
||||||
|
font-size: 72px;
|
||||||
|
font-weight: 600;
|
||||||
|
line-height: 72px;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
}
|
||||||
|
.desc {
|
||||||
|
color: rgba(0, 0, 0, 0.45);
|
||||||
|
font-size: 20px;
|
||||||
|
line-height: 28px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
123
src/components/flow-design/main.vue
Normal file
123
src/components/flow-design/main.vue
Normal file
@@ -0,0 +1,123 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog v-if="isDialog"
|
||||||
|
:visible.sync="visible"
|
||||||
|
append-to-body
|
||||||
|
destroy-on-close
|
||||||
|
title="流程图展示"
|
||||||
|
width="70%"
|
||||||
|
custom-class="flow-design-dialog">
|
||||||
|
<wf-design-base ref="bpmn"
|
||||||
|
style="height: 60vh;"
|
||||||
|
:options="option"></wf-design-base>
|
||||||
|
</el-dialog>
|
||||||
|
<div v-else>
|
||||||
|
<wf-design-base v-if="visible"
|
||||||
|
ref="bpmn"
|
||||||
|
style="height: 60vh;"
|
||||||
|
:options="option"></wf-design-base>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {modelView} from '@/api/flow/flow'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'flowDesign',
|
||||||
|
props: {
|
||||||
|
isDialog: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
isDisplay: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
processInstanceId: String,
|
||||||
|
processDefinitionId: String,
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
option: {
|
||||||
|
mode: 'view'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
isDisplay: {
|
||||||
|
handler(val) {
|
||||||
|
this.visible = val
|
||||||
|
},
|
||||||
|
immediate: true
|
||||||
|
},
|
||||||
|
visible: {
|
||||||
|
handler(val) {
|
||||||
|
this.$emit('update:is-display', val)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
processInstanceId: {
|
||||||
|
handler(val) {
|
||||||
|
if (!val) return
|
||||||
|
this.getDetail({processInstanceId: this.processInstanceId})
|
||||||
|
},
|
||||||
|
immediate: true
|
||||||
|
},
|
||||||
|
processDefinitionId: {
|
||||||
|
handler(val) {
|
||||||
|
if (!val) return
|
||||||
|
this.getDetail({processDefinitionId: this.processDefinitionId})
|
||||||
|
},
|
||||||
|
immediate: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getDetail(params) {
|
||||||
|
modelView(params).then(res => {
|
||||||
|
const data = res.data.data
|
||||||
|
const {xml, flow} = data
|
||||||
|
this.$set(this.option, 'xml', xml)
|
||||||
|
if (flow) {
|
||||||
|
const flows = []
|
||||||
|
flow.forEach(f => {
|
||||||
|
let {endTime} = f
|
||||||
|
|
||||||
|
const ff = {
|
||||||
|
id: f.historyActivityId,
|
||||||
|
class: (!endTime && f.historyActivityType !== 'candidate') ? 'nodePrimary' : ''
|
||||||
|
}
|
||||||
|
|
||||||
|
if (f.historyActivityType === 'sequenceFlow') ff.class = 'lineWarn'
|
||||||
|
else if (!ff.class && f.historyActivityType !== 'candidate') ff.class = 'nodeSuccess'
|
||||||
|
|
||||||
|
const index = flows.findIndex(fl => fl.id === f.historyActivityId)
|
||||||
|
if (index !== -1) flows.splice(index, 1, ff)
|
||||||
|
else flows.push(ff)
|
||||||
|
})
|
||||||
|
this.$set(this.option, 'flows', flows)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.flow-design-dialog {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
margin: 0 !important;
|
||||||
|
position: absolute;
|
||||||
|
top: 40%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -40%);
|
||||||
|
max-height: calc(100% - 30px);
|
||||||
|
max-width: calc(100% - 30px);
|
||||||
|
|
||||||
|
.el-dialog__body {
|
||||||
|
flex: 1;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
129
src/components/iframe/main.vue
Normal file
129
src/components/iframe/main.vue
Normal file
@@ -0,0 +1,129 @@
|
|||||||
|
<template>
|
||||||
|
<basic-container>
|
||||||
|
<iframe :src="src"
|
||||||
|
class="iframe"
|
||||||
|
ref="iframe"></iframe>
|
||||||
|
</basic-container>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {mapGetters} from "vuex";
|
||||||
|
import NProgress from "nprogress"; // progress bar
|
||||||
|
import "nprogress/nprogress.css"; // progress bar style
|
||||||
|
export default {
|
||||||
|
name: "AvueIframe",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
urlPath: this.getUrlPath() //iframe src 路径
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
NProgress.configure({showSpinner: false});
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.load();
|
||||||
|
this.resize();
|
||||||
|
},
|
||||||
|
props: ["routerPath"],
|
||||||
|
watch: {
|
||||||
|
$route: function () {
|
||||||
|
this.load();
|
||||||
|
},
|
||||||
|
routerPath: function () {
|
||||||
|
// 监听routerPath变化,改变src路径
|
||||||
|
this.urlPath = this.getUrlPath();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(["screen"]),
|
||||||
|
src() {
|
||||||
|
return this.$route.query.src
|
||||||
|
? this.$route.query.src.replace("$", "#")
|
||||||
|
: this.urlPath;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 显示等待框
|
||||||
|
show() {
|
||||||
|
NProgress.start();
|
||||||
|
},
|
||||||
|
// 隐藏等待狂
|
||||||
|
hide() {
|
||||||
|
NProgress.done();
|
||||||
|
},
|
||||||
|
// 加载浏览器窗口变化自适应
|
||||||
|
resize() {
|
||||||
|
window.onresize = () => {
|
||||||
|
this.iframeInit();
|
||||||
|
};
|
||||||
|
},
|
||||||
|
// 加载组件
|
||||||
|
load() {
|
||||||
|
this.show();
|
||||||
|
var flag = true; //URL是否包含问号
|
||||||
|
if (this.$route.query.src !== undefined && this.$route.query.src.indexOf("?") === -1) {
|
||||||
|
flag = false;
|
||||||
|
}
|
||||||
|
var list = [];
|
||||||
|
for (var key in this.$route.query) {
|
||||||
|
if (key !== "src" && key !== "name" && key !== "i18n") {
|
||||||
|
list.push(`${key}= this.$route.query[key]`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
list = list.join("&").toString();
|
||||||
|
if (flag) {
|
||||||
|
this.$route.query.src = `${this.$route.query.src}${
|
||||||
|
list.length > 0 ? `&list` : ""
|
||||||
|
}`;
|
||||||
|
} else {
|
||||||
|
this.$route.query.src = `${this.$route.query.src}${
|
||||||
|
list.length > 0 ? `?list` : ""
|
||||||
|
}`;
|
||||||
|
}
|
||||||
|
//超时3s自动隐藏等待狂,加强用户体验
|
||||||
|
let time = 3;
|
||||||
|
const timeFunc = setInterval(() => {
|
||||||
|
time--;
|
||||||
|
if (time === 0) {
|
||||||
|
this.hide();
|
||||||
|
clearInterval(timeFunc);
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
this.iframeInit();
|
||||||
|
},
|
||||||
|
//iframe窗口初始化
|
||||||
|
iframeInit() {
|
||||||
|
const iframe = this.$refs.iframe;
|
||||||
|
const clientHeight =
|
||||||
|
document.documentElement.clientHeight - (screen > 1 ? 200 : 130);
|
||||||
|
if (!iframe) return;
|
||||||
|
iframe.style.height = `${clientHeight}px`;
|
||||||
|
if (iframe.attachEvent) {
|
||||||
|
iframe.attachEvent("onload", () => {
|
||||||
|
this.hide();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
iframe.onload = () => {
|
||||||
|
this.hide();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getUrlPath: function () {
|
||||||
|
//获取 iframe src 路径
|
||||||
|
let url = window.location.href;
|
||||||
|
url = url.replace("/myiframe", "");
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.iframe {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
53
src/components/tag-dict/main.vue
Normal file
53
src/components/tag-dict/main.vue
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
<!-- src/components/DictTag.vue -->
|
||||||
|
<template>
|
||||||
|
<span>{{ dictValue }}</span>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'DictTag',
|
||||||
|
props: {
|
||||||
|
dictCode: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
value: {
|
||||||
|
type: [String, Number],
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
dictValue: '-',
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
options() {
|
||||||
|
return this.$store.state.dictTag.dictCache[this.dictCode] || [];
|
||||||
|
},
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
value() {
|
||||||
|
this.setDictValue();
|
||||||
|
},
|
||||||
|
options() {
|
||||||
|
this.setDictValue();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async fetchDictionary() {
|
||||||
|
await this.$store.dispatch('fetchDictionary', this.dictCode);
|
||||||
|
},
|
||||||
|
setDictValue() {
|
||||||
|
const item = this.options.find((option) => option.dictKey == this.value);
|
||||||
|
this.dictValue = item ? item.dictValue : '-';
|
||||||
|
},
|
||||||
|
},
|
||||||
|
async created() {
|
||||||
|
if (!this.options.length) {
|
||||||
|
await this.fetchDictionary();
|
||||||
|
}
|
||||||
|
this.setDictValue();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
122
src/components/third-register/main.vue
Normal file
122
src/components/third-register/main.vue
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog title="账号注册"
|
||||||
|
append-to-body
|
||||||
|
:visible.sync="accountBox"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:close-on-press-escape="false"
|
||||||
|
:show-close="false"
|
||||||
|
width="20%">
|
||||||
|
<el-form :model="form" ref="form" label-width="80px">
|
||||||
|
<el-form-item v-if="tenantMode" label="租户编号">
|
||||||
|
<el-input v-model="form.tenantId" placeholder="请输入租户编号"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="用户姓名">
|
||||||
|
<el-input v-model="form.name" placeholder="请输入用户姓名"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="账号名称">
|
||||||
|
<el-input v-model="form.account" placeholder="请输入账号名称"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="账号密码">
|
||||||
|
<el-input v-model="form.password" placeholder="请输入账号密码"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="确认密码">
|
||||||
|
<el-input v-model="form.password2" placeholder="请输入确认密码"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" :loading="loading" @click="handleRegister">确 定</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {mapGetters} from "vuex";
|
||||||
|
import {validatenull} from "@/util/validate";
|
||||||
|
import {registerGuest} from "@/api/user";
|
||||||
|
import {getTopUrl} from "@/util/util";
|
||||||
|
import {info} from "@/api/system/tenant";
|
||||||
|
import {resetRouter} from "@/router/router";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "thirdRegister",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
form: {
|
||||||
|
tenantId: '',
|
||||||
|
name: '',
|
||||||
|
account: '',
|
||||||
|
password: '',
|
||||||
|
password2: '',
|
||||||
|
},
|
||||||
|
loading: false,
|
||||||
|
tenantMode: true,
|
||||||
|
accountBox: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(["userInfo"]),
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getTenant();
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
// 若未登录则弹出框进行绑定
|
||||||
|
if (validatenull(this.userInfo.user_id) || this.userInfo.user_id < 0) {
|
||||||
|
this.form.name = this.userInfo.user_name;
|
||||||
|
this.form.account = this.userInfo.user_name;
|
||||||
|
this.accountBox = true;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleRegister() {
|
||||||
|
if (this.form.tenantId === '') {
|
||||||
|
this.$message.warning("请先输入租户编号");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.form.account === '') {
|
||||||
|
this.$message.warning("请先输入账号名称");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.form.password === '' || this.form.password2 === '') {
|
||||||
|
this.$message.warning("请先输入密码");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.form.password !== this.form.password2) {
|
||||||
|
this.$message.warning("两次密码输入不一致");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.loading = true;
|
||||||
|
registerGuest(this.form, this.userInfo.oauth_id).then(res => {
|
||||||
|
this.loading = false;
|
||||||
|
const data = res.data;
|
||||||
|
if (data.success) {
|
||||||
|
this.accountBox = false;
|
||||||
|
this.$alert("注册申请已提交,请耐心等待管理员通过!", '注册提示').then(() => {
|
||||||
|
this.$store.dispatch("LogOut").then(() => {
|
||||||
|
resetRouter();
|
||||||
|
this.$router.push({path: "/login"});
|
||||||
|
});
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.error(data.msg || '提交失败');
|
||||||
|
}
|
||||||
|
}, error => {
|
||||||
|
window.console.log(error);
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getTenant() {
|
||||||
|
let domain = getTopUrl();
|
||||||
|
// 临时指定域名,方便测试
|
||||||
|
//domain = "https://bladex.vip";
|
||||||
|
info(domain).then(res => {
|
||||||
|
const data = res.data;
|
||||||
|
if (data.success && data.data.tenantId) {
|
||||||
|
this.form.tenantId = data.data.tenantId;
|
||||||
|
this.tenantMode = false;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
21
src/config/env.js
Normal file
21
src/config/env.js
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
// 阿里矢量图标库配置
|
||||||
|
let iconfontVersion = ['567566_pwc3oottzol'];
|
||||||
|
let iconfontUrl = `//at.alicdn.com/t/font_$key.css`;
|
||||||
|
|
||||||
|
let baseUrl = '';
|
||||||
|
let codeUrl = `${baseUrl}/code`
|
||||||
|
const env = process.env
|
||||||
|
if (env.NODE_ENV === 'development') {
|
||||||
|
baseUrl = ``; // 开发环境地址
|
||||||
|
} else if (env.NODE_ENV === 'production') {
|
||||||
|
baseUrl = ``; //生产环境地址
|
||||||
|
} else if (env.NODE_ENV === 'test') {
|
||||||
|
baseUrl = ``; //测试环境地址
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
baseUrl,
|
||||||
|
iconfontUrl,
|
||||||
|
iconfontVersion,
|
||||||
|
codeUrl,
|
||||||
|
env
|
||||||
|
}
|
||||||
118
src/config/iconList.js
Normal file
118
src/config/iconList.js
Normal file
@@ -0,0 +1,118 @@
|
|||||||
|
export default [
|
||||||
|
{
|
||||||
|
label: "通用图标",
|
||||||
|
list: [
|
||||||
|
"iconfont iconicon_roundadd",
|
||||||
|
"iconfont iconicon_compile",
|
||||||
|
"iconfont iconicon_glass",
|
||||||
|
"iconfont iconicon_roundclose",
|
||||||
|
"iconfont iconicon_roundreduce",
|
||||||
|
"iconfont iconicon_delete",
|
||||||
|
"iconfont iconicon_shakehands",
|
||||||
|
"iconfont iconicon_task_done",
|
||||||
|
"iconfont iconicon_voipphone",
|
||||||
|
"iconfont iconicon_safety",
|
||||||
|
"iconfont iconicon_work",
|
||||||
|
"iconfont iconicon_study",
|
||||||
|
"iconfont iconicon_task",
|
||||||
|
"iconfont iconicon_subordinate",
|
||||||
|
"iconfont iconicon_star",
|
||||||
|
"iconfont iconicon_setting",
|
||||||
|
"iconfont iconicon_sms",
|
||||||
|
"iconfont iconicon_share",
|
||||||
|
"iconfont iconicon_secret",
|
||||||
|
"iconfont iconicon_scan_namecard",
|
||||||
|
"iconfont iconicon_principal",
|
||||||
|
"iconfont iconicon_group",
|
||||||
|
"iconfont iconicon_send",
|
||||||
|
"iconfont iconicon_scan",
|
||||||
|
"iconfont iconicon_search",
|
||||||
|
"iconfont iconicon_refresh",
|
||||||
|
"iconfont iconicon_savememo",
|
||||||
|
"iconfont iconicon_QRcode",
|
||||||
|
"iconfont iconicon_im_keyboard",
|
||||||
|
"iconfont iconicon_redpacket",
|
||||||
|
"iconfont iconicon_photo",
|
||||||
|
"iconfont iconicon_qq",
|
||||||
|
"iconfont iconicon_wechat",
|
||||||
|
"iconfont iconicon_phone",
|
||||||
|
"iconfont iconicon_namecard",
|
||||||
|
"iconfont iconicon_notice",
|
||||||
|
"iconfont iconicon_next_arrow",
|
||||||
|
"iconfont iconicon_left",
|
||||||
|
"iconfont iconicon_more",
|
||||||
|
"iconfont iconicon_details",
|
||||||
|
"iconfont iconicon_message",
|
||||||
|
"iconfont iconicon_mobilephone",
|
||||||
|
"iconfont iconicon_im_voice",
|
||||||
|
"iconfont iconicon_GPS",
|
||||||
|
"iconfont iconicon_ding",
|
||||||
|
"iconfont iconicon_exchange",
|
||||||
|
"iconfont iconicon_cspace",
|
||||||
|
"iconfont iconicon_doc",
|
||||||
|
"iconfont iconicon_dispose",
|
||||||
|
"iconfont iconicon_discovery",
|
||||||
|
"iconfont iconicon_community_line",
|
||||||
|
"iconfont iconicon_cloud_history",
|
||||||
|
"iconfont iconicon_coinpurse_line",
|
||||||
|
"iconfont iconicon_airplay",
|
||||||
|
"iconfont iconicon_at",
|
||||||
|
"iconfont iconicon_addressbook",
|
||||||
|
"iconfont iconicon_boss",
|
||||||
|
"iconfont iconicon_addperson",
|
||||||
|
"iconfont iconicon_affiliations_li",
|
||||||
|
"iconfont iconicon_addmessage",
|
||||||
|
"iconfont iconicon_addresslist",
|
||||||
|
"iconfont iconicon_add",
|
||||||
|
"iconfont icongithub",
|
||||||
|
"iconfont icongitee2",
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "系统图标",
|
||||||
|
list: [
|
||||||
|
"iconfont icon-zhongyingwen",
|
||||||
|
"iconfont icon-caidan",
|
||||||
|
"iconfont icon-rizhi1",
|
||||||
|
"iconfont icon-zhuti",
|
||||||
|
"iconfont icon-suoping",
|
||||||
|
"iconfont icon-bug",
|
||||||
|
"iconfont icon-qq1",
|
||||||
|
"iconfont icon-weixin1",
|
||||||
|
"iconfont icon-shouji",
|
||||||
|
"iconfont icon-mima",
|
||||||
|
"iconfont icon-yonghu",
|
||||||
|
"iconfont icon-yanzhengma",
|
||||||
|
"iconfont icon-canshu",
|
||||||
|
"iconfont icon-dongtai",
|
||||||
|
"iconfont icon-iconset0265",
|
||||||
|
"iconfont icon-shujuzhanshi2",
|
||||||
|
"iconfont icon-tuichuquanping",
|
||||||
|
"iconfont icon-rizhi",
|
||||||
|
"iconfont icon-cuowutishitubiao",
|
||||||
|
"iconfont icon-debug",
|
||||||
|
"iconfont icon-iconset0216",
|
||||||
|
"iconfont icon-quanxian",
|
||||||
|
"iconfont icon-quanxian",
|
||||||
|
"iconfont icon-shuaxin",
|
||||||
|
"iconfont icon-bofangqi-suoping",
|
||||||
|
"iconfont icon-quanping",
|
||||||
|
"iconfont icon-navicon",
|
||||||
|
"iconfont icon-biaodan",
|
||||||
|
"iconfont icon-liuliangyunpingtaitubiao08",
|
||||||
|
"iconfont icon-caidanguanli",
|
||||||
|
"iconfont icon-cuowu",
|
||||||
|
"iconfont icon-wxbgongju",
|
||||||
|
"iconfont icon-tuichu",
|
||||||
|
"iconfont icon-daohanglanmoshi02",
|
||||||
|
"iconfont icon-changyonglogo27",
|
||||||
|
"iconfont icon-biaoge",
|
||||||
|
"iconfont icon-baidu1",
|
||||||
|
"iconfont icon-tubiao",
|
||||||
|
"iconfont icon-souhu",
|
||||||
|
"iconfont icon-msnui-360",
|
||||||
|
"iconfont icon-iframe",
|
||||||
|
"iconfont icon-huanyingye",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
51
src/config/website.js
Normal file
51
src/config/website.js
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
/**
|
||||||
|
* 全局配置文件
|
||||||
|
*/
|
||||||
|
export default {
|
||||||
|
title: "",
|
||||||
|
logo: "S",
|
||||||
|
key: 'saber',//配置主键,目前用于存储
|
||||||
|
indexTitle: '智游飘管理平台',
|
||||||
|
clientId: 'saber', // 客户端id
|
||||||
|
clientSecret: 'saber_secret', // 客户端密钥
|
||||||
|
tenantMode: true, // 是否开启租户模式
|
||||||
|
tenantId: "000000", // 管理组租户编号
|
||||||
|
captchaMode: true, // 是否开启验证码模式
|
||||||
|
switchMode: false, // 是否开启部门切换模式
|
||||||
|
lockPage: '/lock',
|
||||||
|
tokenTime: 3000,
|
||||||
|
tokenHeader: 'Blade-Auth',
|
||||||
|
//http的status默认放行列表
|
||||||
|
statusWhiteList: [],
|
||||||
|
//配置首页不可关闭
|
||||||
|
isFirstPage: false,
|
||||||
|
fistPage: {
|
||||||
|
label: "首页",
|
||||||
|
value: "/wel/index",
|
||||||
|
params: {},
|
||||||
|
query: {},
|
||||||
|
meta: {
|
||||||
|
i18n: 'dashboard'
|
||||||
|
},
|
||||||
|
group: [],
|
||||||
|
close: false
|
||||||
|
},
|
||||||
|
//配置菜单的属性
|
||||||
|
menu: {
|
||||||
|
iconDefault: 'iconfont icon-caidan',
|
||||||
|
props: {
|
||||||
|
label: 'name',
|
||||||
|
path: 'path',
|
||||||
|
icon: 'source',
|
||||||
|
children: 'children'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 第三方系统授权地址
|
||||||
|
authUrl: 'http://localhost/blade-auth/oauth/render',
|
||||||
|
// 报表设计器地址(cloud端口为8108,boot端口为80)
|
||||||
|
reportUrl: 'http://localhost:8108/ureport',
|
||||||
|
// 单点登录系统认证(blade-auth服务的地)
|
||||||
|
ssoUrl: 'http://localhost:8100/oauth/authorize?client_id=saber&response_type=code&redirect_uri=',
|
||||||
|
// 单点登录回调地址(Saber服务的地址)
|
||||||
|
redirectUri: 'http://localhost:1888',
|
||||||
|
}
|
||||||
70
src/const/index.js
Normal file
70
src/const/index.js
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
import request from "@/router/axios";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
column: [
|
||||||
|
{},
|
||||||
|
],
|
||||||
|
data: [
|
||||||
|
{
|
||||||
|
title: '注册总人数',
|
||||||
|
prop: 'countUser',
|
||||||
|
subtitle: '数量',
|
||||||
|
count: 0,
|
||||||
|
// allcount: 10222,
|
||||||
|
text: '注册总人数',
|
||||||
|
color: 'rgb(135,206,250)',
|
||||||
|
key: '注册'
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
title: '昨日注册',
|
||||||
|
prop: 'yesterdayCountUser',
|
||||||
|
subtitle: '数量',
|
||||||
|
count: 0,
|
||||||
|
// allcount: 10222,
|
||||||
|
text: '昨日注册人数',
|
||||||
|
color: 'rgb(135,206,250)',
|
||||||
|
key: '注册'
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
title: '会员总人数',
|
||||||
|
prop: 'countMember',
|
||||||
|
subtitle: '数量',
|
||||||
|
count: 0,
|
||||||
|
// allcount: 10222,
|
||||||
|
text: '会员总人数',
|
||||||
|
color: 'rgb(244,164,96)',
|
||||||
|
key: '会员'
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
title: '昨日会员',
|
||||||
|
prop: 'yesterdayCountMember',
|
||||||
|
subtitle: '数量',
|
||||||
|
count: 0,
|
||||||
|
// allcount: 10222,
|
||||||
|
text: '昨日会员人数',
|
||||||
|
color: 'rgb(244,164,96)',
|
||||||
|
key: '注册'
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const naviTo = () => {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @returns {*}
|
||||||
|
*/
|
||||||
|
export const getCurrentAll = () => {
|
||||||
|
return request({
|
||||||
|
url: '/api/statistics/currentAll',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
49
src/const/index/announcement.js
Normal file
49
src/const/index/announcement.js
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
export default {
|
||||||
|
height:'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 6,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
viewBtn: true,
|
||||||
|
selection: true,
|
||||||
|
dialogClickModal: false,
|
||||||
|
headerAlign: 'center',
|
||||||
|
align: 'center',
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "主键",
|
||||||
|
prop: "id",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "公告标题",
|
||||||
|
prop: "title",
|
||||||
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "公告内容",
|
||||||
|
prop: "content",
|
||||||
|
type: "textarea",
|
||||||
|
span: 24,
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建时间",
|
||||||
|
prop: "createTime",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "排序",
|
||||||
|
prop: "sort",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
85
src/const/index/banner.js
Normal file
85
src/const/index/banner.js
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
export default {
|
||||||
|
height:'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 6,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
viewBtn: true,
|
||||||
|
selection: true,
|
||||||
|
dialogClickModal: false,
|
||||||
|
headerAlign: 'center',
|
||||||
|
align: 'center',
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "封面",
|
||||||
|
prop: "coverUrl",
|
||||||
|
type: "upload",
|
||||||
|
listType: "picture-img",
|
||||||
|
dataType: 'string',
|
||||||
|
action: '/api/blade-resource/oss/endpoint/put-file',
|
||||||
|
propsHttp: {
|
||||||
|
res: 'data',
|
||||||
|
url: 'link',
|
||||||
|
},
|
||||||
|
span: 24,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "路由",
|
||||||
|
prop: "route",
|
||||||
|
type: "input",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "外链地址",
|
||||||
|
prop: "outsideUrl",
|
||||||
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
|
span: 24,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
label: "类型",
|
||||||
|
prop: "bannerType",
|
||||||
|
type: "select",
|
||||||
|
search: true,
|
||||||
|
dicUrl: "/api/blade-system/dict/dictionary?code=banner_type",
|
||||||
|
dataType: "number",
|
||||||
|
span: 24,
|
||||||
|
props: {
|
||||||
|
label: "dictValue",
|
||||||
|
value: "dictKey"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "标签名",
|
||||||
|
prop: "tagName",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
span: 24,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '显示/隐藏',
|
||||||
|
prop: 'isShow',
|
||||||
|
type: 'radio',
|
||||||
|
search: true,
|
||||||
|
dicData: [
|
||||||
|
{ label: '显示', value: true },
|
||||||
|
{ label: '隐藏', value: false }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "排序",
|
||||||
|
prop: "sort",
|
||||||
|
type: "input",
|
||||||
|
span: 24,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "备注",
|
||||||
|
prop: "remark",
|
||||||
|
type: "input",
|
||||||
|
span: 24,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
44
src/const/index/info.js
Normal file
44
src/const/index/info.js
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
export default {
|
||||||
|
height:'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 6,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
viewBtn: true,
|
||||||
|
selection: true,
|
||||||
|
dialogClickModal: false,
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "主键",
|
||||||
|
prop: "id",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "资质名称",
|
||||||
|
prop: "name",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "链接",
|
||||||
|
prop: "url",
|
||||||
|
dataType: 'string',
|
||||||
|
type: "upload",
|
||||||
|
action: '/api/blade-resource/oss/endpoint/put-file',
|
||||||
|
propsHttp: {
|
||||||
|
res: 'data',
|
||||||
|
url: 'link',
|
||||||
|
},
|
||||||
|
span: 24,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "排序",
|
||||||
|
prop: "sort",
|
||||||
|
type: "number",
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
137
src/const/index/material.js
Normal file
137
src/const/index/material.js
Normal file
@@ -0,0 +1,137 @@
|
|||||||
|
export default {
|
||||||
|
height: 'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 6,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
viewBtn: true,
|
||||||
|
selection: true,
|
||||||
|
dialogClickModal: false,
|
||||||
|
headerAlign: 'center',
|
||||||
|
align: 'center',
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "主键",
|
||||||
|
prop: "id",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "标题",
|
||||||
|
prop: "title",
|
||||||
|
type: "input",
|
||||||
|
span: 24,
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "类型",
|
||||||
|
prop: "type",
|
||||||
|
type: "radio",
|
||||||
|
dicUrl: "/api/blade-system/dict/dictionary?code=enterprise_material_type",
|
||||||
|
dataType: "number",
|
||||||
|
search: true,
|
||||||
|
props: {
|
||||||
|
label: "dictValue",
|
||||||
|
value: "dictKey"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "封面",
|
||||||
|
prop: "cover",
|
||||||
|
type: "upload",
|
||||||
|
listType: "picture-img",
|
||||||
|
span: 24,
|
||||||
|
overHidden: true,
|
||||||
|
dataType: 'string',
|
||||||
|
action: '/api/blade-resource/oss/endpoint/put-file',
|
||||||
|
propsHttp: {
|
||||||
|
res: 'data',
|
||||||
|
url: 'link',
|
||||||
|
},
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请上传封面",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "链接",
|
||||||
|
prop: "url",
|
||||||
|
dataType: 'string',
|
||||||
|
type: "upload",
|
||||||
|
action: '/api/blade-resource/oss/endpoint/put-file',
|
||||||
|
propsHttp: {
|
||||||
|
res: 'data',
|
||||||
|
url: 'link',
|
||||||
|
},
|
||||||
|
span: 24,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "备注",
|
||||||
|
prop: "remark",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建人",
|
||||||
|
prop: "createUser",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建部门",
|
||||||
|
prop: "createDept",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建时间",
|
||||||
|
prop: "createTime",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "修改人",
|
||||||
|
prop: "updateUser",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "修改时间",
|
||||||
|
prop: "updateTime",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "状态",
|
||||||
|
prop: "status",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "是否已删除",
|
||||||
|
prop: "isDeleted",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
24
src/const/index2.js
Normal file
24
src/const/index2.js
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
export default {
|
||||||
|
data: [
|
||||||
|
{
|
||||||
|
title: '转化率(日同比 28%)',
|
||||||
|
color: 'rgb(178, 159, 255)',
|
||||||
|
count: 32,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '签到率(日同比 11%)',
|
||||||
|
color:'rgb(230, 71, 88)',
|
||||||
|
count: 32,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'CPU使用率',
|
||||||
|
color:'rgb(27, 201, 142)',
|
||||||
|
count: 56,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '使用人数',
|
||||||
|
color:'red',
|
||||||
|
count: 56,
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
74
src/const/payment/bankCardUserNotice.js
Normal file
74
src/const/payment/bankCardUserNotice.js
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
export default {
|
||||||
|
height:'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 6,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
viewBtn: true,
|
||||||
|
selection: true,
|
||||||
|
dialogClickModal: false,
|
||||||
|
headerAlign: 'center',
|
||||||
|
align: 'center',
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "主键",
|
||||||
|
prop: "id",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "协议类型",
|
||||||
|
prop: "noticeType",
|
||||||
|
type: "select",
|
||||||
|
dicUrl: "/api/blade-system/dict/dictionary?code=bankcard_notice_type",
|
||||||
|
dataType: "number",
|
||||||
|
search: true,
|
||||||
|
props: {
|
||||||
|
label: "dictValue",
|
||||||
|
value: "dictKey"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "卡类型",
|
||||||
|
prop: "cardType",
|
||||||
|
type: "select",
|
||||||
|
dicUrl: "/api/blade-system/dict/dictionary?code=bankcard_payment_type",
|
||||||
|
dataType: "number",
|
||||||
|
search: true,
|
||||||
|
props: {
|
||||||
|
label: "dictValue",
|
||||||
|
value: "dictKey"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "银行类型",
|
||||||
|
prop: "bankType",
|
||||||
|
type: "select",
|
||||||
|
dicUrl: "/api/blade-system/dict/dictionary?code=bank_type",
|
||||||
|
dataType: "number",
|
||||||
|
search: true,
|
||||||
|
props: {
|
||||||
|
label: "dictValue",
|
||||||
|
value: "dictKey"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "移动端协议",
|
||||||
|
prop: "mobileAgreementUrl",
|
||||||
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
|
span: 24,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "PC端协议",
|
||||||
|
prop: "pcAgreementUrl",
|
||||||
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
|
span: 24,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
156
src/const/payment/paymentRecord.js
Normal file
156
src/const/payment/paymentRecord.js
Normal file
@@ -0,0 +1,156 @@
|
|||||||
|
export default {
|
||||||
|
height:'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 6,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
viewBtn: false,
|
||||||
|
editBtn: false,
|
||||||
|
addBtn: false,
|
||||||
|
delBtn: false,
|
||||||
|
menu: false,
|
||||||
|
selection: false,
|
||||||
|
dialogClickModal: false,
|
||||||
|
headerAlign: 'center',
|
||||||
|
align: 'center',
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "支付编码",
|
||||||
|
prop: "id",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
overHidden: true,
|
||||||
|
search: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "订单号",
|
||||||
|
prop: "orderId",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
overHidden: true,
|
||||||
|
search: true,
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "支付单号",
|
||||||
|
prop: "outTradeNo",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
overHidden: true,
|
||||||
|
search: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "订单类型",
|
||||||
|
prop: "orderType",
|
||||||
|
type: "select",
|
||||||
|
dicUrl: "/api/blade-system/dict/dictionary?code=app_user_order_type",
|
||||||
|
dataType: "number",
|
||||||
|
search: true,
|
||||||
|
props: {
|
||||||
|
label: "dictValue",
|
||||||
|
value: "dictKey"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "支付类型",
|
||||||
|
prop: "paymentType",
|
||||||
|
type: "select",
|
||||||
|
search: true,
|
||||||
|
dicUrl: "/api/blade-system/dict/dictionary?code=payment_type",
|
||||||
|
dataType: "number",
|
||||||
|
props: {
|
||||||
|
label: "dictValue",
|
||||||
|
value: "dictKey"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "支付状态",
|
||||||
|
prop: "paymentStatus",
|
||||||
|
type: "select",
|
||||||
|
search: true,
|
||||||
|
dicUrl: "/api/blade-system/dict/dictionary?code=user_payment_status",
|
||||||
|
dataType: "number",
|
||||||
|
props: {
|
||||||
|
label: "dictValue",
|
||||||
|
value: "dictKey"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "支付金额",
|
||||||
|
prop: "totalAmount",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "抵扣券",
|
||||||
|
prop: "actualPoint",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "消费金",
|
||||||
|
prop: "actualToken",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "备注",
|
||||||
|
prop: "remarks",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建人",
|
||||||
|
prop: "createUser",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建部门",
|
||||||
|
prop: "createDept",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建时间",
|
||||||
|
prop: "createTime",
|
||||||
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "修改人",
|
||||||
|
prop: "updateUser",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "修改时间",
|
||||||
|
prop: "updateTime",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "状态",
|
||||||
|
prop: "status",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "是否已删除",
|
||||||
|
prop: "isDeleted",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
102
src/const/payment/yeepayPaymentRecord.js
Normal file
102
src/const/payment/yeepayPaymentRecord.js
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
export default {
|
||||||
|
height:'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 6,
|
||||||
|
border: true,
|
||||||
|
index: false,
|
||||||
|
viewBtn: false,
|
||||||
|
editBtn: false,
|
||||||
|
delBtn: false,
|
||||||
|
menu: false,
|
||||||
|
selection: false,
|
||||||
|
dialogClickModal: false,
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "主键",
|
||||||
|
prop: "id",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "关联支付订单Id",
|
||||||
|
prop: "paymentNo",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "易宝支付Id",
|
||||||
|
prop: "yeepayNo",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "易宝支付金额",
|
||||||
|
prop: "paymentAmount",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "易宝支付状态",
|
||||||
|
prop: "paymentStatus",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "易宝商户手续费",
|
||||||
|
prop: "merchantFee",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "商户号",
|
||||||
|
prop: "merchantNo",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "易宝清算金额",
|
||||||
|
prop: "csAmount",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "易宝清算状态",
|
||||||
|
prop: "csStatus",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "备注",
|
||||||
|
prop: "remark",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "版本",
|
||||||
|
prop: "version",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "是否已删除",
|
||||||
|
prop: "isDeleted",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建时间",
|
||||||
|
prop: "createTime",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建人",
|
||||||
|
prop: "createUser",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "修改时间",
|
||||||
|
prop: "updateTime",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "修改人",
|
||||||
|
prop: "updateUser",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
97
src/const/payment/yeepayRefundRecord.js
Normal file
97
src/const/payment/yeepayRefundRecord.js
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
export default {
|
||||||
|
height:'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: true,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 6,
|
||||||
|
border: true,
|
||||||
|
index: false,
|
||||||
|
viewBtn: false,
|
||||||
|
editBtn: false,
|
||||||
|
delBtn: false,
|
||||||
|
menu: false,
|
||||||
|
selection: false,
|
||||||
|
dialogClickModal: false,
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "主键",
|
||||||
|
prop: "id",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "关联支付订单Id",
|
||||||
|
prop: "paymentNo",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "退款单号",
|
||||||
|
prop: "yeepayNo",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "退款金额",
|
||||||
|
prop: "refundAmount",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "真实退款金额",
|
||||||
|
prop: "refundRealAmount",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "退款手续费",
|
||||||
|
prop: "refundFee",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "退款状态",
|
||||||
|
prop: "refundStatus",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "商户号",
|
||||||
|
prop: "merchantNo",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "备注",
|
||||||
|
prop: "remark",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "是否已删除",
|
||||||
|
prop: "isDeleted",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建时间",
|
||||||
|
prop: "createTime",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建人",
|
||||||
|
prop: "createUser",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
viewDisplay: false,
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "修改时间",
|
||||||
|
prop: "updateTime",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "修改人",
|
||||||
|
prop: "updateUser",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
viewDisplay: false,
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
222
src/const/statics/staticsDetails.js
Normal file
222
src/const/statics/staticsDetails.js
Normal file
@@ -0,0 +1,222 @@
|
|||||||
|
export default {
|
||||||
|
height:'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: true,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
viewBtn: false,
|
||||||
|
editBtn: false,
|
||||||
|
delBtn: false,
|
||||||
|
addBtn: false,
|
||||||
|
menuWidth: 300,
|
||||||
|
headerAlign: 'center',
|
||||||
|
align: 'center',
|
||||||
|
menu: false,
|
||||||
|
showSummary: true,
|
||||||
|
selection: true,
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "主键",
|
||||||
|
prop: "id",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "汇总主键",
|
||||||
|
prop: "staticsSummaryId",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "挂单号",
|
||||||
|
prop: "registrationOrderId",
|
||||||
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "挂单类型",
|
||||||
|
prop: "transactionType",
|
||||||
|
type: "radio",
|
||||||
|
dicUrl: "/api/blade-system/dict/dictionary?code=transaction_type",
|
||||||
|
dataType: "number",
|
||||||
|
props: {
|
||||||
|
label: "dictValue",
|
||||||
|
value: "dictKey"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "用户主键",
|
||||||
|
prop: "userId",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "挂单账户",
|
||||||
|
prop: "phone",
|
||||||
|
type: "input",
|
||||||
|
search: true,
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "挂单人",
|
||||||
|
prop: "owner",
|
||||||
|
type: "input",
|
||||||
|
search: true,
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "出货账户",
|
||||||
|
prop: "sellerPhone",
|
||||||
|
type: "input",
|
||||||
|
search: true,
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "出货人",
|
||||||
|
prop: "seller",
|
||||||
|
type: "input",
|
||||||
|
sortable: true,
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "用户昵称",
|
||||||
|
prop: "userNickname",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "邀请人主键",
|
||||||
|
prop: "topInvitorId",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "出货团队",
|
||||||
|
prop: "invitor",
|
||||||
|
type: "input",
|
||||||
|
search: true,
|
||||||
|
overHidden: true,
|
||||||
|
sortable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "归属地",
|
||||||
|
prop: "location",
|
||||||
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
|
sortable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "地区主键",
|
||||||
|
prop: "districtId",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "城市主键",
|
||||||
|
prop: "cityId",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "省份主键",
|
||||||
|
prop: "provinceId",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "sku主键",
|
||||||
|
prop: "skuId",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "商品名称",
|
||||||
|
prop: "skuName",
|
||||||
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "spu主键",
|
||||||
|
prop: "spuId",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "分类主键",
|
||||||
|
prop: "categoryId",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "数量",
|
||||||
|
prop: "quantity",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "售价",
|
||||||
|
prop: "salePrice",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "总金额",
|
||||||
|
prop: "totalAmount",
|
||||||
|
type: "number",
|
||||||
|
precision: 0,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "抵扣券",
|
||||||
|
prop: "givenPointsAmount",
|
||||||
|
type: "number",
|
||||||
|
precision: 0,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "备注",
|
||||||
|
prop: "remark",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建人",
|
||||||
|
prop: "createUser",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建部门",
|
||||||
|
prop: "createDept",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建时间",
|
||||||
|
prop: "createTime",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "修改人",
|
||||||
|
prop: "updateUser",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "修改时间",
|
||||||
|
prop: "updateTime",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "状态",
|
||||||
|
prop: "status",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "是否已删除",
|
||||||
|
prop: "isDeleted",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
38
src/const/statics/staticsDetailsIsWhite.js
Normal file
38
src/const/statics/staticsDetailsIsWhite.js
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
export default {
|
||||||
|
height:'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: true,
|
||||||
|
border: true,
|
||||||
|
viewBtn: false,
|
||||||
|
editBtn: false,
|
||||||
|
delBtn: false,
|
||||||
|
addBtn: false,
|
||||||
|
menuWidth: 300,
|
||||||
|
headerAlign: 'center',
|
||||||
|
align: 'center',
|
||||||
|
menu: false,
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "承兑商",
|
||||||
|
prop: "name",
|
||||||
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "账号",
|
||||||
|
prop: "phone",
|
||||||
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "心愿单",
|
||||||
|
prop: "buyDirections",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "带货单",
|
||||||
|
prop: "sellDirections",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
40
src/const/statics/staticsDetailsLocation.js
Normal file
40
src/const/statics/staticsDetailsLocation.js
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
export default {
|
||||||
|
height:'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: true,
|
||||||
|
border: true,
|
||||||
|
viewBtn: false,
|
||||||
|
editBtn: false,
|
||||||
|
delBtn: false,
|
||||||
|
addBtn: false,
|
||||||
|
menuWidth: 300,
|
||||||
|
headerAlign: 'center',
|
||||||
|
align: 'center',
|
||||||
|
menu: false,
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "归属地",
|
||||||
|
prop: "location",
|
||||||
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
|
sortable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "总笔数",
|
||||||
|
prop: "totalNum",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "总金额",
|
||||||
|
prop: "totalAmount",
|
||||||
|
type: "number",
|
||||||
|
precision: 0,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "抵扣券",
|
||||||
|
prop: "totalPoints",
|
||||||
|
type: "number",
|
||||||
|
precision: 0,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
41
src/const/statics/staticsDetailsTeam.js
Normal file
41
src/const/statics/staticsDetailsTeam.js
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
export default {
|
||||||
|
height:'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: true,
|
||||||
|
border: true,
|
||||||
|
viewBtn: false,
|
||||||
|
editBtn: false,
|
||||||
|
delBtn: false,
|
||||||
|
addBtn: false,
|
||||||
|
menuWidth: 300,
|
||||||
|
headerAlign: 'center',
|
||||||
|
align: 'center',
|
||||||
|
menu: false,
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "出货团队",
|
||||||
|
prop: "invitor",
|
||||||
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "总笔数",
|
||||||
|
prop: "totalNum",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "总金额",
|
||||||
|
prop: "totalAmount",
|
||||||
|
type: "number",
|
||||||
|
sortable: true,
|
||||||
|
precision: 0,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "抵扣券",
|
||||||
|
prop: "totalPoints",
|
||||||
|
type: "number",
|
||||||
|
sortable: true,
|
||||||
|
precision: 0,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
204
src/const/statics/staticsSummary.js
Normal file
204
src/const/statics/staticsSummary.js
Normal file
@@ -0,0 +1,204 @@
|
|||||||
|
export default {
|
||||||
|
height: 'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 6,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
viewBtn: false,
|
||||||
|
editBtn: false,
|
||||||
|
delBtn: false,
|
||||||
|
addBtn: false,
|
||||||
|
selection: true,
|
||||||
|
showSummary: true,
|
||||||
|
menuWidth: 200,
|
||||||
|
headerAlign: 'center',
|
||||||
|
align: 'center',
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "主键",
|
||||||
|
prop: "id",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "日期",
|
||||||
|
prop: "settleDate",
|
||||||
|
type: "date",
|
||||||
|
format: "yyyy-MM-dd",
|
||||||
|
valueFormat: "yyyy-MM-dd",
|
||||||
|
overHidden: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "挂单总量",
|
||||||
|
prop: "totalPendingNum",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "成交(总)",
|
||||||
|
prop: "totalDealNum",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "成交(买)",
|
||||||
|
prop: "buyOrderDealNum",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "成交(卖)",
|
||||||
|
prop: "sellOrderDealNum",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "金额(总)",
|
||||||
|
prop: "totalDealAmount",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "金额(买)",
|
||||||
|
prop: "buyOrderDealAmount",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "金额(卖)",
|
||||||
|
prop: "sellOrderDealAmount",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "抵扣券(总)",
|
||||||
|
prop: "totalDealPoints",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "抵扣券(买)",
|
||||||
|
prop: "buyOrderDealPoints",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "抵扣券(卖)",
|
||||||
|
prop: "sellOrderDealPoints",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "挂单金额",
|
||||||
|
prop: "totalPendingAmount",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "总进货金额",
|
||||||
|
prop: "totalInventoryAmount",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
label: "挂单(买)",
|
||||||
|
prop: "buyOrderPendingNum",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "挂单(卖)",
|
||||||
|
prop: "sellOrderPendingNum",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "备注",
|
||||||
|
prop: "remark",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建人",
|
||||||
|
prop: "createUser",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建部门",
|
||||||
|
prop: "createDept",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建时间",
|
||||||
|
prop: "createTime",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "修改人",
|
||||||
|
prop: "updateUser",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "修改时间",
|
||||||
|
prop: "updateTime",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "状态",
|
||||||
|
prop: "status",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "是否已删除",
|
||||||
|
prop: "isDeleted",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
sumColumnList: [
|
||||||
|
{
|
||||||
|
name: 'totalPendingNum',
|
||||||
|
type: 'sum',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'totalDealNum',
|
||||||
|
type: 'sum',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'buyOrderDealNum',
|
||||||
|
type: 'sum',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'sellOrderDealNum',
|
||||||
|
type: 'sum',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'totalDealAmount',
|
||||||
|
type: 'sum',
|
||||||
|
decimals: 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'buyOrderDealAmount',
|
||||||
|
type: 'sum',
|
||||||
|
decimals: 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'sellOrderDealAmount',
|
||||||
|
type: 'sum',
|
||||||
|
decimals: 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'totalDealPoints',
|
||||||
|
type: 'sum',
|
||||||
|
decimals: 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'buyOrderDealPoints',
|
||||||
|
type: 'sum',
|
||||||
|
decimals: 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'sellOrderDealPoints',
|
||||||
|
type: 'sum',
|
||||||
|
decimals: 2
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
312
src/const/tool/model.js
Normal file
312
src/const/tool/model.js
Normal file
@@ -0,0 +1,312 @@
|
|||||||
|
export const switchDic = [
|
||||||
|
{
|
||||||
|
label: "",
|
||||||
|
value: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "",
|
||||||
|
value: 1
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
export const entityDic = [
|
||||||
|
{
|
||||||
|
label: "String",
|
||||||
|
value: "java.lang.String"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Integer",
|
||||||
|
value: "java.lang.Integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Long",
|
||||||
|
value: "java.lang.Long"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Double",
|
||||||
|
value: "java.lang.Double"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "BigDecimal",
|
||||||
|
value: "java.math.BigDecimal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Boolean",
|
||||||
|
value: "java.lang.Boolean"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Date",
|
||||||
|
value: "java.util.Date"
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
export const componentDic = [
|
||||||
|
{
|
||||||
|
label: "单行文本",
|
||||||
|
value: "input"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "多行文本",
|
||||||
|
value: "textarea"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "下拉选项",
|
||||||
|
value: "select"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "树形下拉选项",
|
||||||
|
value: "tree"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "单选框",
|
||||||
|
value: "radio"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "多选框",
|
||||||
|
value: "checkbox"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "开关框",
|
||||||
|
value: "switch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "日期框",
|
||||||
|
value: "date"
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
export const queryDic = [
|
||||||
|
{
|
||||||
|
label: "等于",
|
||||||
|
value: "equal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "不等于",
|
||||||
|
value: "notequal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "大于",
|
||||||
|
value: "gt"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "大于等于",
|
||||||
|
value: "ge"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "小于",
|
||||||
|
value: "lt"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "小于等于",
|
||||||
|
value: "le"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "区间",
|
||||||
|
value: "between"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "模糊",
|
||||||
|
value: "like"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "左模糊",
|
||||||
|
value: "likeleft"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "右模糊",
|
||||||
|
value: "likeright"
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
export const templateDic = [
|
||||||
|
{
|
||||||
|
label: "单表",
|
||||||
|
value: "crud"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "主子表",
|
||||||
|
value: "sub"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "树表",
|
||||||
|
value: "tree"
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
export const option = {
|
||||||
|
height: 'auto',
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 6,
|
||||||
|
tip: false,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
viewBtn: true,
|
||||||
|
selection: true,
|
||||||
|
menuWidth: 250,
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "数据源",
|
||||||
|
prop: "datasourceId",
|
||||||
|
search: true,
|
||||||
|
span: 24,
|
||||||
|
type: "select",
|
||||||
|
dicUrl: "/api/blade-develop/datasource/select",
|
||||||
|
props: {
|
||||||
|
label: "name",
|
||||||
|
value: "id"
|
||||||
|
},
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
message: "请选择数据源",
|
||||||
|
trigger: "blur"
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "物理表名",
|
||||||
|
prop: "modelTable",
|
||||||
|
type: "tree",
|
||||||
|
slot: true,
|
||||||
|
dicData: [],
|
||||||
|
props: {
|
||||||
|
label: "comment",
|
||||||
|
value: "name"
|
||||||
|
},
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
message: "请输入数据库表名",
|
||||||
|
trigger: "blur"
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "模型类名",
|
||||||
|
prop: "modelClass",
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
message: "请输入模型类名",
|
||||||
|
trigger: "blur"
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "模型名称",
|
||||||
|
prop: "modelName",
|
||||||
|
search: true,
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
message: "请输入模型名称",
|
||||||
|
trigger: "blur"
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "模型编号",
|
||||||
|
prop: "modelCode",
|
||||||
|
search: true,
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
message: "请输入模型编号",
|
||||||
|
trigger: "blur"
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "模型备注",
|
||||||
|
prop: "modelRemark",
|
||||||
|
hide: true,
|
||||||
|
span: 24,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
export const optionModel = {
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
addBtn: false,
|
||||||
|
editBtn: false,
|
||||||
|
addRowBtn: false,
|
||||||
|
cellBtn: false,
|
||||||
|
cancelBtn: false,
|
||||||
|
tip: false,
|
||||||
|
menu: false,
|
||||||
|
selection: true,
|
||||||
|
column: [{
|
||||||
|
label: '物理列名',
|
||||||
|
prop: 'jdbcName',
|
||||||
|
}, {
|
||||||
|
label: '物理类型',
|
||||||
|
prop: 'jdbcType',
|
||||||
|
}, {
|
||||||
|
label: '实体列名',
|
||||||
|
prop: 'propertyName',
|
||||||
|
cell: true,
|
||||||
|
}, {
|
||||||
|
label: '实体类型',
|
||||||
|
prop: 'propertyEntity',
|
||||||
|
type: "select",
|
||||||
|
dicData: entityDic,
|
||||||
|
cell: true,
|
||||||
|
}, {
|
||||||
|
label: '字段说明',
|
||||||
|
prop: 'comment',
|
||||||
|
cell: true,
|
||||||
|
}, {
|
||||||
|
label: '列表显示',
|
||||||
|
prop: 'isList',
|
||||||
|
type: 'switch',
|
||||||
|
dicData: switchDic,
|
||||||
|
align: 'center',
|
||||||
|
width: 80,
|
||||||
|
cell: true,
|
||||||
|
}, {
|
||||||
|
label: '表单显示',
|
||||||
|
prop: 'isForm',
|
||||||
|
type: 'switch',
|
||||||
|
dicData: switchDic,
|
||||||
|
align: 'center',
|
||||||
|
width: 80,
|
||||||
|
cell: true,
|
||||||
|
}, {
|
||||||
|
label: '独占一行',
|
||||||
|
prop: 'isRow',
|
||||||
|
type: 'switch',
|
||||||
|
dicData: switchDic,
|
||||||
|
align: 'center',
|
||||||
|
width: 80,
|
||||||
|
cell: true,
|
||||||
|
}, {
|
||||||
|
label: '必填',
|
||||||
|
prop: 'isRequired',
|
||||||
|
type: 'switch',
|
||||||
|
dicData: switchDic,
|
||||||
|
align: 'center',
|
||||||
|
width: 80,
|
||||||
|
cell: true,
|
||||||
|
}, {
|
||||||
|
label: '组件类型',
|
||||||
|
prop: 'componentType',
|
||||||
|
type: "select",
|
||||||
|
dicData: componentDic,
|
||||||
|
cell: true,
|
||||||
|
}, {
|
||||||
|
label: '字典编码',
|
||||||
|
prop: 'dictCode',
|
||||||
|
type: "select",
|
||||||
|
dicUrl: "/api/blade-system/dict/select",
|
||||||
|
props: {
|
||||||
|
label: "dictValue",
|
||||||
|
value: "code"
|
||||||
|
},
|
||||||
|
cell: true,
|
||||||
|
}, {
|
||||||
|
label: '查询配置',
|
||||||
|
prop: 'isQuery',
|
||||||
|
type: 'switch',
|
||||||
|
dicData: switchDic,
|
||||||
|
align: 'center',
|
||||||
|
width: 80,
|
||||||
|
cell: true,
|
||||||
|
}, {
|
||||||
|
label: '查询类型',
|
||||||
|
prop: 'queryType',
|
||||||
|
type: "select",
|
||||||
|
dicData: queryDic,
|
||||||
|
cell: true,
|
||||||
|
}]
|
||||||
|
};
|
||||||
198
src/const/userOrder/userOrder.js
Normal file
198
src/const/userOrder/userOrder.js
Normal file
@@ -0,0 +1,198 @@
|
|||||||
|
export default {
|
||||||
|
height:'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 6,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
viewBtn: true,
|
||||||
|
selection: true,
|
||||||
|
dialogClickModal: false,
|
||||||
|
addBtn: false,
|
||||||
|
delBtn: false,
|
||||||
|
editBtn: false,
|
||||||
|
excelBtn: true,
|
||||||
|
column: [
|
||||||
|
|
||||||
|
{
|
||||||
|
label: "用户id",
|
||||||
|
prop: "userId",
|
||||||
|
type: "input",
|
||||||
|
search: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "订单类型",
|
||||||
|
prop: "orderType",
|
||||||
|
type: "select",
|
||||||
|
dicUrl: "/api/blade-system/dict/dictionary?code=app_user_order_type",
|
||||||
|
dataType: "number",
|
||||||
|
search: true,
|
||||||
|
props: {
|
||||||
|
label: "dictValue",
|
||||||
|
value: "dictKey"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "订单号",
|
||||||
|
prop: "orderId",
|
||||||
|
type: "input",
|
||||||
|
search: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "订单名称",
|
||||||
|
prop: "title",
|
||||||
|
type: "input",
|
||||||
|
width: 100,
|
||||||
|
span: 24,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "图片",
|
||||||
|
prop: "images",
|
||||||
|
overHidden: true,
|
||||||
|
listType: 'picture-img',//单张
|
||||||
|
width: 100,
|
||||||
|
span: 24,
|
||||||
|
type: "upload",
|
||||||
|
action: '/api/blade-resource/oss/endpoint/put-file',
|
||||||
|
propsHttp: {
|
||||||
|
res: 'data',
|
||||||
|
url: 'link',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "数量",
|
||||||
|
prop: "quantity",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "订单描述",
|
||||||
|
prop: "description",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
span: 24,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "订单状态",
|
||||||
|
prop: "orderStatusName",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "订单金额",
|
||||||
|
prop: "totalAmount",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "支付金额",
|
||||||
|
prop: "actualAmount",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "抵扣券",
|
||||||
|
prop: "pointAmount",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "消费金",
|
||||||
|
prop: "tokenAmount",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "支付方式",
|
||||||
|
prop: "paymentType",
|
||||||
|
type: "select",
|
||||||
|
dicUrl: "/api/blade-system/dict/dictionary?code=payment_type",
|
||||||
|
dataType: "number",
|
||||||
|
search: true,
|
||||||
|
props: {
|
||||||
|
label: "dictValue",
|
||||||
|
value: "dictKey"
|
||||||
|
},
|
||||||
|
disabled: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "支付时间",
|
||||||
|
prop: "paymentTime",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "支付凭证编号",
|
||||||
|
prop: "paymentTrack",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
viewDisplay: false,
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "支付状态",
|
||||||
|
prop: "paymentStatus",
|
||||||
|
type: "select",
|
||||||
|
dicUrl: "/api/blade-system/dict/dictionary?code=user_payment_status",
|
||||||
|
dataType: "number",
|
||||||
|
search: true,
|
||||||
|
props: {
|
||||||
|
label: "dictValue",
|
||||||
|
value: "dictKey"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建人",
|
||||||
|
prop: "createUser",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
viewDisplay: false,
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建部门",
|
||||||
|
prop: "createDept",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
viewDisplay: false,
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "创建时间",
|
||||||
|
prop: "createTime",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "修改人",
|
||||||
|
prop: "updateUser",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
viewDisplay: false,
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "修改时间",
|
||||||
|
prop: "updateTime",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "状态",
|
||||||
|
prop: "status",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
viewDisplay: false,
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "是否已删除",
|
||||||
|
prop: "isDeleted",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
viewDisplay: false,
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
437
src/const/vrMerchant/vr_merchant.js
Normal file
437
src/const/vrMerchant/vr_merchant.js
Normal file
@@ -0,0 +1,437 @@
|
|||||||
|
export const option = {
|
||||||
|
height: 'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 6,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
viewBtn: true,
|
||||||
|
selection: true,
|
||||||
|
dialogClickModal: false,
|
||||||
|
headerAlign: 'center',
|
||||||
|
align: 'center',
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "VR店铺Id",
|
||||||
|
prop: "id",
|
||||||
|
type: "input",
|
||||||
|
search: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "用户Id",
|
||||||
|
prop: "userId",
|
||||||
|
type: "input",
|
||||||
|
search: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "自营商家Id",
|
||||||
|
prop: "merchantId",
|
||||||
|
type: "input",
|
||||||
|
search: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "店铺名称",
|
||||||
|
prop: "merchantName",
|
||||||
|
type: "input",
|
||||||
|
search: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "店铺联系方式",
|
||||||
|
prop: "merchantContact",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "营业执照",
|
||||||
|
prop: "businessLicense",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "营业执照-照片",
|
||||||
|
prop: "businessLicenseImage",
|
||||||
|
type: "upload",
|
||||||
|
// listType: "picture-img",
|
||||||
|
dataType: 'string',
|
||||||
|
action: '/api/blade-resource/oss/endpoint/put-file',
|
||||||
|
multiple: false,
|
||||||
|
propsHttp: {
|
||||||
|
res: 'data',
|
||||||
|
url: 'link',
|
||||||
|
},
|
||||||
|
span: 24,
|
||||||
|
overHidden: true,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请上传缩略图",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "VR识别片",
|
||||||
|
prop: "recognizeImage",
|
||||||
|
type: "upload",
|
||||||
|
// listType: "picture-img",
|
||||||
|
dataType: 'string',
|
||||||
|
action: '/api/blade-resource/oss/endpoint/put-file',
|
||||||
|
multiple: false,
|
||||||
|
propsHttp: {
|
||||||
|
res: 'data',
|
||||||
|
url: 'link',
|
||||||
|
},
|
||||||
|
span: 24,
|
||||||
|
overHidden: true,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请上传缩略图",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "备注",
|
||||||
|
prop: "remark",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "vr店铺身份类型",
|
||||||
|
prop: "vipType",
|
||||||
|
type: "select",
|
||||||
|
dicUrl: "/api/vr/merchant/dictionary",
|
||||||
|
dataType: "number",
|
||||||
|
search: true,
|
||||||
|
props: {
|
||||||
|
label: "dictValue",
|
||||||
|
value: "dictKey"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "店铺VIP套餐到期时间",
|
||||||
|
prop: "vipExpiredDatetime",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "店铺状态",
|
||||||
|
prop: "status",
|
||||||
|
type: "select",
|
||||||
|
dicData: [
|
||||||
|
{
|
||||||
|
label: '待付款',
|
||||||
|
value: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '待审核',
|
||||||
|
value: 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '已拒绝',
|
||||||
|
value: 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '已通过',
|
||||||
|
value: 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '已关闭',
|
||||||
|
value: 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '退款并关闭',
|
||||||
|
value: 5
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "上次付款Id",
|
||||||
|
prop: "lastOrderId",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "视频服务",
|
||||||
|
prop: "extraService",
|
||||||
|
type: "select",
|
||||||
|
dicData: [
|
||||||
|
{
|
||||||
|
label: '❌',
|
||||||
|
value: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '✅',
|
||||||
|
value: 1
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "是否删除",
|
||||||
|
prop: "isDeleted",
|
||||||
|
type: "select",
|
||||||
|
hide: true,
|
||||||
|
dicData: [
|
||||||
|
{
|
||||||
|
label: '❌',
|
||||||
|
value: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '✅',
|
||||||
|
value: 1
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// label: "缩略图",
|
||||||
|
// prop: "cover",
|
||||||
|
// type: "upload",
|
||||||
|
// listType: "picture-img",
|
||||||
|
// dataType: 'string',
|
||||||
|
// action: '/api/blade-resource/oss/endpoint/put-file',
|
||||||
|
// multiple: false,
|
||||||
|
// propsHttp: {
|
||||||
|
// res: 'data',
|
||||||
|
// url: 'link',
|
||||||
|
// },
|
||||||
|
// span: 24,
|
||||||
|
// overHidden: true,
|
||||||
|
// rules: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: "请上传缩略图",
|
||||||
|
// trigger: "blur"
|
||||||
|
// }
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "访问地址",
|
||||||
|
// prop: "visitUrl",
|
||||||
|
// type: "input",
|
||||||
|
// overHidden: true,
|
||||||
|
// },
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const optionConfig = {
|
||||||
|
height: 'auto',
|
||||||
|
calcHeight: 25,
|
||||||
|
tip: false,
|
||||||
|
searchShow: false,
|
||||||
|
searchMenuSpan: 6,
|
||||||
|
border: true,
|
||||||
|
index: false,
|
||||||
|
selection: false,
|
||||||
|
// addBtn: false,
|
||||||
|
// editBtn: false,
|
||||||
|
// delBtn: false,
|
||||||
|
menuWidth: 120,
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "VIP类型",
|
||||||
|
prop: "vipType",
|
||||||
|
type: "input",
|
||||||
|
// dataType: "number",
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入VIP类型(整数)",
|
||||||
|
trigger: "blur"
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// min: 1,
|
||||||
|
// message: "类型需要>0",
|
||||||
|
// trigger: "blur"
|
||||||
|
// }
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "vip名称",
|
||||||
|
prop: "vipName",
|
||||||
|
type: "input",
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入名称",
|
||||||
|
trigger: "blur"
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "vip套餐描述",
|
||||||
|
prop: "vipDesc",
|
||||||
|
type: "input",
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入描述",
|
||||||
|
trigger: "blur"
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Vip套餐",
|
||||||
|
prop: "vipPrice",
|
||||||
|
type: "input",
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入价格",
|
||||||
|
trigger: "blur"
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Vip套餐+制作视频价格",
|
||||||
|
prop: "vipPlusPrice",
|
||||||
|
type: "input",
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入价格",
|
||||||
|
trigger: "blur"
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "视频个数",
|
||||||
|
prop: "videoCount",
|
||||||
|
type: "input",
|
||||||
|
// dataType: "number",
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入视频个数(整数)",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "vip周期(天)",
|
||||||
|
prop: "days",
|
||||||
|
type: "input",
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入天数(整数)",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const uploadVideoOption= {
|
||||||
|
height: 'auto',
|
||||||
|
calcHeight: 25,
|
||||||
|
submitText: "发送",
|
||||||
|
submitBtn: true,
|
||||||
|
emptyBtn: false,
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: 'VR店铺',
|
||||||
|
prop: 'merchantId',
|
||||||
|
type: 'input',
|
||||||
|
disabled: true,
|
||||||
|
width: '220px',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '所属用户',
|
||||||
|
prop: 'userId',
|
||||||
|
type: 'input',
|
||||||
|
disabled: true,
|
||||||
|
width: '220px',
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
label: "视频宽",
|
||||||
|
prop: "width",
|
||||||
|
type: "input",
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "输入视频宽(整数)",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
}, {
|
||||||
|
label: "视频高",
|
||||||
|
prop: "height",
|
||||||
|
type: "input",
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "输入视频高(整数)",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "视频状态",
|
||||||
|
prop: "videoStatus",
|
||||||
|
type: "select",
|
||||||
|
disabled: true,
|
||||||
|
dicData: [
|
||||||
|
{
|
||||||
|
label: '💡等待审核',
|
||||||
|
value: 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '✅审核通过',
|
||||||
|
value: 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '❌审核拒绝',
|
||||||
|
value: 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请选择视频状态",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// label: '上传展示视频',
|
||||||
|
// prop: 'merchantVideoURL',
|
||||||
|
// type: 'upload',
|
||||||
|
// listType: "picture-card",
|
||||||
|
// loadText: '展示视频上传中,请稍等',
|
||||||
|
// span: 24,
|
||||||
|
// multiple: false,
|
||||||
|
// action: "/api/blade-resource/oss/endpoint/put-file",
|
||||||
|
// propsHttp: {
|
||||||
|
// res: 'data',
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
{
|
||||||
|
label: "上传展示视频",
|
||||||
|
prop: "merchantVideoURL",
|
||||||
|
overHidden: true,
|
||||||
|
listType: 'picture-img',
|
||||||
|
dataType: 'string',
|
||||||
|
multiple: false,
|
||||||
|
span: 24,
|
||||||
|
type:"upload",
|
||||||
|
action: "/api/blade-resource/oss/endpoint/put-file",
|
||||||
|
propsHttp: {
|
||||||
|
res: 'data',
|
||||||
|
url: 'link',
|
||||||
|
},
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请上传视频",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "备注",
|
||||||
|
prop: "remark",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
104
src/const/vrMerchant/vr_merchant_video.js
Normal file
104
src/const/vrMerchant/vr_merchant_video.js
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
export const option = {
|
||||||
|
height: 'auto',
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 6,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
viewBtn: true,
|
||||||
|
addBtn: false,
|
||||||
|
selection: true,
|
||||||
|
dialogClickModal: false,
|
||||||
|
headerAlign: 'center',
|
||||||
|
align: 'center',
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "视频Id",
|
||||||
|
prop: "id",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
search: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "用户Id",
|
||||||
|
prop: "userId",
|
||||||
|
type: "input",
|
||||||
|
search: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Vr店铺Id",
|
||||||
|
prop: "merchantId",
|
||||||
|
type: "input",
|
||||||
|
search: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "展示视频",
|
||||||
|
prop: "merchantVideoURL",
|
||||||
|
type: "upload",
|
||||||
|
// listType: "picture-img",
|
||||||
|
listType: "picture-card",
|
||||||
|
dataType: 'string',
|
||||||
|
action: '/api/blade-resource/oss/endpoint/put-file',
|
||||||
|
multiple: false,
|
||||||
|
propsHttp: {
|
||||||
|
res: 'data',
|
||||||
|
},
|
||||||
|
span: 24,
|
||||||
|
overHidden: true,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请上传展示视频",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "展示视频地址",
|
||||||
|
prop: "merchantVideoURL",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "视频状态",
|
||||||
|
prop: "videoStatus",
|
||||||
|
type: "select",
|
||||||
|
search: true,
|
||||||
|
dicData: [
|
||||||
|
{
|
||||||
|
label: '💡等待审核',
|
||||||
|
value: 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '✅审核通过',
|
||||||
|
value: 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '❌审核拒绝',
|
||||||
|
value: 3
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "视频宽",
|
||||||
|
prop: "width",
|
||||||
|
type: "input",
|
||||||
|
}, {
|
||||||
|
label: "视频高",
|
||||||
|
prop: "height",
|
||||||
|
type: "input",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "备注",
|
||||||
|
prop: "remark",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "",
|
||||||
|
prop: "version",
|
||||||
|
type: "input",
|
||||||
|
hide: true,
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
25
src/error.js
Normal file
25
src/error.js
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
import Vue from 'vue';
|
||||||
|
import store from './store'
|
||||||
|
|
||||||
|
Vue.config.errorHandler = function (err, vm, info) {
|
||||||
|
|
||||||
|
Vue.nextTick(() => {
|
||||||
|
store.commit('ADD_LOGS', {
|
||||||
|
type: 'error',
|
||||||
|
message: err.message,
|
||||||
|
stack: err.stack,
|
||||||
|
info
|
||||||
|
});
|
||||||
|
if (process.env.NODE_ENV === 'development') {
|
||||||
|
window.console.group('>>>>>> 错误信息 >>>>>>');
|
||||||
|
window.console.error(info);
|
||||||
|
window.console.groupEnd();
|
||||||
|
window.console.group('>>>>>> Vue 实例 >>>>>>');
|
||||||
|
window.console.log(vm);
|
||||||
|
window.console.groupEnd();
|
||||||
|
window.console.group('>>>>>> Error >>>>>>');
|
||||||
|
window.console.log(err);
|
||||||
|
window.console.groupEnd();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
122
src/lang/en.js
Normal file
122
src/lang/en.js
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
export default {
|
||||||
|
title: 'Admin',
|
||||||
|
logoutTip: 'Exit the system, do you want to continue?',
|
||||||
|
submitText: 'submit',
|
||||||
|
cancelText: 'cancel',
|
||||||
|
search: 'Please input search content',
|
||||||
|
menuTip: 'none menu list',
|
||||||
|
common: {
|
||||||
|
condition: 'condition',
|
||||||
|
display: 'display',
|
||||||
|
hide: 'hide'
|
||||||
|
},
|
||||||
|
tip: {
|
||||||
|
select: 'Please select',
|
||||||
|
input: 'Please input'
|
||||||
|
},
|
||||||
|
upload: {
|
||||||
|
upload: 'upload',
|
||||||
|
tip: 'Drag files here,/'
|
||||||
|
},
|
||||||
|
date: {
|
||||||
|
start: 'Start date',
|
||||||
|
end: 'End date',
|
||||||
|
t: 'today',
|
||||||
|
y: 'yesterday',
|
||||||
|
n: 'nearly 7',
|
||||||
|
a: 'whole'
|
||||||
|
},
|
||||||
|
form: {
|
||||||
|
printBtn: 'print',
|
||||||
|
mockBtn: 'mock',
|
||||||
|
submitBtn: 'submit',
|
||||||
|
emptyBtn: 'empty'
|
||||||
|
},
|
||||||
|
crud: {
|
||||||
|
filter: {
|
||||||
|
addBtn: 'add',
|
||||||
|
clearBtn: 'clear',
|
||||||
|
resetBtn: 'reset',
|
||||||
|
cancelBtn: 'cancel',
|
||||||
|
submitBtn: 'submit'
|
||||||
|
},
|
||||||
|
column: {
|
||||||
|
name: 'name',
|
||||||
|
hide: 'hide',
|
||||||
|
fixed: 'fixed',
|
||||||
|
filters: 'filters',
|
||||||
|
sortable: 'sortable',
|
||||||
|
index: 'index',
|
||||||
|
width: 'width'
|
||||||
|
},
|
||||||
|
tipStartTitle: 'Currently selected',
|
||||||
|
tipEndTitle: 'items',
|
||||||
|
editTitle: 'edit',
|
||||||
|
copyTitle: 'copy',
|
||||||
|
addTitle: 'add',
|
||||||
|
viewTitle: 'view',
|
||||||
|
filterTitle: 'filter',
|
||||||
|
showTitle: 'showTitle',
|
||||||
|
menu: 'menu',
|
||||||
|
addBtn: 'add',
|
||||||
|
show: 'show',
|
||||||
|
hide: 'hide',
|
||||||
|
open: 'open',
|
||||||
|
shrink: 'shrink',
|
||||||
|
printBtn: 'print',
|
||||||
|
excelBtn: 'excel',
|
||||||
|
updateBtn: 'update',
|
||||||
|
cancelBtn: 'cancel',
|
||||||
|
searchBtn: 'search',
|
||||||
|
emptyBtn: 'empty',
|
||||||
|
menuBtn: 'menu',
|
||||||
|
saveBtn: 'save',
|
||||||
|
viewBtn: 'view',
|
||||||
|
editBtn: 'edit',
|
||||||
|
copyBtn: 'copy',
|
||||||
|
delBtn: 'delete'
|
||||||
|
},
|
||||||
|
login: {
|
||||||
|
title: 'Login ',
|
||||||
|
info: 'Fly Management System',
|
||||||
|
tenantId: 'Please input tenantId',
|
||||||
|
username: 'Please input username',
|
||||||
|
password: 'Please input a password',
|
||||||
|
wechat: 'Wechat',
|
||||||
|
qq: 'QQ',
|
||||||
|
github: 'github',
|
||||||
|
gitee: 'gitee',
|
||||||
|
phone: 'Please input a phone',
|
||||||
|
code: 'Please input a code',
|
||||||
|
submit: 'Login',
|
||||||
|
userLogin: 'userLogin',
|
||||||
|
phoneLogin: 'phoneLogin',
|
||||||
|
thirdLogin: 'thirdLogin',
|
||||||
|
ssoLogin: 'ssoLogin',
|
||||||
|
msgText: 'send code',
|
||||||
|
msgSuccess: 'reissued code',
|
||||||
|
},
|
||||||
|
navbar: {
|
||||||
|
info: 'info',
|
||||||
|
logOut: 'logout',
|
||||||
|
userinfo: 'userinfo',
|
||||||
|
switchDept : 'switch dept',
|
||||||
|
dashboard: 'dashboard',
|
||||||
|
lock: 'lock',
|
||||||
|
bug: 'none bug',
|
||||||
|
bugs: 'bug',
|
||||||
|
screenfullF: 'exit screenfull',
|
||||||
|
screenfull: 'screenfull',
|
||||||
|
language: 'language',
|
||||||
|
notice: 'notice',
|
||||||
|
theme: 'theme',
|
||||||
|
color: 'color'
|
||||||
|
},
|
||||||
|
tagsView: {
|
||||||
|
search: 'Search',
|
||||||
|
menu: 'menu',
|
||||||
|
clearCache: 'Clear Cache',
|
||||||
|
closeOthers: 'Close Others',
|
||||||
|
closeAll: 'Close All'
|
||||||
|
}
|
||||||
|
};
|
||||||
28
src/lang/index.js
Normal file
28
src/lang/index.js
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
import Vue from 'vue'
|
||||||
|
import VueI18n from 'vue-i18n'
|
||||||
|
import elementEnLocale from 'element-ui/lib/locale/lang/en' // element-ui lang
|
||||||
|
import elementZhLocale from 'element-ui/lib/locale/lang/zh-CN'// element-ui lang
|
||||||
|
import enLocale from './en'
|
||||||
|
import zhLocale from './zh'
|
||||||
|
import { getStore } from '@/util/store'
|
||||||
|
Vue.use(VueI18n)
|
||||||
|
const Avue = window.AVUE;
|
||||||
|
const messages = {
|
||||||
|
en: {
|
||||||
|
...enLocale,
|
||||||
|
...elementEnLocale,
|
||||||
|
...Avue.locale.en,
|
||||||
|
},
|
||||||
|
zh: {
|
||||||
|
...zhLocale,
|
||||||
|
...elementZhLocale,
|
||||||
|
...Avue.locale.zh,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const i18n = new VueI18n({
|
||||||
|
locale: getStore({ name: 'language' }) || 'zh',
|
||||||
|
messages
|
||||||
|
})
|
||||||
|
|
||||||
|
export default i18n
|
||||||
121
src/lang/zh.js
Normal file
121
src/lang/zh.js
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
export default {
|
||||||
|
title: '智游飘管理平台',
|
||||||
|
logoutTip: '退出系统, 是否继续?',
|
||||||
|
submitText: '确定',
|
||||||
|
cancelText: '取消',
|
||||||
|
search: '请输入搜索内容',
|
||||||
|
menuTip: '没有发现菜单',
|
||||||
|
common: {
|
||||||
|
condition: '条件',
|
||||||
|
display: '显示',
|
||||||
|
hide: '隐藏'
|
||||||
|
},
|
||||||
|
tip: {
|
||||||
|
select: '请选择',
|
||||||
|
input: '请输入'
|
||||||
|
},
|
||||||
|
upload: {
|
||||||
|
upload: '点击上传',
|
||||||
|
tip: '将文件拖到此处,或'
|
||||||
|
},
|
||||||
|
date: {
|
||||||
|
start: '开始日期',
|
||||||
|
end: '结束日期',
|
||||||
|
t: '今日',
|
||||||
|
y: '昨日',
|
||||||
|
n: '近7天',
|
||||||
|
a: '全部'
|
||||||
|
},
|
||||||
|
form: {
|
||||||
|
printBtn: '打 印',
|
||||||
|
mockBtn: '模 拟',
|
||||||
|
submitBtn: '提 交',
|
||||||
|
emptyBtn: '清 空'
|
||||||
|
},
|
||||||
|
crud: {
|
||||||
|
filter: {
|
||||||
|
addBtn: '新增条件',
|
||||||
|
clearBtn: '清空数据',
|
||||||
|
resetBtn: '清空条件',
|
||||||
|
cancelBtn: '取 消',
|
||||||
|
submitBtn: '确 定'
|
||||||
|
},
|
||||||
|
column: {
|
||||||
|
name: '列名',
|
||||||
|
hide: '隐藏',
|
||||||
|
fixed: '冻结',
|
||||||
|
filters: '过滤',
|
||||||
|
sortable: '排序',
|
||||||
|
index: '顺序',
|
||||||
|
width: '宽度'
|
||||||
|
},
|
||||||
|
tipStartTitle: '当前表格已选择',
|
||||||
|
tipEndTitle: '项',
|
||||||
|
editTitle: '编 辑',
|
||||||
|
copyTitle: '复 制',
|
||||||
|
addTitle: '新 增',
|
||||||
|
viewTitle: '查 看',
|
||||||
|
filterTitle: '过滤条件',
|
||||||
|
showTitle: '列显隐',
|
||||||
|
menu: '操作',
|
||||||
|
addBtn: '新 增',
|
||||||
|
show: '显 示',
|
||||||
|
hide: '隐 藏',
|
||||||
|
open: '展 开',
|
||||||
|
shrink: '收 缩',
|
||||||
|
printBtn: '打 印',
|
||||||
|
excelBtn: '导 出',
|
||||||
|
updateBtn: '修 改',
|
||||||
|
cancelBtn: '取 消',
|
||||||
|
searchBtn: '搜 索',
|
||||||
|
emptyBtn: '清 空',
|
||||||
|
menuBtn: '功 能',
|
||||||
|
saveBtn: '保 存',
|
||||||
|
viewBtn: '查 看',
|
||||||
|
editBtn: '编 辑',
|
||||||
|
copyBtn: '复 制',
|
||||||
|
delBtn: '删 除'
|
||||||
|
},
|
||||||
|
login: {
|
||||||
|
title: '登录 ',
|
||||||
|
info: '智游飘(ZYP)管理后台',
|
||||||
|
tenantId: '请选择商户类型',
|
||||||
|
username: '请输入账号',
|
||||||
|
password: '请输入密码',
|
||||||
|
wechat: '微信',
|
||||||
|
qq: 'QQ',
|
||||||
|
github: 'github',
|
||||||
|
gitee: '码云',
|
||||||
|
phone: '请输入手机号',
|
||||||
|
code: '请输入验证码',
|
||||||
|
submit: '登录',
|
||||||
|
userLogin: '账号密码登录',
|
||||||
|
phoneLogin: '手机号登录',
|
||||||
|
thirdLogin: '第三方系统登录',
|
||||||
|
ssoLogin: '单点系统登录',
|
||||||
|
msgText: '发送验证码',
|
||||||
|
msgSuccess: '秒后重发',
|
||||||
|
},
|
||||||
|
navbar: {
|
||||||
|
logOut: '退出登录',
|
||||||
|
userinfo: '个人信息',
|
||||||
|
switchDept : '部门切换',
|
||||||
|
dashboard: '首页',
|
||||||
|
lock: '锁屏',
|
||||||
|
bug: '没有错误日志',
|
||||||
|
bugs: '条错误日志',
|
||||||
|
screenfullF: '退出全屏',
|
||||||
|
screenfull: '全屏',
|
||||||
|
language: '中英文',
|
||||||
|
notice: '消息通知',
|
||||||
|
theme: '主题',
|
||||||
|
color: '换色'
|
||||||
|
},
|
||||||
|
tagsView: {
|
||||||
|
search: '搜索',
|
||||||
|
menu: '更多',
|
||||||
|
clearCache: '清除缓存',
|
||||||
|
closeOthers: '关闭其它',
|
||||||
|
closeAll: '关闭所有'
|
||||||
|
}
|
||||||
|
};
|
||||||
74
src/main.js
Normal file
74
src/main.js
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
import Vue from 'vue';
|
||||||
|
import axios from './router/axios';
|
||||||
|
import VueAxios from 'vue-axios';
|
||||||
|
import App from './App';
|
||||||
|
import router from './router/router';
|
||||||
|
import './permission'; // 权限
|
||||||
|
import './error'; // 日志
|
||||||
|
import './cache';//页面缓存
|
||||||
|
import store from './store';
|
||||||
|
import {loadStyle} from './util/util'
|
||||||
|
import * as urls from '@/config/env';
|
||||||
|
import Element from 'element-ui';
|
||||||
|
import {
|
||||||
|
iconfontUrl,
|
||||||
|
iconfontVersion
|
||||||
|
} from '@/config/env';
|
||||||
|
import i18n from './lang'; // Internationalization
|
||||||
|
import './styles/common.scss';
|
||||||
|
import basicBlock from './components/basic-block/main';
|
||||||
|
import basicContainer from './components/basic-container/main';
|
||||||
|
import thirdRegister from './components/third-register/main';
|
||||||
|
import flowDesign from './components/flow-design/main';
|
||||||
|
import avueUeditor from 'avue-plugin-ueditor';
|
||||||
|
import website from '@/config/website';
|
||||||
|
import crudCommon from '@/mixins/crud';
|
||||||
|
import DictTag from '@/components/tag-dict/main';
|
||||||
|
|
||||||
|
|
||||||
|
// 业务组件
|
||||||
|
import tenantPackage from './views/system/tenantpackage';
|
||||||
|
|
||||||
|
// 注册全局crud驱动
|
||||||
|
window.$crudCommon = crudCommon;
|
||||||
|
// 加载Vue拓展
|
||||||
|
Vue.use(router);
|
||||||
|
Vue.use(VueAxios, axios);
|
||||||
|
Vue.use(Element, {
|
||||||
|
i18n: (key, value) => i18n.t(key, value)
|
||||||
|
});
|
||||||
|
Vue.use(window.AVUE, {
|
||||||
|
size: 'small',
|
||||||
|
tableSize: 'small',
|
||||||
|
calcHeight: 65,
|
||||||
|
i18n: (key, value) => i18n.t(key, value)
|
||||||
|
});
|
||||||
|
// 注册全局容器
|
||||||
|
Vue.component('basicContainer', basicContainer);
|
||||||
|
Vue.component('basicBlock', basicBlock);
|
||||||
|
Vue.component('thirdRegister', thirdRegister);
|
||||||
|
Vue.component('avueUeditor', avueUeditor);
|
||||||
|
Vue.component('flowDesign', flowDesign);
|
||||||
|
Vue.component('tenantPackage', tenantPackage);
|
||||||
|
Vue.component('DictTag', DictTag);
|
||||||
|
// 加载相关url地址
|
||||||
|
Object.keys(urls).forEach(key => {
|
||||||
|
Vue.prototype[key] = urls[key];
|
||||||
|
});
|
||||||
|
// 加载NutFlow
|
||||||
|
Vue.use(window.WfDesignBase);
|
||||||
|
// 加载website
|
||||||
|
Vue.prototype.website = website;
|
||||||
|
// 动态加载阿里云字体库
|
||||||
|
iconfontVersion.forEach(ele => {
|
||||||
|
loadStyle(iconfontUrl.replace('$key', ele));
|
||||||
|
});
|
||||||
|
|
||||||
|
Vue.config.productionTip = false;
|
||||||
|
|
||||||
|
new Vue({
|
||||||
|
router,
|
||||||
|
store,
|
||||||
|
i18n,
|
||||||
|
render: h => h(App)
|
||||||
|
}).$mount('#app');
|
||||||
168
src/mixins/color.js
Normal file
168
src/mixins/color.js
Normal file
@@ -0,0 +1,168 @@
|
|||||||
|
import { mapGetters } from "vuex";
|
||||||
|
const version = require("element-ui/package.json").version; // element-ui version from node_modules
|
||||||
|
const ORIGINAL_THEME = "#409EFF"; // default color
|
||||||
|
export default function () {
|
||||||
|
return {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
themeVal: ORIGINAL_THEME
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.themeVal = this.colorName;
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
themeVal(val, oldVal) {
|
||||||
|
this.$store.commit("SET_COLOR_NAME", val);
|
||||||
|
this.updateTheme(val, oldVal);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(["colorName"])
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
updateTheme(val, oldVal) {
|
||||||
|
if (typeof val !== "string") return;
|
||||||
|
const head = document.getElementsByTagName("head")[0];
|
||||||
|
const themeCluster = this.getThemeCluster(val.replace("#", ""));
|
||||||
|
const originalCluster = this.getThemeCluster(oldVal.replace("#", ""));
|
||||||
|
const getHandler = (variable, id) => {
|
||||||
|
return () => {
|
||||||
|
const originalCluster = this.getThemeCluster(
|
||||||
|
ORIGINAL_THEME.replace("#", "")
|
||||||
|
);
|
||||||
|
const newStyle = this.updateStyle(
|
||||||
|
this[variable],
|
||||||
|
originalCluster,
|
||||||
|
themeCluster
|
||||||
|
);
|
||||||
|
|
||||||
|
let styleTag = document.getElementById(id);
|
||||||
|
if (!styleTag) {
|
||||||
|
styleTag = document.createElement("style");
|
||||||
|
styleTag.setAttribute("id", id);
|
||||||
|
head.appendChild(styleTag);
|
||||||
|
}
|
||||||
|
styleTag.innerText = newStyle;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
const chalkHandler = getHandler("chalk", "chalk-style");
|
||||||
|
|
||||||
|
if (!this.chalk) {
|
||||||
|
const url = `/cdn/element-ui/${version}/theme-chalk/index.css`;
|
||||||
|
this.getCSSString(url, chalkHandler, "chalk");
|
||||||
|
} else {
|
||||||
|
chalkHandler();
|
||||||
|
}
|
||||||
|
|
||||||
|
const link = [].slice.call(
|
||||||
|
document.getElementsByTagName("head")[0].getElementsByTagName("link")
|
||||||
|
);
|
||||||
|
for (let i = 0; i < link.length; i++) {
|
||||||
|
const style = link[i];
|
||||||
|
if (style.href.includes('css')) {
|
||||||
|
this.getCSSString(style.href, innerText => {
|
||||||
|
const originalCluster = this.getThemeCluster(
|
||||||
|
ORIGINAL_THEME.replace("#", "")
|
||||||
|
);
|
||||||
|
const newStyle = this.updateStyle(
|
||||||
|
innerText,
|
||||||
|
originalCluster,
|
||||||
|
themeCluster
|
||||||
|
);
|
||||||
|
let styleTag = document.getElementById(i);
|
||||||
|
if (!styleTag) {
|
||||||
|
styleTag = document.createElement("style");
|
||||||
|
styleTag.id = i;
|
||||||
|
styleTag.innerText = newStyle;
|
||||||
|
head.appendChild(styleTag);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const styles = [].slice.call(document.querySelectorAll("style"))
|
||||||
|
|
||||||
|
styles.forEach(style => {
|
||||||
|
const {
|
||||||
|
innerText
|
||||||
|
} = style;
|
||||||
|
if (typeof innerText !== "string") return;
|
||||||
|
style.innerText = this.updateStyle(
|
||||||
|
innerText,
|
||||||
|
originalCluster,
|
||||||
|
themeCluster
|
||||||
|
);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
updateStyle(style, oldCluster, newCluster) {
|
||||||
|
let newStyle = style;
|
||||||
|
oldCluster.forEach((color, index) => {
|
||||||
|
newStyle = newStyle.replace(new RegExp(color, "ig"), newCluster[index]);
|
||||||
|
});
|
||||||
|
return newStyle;
|
||||||
|
},
|
||||||
|
|
||||||
|
getCSSString(url, callback, variable) {
|
||||||
|
const xhr = new XMLHttpRequest();
|
||||||
|
xhr.onreadystatechange = () => {
|
||||||
|
if (xhr.readyState === 4 && xhr.status === 200) {
|
||||||
|
if (variable) {
|
||||||
|
this[variable] = xhr.responseText.replace(/@font-face{[^}]+}/, "");
|
||||||
|
}
|
||||||
|
callback(xhr.responseText);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
xhr.open("GET", url);
|
||||||
|
xhr.send();
|
||||||
|
},
|
||||||
|
|
||||||
|
getThemeCluster(theme) {
|
||||||
|
const tintColor = (color, tint) => {
|
||||||
|
let red = parseInt(color.slice(0, 2), 16);
|
||||||
|
let green = parseInt(color.slice(2, 4), 16);
|
||||||
|
let blue = parseInt(color.slice(4, 6), 16);
|
||||||
|
|
||||||
|
if (tint === 0) {
|
||||||
|
// when primary color is in its rgb space
|
||||||
|
return [red, green, blue].join(",");
|
||||||
|
} else {
|
||||||
|
red += Math.round(tint * (255 - red));
|
||||||
|
green += Math.round(tint * (255 - green));
|
||||||
|
blue += Math.round(tint * (255 - blue));
|
||||||
|
|
||||||
|
red = red.toString(16);
|
||||||
|
green = green.toString(16);
|
||||||
|
blue = blue.toString(16);
|
||||||
|
|
||||||
|
return `#${red}${green}${blue}`;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const shadeColor = (color, shade) => {
|
||||||
|
let red = parseInt(color.slice(0, 2), 16);
|
||||||
|
let green = parseInt(color.slice(2, 4), 16);
|
||||||
|
let blue = parseInt(color.slice(4, 6), 16);
|
||||||
|
|
||||||
|
red = Math.round((1 - shade) * red);
|
||||||
|
green = Math.round((1 - shade) * green);
|
||||||
|
blue = Math.round((1 - shade) * blue);
|
||||||
|
|
||||||
|
red = red.toString(16);
|
||||||
|
green = green.toString(16);
|
||||||
|
blue = blue.toString(16);
|
||||||
|
|
||||||
|
return `#${red}${green}${blue}`;
|
||||||
|
};
|
||||||
|
|
||||||
|
const clusters = [theme];
|
||||||
|
for (let i = 0; i <= 9; i++) {
|
||||||
|
clusters.push(tintColor(theme, Number((i / 10).toFixed(2))));
|
||||||
|
}
|
||||||
|
clusters.push(shadeColor(theme, 0.1));
|
||||||
|
return clusters;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
209
src/mixins/crud.js
Normal file
209
src/mixins/crud.js
Normal file
@@ -0,0 +1,209 @@
|
|||||||
|
import {mapGetters} from "vuex";
|
||||||
|
|
||||||
|
export default (app, option = {}) => {
|
||||||
|
const mixins = {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
selectionList: [],
|
||||||
|
data: [],
|
||||||
|
form: {},
|
||||||
|
params: {},
|
||||||
|
loading: false,
|
||||||
|
api: require(`@/api/${option.name}`),
|
||||||
|
option: require(`@/option/${option.name}`).default,
|
||||||
|
page: {
|
||||||
|
pageSizes: [10, 30, 50, 100, 200, 500],
|
||||||
|
pageSize: 10
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(['userInfo', 'permission', 'roles']),
|
||||||
|
ids() {
|
||||||
|
const ids = [];
|
||||||
|
this.selectionList.forEach(ele => {
|
||||||
|
ids.push(ele[this.rowKey]);
|
||||||
|
});
|
||||||
|
return ids.join(",");
|
||||||
|
},
|
||||||
|
bindVal() {
|
||||||
|
return {
|
||||||
|
ref: 'crud',
|
||||||
|
option: this.option,
|
||||||
|
data: this.data,
|
||||||
|
tableLoading: this.loading
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onEvent() {
|
||||||
|
return {
|
||||||
|
'on-load': this.getList,
|
||||||
|
'row-save': this.rowSave,
|
||||||
|
'row-update': this.rowUpdate,
|
||||||
|
'row-del': this.rowDel,
|
||||||
|
'selection-change': this.selectionChange,
|
||||||
|
'refresh-change': this.refreshChange,
|
||||||
|
'date-change': this.dateChange,
|
||||||
|
'search-change': this.searchChange,
|
||||||
|
'search-reset': this.searchChange
|
||||||
|
}
|
||||||
|
},
|
||||||
|
rowKey() {
|
||||||
|
return this.option.rowKey || option.rowKey || 'id'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getList() {
|
||||||
|
const callback = () => {
|
||||||
|
this.loading = true;
|
||||||
|
this.api[option.list || 'getList'](this.page.currentPage, this.page.pageSize, this.params).then(res => {
|
||||||
|
let data;
|
||||||
|
if (option.res) {
|
||||||
|
data = option.res(res.data);
|
||||||
|
} else {
|
||||||
|
data = res.data.data;
|
||||||
|
}
|
||||||
|
this.page.total = data[option.total || 'total'] || 0;
|
||||||
|
this.data = data[option.records || 'records'];
|
||||||
|
if (this.listAfter) {
|
||||||
|
this.listAfter(data);
|
||||||
|
}
|
||||||
|
this.loading = false;
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (this.listBefore) {
|
||||||
|
this.listBefore();
|
||||||
|
}
|
||||||
|
callback();
|
||||||
|
},
|
||||||
|
rowSave(row, done, loading) {
|
||||||
|
const callback = () => {
|
||||||
|
delete this.form.params;
|
||||||
|
this.api[option.add || 'add'](this.form).then((data) => {
|
||||||
|
this.getList();
|
||||||
|
if (this.addAfter) {
|
||||||
|
this.addAfter(data);
|
||||||
|
} else {
|
||||||
|
this.$message.success('新增成功');
|
||||||
|
}
|
||||||
|
done();
|
||||||
|
}).catch(() => {
|
||||||
|
loading();
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (this.addBefore) {
|
||||||
|
this.addBefore();
|
||||||
|
}
|
||||||
|
callback();
|
||||||
|
},
|
||||||
|
rowUpdate(row, index, done, loading) {
|
||||||
|
const callback = () => {
|
||||||
|
delete this.form.params;
|
||||||
|
this.api[option.update || 'update'](this.form).then((data) => {
|
||||||
|
this.getList();
|
||||||
|
if (this.updateAfter) {
|
||||||
|
this.updateAfter(data);
|
||||||
|
} else {
|
||||||
|
this.$message.success('更新成功');
|
||||||
|
}
|
||||||
|
done();
|
||||||
|
}).catch(() => {
|
||||||
|
loading();
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (this.updateBefore) {
|
||||||
|
this.updateBefore();
|
||||||
|
}
|
||||||
|
callback();
|
||||||
|
},
|
||||||
|
rowDel(row, index) {
|
||||||
|
const callback = () => {
|
||||||
|
this.api[option.del || 'remove'](row[this.rowKey], row).then((data) => {
|
||||||
|
this.getList();
|
||||||
|
if (this.delAfter) {
|
||||||
|
this.delAfter(data, row, index)
|
||||||
|
} else {
|
||||||
|
this.$message.success('删除成功');
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (this.delBefore) {
|
||||||
|
this.delBefore();
|
||||||
|
callback();
|
||||||
|
} else {
|
||||||
|
this.$confirm('确定将选择数据删除?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
callback();
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleDelete() {
|
||||||
|
if (this.selectionList.length === 0) {
|
||||||
|
this.$message.warning("请选择至少一条数据");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.$confirm("确定将选择数据删除?", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.api[option.del || 'remove'](this.ids).then((data) => {
|
||||||
|
this.getList();
|
||||||
|
if (this.delMultiAfter) {
|
||||||
|
this.delMultiAfter(data, this.ids);
|
||||||
|
} else {
|
||||||
|
this.$message.success('删除成功');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
searchChange(params, done) {
|
||||||
|
if (done) done();
|
||||||
|
if (this.validatenull(params)) {
|
||||||
|
Object.keys(this.params).forEach(ele => {
|
||||||
|
if (!['createTime_dategt', 'createTime_datelt'].includes(ele)) {
|
||||||
|
delete this.params[ele];
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
Object.keys(params).forEach(ele => {
|
||||||
|
if (this.validatenull(params[ele])) {
|
||||||
|
delete this.params[ele];
|
||||||
|
delete params[ele];
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.params = Object.assign(this.params, params);
|
||||||
|
this.page.currentPage = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
dateChange(date) {
|
||||||
|
if (date) {
|
||||||
|
this.params.createTime_dategt = date[0];
|
||||||
|
this.params.createTime_datelt = date[1];
|
||||||
|
} else {
|
||||||
|
delete this.params.createTime_dategt;
|
||||||
|
delete this.params.createTime_datelt;
|
||||||
|
}
|
||||||
|
this.page.currentPage = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
selectionChange(list) {
|
||||||
|
this.selectionList = list;
|
||||||
|
},
|
||||||
|
selectionClear() {
|
||||||
|
this.selectionList = [];
|
||||||
|
this.$refs.crud.toggleSelection();
|
||||||
|
},
|
||||||
|
refreshChange() {
|
||||||
|
this.getList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
app.mixins = app.mixins || [];
|
||||||
|
app.mixins.push(mixins);
|
||||||
|
return app;
|
||||||
|
}
|
||||||
20
src/mock/index.js
Normal file
20
src/mock/index.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import user from './user';
|
||||||
|
import menu from './menu';
|
||||||
|
import oauth from './oauth';
|
||||||
|
import param from './param';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 模拟数据mock
|
||||||
|
*
|
||||||
|
* mock是否开启模拟数据拦截
|
||||||
|
*/
|
||||||
|
|
||||||
|
const options = {mock: false};
|
||||||
|
|
||||||
|
user(options);
|
||||||
|
|
||||||
|
menu(options);
|
||||||
|
|
||||||
|
oauth(options);
|
||||||
|
|
||||||
|
param(options);
|
||||||
47
src/mock/menu.js
Normal file
47
src/mock/menu.js
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
import Mock from 'mockjs'
|
||||||
|
|
||||||
|
const top = [{
|
||||||
|
label: "首页",
|
||||||
|
path: "/wel/index",
|
||||||
|
icon: 'el-icon-menu',
|
||||||
|
meta: {
|
||||||
|
i18n: 'dashboard',
|
||||||
|
},
|
||||||
|
parentId: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "bladex官网",
|
||||||
|
icon: 'el-icon-document',
|
||||||
|
meta: {
|
||||||
|
i18n: 'website',
|
||||||
|
},
|
||||||
|
path: "https://bladex.vip/#/",
|
||||||
|
parentId: 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "avuex官网",
|
||||||
|
icon: 'el-icon-document',
|
||||||
|
meta: {
|
||||||
|
i18n: 'avuexwebsite',
|
||||||
|
},
|
||||||
|
path: "https://avuex.avue.top",
|
||||||
|
parentId: 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "测试",
|
||||||
|
icon: 'el-icon-document',
|
||||||
|
path: "/test/index",
|
||||||
|
meta: {
|
||||||
|
i18n: 'test',
|
||||||
|
},
|
||||||
|
parentId: 3
|
||||||
|
}]
|
||||||
|
export default ({mock}) => {
|
||||||
|
if (!mock) return;
|
||||||
|
Mock.mock('/user/getTopMenu', 'get', () => {
|
||||||
|
return {
|
||||||
|
data: top
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
22
src/mock/oauth.js
Normal file
22
src/mock/oauth.js
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import Mock from 'mockjs'
|
||||||
|
|
||||||
|
export default ({mock}) => {
|
||||||
|
if (!mock) return;
|
||||||
|
Mock.mock('/api/blade-auth/oauth/token/refresh', 'post', () => {
|
||||||
|
return {
|
||||||
|
data: {
|
||||||
|
"account": "admin",
|
||||||
|
"user_name": "admin",
|
||||||
|
"nick_name": "管理员",
|
||||||
|
"role_name": "administrator",
|
||||||
|
"avatar": "https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png",
|
||||||
|
"access_token": "eyJ0eXAiOiJKc29uV2ViVG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJpc3N1c2VyIiwiYXVkIjoiYXVkaWVuY2UiLCJyb2xlX25hbWUiOiJhZG1pbmlzdHJhdG9yIiwidXNlcl9pZCI6IjExMjM1OTg4MjE3Mzg2NzUyMDEiLCJyb2xlX2lkIjoiMTEyMzU5ODgxNjczODY3NTIwMSIsInVzZXJfbmFtZSI6ImFkbWluIiwibmlja19uYW1lIjoi566h55CG5ZGYIiwiYWNjb3VudCI6ImFkbWluIiwidGVuYW50X2NvZGUiOiIwMDAwMDAiLCJjbGllbnRfaWQiOiJzd29yZCIsImV4cCI6MTU1Nzk0Njc5OSwibmJmIjoxNTU3ODgxODg0fQ.FT8y1v1tg8hOAAoQpKlarKMgmsSXol-561edqtvOwa4",
|
||||||
|
"refresh_token": "eyJ0eXAiOiJKc29uV2ViVG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJpc3N1c2VyIiwiYXVkIjoiYXVkaWVuY2UiLCJyb2xlX25hbWUiOiJhZG1pbmlzdHJhdG9yIiwidXNlcl9pZCI6IjExMjM1OTg4MjE3Mzg2NzUyMDEiLCJyb2xlX2lkIjoiMTEyMzU5ODgxNjczODY3NTIwMSIsInVzZXJfbmFtZSI6ImFkbWluIiwibmlja19uYW1lIjoi566h55CG5ZGYIiwiYWNjb3VudCI6ImFkbWluIiwidGVuYW50X2NvZGUiOiIwMDAwMDAiLCJjbGllbnRfaWQiOiJzd29yZCIsImV4cCI6MTU1Nzk0Njc5OSwibmJmIjoxNTU3ODgxODg0fQ.FT8y1v1tg8hOAAoQpKlarKMgmsSXol-561edqtvOwa4",
|
||||||
|
"token_type": "bearer",
|
||||||
|
"expires_in": 64915,
|
||||||
|
"license": "powered by bladex"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
59
src/mock/param.js
Normal file
59
src/mock/param.js
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
import Mock from 'mockjs'
|
||||||
|
|
||||||
|
function getFakeList() {
|
||||||
|
const json = {code: 200, success: true, msg: '操作成功'};
|
||||||
|
const list = [];
|
||||||
|
list.push(
|
||||||
|
{
|
||||||
|
id: '1',
|
||||||
|
paramName: '是否开启注册功能--mock测试',
|
||||||
|
paramKey: 'account.registerUser',
|
||||||
|
paramValue: 'true',
|
||||||
|
remark: '描述',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: '2',
|
||||||
|
paramName: '账号初始密码--mock测试',
|
||||||
|
paramKey: 'account.initPassword',
|
||||||
|
paramValue: '123456',
|
||||||
|
remark: '描述',
|
||||||
|
}
|
||||||
|
);
|
||||||
|
json.data = {
|
||||||
|
total: 10,
|
||||||
|
size: 10,
|
||||||
|
current: 1,
|
||||||
|
searchCount: true,
|
||||||
|
pages: 1,
|
||||||
|
records: list,
|
||||||
|
};
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getFakeDetail() {
|
||||||
|
const json = {code: 200, success: true, msg: '操作成功'};
|
||||||
|
json.data = {
|
||||||
|
id: '1',
|
||||||
|
paramName: '是否开启注册功能',
|
||||||
|
paramKey: 'account.registerUser',
|
||||||
|
paramValue: 'true',
|
||||||
|
remark: '描述',
|
||||||
|
};
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
|
||||||
|
function fakeSuccess() {
|
||||||
|
return {code: 200, success: true, msg: '操作成功'};
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ({mock}) => {
|
||||||
|
if (!mock) return;
|
||||||
|
Mock.mock(/\/api\/blade-system\/param\/list/, 'get', getFakeList);
|
||||||
|
|
||||||
|
Mock.mock(/\/api\/blade-system\/param\/detail/, 'get', getFakeDetail);
|
||||||
|
|
||||||
|
Mock.mock(/\/api\/blade-system\/param\/submit/, 'post', fakeSuccess);
|
||||||
|
|
||||||
|
Mock.mock(/\/api\/blade-system\/param\/remove/, 'post', fakeSuccess);
|
||||||
|
|
||||||
|
}
|
||||||
44
src/mock/user.js
Normal file
44
src/mock/user.js
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
import Mock from 'mockjs'
|
||||||
|
export default ({ mock }) => {
|
||||||
|
if (!mock) return;
|
||||||
|
// 用户登录
|
||||||
|
Mock.mock('/user/login', 'post', {
|
||||||
|
data: new Date().getTime() + ''
|
||||||
|
});
|
||||||
|
//用户退出
|
||||||
|
Mock.mock('/user/logout', 'get', {
|
||||||
|
data: true,
|
||||||
|
});
|
||||||
|
//刷新token
|
||||||
|
Mock.mock('/user/refesh', 'post', {
|
||||||
|
data: new Date().getTime() + ''
|
||||||
|
});
|
||||||
|
|
||||||
|
//获取表格数据
|
||||||
|
Mock.mock('/user/getTable', 'get', () => {
|
||||||
|
let list = []
|
||||||
|
for (let i = 0; i < 5; i++) {
|
||||||
|
list.push(Mock.mock({
|
||||||
|
id: '@increment',
|
||||||
|
name: Mock.mock('@cname'),
|
||||||
|
username: Mock.mock('@last'),
|
||||||
|
type: [0, 2],
|
||||||
|
checkbox: [0, 1],
|
||||||
|
'number|0-100': 0,
|
||||||
|
datetime: 1532932422071,
|
||||||
|
'sex|0-1': 0,
|
||||||
|
moreselect: [0, 1],
|
||||||
|
"grade": 0,
|
||||||
|
address: Mock.mock('@cparagraph(1, 3)'),
|
||||||
|
check: [1, 3, 4]
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
data: {
|
||||||
|
total: 11,
|
||||||
|
pageSize: 10,
|
||||||
|
tableData: list
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
210
src/option/system/dict.js
Normal file
210
src/option/system/dict.js
Normal file
@@ -0,0 +1,210 @@
|
|||||||
|
export const optionParent = {
|
||||||
|
height: 'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 10,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
selection: true,
|
||||||
|
viewBtn: true,
|
||||||
|
menuWidth: 250,
|
||||||
|
dialogWidth: 880,
|
||||||
|
dialogClickModal: false,
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "字典编号",
|
||||||
|
prop: "code",
|
||||||
|
search: true,
|
||||||
|
slot: true,
|
||||||
|
span: 24,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入字典编号",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "字典名称",
|
||||||
|
prop: "dictValue",
|
||||||
|
search: true,
|
||||||
|
align: "center",
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入字典名称",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "字典排序",
|
||||||
|
prop: "sort",
|
||||||
|
type: "number",
|
||||||
|
align: "right",
|
||||||
|
width: 100,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入字典排序",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "封存",
|
||||||
|
prop: "isSealed",
|
||||||
|
type: "switch",
|
||||||
|
align: "center",
|
||||||
|
width: 100,
|
||||||
|
dicData: [
|
||||||
|
{
|
||||||
|
label: "否",
|
||||||
|
value: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "是",
|
||||||
|
value: 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
value: 0,
|
||||||
|
slot: true,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请选择封存",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "字典备注",
|
||||||
|
prop: "remark",
|
||||||
|
hide: true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
export const optionChild = {
|
||||||
|
height: 'auto',
|
||||||
|
calcHeight: 95,
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 10,
|
||||||
|
tree: true,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
selection: true,
|
||||||
|
viewBtn: true,
|
||||||
|
menuWidth: 300,
|
||||||
|
dialogWidth: 880,
|
||||||
|
dialogClickModal: false,
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "字典编号",
|
||||||
|
prop: "code",
|
||||||
|
addDisabled: true,
|
||||||
|
editDisabled: true,
|
||||||
|
search: true,
|
||||||
|
span: 24,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入字典编号",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "字典名称",
|
||||||
|
prop: "dictValue",
|
||||||
|
search: true,
|
||||||
|
align: "center",
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入字典名称",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "上级字典",
|
||||||
|
prop: "parentId",
|
||||||
|
type: "tree",
|
||||||
|
dicData: [],
|
||||||
|
hide: true,
|
||||||
|
props: {
|
||||||
|
label: "title"
|
||||||
|
},
|
||||||
|
addDisabled: true,
|
||||||
|
editDisabled: true,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: false,
|
||||||
|
message: "请选择上级字典",
|
||||||
|
trigger: "click"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "字典键值",
|
||||||
|
prop: "dictKey",
|
||||||
|
width: 80,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入字典键值",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "字典排序",
|
||||||
|
prop: "sort",
|
||||||
|
type: "number",
|
||||||
|
align: "right",
|
||||||
|
hide: true,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入字典排序",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "封存",
|
||||||
|
prop: "isSealed",
|
||||||
|
type: "switch",
|
||||||
|
align: "center",
|
||||||
|
width: 80,
|
||||||
|
dicData: [
|
||||||
|
{
|
||||||
|
label: "否",
|
||||||
|
value: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "是",
|
||||||
|
value: 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
value: 0,
|
||||||
|
slot: true,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请选择封存",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "字典备注",
|
||||||
|
prop: "remark",
|
||||||
|
hide: true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
211
src/option/system/dictbiz.js
Normal file
211
src/option/system/dictbiz.js
Normal file
@@ -0,0 +1,211 @@
|
|||||||
|
export const optionParent = {
|
||||||
|
height: 'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 10,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
selection: true,
|
||||||
|
viewBtn: true,
|
||||||
|
menuWidth: 250,
|
||||||
|
dialogWidth: 880,
|
||||||
|
dialogClickModal: false,
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "字典编号",
|
||||||
|
prop: "code",
|
||||||
|
search: true,
|
||||||
|
slot: true,
|
||||||
|
span: 24,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入字典编号",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "字典名称",
|
||||||
|
prop: "dictValue",
|
||||||
|
search: true,
|
||||||
|
align: "center",
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入字典名称",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "字典排序",
|
||||||
|
prop: "sort",
|
||||||
|
type: "number",
|
||||||
|
align: "right",
|
||||||
|
width: 100,
|
||||||
|
hide: true,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入字典排序",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "封存",
|
||||||
|
prop: "isSealed",
|
||||||
|
type: "switch",
|
||||||
|
align: "center",
|
||||||
|
width: 100,
|
||||||
|
dicData: [
|
||||||
|
{
|
||||||
|
label: "否",
|
||||||
|
value: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "是",
|
||||||
|
value: 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
value: 0,
|
||||||
|
slot: true,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请选择封存",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "字典备注",
|
||||||
|
prop: "remark",
|
||||||
|
hide: true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
export const optionChild = {
|
||||||
|
height: 'auto',
|
||||||
|
calcHeight: 95,
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 10,
|
||||||
|
tree: true,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
selection: true,
|
||||||
|
viewBtn: true,
|
||||||
|
menuWidth: 300,
|
||||||
|
dialogWidth: 880,
|
||||||
|
dialogClickModal: false,
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "字典编号",
|
||||||
|
prop: "code",
|
||||||
|
addDisabled: true,
|
||||||
|
editDisabled: true,
|
||||||
|
search: true,
|
||||||
|
span: 24,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入字典编号",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "字典名称",
|
||||||
|
prop: "dictValue",
|
||||||
|
search: true,
|
||||||
|
align: "center",
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入字典名称",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "上级字典",
|
||||||
|
prop: "parentId",
|
||||||
|
type: "tree",
|
||||||
|
dicData: [],
|
||||||
|
hide: true,
|
||||||
|
props: {
|
||||||
|
label: "title"
|
||||||
|
},
|
||||||
|
addDisabled: true,
|
||||||
|
editDisabled: true,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: false,
|
||||||
|
message: "请选择上级字典",
|
||||||
|
trigger: "click"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "字典键值",
|
||||||
|
prop: "dictKey",
|
||||||
|
width: 80,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入字典键值",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "字典排序",
|
||||||
|
prop: "sort",
|
||||||
|
type: "number",
|
||||||
|
align: "right",
|
||||||
|
hide: true,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入字典排序",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "封存",
|
||||||
|
prop: "isSealed",
|
||||||
|
type: "switch",
|
||||||
|
align: "center",
|
||||||
|
width: 80,
|
||||||
|
dicData: [
|
||||||
|
{
|
||||||
|
label: "否",
|
||||||
|
value: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "是",
|
||||||
|
value: 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
value: 0,
|
||||||
|
slot: true,
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请选择封存",
|
||||||
|
trigger: "blur"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "字典备注",
|
||||||
|
prop: "remark",
|
||||||
|
hide: true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
48
src/option/system/param.js
Normal file
48
src/option/system/param.js
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
export default {
|
||||||
|
height: 'auto',
|
||||||
|
calcHeight: 30,
|
||||||
|
tip: false,
|
||||||
|
searchShow: true,
|
||||||
|
searchMenuSpan: 6,
|
||||||
|
border: true,
|
||||||
|
index: true,
|
||||||
|
selection: true,
|
||||||
|
viewBtn: true,
|
||||||
|
dialogClickModal: false,
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: "参数名称",
|
||||||
|
prop: "paramName",
|
||||||
|
search: true,
|
||||||
|
span: 24,
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
message: "请输入参数名称",
|
||||||
|
trigger: "blur"
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "参数键名",
|
||||||
|
prop: "paramKey",
|
||||||
|
search: true,
|
||||||
|
span: 24,
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
message: "请输入参数键名",
|
||||||
|
trigger: "blur"
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "参数键值",
|
||||||
|
prop: "paramValue",
|
||||||
|
type: "textarea",
|
||||||
|
span: 24,
|
||||||
|
minRows: 6,
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
message: "请输入参数键值",
|
||||||
|
trigger: "blur"
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
71
src/option/user/info.js
Normal file
71
src/option/user/info.js
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
export default {
|
||||||
|
tabs: true,
|
||||||
|
tabsActive: 1,
|
||||||
|
group: [
|
||||||
|
{
|
||||||
|
label: '个人信息',
|
||||||
|
prop: 'info',
|
||||||
|
column: [{
|
||||||
|
label: '头像',
|
||||||
|
type: 'upload',
|
||||||
|
listType: 'picture-img',
|
||||||
|
propsHttp: {
|
||||||
|
res: 'data',
|
||||||
|
url: 'link',
|
||||||
|
},
|
||||||
|
canvasOption: {
|
||||||
|
text: ' ',
|
||||||
|
ratio: 0.1
|
||||||
|
},
|
||||||
|
action: '/api/blade-resource/oss/endpoint/put-file',
|
||||||
|
tip: '只能上传jpg/png用户头像,且不超过500kb',
|
||||||
|
span: 12,
|
||||||
|
row: true,
|
||||||
|
prop: 'avatar'
|
||||||
|
}, {
|
||||||
|
label: '姓名',
|
||||||
|
span: 12,
|
||||||
|
row: true,
|
||||||
|
prop: 'realName'
|
||||||
|
}, {
|
||||||
|
label: '用户名',
|
||||||
|
span: 12,
|
||||||
|
row: true,
|
||||||
|
prop: 'name'
|
||||||
|
}, {
|
||||||
|
label: '手机号',
|
||||||
|
span: 12,
|
||||||
|
row: true,
|
||||||
|
prop: 'phone'
|
||||||
|
}, {
|
||||||
|
label: '邮箱',
|
||||||
|
prop: 'email',
|
||||||
|
span: 12,
|
||||||
|
row: true,
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '修改密码',
|
||||||
|
prop: 'password',
|
||||||
|
column: [{
|
||||||
|
label: '原密码',
|
||||||
|
span: 12,
|
||||||
|
row: true,
|
||||||
|
type: 'password',
|
||||||
|
prop: 'oldPassword'
|
||||||
|
}, {
|
||||||
|
label: '新密码',
|
||||||
|
span: 12,
|
||||||
|
row: true,
|
||||||
|
type: 'password',
|
||||||
|
prop: 'newPassword'
|
||||||
|
}, {
|
||||||
|
label: '确认密码',
|
||||||
|
span: 12,
|
||||||
|
row: true,
|
||||||
|
type: 'password',
|
||||||
|
prop: 'newPassword1'
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
}
|
||||||
143
src/page/index/index.vue
Normal file
143
src/page/index/index.vue
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
<template>
|
||||||
|
<div class="avue-contail" :class="{'avue--collapse':isCollapse}">
|
||||||
|
<div class="avue-header">
|
||||||
|
<!-- 顶部导航栏 -->
|
||||||
|
<top ref="top"/>
|
||||||
|
</div>
|
||||||
|
<div class="avue-layout">
|
||||||
|
<div class="avue-left">
|
||||||
|
<!-- 左侧导航栏 -->
|
||||||
|
<sidebar/>
|
||||||
|
</div>
|
||||||
|
<div class="avue-main">
|
||||||
|
<!-- 顶部标签卡 -->
|
||||||
|
<tags/>
|
||||||
|
<transition name="fade-scale">
|
||||||
|
<search class="avue-view" v-show="isSearch"></search>
|
||||||
|
</transition>
|
||||||
|
<!-- 主体视图层 -->
|
||||||
|
<div style="height:100%;overflow-y:auto;overflow-x:hidden;" id="avue-view" v-show="!isSearch">
|
||||||
|
<keep-alive>
|
||||||
|
<router-view class="avue-view" v-if="$route.meta.keepAlive"/>
|
||||||
|
</keep-alive>
|
||||||
|
<router-view class="avue-view" v-if="!$route.meta.keepAlive"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="avue-shade" @click="showCollapse"></div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {mapGetters} from "vuex";
|
||||||
|
import tags from "./tags";
|
||||||
|
import search from "./search";
|
||||||
|
import top from "./top/";
|
||||||
|
import sidebar from "./sidebar/";
|
||||||
|
import admin from "@/util/admin";
|
||||||
|
import {validatenull} from "@/util/validate";
|
||||||
|
import {calcDate} from "@/util/date.js";
|
||||||
|
import {getStore} from "@/util/store.js";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
top,
|
||||||
|
tags,
|
||||||
|
search,
|
||||||
|
sidebar
|
||||||
|
},
|
||||||
|
name: "index",
|
||||||
|
provide() {
|
||||||
|
return {
|
||||||
|
index: this
|
||||||
|
};
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
//搜索控制
|
||||||
|
isSearch: false,
|
||||||
|
//刷新token锁
|
||||||
|
refreshLock: false,
|
||||||
|
//刷新token的时间
|
||||||
|
refreshTime: ""
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
//实时检测刷新token
|
||||||
|
this.refreshToken();
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.init();
|
||||||
|
},
|
||||||
|
computed: mapGetters(["isMenu", "isLock", "isCollapse", "website", "menu"]),
|
||||||
|
props: [],
|
||||||
|
methods: {
|
||||||
|
showCollapse() {
|
||||||
|
this.$store.commit("SET_COLLAPSE");
|
||||||
|
},
|
||||||
|
// 初始化
|
||||||
|
init() {
|
||||||
|
this.$store.commit("SET_SCREEN", admin.getScreen());
|
||||||
|
window.onresize = () => {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$store.commit("SET_SCREEN", admin.getScreen());
|
||||||
|
}, 0);
|
||||||
|
};
|
||||||
|
this.$store.dispatch("FlowRoutes").then(() => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//打开菜单
|
||||||
|
openMenu(item = {}) {
|
||||||
|
this.$store.dispatch("GetMenu", item.id).then(data => {
|
||||||
|
if (data.length !== 0) {
|
||||||
|
this.$router.$avueRouter.formatRoutes(data, true);
|
||||||
|
}
|
||||||
|
//当点击顶部菜单后默认打开第一个菜单
|
||||||
|
/*if (!this.validatenull(item)) {
|
||||||
|
let itemActive = {},
|
||||||
|
childItemActive = 0;
|
||||||
|
if (item.path) {
|
||||||
|
itemActive = item;
|
||||||
|
} else {
|
||||||
|
if (this.menu[childItemActive].length === 0) {
|
||||||
|
itemActive = this.menu[childItemActive];
|
||||||
|
} else {
|
||||||
|
itemActive = this.menu[childItemActive].children[childItemActive];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.$store.commit('SET_MENU_ID', item);
|
||||||
|
this.$router.push({
|
||||||
|
path: this.$router.$avueRouter.getPath({
|
||||||
|
name: (itemActive.label || itemActive.name),
|
||||||
|
src: itemActive.path
|
||||||
|
}, itemActive.meta)
|
||||||
|
});
|
||||||
|
}*/
|
||||||
|
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 定时检测token
|
||||||
|
refreshToken() {
|
||||||
|
this.refreshTime = setInterval(() => {
|
||||||
|
const token = getStore({
|
||||||
|
name: "token",
|
||||||
|
debug: true
|
||||||
|
}) || {};
|
||||||
|
const date = calcDate(token.datetime, new Date().getTime());
|
||||||
|
if (validatenull(date)) return;
|
||||||
|
if (date.seconds >= this.website.tokenTime && !this.refreshLock) {
|
||||||
|
this.refreshLock = true;
|
||||||
|
this.$store
|
||||||
|
.dispatch("refreshToken")
|
||||||
|
.then(() => {
|
||||||
|
this.refreshLock = false;
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.refreshLock = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, 10000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
8
src/page/index/layout.vue
Normal file
8
src/page/index/layout.vue
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<keep-alive>
|
||||||
|
<router-view class="avue-view" v-if="$route.meta.keepAlive" />
|
||||||
|
</keep-alive>
|
||||||
|
<router-view class="avue-view" v-if="!$route.meta.keepAlive" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
73
src/page/index/logo.vue
Normal file
73
src/page/index/logo.vue
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
<template>
|
||||||
|
<div class="avue-logo">
|
||||||
|
<transition name="fade">
|
||||||
|
<span v-if="keyCollapse"
|
||||||
|
class="avue-logo_subtitle"
|
||||||
|
key="0">
|
||||||
|
{{website.logo}}
|
||||||
|
</span>
|
||||||
|
</transition>
|
||||||
|
<transition-group name="fade">
|
||||||
|
<template v-if="!keyCollapse">
|
||||||
|
<span class="avue-logo_title"
|
||||||
|
key="1">{{website.indexTitle}} </span>
|
||||||
|
</template>
|
||||||
|
</transition-group>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
|
export default {
|
||||||
|
name: "logo",
|
||||||
|
data() {
|
||||||
|
return {};
|
||||||
|
},
|
||||||
|
created() {},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(["website", "keyCollapse"])
|
||||||
|
},
|
||||||
|
methods: {}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.fade-leave-active {
|
||||||
|
transition: opacity 0.2s;
|
||||||
|
}
|
||||||
|
.fade-enter-active {
|
||||||
|
transition: opacity 2.5s;
|
||||||
|
}
|
||||||
|
.fade-enter,
|
||||||
|
.fade-leave-to {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
.avue-logo {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 240px;
|
||||||
|
height: 64px;
|
||||||
|
line-height: 64px;
|
||||||
|
background-color: #20222a;
|
||||||
|
font-size: 20px;
|
||||||
|
overflow: hidden;
|
||||||
|
box-sizing: border-box;
|
||||||
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
|
||||||
|
color: rgba(255, 255, 255, 0.8);
|
||||||
|
z-index: 1024;
|
||||||
|
&_title {
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: 300;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
&_subtitle {
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
191
src/page/index/search.vue
Normal file
191
src/page/index/search.vue
Normal file
@@ -0,0 +1,191 @@
|
|||||||
|
<template>
|
||||||
|
<div class="avue-searchs"
|
||||||
|
@click.self="handleEsc">
|
||||||
|
<div class="avue-searchs__title">菜单搜索</div>
|
||||||
|
<div class="avue-searchs__content">
|
||||||
|
<div class="avue-searchs__form">
|
||||||
|
<el-input :placeholder="$t('search')"
|
||||||
|
v-model="value"
|
||||||
|
@keydown.esc.native="handleEsc">
|
||||||
|
<el-button slot="append"
|
||||||
|
icon="el-icon-search"></el-button>
|
||||||
|
</el-input>
|
||||||
|
<p>
|
||||||
|
<el-tag>你可以使用快捷键esc 关闭</el-tag>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="avue-searchs__list">
|
||||||
|
<el-scrollbar class="avue-searchs__scrollbar">
|
||||||
|
<div class="avue-searchs__item"
|
||||||
|
v-for="(item,index) in menus"
|
||||||
|
:key="index"
|
||||||
|
@click="handleSelect(item)">
|
||||||
|
<i :class="[item[iconKey],'avue-searchs__item-icon']"></i>
|
||||||
|
<span class="avue-searchs__item-title">{{item[labelKey]}}</span>
|
||||||
|
<div class="avue-searchs__item-path">
|
||||||
|
{{item[pathKey]}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-scrollbar>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import config from './sidebar/config.js'
|
||||||
|
import {mapGetters} from "vuex";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
config: config,
|
||||||
|
value: "",
|
||||||
|
menus: [],
|
||||||
|
menuList: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getMenuList();
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
value() {
|
||||||
|
this.querySearch();
|
||||||
|
},
|
||||||
|
menu() {
|
||||||
|
this.getMenuList();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
labelKey() {
|
||||||
|
return this.website.menu.props.label || this.config.propsDefault.label;
|
||||||
|
},
|
||||||
|
pathKey() {
|
||||||
|
return this.website.menu.props.path || this.config.propsDefault.path;
|
||||||
|
},
|
||||||
|
iconKey() {
|
||||||
|
return this.website.menu.props.icon || this.config.propsDefault.icon;
|
||||||
|
},
|
||||||
|
childrenKey() {
|
||||||
|
return (
|
||||||
|
this.website.menu.props.children || this.config.propsDefault.children
|
||||||
|
);
|
||||||
|
},
|
||||||
|
...mapGetters(["menu", "website"])
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleEsc() {
|
||||||
|
this.$parent.isSearch = false;
|
||||||
|
},
|
||||||
|
getMenuList() {
|
||||||
|
const findMenu = list => {
|
||||||
|
for (let i = 0; i < list.length; i++) {
|
||||||
|
const ele = Object.assign({}, list[i]);
|
||||||
|
if (this.validatenull(ele[this.childrenKey])) {
|
||||||
|
this.menuList.push(ele);
|
||||||
|
} else {
|
||||||
|
findMenu(ele[this.childrenKey]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
this.menuList = [];
|
||||||
|
findMenu(this.menu);
|
||||||
|
this.menus = this.menuList;
|
||||||
|
},
|
||||||
|
querySearch() {
|
||||||
|
var restaurants = this.menuList;
|
||||||
|
var queryString = this.value
|
||||||
|
this.menus = queryString
|
||||||
|
? this.menuList.filter(this.createFilter(queryString))
|
||||||
|
: restaurants;
|
||||||
|
},
|
||||||
|
createFilter(queryString) {
|
||||||
|
return restaurant => {
|
||||||
|
return (
|
||||||
|
restaurant.name.toLowerCase().indexOf(queryString.toLowerCase()) ===
|
||||||
|
0
|
||||||
|
);
|
||||||
|
};
|
||||||
|
},
|
||||||
|
handleSelect(item) {
|
||||||
|
this.handleEsc();
|
||||||
|
this.value = "";
|
||||||
|
this.$router.push({
|
||||||
|
path: this.$router.$avueRouter.getPath({
|
||||||
|
name: item[this.labelKey],
|
||||||
|
src: item[this.pathKey]
|
||||||
|
}, item.meta),
|
||||||
|
query: item.query
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.avue-searchs {
|
||||||
|
padding-top: 50px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-color: #fff;
|
||||||
|
z-index: 1024;
|
||||||
|
|
||||||
|
&__title {
|
||||||
|
margin-bottom: 60px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 42px;
|
||||||
|
font-weight: bold;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
text-indent: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__form {
|
||||||
|
margin: 0 auto 50px auto;
|
||||||
|
width: 50%;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__scrollbar {
|
||||||
|
height: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__list {
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 20px 30px;
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 70%;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #ebeef5;
|
||||||
|
background-color: #fff;
|
||||||
|
overflow: hidden;
|
||||||
|
color: #303133;
|
||||||
|
transition: 0.3s;
|
||||||
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__item {
|
||||||
|
padding: 5px 0;
|
||||||
|
border-bottom: 1px dashed #eee;
|
||||||
|
|
||||||
|
&-icon {
|
||||||
|
margin-right: 5px;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-title {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-path {
|
||||||
|
line-height: 30px;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
9
src/page/index/sidebar/config.js
Normal file
9
src/page/index/sidebar/config.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
export default {
|
||||||
|
propsDefault: {
|
||||||
|
label: 'label',
|
||||||
|
path: 'path',
|
||||||
|
icon: 'icon',
|
||||||
|
children: 'children',
|
||||||
|
isOpen: 'isOpen'
|
||||||
|
}
|
||||||
|
}
|
||||||
49
src/page/index/sidebar/index.vue
Normal file
49
src/page/index/sidebar/index.vue
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
<template>
|
||||||
|
<div class="avue-sidebar">
|
||||||
|
<logo></logo>
|
||||||
|
<el-scrollbar style="height:100%">
|
||||||
|
<div v-if="validatenull(menu)"
|
||||||
|
class="avue-sidebar--tip">{{$t('menuTip')}}
|
||||||
|
</div>
|
||||||
|
<el-menu unique-opened
|
||||||
|
:default-active="nowTagValue"
|
||||||
|
mode="vertical"
|
||||||
|
:show-timeout="200"
|
||||||
|
:collapse="keyCollapse">
|
||||||
|
<sidebar-item :menu="menu"
|
||||||
|
:screen="screen"
|
||||||
|
first
|
||||||
|
:props="website.menu.props"
|
||||||
|
:collapse="keyCollapse"></sidebar-item>
|
||||||
|
</el-menu>
|
||||||
|
</el-scrollbar>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {mapGetters} from "vuex";
|
||||||
|
import logo from "../logo";
|
||||||
|
import sidebarItem from "./sidebarItem";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "sidebar",
|
||||||
|
components: {sidebarItem, logo},
|
||||||
|
inject: ["index"],
|
||||||
|
data() {
|
||||||
|
return {};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.index.openMenu();
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(["website", "menu", "tag", "keyCollapse", "screen", "menuId"]),
|
||||||
|
nowTagValue: function () {
|
||||||
|
return this.$router.$avueRouter.getValue(this.$route);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
|
|
||||||
146
src/page/index/sidebar/sidebarItem.vue
Normal file
146
src/page/index/sidebar/sidebarItem.vue
Normal file
@@ -0,0 +1,146 @@
|
|||||||
|
<template>
|
||||||
|
<div class="menu-wrapper">
|
||||||
|
<template v-for="item in menu">
|
||||||
|
<el-menu-item v-if="validatenull(item[childrenKey]) && vaildRoles(item)"
|
||||||
|
:index="item[pathKey]"
|
||||||
|
@click="open(item)"
|
||||||
|
:key="item[labelKey]"
|
||||||
|
:class="{'is-active':vaildActive(item)}">
|
||||||
|
<i :class="item[iconKey]"></i>
|
||||||
|
<span slot="title"
|
||||||
|
:alt="item[pathKey]">{{generateTitle(item)}}</span>
|
||||||
|
</el-menu-item>
|
||||||
|
<el-submenu v-else-if="!validatenull(item[childrenKey])&&vaildRoles(item)"
|
||||||
|
:index="item[pathKey]"
|
||||||
|
:key="item[labelKey]">
|
||||||
|
<template slot="title">
|
||||||
|
<i :class="item[iconKey]"></i>
|
||||||
|
<span slot="title"
|
||||||
|
:class="{'el-menu--display':collapse && first}">{{generateTitle(item)}}</span>
|
||||||
|
</template>
|
||||||
|
<template v-for="(child,cindex) in item[childrenKey]">
|
||||||
|
<el-menu-item :index="child[pathKey],cindex"
|
||||||
|
@click="open(child)"
|
||||||
|
:class="{'is-active':vaildActive(child)}"
|
||||||
|
v-if="validatenull(child[childrenKey])"
|
||||||
|
:key="child[labelKey]">
|
||||||
|
<i :class="child[iconKey]"></i>
|
||||||
|
<span slot="title">{{generateTitle(child)}}</span>
|
||||||
|
</el-menu-item>
|
||||||
|
<sidebar-item v-else
|
||||||
|
:menu="[child]"
|
||||||
|
:key="cindex"
|
||||||
|
:props="props"
|
||||||
|
:screen="screen"
|
||||||
|
:collapse="collapse"></sidebar-item>
|
||||||
|
</template>
|
||||||
|
</el-submenu>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import {mapGetters} from "vuex";
|
||||||
|
import {isURL, validatenull} from "@/util/validate";
|
||||||
|
import config from "./config.js";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "sidebarItem",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
config: config
|
||||||
|
};
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
menu: {
|
||||||
|
type: Array
|
||||||
|
},
|
||||||
|
screen: {
|
||||||
|
type: Number
|
||||||
|
},
|
||||||
|
first: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
type: Object,
|
||||||
|
default: () => {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
},
|
||||||
|
collapse: {
|
||||||
|
type: Boolean
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(["roles"]),
|
||||||
|
labelKey() {
|
||||||
|
return this.props.label || this.config.propsDefault.label;
|
||||||
|
},
|
||||||
|
pathKey() {
|
||||||
|
return this.props.path || this.config.propsDefault.path;
|
||||||
|
},
|
||||||
|
iconKey() {
|
||||||
|
return this.props.icon || this.config.propsDefault.icon;
|
||||||
|
},
|
||||||
|
childrenKey() {
|
||||||
|
return this.props.children || this.config.propsDefault.children;
|
||||||
|
},
|
||||||
|
isOpenKey() {
|
||||||
|
return this.props.isOpen || this.config.propsDefault.isOpen;
|
||||||
|
},
|
||||||
|
nowTagValue() {
|
||||||
|
return this.$router.$avueRouter.getValue(this.$route);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
generateTitle(item) {
|
||||||
|
return this.$router.$avueRouter.generateTitle(
|
||||||
|
item[this.labelKey],
|
||||||
|
(item.meta || {}).i18n
|
||||||
|
);
|
||||||
|
},
|
||||||
|
vaildActive(item) {
|
||||||
|
if (this.validIsOpen(item)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
const groupFlag = (item["group"] || []).some(ele =>
|
||||||
|
this.$route.path.includes(ele)
|
||||||
|
);
|
||||||
|
return this.nowTagValue === item[this.pathKey] || groupFlag;
|
||||||
|
},
|
||||||
|
vaildRoles(item) {
|
||||||
|
item.meta = item.meta || {};
|
||||||
|
return item.meta.roles ? item.meta.roles.includes(this.roles) : true;
|
||||||
|
},
|
||||||
|
validatenull(val) {
|
||||||
|
return validatenull(val);
|
||||||
|
},
|
||||||
|
validIsOpen(item) {
|
||||||
|
if (item[this.isOpenKey] === 2 && isURL(item[this.pathKey])) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
open(item) {
|
||||||
|
if (this.screen <= 1) this.$store.commit("SET_COLLAPSE");
|
||||||
|
if (this.validIsOpen(item)) {
|
||||||
|
window.open(item[this.pathKey]);
|
||||||
|
} else {
|
||||||
|
this.$router.$avueRouter.group = item.group;
|
||||||
|
this.$router.$avueRouter.meta = item.meta;
|
||||||
|
this.$router.push({
|
||||||
|
path: this.$router.$avueRouter.getPath({
|
||||||
|
name: item[this.labelKey],
|
||||||
|
src: item[this.pathKey]
|
||||||
|
}, item.meta),
|
||||||
|
query: item.query
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
186
src/page/index/tags.vue
Normal file
186
src/page/index/tags.vue
Normal file
@@ -0,0 +1,186 @@
|
|||||||
|
<template>
|
||||||
|
<div class="avue-tags"
|
||||||
|
v-if="showTag">
|
||||||
|
<!-- tag盒子 -->
|
||||||
|
<div v-if="contextmenuFlag"
|
||||||
|
class="avue-tags__contentmenu"
|
||||||
|
:style="{left:contentmenuX+'px',top:contentmenuY+'px'}">
|
||||||
|
<div class="item"
|
||||||
|
@click="clearCacheTags">{{$t('tagsView.clearCache')}}
|
||||||
|
</div>
|
||||||
|
<div class="item"
|
||||||
|
@click="closeOthersTags">{{$t('tagsView.closeOthers')}}
|
||||||
|
</div>
|
||||||
|
<div class="item"
|
||||||
|
@click="closeAllTags">{{$t('tagsView.closeAll')}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="avue-tags__box"
|
||||||
|
:class="{'avue-tags__box--close':!website.isFirstPage}">
|
||||||
|
<el-tabs v-model="active"
|
||||||
|
type="card"
|
||||||
|
@contextmenu.native="handleContextmenu"
|
||||||
|
:closable="tagLen!==1"
|
||||||
|
@tab-click="openTag"
|
||||||
|
@edit="menuTag">
|
||||||
|
<el-tab-pane :key="item.value"
|
||||||
|
v-for="item in tagList"
|
||||||
|
:label="generateTitle(item)"
|
||||||
|
:name="item.value">
|
||||||
|
</el-tab-pane>
|
||||||
|
|
||||||
|
</el-tabs>
|
||||||
|
<el-dropdown class="avue-tags__menu">
|
||||||
|
<el-button type="primary"
|
||||||
|
size="mini">
|
||||||
|
{{$t('tagsView.menu')}}
|
||||||
|
<i class="el-icon-arrow-down el-icon--right"></i>
|
||||||
|
</el-button>
|
||||||
|
<el-dropdown-menu slot="dropdown">
|
||||||
|
<el-dropdown-item @click.native="$parent.isSearch=true">{{$t('tagsView.search')}}</el-dropdown-item>
|
||||||
|
<el-dropdown-item @click.native="closeOthersTags">{{$t('tagsView.closeOthers')}}</el-dropdown-item>
|
||||||
|
<el-dropdown-item @click.native="closeAllTags">{{$t('tagsView.closeAll')}}</el-dropdown-item>
|
||||||
|
<el-dropdown-item @click.native="clearCacheTags">{{$t('tagsView.clearCache')}}</el-dropdown-item>
|
||||||
|
</el-dropdown-menu>
|
||||||
|
</el-dropdown>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import {mapGetters, mapState} from "vuex";
|
||||||
|
import {clearCache} from "@/api/user";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "tags",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
active: "",
|
||||||
|
contentmenuX: "",
|
||||||
|
contentmenuY: "",
|
||||||
|
contextmenuFlag: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.setActive();
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
tag() {
|
||||||
|
this.setActive();
|
||||||
|
},
|
||||||
|
contextmenuFlag() {
|
||||||
|
window.addEventListener("mousedown", this.watchContextmenu);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(["tagWel", "tagList", "tag", "website"]),
|
||||||
|
...mapState({
|
||||||
|
showTag: state => state.common.showTag
|
||||||
|
}),
|
||||||
|
tagLen() {
|
||||||
|
return this.tagList.length || 0;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
generateTitle(item) {
|
||||||
|
return this.$router.$avueRouter.generateTitle(
|
||||||
|
item.label,
|
||||||
|
(item.meta || {}).i18n
|
||||||
|
);
|
||||||
|
},
|
||||||
|
watchContextmenu(event) {
|
||||||
|
if (!this.$el.contains(event.target) || event.button !== 0) {
|
||||||
|
this.contextmenuFlag = false;
|
||||||
|
}
|
||||||
|
window.removeEventListener("mousedown", this.watchContextmenu);
|
||||||
|
},
|
||||||
|
handleContextmenu(event) {
|
||||||
|
let target = event.target;
|
||||||
|
// 解决 https://github.com/d2-projects/d2-admin/issues/54
|
||||||
|
let flag = false;
|
||||||
|
if (target.className.indexOf("el-tabs__item") > -1) flag = true;
|
||||||
|
else if (target.parentNode.className.indexOf("el-tabs__item") > -1) {
|
||||||
|
target = target.parentNode;
|
||||||
|
flag = true;
|
||||||
|
}
|
||||||
|
if (flag) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
this.contentmenuX = event.clientX;
|
||||||
|
this.contentmenuY = event.clientY;
|
||||||
|
this.tagName = target.getAttribute("aria-controls").slice(5);
|
||||||
|
this.contextmenuFlag = true;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//激活当前选项
|
||||||
|
setActive() {
|
||||||
|
this.active = this.tag.value;
|
||||||
|
},
|
||||||
|
menuTag(value, action) {
|
||||||
|
if (action === "remove") {
|
||||||
|
let {tag, key} = this.findTag(value);
|
||||||
|
this.$store.commit("DEL_TAG", tag);
|
||||||
|
if (tag.value === this.tag.value) {
|
||||||
|
tag = this.tagList[key === 0 ? key : key - 1]; //如果关闭本标签让前推一个
|
||||||
|
this.openTag(tag);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
openTag(item) {
|
||||||
|
let tag;
|
||||||
|
if (item.name) {
|
||||||
|
tag = this.findTag(item.name).tag;
|
||||||
|
} else {
|
||||||
|
tag = item;
|
||||||
|
}
|
||||||
|
this.$router.push({
|
||||||
|
path: this.$router.$avueRouter.getPath({
|
||||||
|
name: tag.label,
|
||||||
|
src: tag.value
|
||||||
|
}, tag.meta),
|
||||||
|
query: tag.query
|
||||||
|
});
|
||||||
|
},
|
||||||
|
closeOthersTags() {
|
||||||
|
this.contextmenuFlag = false;
|
||||||
|
this.$store.commit("DEL_TAG_OTHER");
|
||||||
|
},
|
||||||
|
findTag(value) {
|
||||||
|
let tag, key;
|
||||||
|
this.tagList.map((item, index) => {
|
||||||
|
if (item.value === value) {
|
||||||
|
tag = item;
|
||||||
|
key = index;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return {tag: tag, key: key};
|
||||||
|
},
|
||||||
|
closeAllTags() {
|
||||||
|
this.contextmenuFlag = false;
|
||||||
|
this.$store.commit("DEL_ALL_TAG");
|
||||||
|
this.$router.push({
|
||||||
|
path: this.$router.$avueRouter.getPath({
|
||||||
|
src: this.tagWel.value
|
||||||
|
}),
|
||||||
|
query: this.tagWel.query
|
||||||
|
});
|
||||||
|
},
|
||||||
|
clearCacheTags() {
|
||||||
|
this.$confirm("是否需要清除缓存?", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(() => {
|
||||||
|
clearCache().then(() => {
|
||||||
|
this.contextmenuFlag = false;
|
||||||
|
this.$message.success('清除完毕');
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
256
src/page/index/top/index.vue
Normal file
256
src/page/index/top/index.vue
Normal file
@@ -0,0 +1,256 @@
|
|||||||
|
<template>
|
||||||
|
<div class="avue-top">
|
||||||
|
<div class="top-bar__left">
|
||||||
|
<div class="avue-breadcrumb"
|
||||||
|
:class="[{ 'avue-breadcrumb--active': isCollapse }]"
|
||||||
|
v-if="showCollapse">
|
||||||
|
<i class="icon-navicon"
|
||||||
|
@click="setCollapse"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="top-bar__title">
|
||||||
|
<div class="top-bar__item top-bar__item--show"
|
||||||
|
v-if="showMenu">
|
||||||
|
<top-menu ref="topMenu"></top-menu>
|
||||||
|
</div>
|
||||||
|
<span class="top-bar__item"
|
||||||
|
v-if="showSearch">
|
||||||
|
<top-search></top-search>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="top-bar__right">
|
||||||
|
<el-tooltip v-if="showColor"
|
||||||
|
effect="dark"
|
||||||
|
:content="$t('navbar.color')"
|
||||||
|
placement="bottom">
|
||||||
|
<div class="top-bar__item">
|
||||||
|
<top-color></top-color>
|
||||||
|
</div>
|
||||||
|
</el-tooltip>
|
||||||
|
<el-tooltip v-if="showDebug"
|
||||||
|
effect="dark"
|
||||||
|
:content="logsFlag?$t('navbar.bug'):logsLen+$t('navbar.bugs')"
|
||||||
|
placement="bottom">
|
||||||
|
<div class="top-bar__item">
|
||||||
|
<top-logs></top-logs>
|
||||||
|
</div>
|
||||||
|
</el-tooltip>
|
||||||
|
<el-tooltip v-if="showLock"
|
||||||
|
effect="dark"
|
||||||
|
:content="$t('navbar.lock')"
|
||||||
|
placement="bottom">
|
||||||
|
<div class="top-bar__item">
|
||||||
|
<top-lock></top-lock>
|
||||||
|
</div>
|
||||||
|
</el-tooltip>
|
||||||
|
<el-tooltip v-if="showTheme"
|
||||||
|
effect="dark"
|
||||||
|
:content="$t('navbar.theme')"
|
||||||
|
placement="bottom">
|
||||||
|
<div class="top-bar__item top-bar__item--show">
|
||||||
|
<top-theme></top-theme>
|
||||||
|
</div>
|
||||||
|
</el-tooltip>
|
||||||
|
<!-- <el-tooltip effect="dark"-->
|
||||||
|
<!-- :content="$t('navbar.notice')"-->
|
||||||
|
<!-- placement="bottom">-->
|
||||||
|
<!-- <div class="top-bar__item top-bar__item--show">-->
|
||||||
|
<!-- <top-notice></top-notice>-->
|
||||||
|
<!-- </div>-->
|
||||||
|
<!-- </el-tooltip>-->
|
||||||
|
<el-tooltip effect="dark"
|
||||||
|
:content="$t('navbar.language')"
|
||||||
|
placement="bottom">
|
||||||
|
<div class="top-bar__item top-bar__item--show">
|
||||||
|
<top-lang></top-lang>
|
||||||
|
</div>
|
||||||
|
</el-tooltip>
|
||||||
|
<el-tooltip v-if="showFullScren"
|
||||||
|
effect="dark"
|
||||||
|
:content="isFullScren?$t('navbar.screenfullF'):$t('navbar.screenfull')"
|
||||||
|
placement="bottom">
|
||||||
|
<div class="top-bar__item">
|
||||||
|
<i :class="isFullScren?'icon-tuichuquanping':'icon-quanping'"
|
||||||
|
@click="handleScreen"></i>
|
||||||
|
</div>
|
||||||
|
</el-tooltip>
|
||||||
|
<img class="top-bar__img"
|
||||||
|
:src="userInfo.avatar">
|
||||||
|
<el-dropdown>
|
||||||
|
<span class="el-dropdown-link">
|
||||||
|
{{userInfo.userName}}
|
||||||
|
<i class="el-icon-arrow-down el-icon--right"></i>
|
||||||
|
</span>
|
||||||
|
<el-dropdown-menu slot="dropdown">
|
||||||
|
<el-dropdown-item>
|
||||||
|
<router-link to="/">{{$t('navbar.dashboard')}}</router-link>
|
||||||
|
</el-dropdown-item>
|
||||||
|
<el-dropdown-item>
|
||||||
|
<router-link to="/info/index">{{$t('navbar.userinfo')}}</router-link>
|
||||||
|
</el-dropdown-item>
|
||||||
|
<el-dropdown-item v-if="this.website.switchMode" @click.native="switchDept"
|
||||||
|
>{{$t('navbar.switchDept')}}
|
||||||
|
</el-dropdown-item>
|
||||||
|
<el-dropdown-item @click.native="logout"
|
||||||
|
divided>{{$t('navbar.logOut')}}
|
||||||
|
</el-dropdown-item>
|
||||||
|
</el-dropdown-menu>
|
||||||
|
</el-dropdown>
|
||||||
|
<el-dialog title="用户信息选择"
|
||||||
|
append-to-body
|
||||||
|
:visible.sync="userBox"
|
||||||
|
width="350px">
|
||||||
|
<avue-form ref="form" :option="userOption" v-model="userForm" @submit="submitSwitch"/>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import {resetRouter} from '@/router/router'
|
||||||
|
import {mapGetters, mapState} from "vuex";
|
||||||
|
import {fullscreenToggel, listenfullscreen} from "@/util/util";
|
||||||
|
import topLock from "./top-lock";
|
||||||
|
import topMenu from "./top-menu";
|
||||||
|
import topSearch from "./top-search";
|
||||||
|
import topTheme from "./top-theme";
|
||||||
|
import topLogs from "./top-logs";
|
||||||
|
import topColor from "./top-color";
|
||||||
|
import topNotice from './top-notice'
|
||||||
|
import topLang from "./top-lang";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
topLock,
|
||||||
|
topMenu,
|
||||||
|
topSearch,
|
||||||
|
topTheme,
|
||||||
|
topLogs,
|
||||||
|
topColor,
|
||||||
|
topNotice,
|
||||||
|
topLang
|
||||||
|
},
|
||||||
|
name: "top",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
userBox: false,
|
||||||
|
userForm: {
|
||||||
|
deptId: '',
|
||||||
|
roleId: ''
|
||||||
|
},
|
||||||
|
userOption: {
|
||||||
|
labelWidth: 70,
|
||||||
|
submitBtn: true,
|
||||||
|
emptyBtn: false,
|
||||||
|
submitText: '切换',
|
||||||
|
column: [
|
||||||
|
{
|
||||||
|
label: '部门',
|
||||||
|
prop: 'deptId',
|
||||||
|
type: 'select',
|
||||||
|
props: {
|
||||||
|
label: 'deptName',
|
||||||
|
value: 'id'
|
||||||
|
},
|
||||||
|
dicUrl: '/api/blade-system/dept/select',
|
||||||
|
span: 24,
|
||||||
|
display: false,
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
message: "请选择部门",
|
||||||
|
trigger: "blur"
|
||||||
|
}],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '角色',
|
||||||
|
prop: 'roleId',
|
||||||
|
type: 'select',
|
||||||
|
props: {
|
||||||
|
label: 'roleName',
|
||||||
|
value: 'id'
|
||||||
|
},
|
||||||
|
dicUrl: '/api/blade-system/role/select',
|
||||||
|
span: 24,
|
||||||
|
display: false,
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
message: "请选择角色",
|
||||||
|
trigger: "blur"
|
||||||
|
}],
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
filters: {},
|
||||||
|
created() {
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
listenfullscreen(this.setScreen);
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState({
|
||||||
|
showDebug: state => state.common.showDebug,
|
||||||
|
showTheme: state => state.common.showTheme,
|
||||||
|
showLock: state => state.common.showLock,
|
||||||
|
showFullScren: state => state.common.showFullScren,
|
||||||
|
showCollapse: state => state.common.showCollapse,
|
||||||
|
showSearch: state => state.common.showSearch,
|
||||||
|
showMenu: state => state.common.showMenu,
|
||||||
|
showColor: state => state.common.showColor
|
||||||
|
}),
|
||||||
|
...mapGetters([
|
||||||
|
"userInfo",
|
||||||
|
"isFullScren",
|
||||||
|
"tagWel",
|
||||||
|
"tagList",
|
||||||
|
"isCollapse",
|
||||||
|
"tag",
|
||||||
|
"logsLen",
|
||||||
|
"logsFlag"
|
||||||
|
])
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleScreen() {
|
||||||
|
fullscreenToggel();
|
||||||
|
},
|
||||||
|
setCollapse() {
|
||||||
|
this.$store.commit("SET_COLLAPSE");
|
||||||
|
},
|
||||||
|
setScreen() {
|
||||||
|
this.$store.commit("SET_FULLSCREN");
|
||||||
|
},
|
||||||
|
switchDept() {
|
||||||
|
const userId = this.userInfo.user_id;
|
||||||
|
const deptColumn = this.findObject(this.userOption.column, "deptId");
|
||||||
|
deptColumn.dicUrl = `/api/blade-system/dept/select?userId=${userId}`;
|
||||||
|
deptColumn.display = true;
|
||||||
|
const roleColumn = this.findObject(this.userOption.column, "roleId");
|
||||||
|
roleColumn.dicUrl = `/api/blade-system/role/select?userId=${userId}`;
|
||||||
|
roleColumn.display = true;
|
||||||
|
this.userBox = true;
|
||||||
|
},
|
||||||
|
submitSwitch (form, done) {
|
||||||
|
this.$store.dispatch("refreshToken", form).then(() => {
|
||||||
|
this.userBox = false;
|
||||||
|
this.$router.push({path: "/"});
|
||||||
|
})
|
||||||
|
done();
|
||||||
|
},
|
||||||
|
logout() {
|
||||||
|
this.$confirm(this.$t("logoutTip"), this.$t("tip"), {
|
||||||
|
confirmButtonText: this.$t("submitText"),
|
||||||
|
cancelButtonText: this.$t("cancelText"),
|
||||||
|
type: "warning"
|
||||||
|
}).then(() => {
|
||||||
|
this.$store.dispatch("LogOut").then(() => {
|
||||||
|
resetRouter();
|
||||||
|
this.$router.push({path: "/login"});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
30
src/page/index/top/top-color.vue
Normal file
30
src/page/index/top/top-color.vue
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<template>
|
||||||
|
<el-color-picker size="mini"
|
||||||
|
style="padding-top:18px;"
|
||||||
|
class="theme-picker"
|
||||||
|
popper-class="theme-picker-dropdown"
|
||||||
|
v-model="themeVal"></el-color-picker>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import color from "@/mixins/color";
|
||||||
|
export default {
|
||||||
|
name: "topColor",
|
||||||
|
mixins: [color()],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
chalk: ""
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.theme-picker .el-color-picker__trigger {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-picker-dropdown .el-color-dropdown__link-btn {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
49
src/page/index/top/top-lang.vue
Normal file
49
src/page/index/top/top-lang.vue
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
<template>
|
||||||
|
<el-dropdown trigger="click"
|
||||||
|
@command="handleSetLanguage">
|
||||||
|
<i class="icon-zhongyingwen"></i>
|
||||||
|
<el-dropdown-menu slot="dropdown">
|
||||||
|
<el-dropdown-item :disabled="language==='zh'"
|
||||||
|
command="zh">中文
|
||||||
|
</el-dropdown-item>
|
||||||
|
<el-dropdown-item :disabled="language==='en'"
|
||||||
|
command="en">English
|
||||||
|
</el-dropdown-item>
|
||||||
|
</el-dropdown-menu>
|
||||||
|
</el-dropdown>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {mapGetters} from "vuex";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "top-lang",
|
||||||
|
data() {
|
||||||
|
return {};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(["language", "tag"])
|
||||||
|
},
|
||||||
|
props: [],
|
||||||
|
methods: {
|
||||||
|
handleSetLanguage(lang) {
|
||||||
|
this.$i18n.locale = lang;
|
||||||
|
this.$store.commit("SET_LANGUAGE", lang);
|
||||||
|
let tag = this.tag;
|
||||||
|
let title = this.$router.$avueRouter.generateTitle(
|
||||||
|
tag.label,
|
||||||
|
(tag.meta || {}).i18n
|
||||||
|
);
|
||||||
|
//根据当前的标签也获取label的值动态设置浏览器标题
|
||||||
|
this.$router.$avueRouter.setTitle(title);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
72
src/page/index/top/top-lock.vue
Normal file
72
src/page/index/top/top-lock.vue
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
<template>
|
||||||
|
<span>
|
||||||
|
<i class="icon-suoping"
|
||||||
|
@click="handleLock"></i>
|
||||||
|
<el-dialog title="设置锁屏密码"
|
||||||
|
:visible.sync="box"
|
||||||
|
width="30%"
|
||||||
|
append-to-body>
|
||||||
|
<el-form :model="form"
|
||||||
|
ref="form"
|
||||||
|
label-width="80px">
|
||||||
|
<el-form-item label="锁屏密码"
|
||||||
|
prop="passwd"
|
||||||
|
:rules="[{ required: true, message: '锁屏密码不能为空'}]">
|
||||||
|
<el-input v-model="form.passwd"
|
||||||
|
placeholder="请输入锁屏密码" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<span slot="footer"
|
||||||
|
class="dialog-footer">
|
||||||
|
<el-button type="primary"
|
||||||
|
@click="handleSetLock">确 定</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { validatenull } from "@/util/validate";
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
|
export default {
|
||||||
|
name: "top-lock",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
box: false,
|
||||||
|
form: {
|
||||||
|
passwd: ""
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {},
|
||||||
|
mounted() {},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(["lockPasswd"])
|
||||||
|
},
|
||||||
|
props: [],
|
||||||
|
methods: {
|
||||||
|
handleSetLock() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
this.$store.commit("SET_LOCK_PASSWD", this.form.passwd);
|
||||||
|
this.handleLock();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleLock() {
|
||||||
|
if (validatenull(this.lockPasswd)) {
|
||||||
|
this.box = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.$store.commit("SET_LOCK");
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$router.push({ path: "/lock" });
|
||||||
|
}, 100);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
43
src/page/index/top/top-logs.vue
Normal file
43
src/page/index/top/top-logs.vue
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
<template>
|
||||||
|
<span @click="logsFlag?'':handleOpen()">
|
||||||
|
<el-badge :value="logsFlag?'':logsLen"
|
||||||
|
:max="99">
|
||||||
|
<i class="icon-rizhi1"></i>
|
||||||
|
</el-badge>
|
||||||
|
<el-dialog title="日志"
|
||||||
|
fullscreen
|
||||||
|
:visible.sync="box"
|
||||||
|
width="100%"
|
||||||
|
append-to-body>
|
||||||
|
<logs></logs>
|
||||||
|
</el-dialog>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
|
import logs from "@/page/logs/index";
|
||||||
|
export default {
|
||||||
|
name: "top-logs",
|
||||||
|
components: { logs },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
box: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {},
|
||||||
|
mounted() {},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(["logsFlag", "logsLen"])
|
||||||
|
},
|
||||||
|
props: [],
|
||||||
|
methods: {
|
||||||
|
handleOpen() {
|
||||||
|
this.box = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
69
src/page/index/top/top-menu.vue
Normal file
69
src/page/index/top/top-menu.vue
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
<template>
|
||||||
|
<div class="top-menu">
|
||||||
|
<el-menu :default-active="activeIndex"
|
||||||
|
mode="horizontal"
|
||||||
|
text-color="#333">
|
||||||
|
<el-menu-item index="0" @click.native="openHome(itemHome)" key="0">
|
||||||
|
<template slot="title">
|
||||||
|
<i :class="itemHome.source"></i>
|
||||||
|
<span>{{generateTitle(itemHome)}}</span>
|
||||||
|
</template>
|
||||||
|
</el-menu-item>
|
||||||
|
<template v-for="(item,index) in items">
|
||||||
|
<el-menu-item :index="item.id+''" @click.native="openMenu(item)" :key="index">
|
||||||
|
<template slot="title">
|
||||||
|
<i :class="item.source" style="padding-right: 5px;"></i>
|
||||||
|
<span>{{generateTitle(item)}}</span>
|
||||||
|
</template>
|
||||||
|
</el-menu-item>
|
||||||
|
</template>
|
||||||
|
</el-menu>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {mapGetters} from "vuex";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "top-menu",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
itemHome: {
|
||||||
|
name: '首页',
|
||||||
|
source: 'el-icon-menu',
|
||||||
|
},
|
||||||
|
activeIndex: "0",
|
||||||
|
items: [],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
inject: ["index"],
|
||||||
|
created() {
|
||||||
|
this.getMenu();
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(["tagCurrent", "menu"])
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
openHome(itemHome) {
|
||||||
|
this.index.openMenu(itemHome);
|
||||||
|
this.$router.push({
|
||||||
|
path: this.$router.$avueRouter.getPath({name: itemHome.name, src: ''}, {})
|
||||||
|
});
|
||||||
|
},
|
||||||
|
openMenu(item) {
|
||||||
|
this.index.openMenu(item)
|
||||||
|
},
|
||||||
|
getMenu() {
|
||||||
|
this.$store.dispatch("GetTopMenu").then(res => {
|
||||||
|
this.items = res;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
generateTitle(item) {
|
||||||
|
return this.$router.$avueRouter.generateTitle(
|
||||||
|
item.name,
|
||||||
|
(item.meta || {}).i18n
|
||||||
|
);
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
87
src/page/index/top/top-notice.vue
Normal file
87
src/page/index/top/top-notice.vue
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
<template>
|
||||||
|
<el-popover placement="bottom"
|
||||||
|
width="350"
|
||||||
|
trigger="click">
|
||||||
|
|
||||||
|
<el-tabs v-model="activeName">
|
||||||
|
<el-tab-pane label="邮件(1)"
|
||||||
|
name="first"></el-tab-pane>
|
||||||
|
<el-tab-pane label="消息(2)"
|
||||||
|
name="second"></el-tab-pane>
|
||||||
|
<el-tab-pane label="通知"
|
||||||
|
name="third"></el-tab-pane>
|
||||||
|
</el-tabs>
|
||||||
|
<el-scrollbar style="height:300px">
|
||||||
|
<avue-notice :data="data"
|
||||||
|
:option="option"
|
||||||
|
@page-change="pageChange"></avue-notice>
|
||||||
|
</el-scrollbar>
|
||||||
|
<div slot="reference">
|
||||||
|
<el-badge is-dot>
|
||||||
|
<i class="el-icon-bell"></i>
|
||||||
|
</el-badge>
|
||||||
|
</div>
|
||||||
|
</el-popover>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
let list = [{
|
||||||
|
img: '/img/bg/vip1.png',
|
||||||
|
title: '史蒂夫·乔布斯 关注了你',
|
||||||
|
subtitle: '05-08 15:08',
|
||||||
|
tag: '已经开始',
|
||||||
|
status: 0
|
||||||
|
}, {
|
||||||
|
img: '/img/bg/vip2.png',
|
||||||
|
title: '斯蒂夫·沃兹尼亚克 关注了你',
|
||||||
|
subtitle: '05-08 15:08',
|
||||||
|
tag: '未开始',
|
||||||
|
status: 1
|
||||||
|
}, {
|
||||||
|
img: '/img/bg/vip3.png',
|
||||||
|
title: '蒂姆·库克 关注了你',
|
||||||
|
subtitle: '05-08 15:08',
|
||||||
|
status: 3,
|
||||||
|
tag: '有错误'
|
||||||
|
}, {
|
||||||
|
img: '/img/bg/vip4.png',
|
||||||
|
title: '比尔·费尔南德斯 关注了你',
|
||||||
|
subtitle: '05-08 15:08',
|
||||||
|
status: 4,
|
||||||
|
tag: '已完成'
|
||||||
|
}];
|
||||||
|
export default {
|
||||||
|
name: "top-notice",
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
activeName: 'first',
|
||||||
|
option: {
|
||||||
|
props: {
|
||||||
|
img: 'img',
|
||||||
|
title: 'title',
|
||||||
|
subtitle: 'subtitle',
|
||||||
|
tag: 'tag',
|
||||||
|
status: 'status'
|
||||||
|
},
|
||||||
|
},
|
||||||
|
data: list,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
pageChange (page, done) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$message.success('页码' + page)
|
||||||
|
this.data = this.data.concat(list);
|
||||||
|
done();
|
||||||
|
}, 1000)
|
||||||
|
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
131
src/page/index/top/top-search.vue
Normal file
131
src/page/index/top/top-search.vue
Normal file
@@ -0,0 +1,131 @@
|
|||||||
|
<template>
|
||||||
|
<el-autocomplete class="top-search"
|
||||||
|
popper-class="my-autocomplete"
|
||||||
|
v-model="value"
|
||||||
|
:fetch-suggestions="querySearch"
|
||||||
|
:placeholder="$t('search')"
|
||||||
|
@select="handleSelect">
|
||||||
|
|
||||||
|
<template slot-scope="{ item }">
|
||||||
|
<i :class="[item[iconKey],'icon']"></i>
|
||||||
|
<div class="name">{{ item[labelKey] }}</div>
|
||||||
|
<div class="addr">{{ item[pathKey] }}</div>
|
||||||
|
</template>
|
||||||
|
</el-autocomplete>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import config from "../sidebar/config.js";
|
||||||
|
import {mapGetters} from "vuex";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
config: config,
|
||||||
|
value: "",
|
||||||
|
menuList: []
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getMenuList();
|
||||||
|
},
|
||||||
|
|
||||||
|
watch: {
|
||||||
|
menu() {
|
||||||
|
this.getMenuList();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
labelKey() {
|
||||||
|
return this.website.menu.props.label || this.config.propsDefault.label;
|
||||||
|
},
|
||||||
|
pathKey() {
|
||||||
|
return this.website.menu.props.path || this.config.propsDefault.path;
|
||||||
|
},
|
||||||
|
iconKey() {
|
||||||
|
return this.website.menu.props.icon || this.config.propsDefault.icon;
|
||||||
|
},
|
||||||
|
childrenKey() {
|
||||||
|
return (
|
||||||
|
this.website.menu.props.children || this.config.propsDefault.children
|
||||||
|
);
|
||||||
|
},
|
||||||
|
...mapGetters(["menu", "website"])
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getMenuList() {
|
||||||
|
const findMenu = list => {
|
||||||
|
for (let i = 0; i < list.length; i++) {
|
||||||
|
const ele = Object.assign({}, list[i]);
|
||||||
|
if (this.validatenull(ele[this.childrenKey])) {
|
||||||
|
this.menuList.push(ele);
|
||||||
|
} else {
|
||||||
|
findMenu(ele[this.childrenKey]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
this.menuList = [];
|
||||||
|
findMenu(this.menu);
|
||||||
|
},
|
||||||
|
querySearch(queryString, cb) {
|
||||||
|
var restaurants = this.menuList;
|
||||||
|
var results = queryString
|
||||||
|
? restaurants.filter(this.createFilter(queryString))
|
||||||
|
: restaurants;
|
||||||
|
// 调用 callback 返回建议列表的数据
|
||||||
|
cb(results);
|
||||||
|
},
|
||||||
|
createFilter(queryString) {
|
||||||
|
return restaurant => {
|
||||||
|
return (
|
||||||
|
restaurant.name.toLowerCase().indexOf(queryString.toLowerCase()) ===
|
||||||
|
0
|
||||||
|
);
|
||||||
|
};
|
||||||
|
},
|
||||||
|
handleSelect(item) {
|
||||||
|
this.value = "";
|
||||||
|
this.$router.push({
|
||||||
|
path: this.$router.$avueRouter.getPath({
|
||||||
|
name: item[this.labelKey],
|
||||||
|
src: item[this.pathKey]
|
||||||
|
}, item.meta),
|
||||||
|
query: item.query
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.my-autocomplete {
|
||||||
|
li {
|
||||||
|
line-height: normal;
|
||||||
|
padding: 7px;
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
margin-right: 5px;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name {
|
||||||
|
display: inline-block;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.addr {
|
||||||
|
padding-top: 5px;
|
||||||
|
width: 100%;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #b4b4b4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlighted .addr {
|
||||||
|
color: #ddd;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
112
src/page/index/top/top-theme.vue
Normal file
112
src/page/index/top/top-theme.vue
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog title="选择"
|
||||||
|
append-to-body
|
||||||
|
:visible.sync="box"
|
||||||
|
width="50%">
|
||||||
|
<el-radio-group v-model="text"
|
||||||
|
class="list">
|
||||||
|
<el-row :span="24">
|
||||||
|
<el-col v-for="(item,index) in list"
|
||||||
|
:key="index"
|
||||||
|
:md="4"
|
||||||
|
:xs="12"
|
||||||
|
:sm="4">
|
||||||
|
<el-radio :label="item.value">{{item.name}}</el-radio>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<i class="icon-zhuti"
|
||||||
|
@click="open"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { setTheme } from "@/util/util";
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
|
export default {
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
box: false,
|
||||||
|
text: "",
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
name: "默认主题",
|
||||||
|
value: "default"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "白色主题",
|
||||||
|
value: "theme-white"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "黑色主题",
|
||||||
|
value: "theme-dark"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "炫彩主题",
|
||||||
|
value: "theme-star"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "智能主题",
|
||||||
|
value: "theme-bule"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "iview主题",
|
||||||
|
value: "theme-iview"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "vip主题",
|
||||||
|
value: "theme-vip"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "cool主题",
|
||||||
|
value: "theme-cool"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "d2主题",
|
||||||
|
value: "theme-d2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "hey主题",
|
||||||
|
value: "theme-hey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "lte主题",
|
||||||
|
value: "theme-lte"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
text: function (val) {
|
||||||
|
this.$store.commit("SET_THEME_NAME", val);
|
||||||
|
setTheme(val);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(["themeName"])
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.text = this.themeName;
|
||||||
|
if (!this.text) {
|
||||||
|
this.text = "";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
open () {
|
||||||
|
this.box = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.list {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
108
src/page/lock/index.vue
Normal file
108
src/page/lock/index.vue
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
<template>
|
||||||
|
<div class="lock-container">
|
||||||
|
<div class="lock-form animated bounceInDown">
|
||||||
|
<div class="animated"
|
||||||
|
:class="{'shake':passwdError,'bounceOut':pass}">
|
||||||
|
<h3 class="title">{{userInfo.username}}</h3>
|
||||||
|
<el-input placeholder="请输入登录密码"
|
||||||
|
type="password"
|
||||||
|
class="input-with-select animated"
|
||||||
|
v-model="passwd"
|
||||||
|
@keyup.enter.native="handleLogin">
|
||||||
|
<el-button slot="append"
|
||||||
|
icon="icon-bofangqi-suoping"
|
||||||
|
@click="handleLogin"></el-button>
|
||||||
|
<el-button slot="append"
|
||||||
|
icon="icon-tuichu"
|
||||||
|
@click="handleLogout"></el-button>
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { mapGetters, mapState } from "vuex";
|
||||||
|
export default {
|
||||||
|
name: "lock",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
passwd: "",
|
||||||
|
passwdError: false,
|
||||||
|
pass: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {},
|
||||||
|
mounted() {},
|
||||||
|
computed: {
|
||||||
|
...mapState({
|
||||||
|
userInfo: state => state.user.userInfo
|
||||||
|
}),
|
||||||
|
...mapGetters(["tag", "lockPasswd"])
|
||||||
|
},
|
||||||
|
props: [],
|
||||||
|
methods: {
|
||||||
|
handleLogout() {
|
||||||
|
this.$confirm("是否退出系统, 是否继续?", "提示", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(() => {
|
||||||
|
this.$store.dispatch("LogOut").then(() => {
|
||||||
|
this.$router.push({ path: "/login" });
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleLogin() {
|
||||||
|
if (this.passwd !== this.lockPasswd) {
|
||||||
|
this.passwd = "";
|
||||||
|
this.$message({
|
||||||
|
message: "解锁密码错误,请重新输入",
|
||||||
|
type: "error"
|
||||||
|
});
|
||||||
|
this.passwdError = true;
|
||||||
|
setTimeout(() => {
|
||||||
|
this.passwdError = false;
|
||||||
|
}, 1000);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.pass = true;
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$store.commit("CLEAR_LOCK");
|
||||||
|
this.$router.push({
|
||||||
|
path: this.$router.$avueRouter.getPath({ src: this.tag.value })
|
||||||
|
});
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.lock-container {
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
position: relative;
|
||||||
|
.title {
|
||||||
|
margin-bottom: 8px;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.lock-container::before {
|
||||||
|
z-index: -999;
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-image: url("/img/bg/login.png");
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
.lock-form {
|
||||||
|
width: 300px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
19
src/page/login/authredirect.vue
Normal file
19
src/page/login/authredirect.vue
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<template>
|
||||||
|
<div></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'authredirect',
|
||||||
|
created () {
|
||||||
|
window.close()
|
||||||
|
const params = this.$route.query
|
||||||
|
const state = params.state
|
||||||
|
const code = params.code
|
||||||
|
window.opener.location.href = `${window.location.origin}/#/login?state=${state}&code=${code}`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user