Commit 1bb63a7c by 张立顺

chore: migrate legacy master snapshot

Source: git@192.168.3.233:micro-customization-system/oEshield.git
Source-Commit: 0d1f889425fa4afc30f6cde1e3e2cff73ff27918
1 parent fa8d1596
Showing 270 changed files with 2221 additions and 0 deletions
{
"presets": [
[
"env",
{ "modules": false }
],
"stage-3"
],
"plugins": [
"syntax-dynamic-import",
"babel-plugin-transform-regenerator",
[
"component",
{
"libraryName": "element-ui",
"styleLibraryName": "theme-chalk"
}
],
[
"import",
{
"libraryName": "vxe-table",
"style": true // 样式是否也按需加载
}
]
]
}
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
.DS_Store
node_modules/
npm-debug.log
yarn-error.log
.svn
build/
# Editor directories and files
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
基于vue和element-ui开发的项目
----
安装
----
```bash
npm install
```
开发
----
```bash
npm run dev
```
生产
----
``` bash
npm run build
```
配置说明
----
**跨域调用api**
配置webpack.config.js
```javascript
devServer: {
port: 3003,
proxy: {
'/ots': {
target: 'http://localhost:8088'
}
}
}
```
这样,我们运行项目端口在3003,但如果请求接口包含 */ots* 都会指向端口8088。
**报错处理**
---
```bash
Error: listen EADDRINUSE 127.0.0.1:3003
```
有时候运行npm run dev 会报错,这种情况是因为端口被占用,并不是代码错误,解决办法就是换个端口,或者终止被暂用端口。
\ No newline at end of file \ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
module.exports = function (data) {
// console.log(data.sprites);
const shared = `.icon {display: inline-block;background-image: url(I);background-size: Wpx Hpx; vertical-align: middle;}`
.replace('I', data.sprites[0].image)
.replace('W', data.sprites[0].total_width)
.replace('H', data.sprites[0].total_height);
const perSprite = data.sprites.map(function (sprite) {
let style = `.icon-N { width: Wpx; height: Hpx; background-position: Xpx Ypx; }`
if(/\-active$/g.test(sprite.name)){
style = `.icon-A.active { width: Wpx; height: Hpx; background-position: Xpx Ypx; }
.icon-A:active { width: Wpx; height: Hpx; background-position: Xpx Ypx; }
.icon-A:hover { background-position: Xpx Ypx; }`
}
return style
.replace(/N/g, sprite.name)
.replace(/A/g, sprite.name.replace(/\-active$/g, ''))
.replace(/W/g, sprite.width)
.replace(/H/g, sprite.height)
.replace(/X/g, sprite.offset_x)
.replace(/Y/g, sprite.offset_y);
}).join('\n');
return shared + '\n' + perSprite;
};
\ No newline at end of file \ No newline at end of file
var path = require('path')
var webpack = require('webpack')
const { port } = require("../package");
const htmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin')
const SpritesmithPlugin = require('webpack-spritesmith');
const templateFunction = require('./sprite')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
//localhost:10500
const IS_DEV_MODE = process.env.NODE_ENV !== 'production'
const getPublicPath = IS_DEV_MODE ? '' : './';
const resourcesPath = IS_DEV_MODE ? `http://localhost:${port}` : 'https://e-shield-old.glsx.com.cn';
module.exports = {
mode: IS_DEV_MODE ? 'development':'production',
entry: [path.resolve(__dirname, '../src/main.js')/*, 'webpack-hot-middleware/client?reload=true'*/],
output: {
path: IS_DEV_MODE ? path.resolve(__dirname, '../template/'):path.resolve(__dirname, '../build/'),
publicPath: getPublicPath,
chunkFilename: IS_DEV_MODE ?'js/[name].bundle.js':'js/[name].[hash].bundle.js',
filename: IS_DEV_MODE ?'js/[name].bundle.js':'js/[name].[hash].bundle.js',
// 微应用的包名,这里与主应用中注册的微应用名称一致
library: `oEshield-[name]`,
// 将你的 library 暴露为所有的模块定义下都可运行的方式
libraryTarget: 'umd',
// 按需加载相关
jsonpFunction: `webpackJsonp_oEshield`
},
externals: {
vue: 'Vue',
//'element-ui': 'ElementUI'
},
module: {
rules: [
{
test: /\.styl$/,
use: [
'style-loader',
'css-loader',
'stylus-loader'
],
},
{
test: /\.s?[ac]ss$/,
use: [
IS_DEV_MODE ? 'style-loader' : MiniCssExtractPlugin.loader,
{
loader: 'css-loader',
options: {sourceMap: true}
},
{
loader: 'postcss-loader',
options: {sourceMap: true}
},
{
loader: 'sass-loader',
options: {sourceMap: true}
}
],
},
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
loaders: {
// Since sass-loader (weirdly) has SCSS as its default parse mode, we map
// the "scss" and "sass" values for the lang attribute to the right configs here.
// other preprocessors should work out of the box, no loader config like this necessary.
'scss': [
'vue-style-loader',
'css-loader',
'sass-loader'
],
'sass': [
'vue-style-loader',
'css-loader',
'sass-loader?indentedSyntax'
]
}
// other vue-loader options go here
}
},
{
test: /\.(png|jpg|gif|svg)$/,
loader: 'file-loader',
options: {
limit: 10000,
name: 'images/[name].[ext]?[hash]',
publicPath: resourcesPath
}
},
{
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
publicPath: resourcesPath,
name: 'fonts/[name].[hash:7].[ext]'
}
}
]
},
optimization: {
//minimize: true,
minimizer: [
new UglifyJsPlugin({
cache: true,
parallel: true,
sourceMap: true // set to true if you want JS source maps
}),
new OptimizeCSSAssetsPlugin({})
],
},
plugins: [
new htmlWebpackPlugin({
chunks: ['main'],
filename: 'index.html',
template: path.resolve(__dirname, `../template/index.html`)
}),
new webpack.HotModuleReplacementPlugin(),
/*new SpritesmithPlugin({
src: {
cwd: path.resolve(__dirname, 'src/assets/ico'),
glob: '*.png'
},
target: {
image: path.resolve(__dirname, 'src/assets/spritesmith-generated/sprite.png'),
css: path.resolve(__dirname, 'src/assets/spritesmith-generated/sprite.styl')
},
apiOptions: {
cssImageRef: "~sprite.png"
}
}),*/
new SpritesmithPlugin({
src: {
cwd: path.resolve(__dirname, '../src/assets/ico'),
glob: '*.png'
},
target: {
image: path.resolve(__dirname, '../src/assets/spritesmith-generated/sprite.png'),
css: [
[path.resolve(__dirname, '../src/assets/spritesmith-generated/sprite.css'), {
format: 'function_based_template'
}]
]
},
customTemplates: {
'function_based_template': templateFunction,
},
apiOptions: {
cssImageRef: "~sprite.png"
}
}),
new MiniCssExtractPlugin({
filename: IS_DEV_MODE ?'css/[name].min.css':'css/[name].[hash].min.css',
chunkFilename: IS_DEV_MODE ?'css/[name].min.css':'css/[name].[hash].min.css',
}),
//new BundleAnalyzerPlugin()
],
resolve: {
modules: ["node_modules", "spritesmith-generated"],
alias: {
'vue$': 'vue/template/vue.esm.js',
'components': path.resolve(__dirname, '../src/components'),
'utils': path.resolve(__dirname, '../src/utils'),
'pages': path.resolve(__dirname, '../src/pages'),
'scss': path.resolve(__dirname, '../src/assets/SCSS'),
'images': path.resolve(__dirname, '../src/assets/images'),
'./patterns': path.resolve(__dirname, '../src/assets/images'),
'@':path.resolve(__dirname,'../src')
},
extensions: ['*', '.js', '.vue', '.json']
},
devServer: {
historyApiFallback: true,
/*hot: true,*/
inline: true,
noInfo: true,
overlay: true,
port: 10500,
// 关闭主机检查,使微应用可以被 fetch
disableHostCheck: true,
// 配置跨域请求头,解决开发环境的跨域问题
headers: {
'Access-Control-Allow-Origin': '*'
},
contentBase: 'template/',
proxy: {
'/ots': {
changeOrigin: true,
target: 'http://192.168.2.53:8889/'//'http://e-shield.glsx.net'//'http://e-shield.glsx.net'//'http://192.168.1.158:8088'//'http://e-shield.didihu.com.cn'//'http://192.168.1.53:8088'//'http://localhost:8088'//'http://tiger-sso.didihu.com.cn'// http://vjg7.branch.glsx.com.cn/
}
}
},
performance: {
hints: false
},
devtool: IS_DEV_MODE?'#eval-source-map':'#source-map'
}
if(IS_DEV_MODE){
module.exports.plugins = (module.exports.plugins || []).concat([
//new HardSourceWebpackPlugin(),
new CleanWebpackPlugin(['template/js','template/css','template/images', 'template/fonts'], {
verbose: true,
dry: false,
root: path.resolve(__dirname, '../')
})
]);
}else{
module.exports.plugins = (module.exports.plugins || []).concat([
new CleanWebpackPlugin(['build/js','build/css','build/images', 'build/fonts'], {
verbose: true,
dry: false,
root: path.resolve(__dirname, '../')
})
]);
}
This diff could not be displayed because it is too large.
{
"name": "vue-ots",
"description": "A Vue.js project",
"version": "1.0.0",
"author": "janetwume@gmail.com",
"license": "MIT",
"private": true,
"port": 10500,
"scripts": {
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot --config config/webpack.config.js",
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules --config config/webpack.config.js"
},
"dependencies": {
"@amap/amap-jsapi-loader": "^1.0.1",
"animate.css": "^3.7.0",
"axios": "^0.18.0",
"calendar-months": "^1.0.1",
"caniuse-lite": "^1.0.30001292",
"chart.js": "^2.7.2",
"clipboard": "^2.0.11",
"dayjs": "^1.11.11",
"downloadjs": "^1.4.7",
"echarts": "^5.5.0",
"element-ui": "^2.13.2",
"es6-promise": "^4.2.4",
"font-awesome": "^4.7.0",
"html2canvas": "^1.4.1",
"moment": "^2.22.0",
"node-sass": "^7.0.1",
"qs": "^6.5.1",
"vue": "^2.5.11",
"vue-infinite-loading": "^2.3.1",
"vue-router": "^3.0.1",
"vue-template-compiler": "^2.6.14",
"vuex": "^3.0.1",
"vxe-table": "^3.5.5",
"xe-utils": "^3.5.4",
"xlsx": "^0.14.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
],
"devDependencies": {
"autoprefixer": "^9.1.5",
"babel-core": "^6.26.0",
"browserslist": "^4.19.1",
"clean-webpack-plugin": "^0.1.19",
"cross-env": "^5.0.5",
"css-loader": "^0.28.7",
"expose-loader": "^0.7.5",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^1.1.4",
"hard-source-webpack-plugin": "^0.6.4",
"html-webpack-plugin": "^3.2.0",
"http-proxy-middleware": "^0.18.0",
"mini-css-extract-plugin": "^0.4.0",
"optimize-css-assets-webpack-plugin": "^4.0.0",
"postcss-loader": "^3.0.0",
"sass-loader": "^6.0.6",
"style-loader": "^0.21.0",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.2",
"uglifyjs-webpack-plugin": "^1.2.5",
"url-loader": "^1.0.1",
"vue-loader": "^14.2.2",
"vue-style-loader": "^4.1.0",
"webpack": "^4.6.0",
"webpack-bundle-analyzer": "^2.11.1",
"webpack-cli": "^2.0.14",
"webpack-dev-middleware": "^3.1.2",
"webpack-dev-server": "^3.1.3",
"webpack-hot-middleware": "^2.21.2",
"webpack-spritesmith": "^0.4.1"
}
}
module.exports = {
plugins: [
require('autoprefixer')({browsers: ['> 1%', 'last 3 versions', 'Firefox >= 20', 'iOS >=7'] })
]
}
\ No newline at end of file \ No newline at end of file
<template>
<div id="glsx-sub-system" :class="isFullsize?'full-size':''">
<div id="wrap" class="wrap" :class="isCollapse?'full-width':''">
<!-- 主体 -->
<main>
<!-- <el-row class="topbar">
<el-button type="primary" size="small" @click="toggle" class="toggle-btn"><i class="fa fa-bars"></i></el-button>
<img :src="logo" class="logo">
<a class="pull-right right-link" href="logout">
<i class="fa fa-sign-out"></i> 登 出
</a>
<a class="pull-right right-link" href="javascript(0)" @click.prevent="navigate">
<i class="fa fa-bell-o"></i> 系统公告
</a>
</el-row> -->
<router-view></router-view>
</main>
<!-- 主体 /-->
<!-- 左边导航栏 -->
<!-- <v-side-bar class="sidebar"></v-side-bar> -->
<!-- 左边导航栏 /-->
</div>
</div>
</template>
<script>
import store from "./vuex/store.js";
import { mapGetters, mapActions } from "vuex";
import vSideBar from "components/SideBar.vue";
export default {
name: "app",
data() {
return {
isQiankun: window.__POWERED_BY_QIANKUN__,
logo: require("images/logo.png"),
};
},
watch: {
$route(to, from) {
if (this.isQiankun) {
this.getBreadcrumb();
}
},
},
mounted() {
// store.dispatch('getDeviceResources')
// store.dispatch('getLoginUser').then((res)=>{
// if(store.state.common.username === 'gqgdcx'){
// this.$router.push({path:"business/gqOrder"})
// }
// if(store.state.common.isCheckbook){
// // console.log(this.$route)
// // this.$router.push({path:"accounts/accountsList"})
// }
// })
// window.onresize = ()=>{
// const w = window,
// d = document,
// e = d.documentElement,
// g = d.getElementsByTagName('body')[0],
// x = w.innerWidth || e.clientWidth || g.clientWidth,
// y = w.innerHeight|| e.clientHeight|| g.clientHeight;
// d.getElementsByTagName('main')[0].style['minHeight'] = y+'px'
// }
// window.onresize()
this.$onGlobalStateChange((state, prev) => {
if (state.isCollapsed != this.isCollapse) {
this.toggleCollapse();
}
});
},
computed: {
...mapGetters(["isCollapse", "isFullsize"]),
},
methods: {
getBreadcrumb() {
const {
getters: { curBreadCrumb },
} = this.$root.parentVuex;
let matched = this.$route.matched.filter((item) => item.name); // this.$route.matched 可以获取到一个数组,包含当前路由的所有嵌套路径片段的路由记录
const first = matched[0];
const { meta, path } = first;
const basePath = "/oEshield#";
let breadcrumb = [];
if (meta) {
const { title, pushState } = meta;
if (pushState && title) {
breadcrumb.push({
name: title,
path: basePath + path,
});
history.state.pushState = pushState;
history.state.breadcrumb = [...curBreadCrumb, breadcrumb[0]];
// this.$root.parentVuex.dispatch('menu/setBreadCrumb', [...curBreadCrumb, breadcrumb[0]]);
}
}
},
toggle() {
this.toggleCollapse();
},
...mapActions(["toggleCollapse"]),
navigate() {
let routeData = this.$router.resolve({
path: "/notice",
query: {},
});
window.open(routeData.href, "_blank");
},
},
components: {
vSideBar,
},
store,
};
</script>
<style scoped>
.topbar {
min-height: 50px;
padding: 15px 10px;
}
.toggle-btn,
.logo {
vertical-align: middle;
}
.logo {
margin-left: 10px;
}
a.right-link {
color: #999;
font-size: 14px;
margin-right: 20px;
line-height: 30px;
text-decoration: none;
}
.full-size main {
margin: 0;
}
.full-size .sidebar,
.full-size .topbar {
display: none;
}
</style>
<style lang="scss">
.el_table {
thead {
th {
background: rgba($color: #f2f2f2, $alpha: 0.5) !important;
}
}
}
.links_group {
position: relative;
display: flex;
align-items: flex-end;
justify-content: space-between;
padding: 10px 0;
.name {
font-size: 18px;
font-weight: bold;
color: #666;
}
}
</style>
import actions from '../core/actions';
import { Message } from 'element-ui';
import _ from 'lodash'
const error = _.debounce((msg, getToken) => {
if(window.__POWERED_BY_QIANKUN__) {
let stateRes = {
errorMsg: msg,
showLoading: false
};
if(getToken === 'removeToken') {
stateRes.token = getToken;
localStorage.removeItem('token');
}
actions.setGlobalState(stateRes);
} else {
if(msg) {
Message({
message: msg,
type: 'error'
});
}
}
}, 1000, true);
const showLoading = (status) => {
if(window.__POWERED_BY_QIANKUN__) {
actions.setGlobalState({
token: localStorage.getItem('token') || '',
errorMsg: '',
showLoading: status
})
}
}
const checkStatus = (status, msg) => {
switch (status) {
case 400:
error(`Bad Request 错误的请求`);
break;
case 401:
error('用户没有权限(令牌、用户名、密码错误)!');
break;
case 403:
error('用户得到授权,但是访问是被禁止的。!');
break;
// 404请求不存在
case 404:
error('网络请求错误,未找到该资源!');
break;
case 405:
error('网络请求错误,请求方法未允许!');
break;
case 408:
error('网络请求超时!');
break;
case 500:
error('服务器错误,请联系管理员!');
break;
case 501:
error('网络未实现!');
break;
case 502:
error('网络错误!');
break;
case 503:
error('服务不可用,服务器暂时过载或维护!');
break;
case 504:
error('网络超时!');
break;
case 505:
error('http版本不支持该请求!');
break;
case 603:
error('尚未登录或登录已过期,请重新登录', 'removeToken');
break;
case 505:
error('http版本不支持该请求!');
break;
case 'fail':
error('网络连接错误');
break;
case 'custom':
error(`${msg}`);
break;
default:
}
}
export {
checkStatus,
showLoading
}
\ No newline at end of file \ No newline at end of file
import axios from 'axios'
import qs from 'qs'
import store from '../vuex/store'
import { checkStatus, showLoading } from './checkStatus';
const instance = axios.create({ // 创建axios实例,在这里可以设置请求的默认配置
timeout: 6*60000, // 设置超时时间60s
retry: 3,
retryDelay: 1000
})
// 统一设置post请求头
instance.defaults.headers.post['Content-Type'] = 'application/json'
/** 添加请求拦截器 **/
instance.interceptors.request.use(config => {
config.headers['Authorization'] = localStorage.getItem('token') || '';
showLoading(true);
return config
}, error => {
console.log('请求错误,原因:', error)
showLoading(false);
return Promise.reject(error)
})
/** 添加响应拦截器 **/
instance.interceptors.response.use(response => {
showLoading(false);
const serverCode = response.data.code,
token = response.headers['authorization'];
if(token || token === '') {
localStorage.setItem('token', token);
}
if (serverCode === 200 || response.status === 200) {
if(serverCode !== 200) {
checkStatus(serverCode);
}
if(response.status) {
return Promise.resolve(response);
}
return Promise.resolve(response.data);
} else {
checkStatus(serverCode);
return Promise.reject(response.data.message)
}
}, error => {
showLoading(false);
const errRes = error.response;
if (errRes) {
const { data, config, status, statusText } = errRes;
checkStatus(status);
console.log(`${config.url} 接口请求出错,状态码${status}`);
return Promise.reject(error);
} else {
checkStatus('fail');
console.log('http request fail 请求失败');
return Promise.reject(new Error('请求失败'))
}
// 超时处理
var config = error.config
if (!config || !config.retry) return Promise.reject(error)
// 设置用于跟踪重试次数的变量
config.__retryCount = config.__retryCount || 0
// 检查我们是否已将重试总数最大化
if (config.__retryCount >= config.retry) {
// 错误拒绝
return Promise.reject(error)
}
// 增加重试次数
config.__retryCount += 1
// 创造新的承诺来处理指数退避
var backoff = new Promise(function (resolve) {
setTimeout(function () {
resolve()
}, config.retryDelay || 1)
})
// 返回承诺,其中将撤回axios以重试请求
return backoff.then(function () {
return axios(config)
})
})
// 从mock获取基础域名配置
const MOCK_CONFIG_URL = 'https://oss-config.test.glsx.com.cn/mock/60a371eafb9c105681999ab8/microCustomizationService/e-shield-oShield-config';
let baseFlag = true;
const getBaseUrl = () => {
return new Promise((resolve, reject) => {
let BASE_URL = store.getters.baseURL;
if(!BASE_URL && baseFlag) {
baseFlag = false;
instance({
url: MOCK_CONFIG_URL,
method: 'get'
}).then((res) => {
const resData = res.data;
if(resData) {
const resBaseURL = resData.axios.baseURL;
store.commit('SET_BASE_URL', resBaseURL);
baseFlag = !resBaseURL;
resolve(resBaseURL);
} else {
baseFlag = true;
resolve(BASE_URL);
}
}).catch((err) => {
baseFlag = true;
resolve(BASE_URL)
});
} else {
resolve(BASE_URL)
}
})
};
const HTTP_POST = (baseUrl, options) => {
instance({
url: baseUrl,
method: 'post',
data: JSON.stringify(options.data)
}).then((res) => {
options.success(res.data);
}).catch((err) => {
options.error(err);
})
}
const HTTP_GET = (baseUrl, options) => {
instance({
url: baseUrl,
method: 'get',
params: options.data
}).then((res) => {
options.success(res.data);
}).catch((err) => {
options.error(err);
})
}
export default class HTTP {
axiosPost (options) {
if(options.fullUrl) {
HTTP_POST(options.url, options);
} else {
getBaseUrl().then((baseUrl) => {
HTTP_POST(baseUrl + options.url, options);
}, (err) => {
HTTP_POST('');
})
}
}
axiosGet (options) {
if(options.fullUrl) {
HTTP_GET(options.url, options);
} else {
getBaseUrl().then((baseUrl) => {
HTTP_GET(baseUrl + options.url, options);
}, (err) => {
HTTP_GET('')
})
}
}
}
\ No newline at end of file \ No newline at end of file
import SERVICES from './services'
import './config'
export const services = SERVICES
\ No newline at end of file \ No newline at end of file
import api from '../config.js'
let head = 'sepacct/'
export default {
// 产品套餐-列表
getPackageList(request = {}) {
return api.get(`${head}package/options`, request)
},
// 订单状态-列表
getStatusList(request = {}) {
return api.get(`${head}orderstatus/options`, request)
},
// 订单列表
getList(request = {}) {
return api.get(`${head}order/list`, request)
},
// 获取订单详情
getOrderInfo(request = {}) {
return api.get(`${head}order/info`, request)
},
// 财务确认汇通打款接口(对账信息)
confirmHT(request = {}) {
return api.post(`${head}order/confirmHT`, request)
},
// 财务确认打款给SP接口(SP分润明细)
confirmSP(request = {}) {
return api.post(`${head}order/confirmSP`, request)
},
// 财务确认退款给汇通接口(对账信息)
refundConfirmHT(request = {}) {
return api.post(`${head}refund/confirmHT`, request)
},
// 财务确认SP退款接口(SP分润明细)
refundConfirmSP(request = {}) {
return api.post(`${head}refund/confirmSP`, request)
}
}
import api from '../config.js'
import request from './request'
export default {
getVehicleList (params = {}) {
return request(params, '/trialdrive/vehicle/vehicleinfo/search', 'get')
},
checkSnType(params = {}) {
return request(params, '/trialdrive/vehicle/vehicleinfo/getclassifynamebysn', 'get')
},
addVehicle(params = {}) {
return request(params, '/trialdrive/vehicle/vehicleinfo/save', 'post')
},
updateVehicle(params = {}) {
return request(params, '/trialdrive/vehicle/vehicleinfo/update', 'post')
},
/* getVehicleList (request = {}) {
return api.get('vehicle/getVehicleList', request)
},
getVehicleListTotal (request = {}) {
return api.get('vehicle/getVehicleListTotal', request)
},
getDetailsByTrackId(request = {}) {
return api.get('vehicle/getDetailsByTrackId', request)
},
saveFrequency(request = {}) {
return api.post('vehicle/adjFreq', request)
},
workOrderList(request = {}) {
return api.get('vehicle/workOrderList', request)
},
saveVehicleForm(request = {}) {
return api.post('vehicle/edit', request)
}, */
/*工单管理*/
getWorkOrderList(request = {}) {
return api.get('workOrder/workOrderList', request)
},
getWorkOrderDetailById(request = {}) {
return api.get('workOrder/detail/'+request.id)
},
saveWorkOrderDraft(request = {}) {
return api.post('workOrder/saveDraft', request)
},
updateWorkOrderDraft(request = {}) {
return api.post('workOrder/updateDraft', request)
},
updateWorkOrder(request = {}) {
return api.post('workOrder/updateWorkOrder', request)
},
saveWorkOrder(request = {}) {
return api.post('workOrder/saveWorkOrder', request)
},
deleteWorkOrder(request = {}) {
return api.get('workOrder/deleteWorkorder', request)
},
dispatchWorkOrder(request = {}) {
return api.get('workOrder/dispatchWorkOrder', request)
},
cancelDispatchWorkOrder(request = {}) {
return api.get('workOrder/cancelDispatch', request)
},
validateDevice(request = {}) {
return api.get('workOrder/validateDevice', request)
},
activeWorkOrder(request = {}) {
return api.get('workOrder/activeWorkOrder', request)
},
saveOrder(request = {}) {
return api.post('workOrder/saveOrder', request)
},
validationOrder(request = {}) {
return api.get('workOrder/validationOrder', request)
},
//工单管理广汽
query(request = {}) {
return api.get('workordmana/query', request)
},
getOrderDetails(request = {}) {
return api.get('workordmana/get', request)
},
findAllPromise(request = {}) {
return api.get('workordmana/findAllPromise', request)
},
insurance(request = {}) {
return api.post('workordmana/insurance', request)
},
returnins(request = {}) {
return api.get('workordmana/returnins', request)
},
print(request = {}) {
return api.get('workordmana/print', request)
},
edit(request = {}) {
return api.post('workordmana/edit', request)
},
currentRoleInsurance(request = {}) {
return api.post('insurance/currentRoleInsurance', request)
},
addPOI(request = {}) {
return api.post('vepoi/add', request)
},
getPOI(params = {}) {
//return api.get('vepoi/getVehiclePoi', request)
return request(params, '/vepoi/getVehiclePoi', 'get')
},
deletePOI(request = {}) {
return api.get('vepoi/del/'+request.id)
},
updatePOI(request = {}) {
return api.post('vepoi/update', request)
},
getAnjVerifyAccountsList(request = {}) {
return api.get('reconciliate/getAnjVerifyAccountsList', request)
},
exportAnjVerifyAccountsList(request = {}) {
return api.get('reconciliate/exportAnjVerifyAccountsList', request)
},
getAnjVerifyAccountsOpts(request = {}) {
return api.get('reconciliate/getDropDownOptions', request)
},
getAdjFreqInfo(request = {}) {
return api.get('vehicle/getAdjFreqInfo', request)
},
exportGqWindReport(request = {}) {
return api.get('report/gqWindReport/exportGqWindReport', request)
},
regenerateGqWindReport(request = {}) {
return api.get('report/gqWindReport/regenerateGqWindReport', request)
},
listGqWindReportPage(request = {}) {
return api.get('report/gqWindReport/listGqWindReportPage', request)
},
}
\ No newline at end of file \ No newline at end of file
import api from '../config.js'
import request from './request'
export default {
getLoginUser(request = {}) {
return api.get('common/getLoginUser', request)
},
/*获取用户角色信息*/
getUserRoleInfo() {
return api.get('user/getRoleInfo')
},
/*车辆品牌*/
getAllVehicleBrand(request = {}) {
return api.get('vehicle/getAllVehicleBrand', request)
},
getBrandTypeByBrandId(request = {}) {
return api.get('vehicle/getBrandTypeByBrandId', request)
},
/*车辆分组分类*/
getAllVehicleGroup(request = {}) {
return api.get('vehiclegroup/getAllVehicleGroup', request)
},
getClassListByGroupId(request = {}) {
return api.get('vehicleclass/getClassListByGroupId', request)
},
/*获取菜单权限*/
getDeviceResources(request = {}) {
return api.get('user/userDeviceResources', request)
}
}
// 获取车辆树
export const GET_ORGANIZATION_TREE = params => {
return request(params, '/usercenter/organization/orgtree')
}
\ No newline at end of file \ No newline at end of file
import api from '../config.js'
export default {
/*设备分类*/
getDeviceTypeList(request = {}) {
return api.get('device/classify/list', request)
},
getDeviceTypeById(request = {}) {
return api.get('device/classify/detail', request)
},
addDeviceType(request = {}) {
return api.post('device/classify/create', request)
},
updateDeviceType(request = {}) {
return api.post('device/classify/update', request)
},
/*设备列表*/
getDeviceList(request = {}) {
return api.get('device/device/getDeviceList', request)
},
saveDevice(request = {}) {
return api.post('device/device/saveDevice', request)
},
updateDevice(request = {}) {
return api.post('device/device/updateDevice', request)
},
getDeviceById(request = {}) {
return api.get(`device/device/getDevice/${request.id}`)
},
getDeviceByName(request = {}) {
return api.get(`device/device/getDeviceByName`, request)
},
swichDeviceById(request = {}) {
return api.get(`device/device/swichUse/${request.id}`)
},
/*设备管理*/
getDeviceAdminList(request = {}) {
return api.get('device/deviceManage/getDeviceManageList', request)
},
deleteXFDevice(request = {}) {
return api.post('device/deviceManage/deleteXFDevice', request)
},
getDeviceManageListTotal(request = {}) {
return api.post('device/deviceManage/getDeviceManageListTotal', request)
}
}
\ No newline at end of file \ No newline at end of file
import request from './request'
import store from "@/vuex/store";
// 新增围栏
export const SAVE_ELECFENCE_INFO = params => {
return request(params, '/trialdrive/elecfence/add', 'POST')
}
// 更新围栏
export const UPDATE_ELECFENCE_INFO = params => {
return request(params, '/trialdrive/elecfence/edit', 'POST')
}
// 获取围栏详情
export const GET_ELECFENCE_INFO = params => {
return request(params, '/trialdrive/elecfence/info')
}
//新增、编辑围栏-获取关联设备列表
export const GET_ELECFENCE_LINKEDDEVICES = params => {
return request(params, '/trialdrive/elecfence/linkedDevices')
}
//新增、编辑围栏-关联设备-获取用户权限设备列表接口
export const GET_ELECFENCE_LINKSNS = params => {
return request(params, '/trialdrive/elecfence/linksns/search')
}
//新增、编辑围栏-批量删除关联设备
export const REMOVE_ELECFENCE_LINKEDDEVICES = params => {
return request(params, '/trialdrive/elecfence/batchUnlink')
}
//新增、编辑围栏-批量导入关联设备
export const IMPORT_ELECFENCE_LINKEDDEVICES = `${store.getters.baseURL}/trialdrive/elecfence/batchImport`
//新增、编辑围栏-批量导入模板下载
export const DOWN_ELECFENCE_EXCELTEMPLATE = params => {
return request(params, '/publiccenter/dict/data/type/excelTemplate/batchLinkFenceSns')
}
\ No newline at end of file \ No newline at end of file
import api from '../config.js'
export default {
getDeviceNumber (request = {}) {
return api.get('home/getDeviceNumber', request)
},
getNewActiveDeviceInfo (request = {}) {
return api.get('home/getNewActiveDeviceInfo', request)
},
getNewBindDeviceInfo (request = {}) {
return api.get('home/getNewBindDeviceInfo', request)
},
getAlarmNumber (request = {}) {
return api.get('home/getAlarmNumber', request)
}
}
\ No newline at end of file \ No newline at end of file
import common from './common'
import menu from './menu'
import home from './home'
import report from './report'
import monitor from './monitor'
import business from './business'
import system from './system'
import device from './device'
import accounts from './accounts'
import stock from './stock'
export default {
common,
menu,
home,
report,
monitor,
business,
system,
device,
accounts,
stock
}
\ No newline at end of file \ No newline at end of file
import axios from 'axios'
export default {
getAll (request = {}) {
return axios.get('http://localhost:3000/menu', request)
.then((response) => Promise.resolve(response))
.catch((error) => Promise.reject(error))
}
}
import request from './request'
export default {
/*新虎哥围栏管理*/
getFenceList(params = {}) {
return request(params, '/trialdrive/fence/search', 'get')
},
deleteFence(params = {}) {
return request(params, '/trialdrive/fence/delete', 'get')
},
saveFence(params = {}) {
return request(params, '/trialdrive/fence/add', 'post')
},
updateFence(params = {}) {
return request(params, '/trialdrive/fence/edit', 'post')
},
getFenceDetailById(params = {}) {
return request(params, '/trialdrive/fence/info', 'get')
},
// 查看原围栏
getUpdatedFenceDetail(params = {}) {
return request(params, '/trialdrive/fence/change/info', 'get')
},
getVehicleSnList(params = {}) {
return request(params, '/trialdrive/vehicle/linksns/search', 'get')
},
/*新虎哥特约店列表*/
getSpecialShopList(params = {}) {
return request(params, '/trialdrive/specialshop/shopusers', 'get')
},
getVehicleTree(params = {}) {
return request(params, '/trialdrive/monitor/vtree', 'get')
},
getVehicleTreeUserList(params = {}) {
return request(params, '/trialdrive/monitor/uvlist', 'get')
},
getVehicleTreeUserIds(params = {}) {
return request(params, '/trialdrive/monitor/ovlist', 'get')
},
getDevicesLocation(params = {}) {
return request(params, '/trialdrive/monitor/vehiclelocation', 'get')
},
getTrackHistory(params = {}) {
return request(params, '/devicemonitor/monitor/listtrackpoint', 'get')
},
getHistoryLocation(params = {}) {
return request(params, '/devicemonitor/monitor/liststaypoint', 'get')
},
getOrgTree(params) {
return request(params, '/usercenter/organization/orgtree')
},
getWifiLocationBySn(params = {}) {
return request(params,"track/getWifiLocationBySn");
},
// 根据sn 获取围栏信息接口
getFenceInfo(params) {
return request(params, '/trialdrive/fence/getBySn')
},
// 旧虎哥
/*车辆监控*/
// getCriteriaTreeList (request = {}) {
// return api.get('vehicle/getCriteriaTreeList', request)
// },
// getRtTrack (request = {}) {
// return api.get('track/getRtTrack', request)
// },
// getBaseStationTrack(request = {}) {
// return api.get('track/getBaseStationTrack', request)
// },
// getResidentByRealTime (request = {}) {
// return api.get('track/getResidentByRealTime', request)
// },
// getTrackHistory (request = {}) {
// return api.get('track/getTrackHistory', request)
// },
// getBaseStationHistory(request = {}) {
// return api.get('track/getBaseStationHistory', request)
// },
// getEcFenceList(request = {}) {
// return api.get('ecFence/getEcFenceList', request)
// },
// getEcFenceById(request = {}) {
// return api.get('ecFence/getEcFenceById/'+request.id)
// },
// getVehicleDeviceList(request = {}) {
// return api.get('vehicle/getVehicleDeviceList', request)
// },
// getDevicesLocation(request = {}) {
// return api.get('track/getDevicesLocation', request)
// },
// getSingleFence(request = {}) {
// return api.get('ecFence/getSingleFence', request)
// },
// getHistoryLocation(request = {}) {
// return api.get('track/stayPointList', request)
// },
// getTrackBySn(request = {}) {
// return api.get('track/getTrackBySn', request)
// },
// /*围栏管理*/
// // getFenceList(request = {}) {
// // return api.get('ecFence/getFenceList', request)
// // },
// getNewFenceId(request = {}) {
// return api.get('ecFence/toAddEcFence', request)
// },
// checkFenceName(request = {}) {
// return api.post('ecFence/findEcFenceByName', request)
// },
// getVehicleSnList(request = {}) {
// return api.get('vehicle/getVehicleSnList', request)
// },
// saveFence(request = {}) {
// return api.post('ecFence/saveFence', request)
// },
// getFenceDetailById(request = {}) {
// return api.get('ecFence/toUpdateEcFence', request)
// },
// updateFence(request = {}) {
// return api.post('ecFence/updateFence', request)
// },
// deleteFence(request = {}) {
// return api.get('ecFence/deleteFence', request)
// },
// updateFenceStatus(request = {}) {
// return api.get('ecFence/updateStatus', request)
// },
// deleteFenceSns(request = {}) {
// return api.get('ecFence/deleteFenceSns', request)
// },
// getFenceSnsList(request = {}) {
// return api.get('ecFence/getFenceSnsList', request)
// },
}
// 根据SN获取设备列表信息
export const GET_DEVICEINFO_BYSNS = params => {
return request(params, '/trialdrive/monitor/vehiclelocation')
}
// 批量查询设备位置点
export const GET_DEVICE_LOCATION = params => {
return request(params, '/trialdrive/monitor/vehiclelocation', 'get')
}
// 批量查询设备在线状态
export const GET_MONITOR_ONLINELIST = params => {
return request(params, '/devicemonitor/monitor/onlinelist', 'get')
}
// 获取高德地图的省市区
export const GET_AMAP_PROVINCE = params => {
return request(params, 'https://restapi.amap.com/v3/config/district', 'get')
}
// 历史停留列表
export const GET_HISTORY_LOCATION = params => {
return request(params, '/trialdrive/monitor/stayPointList', 'post')
}
// 常驻地数据
export const GET_RESIDENT_LOCATION = params => {
return request(params, '/trialdrive/monitor/residentList', 'get')
}
// 风险评估设备停留点查询
export const GET_STAY_POINTLIST = params => {
return request(params, '/trialdrive/riskAssessment/getStayPointList', 'get')
}
// 风险评估获取车辆基本信息
export const GET_BASIC_INFORMATION = params => {
return request(params, '/trialdrive/riskAssessment/getBasicInformation', 'get')
}
// 风险评估设备预测家庭地址和预测工作地址查询
export const GET_RESIDENT_INFORMATION = params => {
return request(params, '/trialdrive/riskAssessment/getResidentInformation', 'get')
}
// 风险评估设备警情数据查询
export const GET_ALARM_POINTLIST = params => {
return request(params, '/trialdrive/riskAssessment/getAlarmInformation', 'get')
}
// 风险评估用户行为数据查询
export const GET_USER_BEHAVIOR_INFORMATION = params => {
return request(params, '/trialdrive/riskAssessment/getUserBehaviorInformation', 'get')
}
export const GET_DETAIL_DEVICE_LIST = params => {
return request(params, '/trialdrive/device/getByVehicleId', 'get')
}
export const GET_ALARM_TIME_LIST = params => {
return request(params, '/trialdrive/riskAssessment/getAlarmTimeLine', 'get')
}
// 警情中心-防拆报警(通用)-获取列表
export const GETCOMMONTEARDOWNSEARCH = (params) => {
return request(params, "/trialdrive/commonteardown/search");
}
// 警情中心-大数据研判警情-获取列表
export const GETJUDGMENTSEARCH = (params) => {
return request(params, "/trialdrive/judgment/search");
}
//
export const GET_DOSAGE_ANALYSIS_DATA= (params) => {
return request(params, "/trialdrive/riskAssessment/usageAnalysis");
}
import request from './request'
// 新增poi点
export const ADD_POI_INFO = params => {
return request(params, '/trialdrive/poifence/add', 'post')
}
// 修改poi点信息
export const UPDATE_POI_INFO = params => {
return request(params, '/trialdrive/poifence/update', 'post')
}
// 修改poi点状态
export const MODIFY_POI_INFO = params => {
return request(params, '/trialdrive/poifence/modify', 'get')
}
// 删除poi点
export const DELETE_POI_INFO = params => {
return request(params, '/trialdrive/poifence/delete', 'get')
}
// 获取历史poi点
export const GET_POI_TRACK = params => {
return request(params, '/trialdrive/poifence/queryPoiTrack', 'get')
}
// 获取历史poi详情
export const GET_POI_INFO = params => {
return request(params, '/trialdrive/poifence/findone', 'get')
}
// 校验poi名称
export const CHECK_POI_NAME = params => {
return request(params, '/trialdrive/poifence/checkPoiName', 'get')
}
import request from './request'
// 轨迹回放-获取轨迹回放位置点
export const GET_DEVICE_LISTTRACKPOINT = params => {
return request(params, '/devicemonitor/monitor/listtrackpoint')
}
\ No newline at end of file \ No newline at end of file
import api from '../config.js'
export default {
deviceActive (request = {}) {
return api.get('deviceActive/findList', request)
},
fencesalarm (request = {}) {
return api.get('fencesalarm/findList', request)
},
powerOffAlarm(request = {}) {
return api.get('powerOffAlarm/poweroffqureyList', request)
},
finalPostioning(request = {}) {
return api.get('finalPostioning/findList', request)
},
finalTotal(request = {}) {
return api.get('finalPostioning/findFinalPositionListTotal', request)
},
offlineList(request = {}){
return api.get('report/offline/list',request)
},
offlineTotal(request = {}){
return api.get('report/offline/total',request)
},
offlineCheckExport(request = {}){
return api.get('report/offline/checkExport',request)
},
batteryList(request = {}){
return api.get('report/battery/list',request)
},
batteryTotal(request = {}){
return api.get('report/battery/total',request)
},
stayList(request = {}){
return api.get('report/stay/list',request)
},
stayTotal(request = {}){
return api.get('report/stay/total',request)
},
stayCheckExport(request = {}){
return api.get('report/stay/checkExport',request)
},
overspeedList(request = {}){
return api.get('report/overspeed/list',request)
},
overspeedTotal(request = {}){
return api.get('report/overspeed/total',request)
},
overspeedCheckExport(request = {}){
return api.get('report/overspeed/checkExport',request)
},
overspeedDetailList(request = {}){
return api.get('report/overspeed/detail/list',request)
},
journeysList(request = {}){
return api.get('report/journeys/list',request)
},
journeysTotal(request = {}){
return api.get('report/journeys/total',request)
},
journeysDetailTotal(request = {}){
return api.get('report/journeys/detail/list',request)
},
journeysCheckExport(request = {}){
return api.get('report/journeys/checkExport',request)
},
getCriteriaTreeList (request = {}) {
return api.get('vehicle/getCriteriaTreeList', request)
},
getGraphic (request = {}) {
return api.get('report/journeys/detail/graphic', request)
},
batteryCheck (request = {}) {
return api.get('report/battery/checkExport', request)
},
/*警情中心*/
getAlarmCenterList (request = {}) {
return api.get('alarmCenter/getList', request)
},
getAlarmDetailById (request = {}) {
return api.get('alarmCenter/getByVehicleId', request)
},
getAlarmCalendar (request = {}) {
return api.get('alarmCenter/calendar/getList', request)
},
updateAlarmResolve (request = {}) {
return api.post('alarmCenter/dealLog/update', request)
},
exportAlarmCenterList (request = {}) {
return api.post('alarmCenter/export', request)
},
getAlarmFocusList (request = {}) {
return api.get('attentionCenter/queryAttention', request)
},
exportAlarmFocusList (request = {}) {
return api.post('attentionCenter/exportAttentionAlarm', request)
},
getAlarmIgnoreList (request = {}) {
return api.get('attentionCenter/queryIgnore', request)
},
exportAlarmIgnoreList (request = {}) {
return api.post('attentionCenter/exportIgnore', request)
},
toggleAlarmItemStatus (request = {}) {
return api.get('attentionCenter/changeAIStatus', request)
},
getAlarmLogList (request = {}) {
return api.get('alarmCenterLog/qureyLog', request)
},
exportAlarmLogList (request = {}) {
return api.post('alarmCenterLog/exportLog', request)
},
getAntiOffAlarmList(request = {}) {
return api.get('tamperalarm/list', request)
},
exportAntiOffAlarmList (request = {}) {
return api.post('tamperalarm/export', request)
},
//警情配置
gqAlarmCenterList(request = {}) {
return api.get('gqAlarmCenter/gqAlarmCenterList', request)
},
gqQueryTerm(request = {}) {
return api.get('gqAlarmCenter/gqQueryTerm', request)
},
deleteAlarmRule(request = {}) {
return api.get('gqAlarmCenter/deleteAlarmRule', request)
},
addAlarmRule(request = {}) {
return api.get('gqAlarmCenter/addAlarmRule', request)
},
validateRuleName(request = {}) {
return api.get('gqAlarmCenter/validateRuleName', request)
},
getAlarmRuleById(request = {}) {
return api.get('gqAlarmCenter/getAlarmRuleById', request)
},
updateAlarmRule(request = {}) {
return api.post('gqAlarmCenter/updateAlarmRule', request)
},
getGqBusinessData(request = {}) {
return api.get('gqAlarmCenter/getGqBusinessData', request)
},
listGqBusissDataPage(request = {}) {
return api.get('gqAlarmCenter/listGqBusissDataPage', request)
},
queryAlarmBySn(request = {}) {
return api.get('gqAlarmCenter/queryAlarmBySn', request)
},
dealWithAlarm(request = {}) {
return api.post('gqAlarmCenter/dealWithAlarm', request)
},
getAlarmDataById(request = {}) {
return api.get('gqAlarmCenter/getAlarmDataById', request)
},
batchParseAddress(request = {}) {
return api.post('deviceActive/batchParseAddress', request)
},
listComplexAlarmPage(request = {}) {
return api.get('gqAlarmCenter/listComplexAlarmPage', request)
},
queryComplexAlarmInfo(request = {}) {
return api.get('gqAlarmCenter/queryComplexAlarmInfo', request)
},
dealWithComplexAlarm(request = {}) {
return api.post('gqAlarmCenter/dealWithComplexAlarm', request)
},
}
\ No newline at end of file \ No newline at end of file
import HTTP from '../config'
const axiosHttp = new HTTP()
function request (data = {} , url, method = 'GET') {
console.log('开始请求:',new Date().getTime())
return new Promise((resolve, reject) => {
var reqMethod = method.toLocaleLowerCase() === 'get' ? 'axiosGet' : 'axiosPost'
axiosHttp[reqMethod]({
url: url,
data: data,
success(data) {
// console.log(data)
// console.log('结束请求:',new Date().getTime())
resolve(data)
},
error(error) {
reject(error)
}
})
})
}
export default request
import api from '../config.js'
export default {
/*库存管理*/
getStockList(request = {}) {
return api.get('deviceStock/listStockPage', request)
},
/*库存管理 - 弹窗*/
getStockDetail(request = {}) {
return api.get('deviceStock/listStockNumberDetailPage', request)
},
/* 设备明细 */
getDeviceDetailList(request = {}) {
return api.get('deviceStock/listDeviceDetailPage', request)
}
}
import api from '../config.js'
export default {
getUserInfo (request = {}) {
return api.get('user/getUserInfo', request)
},
updateUserInfo (request = {}) {
return api.get('user/updateUser', request)
},
validateOldPass (request = {}) {
return api.get('user/validateOldPass', request)
},
getSystemInfo (request = {}) {
return api.get('systemInfo/getSystemInfo', request)
},
getSystemUpdating (request = {}) {
return api.get('systemInfo/queryUpdatings', request)
}
}
\ No newline at end of file \ No newline at end of file
import request from './request'
// 区域查车-查询车辆信息
export const GER_REGIONAL_SEARCH = function(params = {}){
return request(params, '/trialdrive/regional/search', 'get')
}
// 区域查车-导出excel
export const GER_REGIONAL_EXPORT = function(params = {}){
return request(params, '/trialdrive/regional/export', 'get')
}
// 区域查车-查询设备定位信息
export const GER_REGIONAL_LOCATION = function(params = {}){
return request(params, '/trialdrive/regional/location', 'get')
}
\ No newline at end of file \ No newline at end of file
This diff could not be displayed because it is too large.
.bottom_list {
position: absolute;
left: 0;
right: 0;
bottom: 0;
background: #fff;
//height: 313px;
z-index: 999;
display: flex;
flex-direction: column;
.head {
flex-shrink: 0;
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
padding: 11px 15px;
.left {
font-weight: 400;
font-size: 16px;
color: #333333;
.cred {
color: #EE3040;
}
.btn {
width: 88px;
height: 32px;
background: #9999991a;
border: 1px solid #CCCCCC;
border-radius: 4px;
padding: 0;
box-sizing: border-box;
font-weight: 500;
font-size: 16px;
color: #666666;
// line-height: 32px;
cursor: pointer;
}
.btn:hover {
background: #2196f31a;
color: #2196F3;
border-color: #2196F3;
}
}
.right {
display: flex;
align-items: center;
.link {
width: 48px;
height: 24px;
text-align: center;
line-height: 24px;
font-weight: 400;
font-size: 16px;
color: #999999;
text-decoration: none;
}
.link:hover {
background: #2196f31a;
border-radius: 2px;
color: #2196F3;
}
}
}
.head:after {
position: absolute;
display: block;
content: "";
height: 1px;
background: #D2D2D2;
left: 0;
right: 0;
bottom: 0;
transform: scaleY(0.5);
opacity: 0.5;
}
.content {
flex: 1;
overflow-y: auto;
}
}
.bottom_list_hide {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
width: 80px;
height: 24px;
border-radius: 4px 4px 0px 0px;
background: #fff;
z-index: 999;
right: 0;
bottom: 0;
cursor: pointer;
box-shadow: 0 -2px 10px 0 #0000001a;
i {
margin-right: 4px;
}
span {
font-weight: 400;
font-size: 14px;
color: #666666;
}
}
.bottom_list_hide:hover {
background: #185efe33;
i,
span {
color: #185EFE;
}
}
.addPoiForm {
display: flex;
padding: 20px;
.form_list {
flex: 1;
}
.lnglat_box {
display: flex;
.el-form-item {
flex: 1;
}
}
}
.btn_box {
display: flex;
justify-content: flex-end;
border-top: 1px solid #f2f2f2;
padding: 10px 20px;
}
.map-seacrh-wrap {
position: absolute;
top: 40px;
left: 10px;
z-index: 1000;
}
\ No newline at end of file \ No newline at end of file
.wrap {
/* min-height: 949px; */
main {
display: block;
margin: 0;
//background-color: #f3f3f4;
/*min-height: 949px;
*/
position: relative;
-webkit-transition: margin .1s linear;
transition: margin .1s linear;
-moz-transition: margin .1s linear;
-ms-transition: margin .1s linear;
-o-transition: margin .1s linear;
}
.sidebar {
position: absolute;
top: 0px;
left: 0px;
width: 220px;
height: 100%;
-webkit-transition: width .1s linear;
transition: width .1s linear;
font-size: 13px !important;
* {
font-size: 13px !important;
}
color:#a7b1c2;
}
&.full-width {
main {
margin-left: 64px;
/* -webkit-transition: margin .3s linear;
transition: margin .3s linear; */
}
.sidebar {
width: 64px;
/* -webkit-transition: width .3s linear;
transition: width .3s linear; */
}
.nav-footer {
display: none;
}
}
}
@media (max-width: 768px) {
main {
margin: 0px;
}
}
.main-wrap {
padding: 20px;
}
.row {
background: #fff;
padding: 10px;
}
.el-popper[x-placement^="bottom"] {
margin-top: 2px;
}
.el-input.is-disabled .el-input__inner {
color: #666;
}
/* .el-table--scrollable-x .el-table__body-wrapper{解决被遮挡
z-index: 100;
} */
.el-date-editor {
vertical-align: middle;
}
.table-header-ctrl {
margin: 0px;
min-height: 70px;
.el-input,
.el-date-editor,
.el-select {
width: 100%;
}
.el-input__suffix {
right: 15px;
}
input {
border-radius: 0px;
}
.el-date-editor {
border-radius: 0px;
margin-top: 7px;
}
}
td.ctrl-column {
padding-left: 50px;
.el-dropdown {
margin-top: 5px;
}
}
.el-button--small,
.el-table--small {
font-size: 13px;
}
.el-button--small {
padding: 8px 14px;
}
.el-table th>.cell {
color: #666;
}
.pull-right {
float: right;
}
.pull-left {
float: left;
}
.text-center {
text-align: center;
}
.table-page-wrap {
float: right;
margin: 20px 0px;
}
.el-message {
//避免被el-dialog遮罩层遮住
z-index: 3000 !important;
}
.el-tree .device-invalid {
color: #999;
}
.el-tree-node:focus>.el-tree-node__content {
background-color: inherit;
}
#editOrderModal #color .el-form-item__label {
color: red !important;
}
.el-alert--success {
background-color: #f0f9eb;
color: #67c23a;
}
.el-alert--error {
background-color: #fef0f0;
color: #f56c6c;
}
// 监控页面图标
.icon_info_shop {
width: 24px;
height: 24px;
background: url('../images/info_shop.png') no-repeat;
background-size: 24px auto;
}
.icon_info_plate {
background: url('../images/info_plate.png') no-repeat;
background-size: 24px auto;
width: 24px;
height: 24px;
}
\ No newline at end of file \ No newline at end of file
.el-dialog__header {
border-bottom: 1px solid #e5e5e5
}
.el-dialog__footer{
border-top: 1px solid #e5e5e5
}
.el-dialog{
.dialog-header{
position: relative;
margin: -10px 0px;
overflow: auto;
.header-title{
float: left;
line-height: 47px;
font-size: 16px;
}
.header-nav{
float: right;
margin-right: 20px;
a{
display: inline-block;
padding: 15px;
color: #333;
text-decoration: none;
cursor: pointer;
font-size: 16px;
border-bottom: 2px solid transparent;
&.active{
color: #094;
border-bottom: 2px solid #094;
}
}
}
}
h3{
font-size: 14px;
}
}
\ No newline at end of file \ No newline at end of file
/* 改变主题色变量 */
$--color-primary: #2196F3;
$--font-size-base: 13px;
/* 改变 icon 字体路径变量,必需 */
$--font-path: '~element-ui/lib/theme-chalk/fonts';
@import "~element-ui/packages/theme-chalk/src/index";
\ No newline at end of file \ No newline at end of file
.ibox {
background-color: #fff;
border: 1px solid #e7eaec;
padding: 10px;
margin-bottom: 20px;
.ibox-title {
padding-bottom: 10px;
overflow: auto;
h3{
font-size: 14px;
padding: 10px;
color: #666;
}
.ibox-ctrl{
position: relative;
top: 5px;
right: 10px;
margin-left: 10px;
margin-bottom: 10px;
}
}
.ibox-table {
padding: 10px;
margin-bottom: 20px;
}
.ibox-content {
padding: 20px 20px 0px;
margin: 0px -10px;
border-top: 1px solid #e7eaec;
overflow: auto;
}
&.ibox-search{
padding: 15px 10px 0px;
.el-form-item{
margin-bottom: 15px;
}
}
}
\ No newline at end of file \ No newline at end of file
.amap-sug-result{
z-index: 3000;
}
.amap-info-content{
padding: 10px 20px;
}
.uimap-info-ct{
margin: 15px 0px;
}
.uimap-info-ct .fa-inbox{
color: #1c80ec;
}
.uimap-info-ct .fa-clock-o{
color: #fdab0d;
}
.uimap-info-ct .fa-map-marker{
color: #05c55a;
}
.uimap-info-ct .fa-car{
color: #fa6828;
}
.uimap-info-ct>p>span{
width: 20px;
display: inline-block;
text-align: center;
margin-right: 5px;
font-size: 16px;
}
h3.uimap-info-title{
padding: 10px 40px 10px 5px;
margin: 0px 10px;
border-bottom: 1px solid #eee;
font-size: 14px;
word-break: break-all;
}
.amap-controls{
//display: none;
}
.amap-logo,.amap-copyright{
display: none !important;
}
.navg-info-window{
background-color: #fff;
border-radius: 4px;
// border: 1px solid #eee;
.tit{
padding: 10px 15px;
}
.main{
padding: 5px 15px;
border-top: 1px solid #eee;
p{
margin: 5px 0;
.lb{
color: #939393;
margin-right: 5px;
}
}
}
}
\ No newline at end of file \ No newline at end of file
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!