Commit fbfc7a8b by 张立顺

fix:代码合并冲突

2 parents acff3704 f2584945
[defaults] auth.token=45d2be625091494b9a0de35af25bb273c0a471650575471096d60dd61f6995e6
url = 'http://sentry.glsx.com.cn'
org = sentry defaults.url = http://sentry.glsx.com.cn
project = dj-car-life-system defaults.org = sentry
[auth] defaults.project =dj-carlife-web
token = 2d992c92b53b40b9869313a353c037d1208ee8bfcc1d418eaec1777f846401b6
...@@ -1782,6 +1782,14 @@ ...@@ -1782,6 +1782,14 @@
"eslint-plugin-node": "^8.0.0", "eslint-plugin-node": "^8.0.0",
"eslint-plugin-promise": "^4.0.1", "eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0" "eslint-plugin-standard": "^4.0.0"
},
"dependencies": {
"eslint-plugin-standard": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-4.1.0.tgz",
"integrity": "sha512-ZL7+QRixjTR6/528YNGyDotyffm5OQst/sGxKDwGb9Uqs4In5Egi4+jbobhqJoyoCM6/7v/1A5fhQ7ScMtDjaQ==",
"dev": true
}
} }
}, },
"@vue/preload-webpack-plugin": { "@vue/preload-webpack-plugin": {
...@@ -6089,10 +6097,9 @@ ...@@ -6089,10 +6097,9 @@
"dev": true "dev": true
}, },
"eslint-plugin-standard": { "eslint-plugin-standard": {
"version": "4.0.0", "version": "5.0.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-4.0.0.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-5.0.0.tgz",
"integrity": "sha512-OwxJkR6TQiYMmt1EsNRMe5qG3GsbjlcOhbGUBY4LtavF9DsLaTcoR+j2Tdjqi23oUwKNUqX7qcn5fPStafMdlA==", "integrity": "sha512-eSIXPc9wBM4BrniMzJRBm2uoVuXz2EPa+NXPk2+itrVt+r5SbKFERx/IgrK/HmfjddyKVz2f+j+7gBRvu19xLg=="
"dev": true
}, },
"eslint-plugin-vue": { "eslint-plugin-vue": {
"version": "5.2.3", "version": "5.2.3",
...@@ -10416,11 +10423,6 @@ ...@@ -10416,11 +10423,6 @@
} }
} }
}, },
"moment": {
"version": "2.29.3",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.3.tgz",
"integrity": "sha512-c6YRvhEo//6T2Jz/vVtYzqBzwvPT95JBQ+smCytzf7c50oMZRsR/a4w88aD34I+/QVSfnoAnSBFPJHItlOMJVw=="
},
"move-concurrently": { "move-concurrently": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz",
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
"build:nomock": "vue-cli-service build --mode nomock", "build:nomock": "vue-cli-service build --mode nomock",
"build:travis": "vue-cli-service build --mode travis", "build:travis": "vue-cli-service build --mode travis",
"lint": "vue-cli-service lint --fix", "lint": "vue-cli-service lint --fix",
"test:unit": "vue-cli-service test:unit" "test:unit": "vue-cli-service test:unit",
"report": "vue-cli-service build --report"
}, },
"dependencies": { "dependencies": {
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.17.12", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.17.12",
...@@ -64,12 +65,12 @@ ...@@ -64,12 +65,12 @@
"eslint": "^5.16.0", "eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0", "eslint-plugin-vue": "^5.0.0",
"hard-source-webpack-plugin": "^0.13.1", "hard-source-webpack-plugin": "^0.13.1",
"html-webpack-plugin": "4",
"sass": "^1.18.0", "sass": "^1.18.0",
"sass-loader": "^7.1.0", "sass-loader": "^7.1.0",
"script-loader": "^0.7.2", "script-loader": "^0.7.2",
"svg-sprite-loader": "^4.1.3", "svg-sprite-loader": "^4.1.3",
"vue-template-compiler": "^2.5.21", "vue-template-compiler": "^2.5.21",
"webpack-bundle-analyzer": "^3.4.1",
"webpack-theme-color-replacer": "^1.2.15" "webpack-theme-color-replacer": "^1.2.15"
} }
} }

307 KB | W: | H:

96.5 KB | W: | H:

public/account/hetong.png
public/account/hetong.png
public/account/hetong.png
public/account/hetong.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
require('script-loader!file-saver') require('script-loader!file-saver')
require('./Blob') require('./Blob')
require('script-loader!xlsx/dist/xlsx.core.min') require('script-loader!xlsx/dist/xlsx.core.min')
// import * as XLSX from 'xlsx' // 数据导出导入所需要的依赖
function generateArray(table) { function generateArray(table) {
var out = [] var out = []
var rows = table.querySelectorAll('tr') var rows = table.querySelectorAll('tr')
......
...@@ -44,7 +44,8 @@ if (!isProd) { ...@@ -44,7 +44,8 @@ if (!isProd) {
process.env.NODE_ENV === 'production' && process.env.NODE_ENV === 'production' &&
Sentry.init({ Sentry.init({
Vue, Vue,
dsn: 'http://6225fb8e73fb453a8455a9371f3517da@192.168.3.115:9000/4', dsn: 'http://889b61999b9a45448b42f972aa94d11d@sentry.glsx.com.cn/16',
// dsn: 'http://6225fb8e73fb453a8455a9371f3517da@192.168.3.115:9000/4',
integrations: [ integrations: [
new BrowserTracing({ new BrowserTracing({
routingInstrumentation: Sentry.vueRouterInstrumentation(router), routingInstrumentation: Sentry.vueRouterInstrumentation(router),
...@@ -57,7 +58,7 @@ process.env.NODE_ENV === 'production' && ...@@ -57,7 +58,7 @@ process.env.NODE_ENV === 'production' &&
tracesSampleRate: 1.0, tracesSampleRate: 1.0,
logErrors: true logErrors: true
}) })
// console.log(test)
// Vue.use(D2Crud) // Vue.use(D2Crud)
var baseConfig = { var baseConfig = {
axios: { axios: {
......
// Element // Element
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css' // import 'element-ui/lib/theme-chalk/index.css'
// flex 布局库 // flex 布局库
import 'flex.css' import 'flex.css'
// 组件 // 组件
import '@/components' import '@/components'
// svg 图标 // svg 图标
import '@/assets/svg-icons' import '@/assets/svg-icons'
// 指令 // 指令
import '@/directives' import '@/directives'
// 过滤器 // 过滤器
import '@/filters' import '@/filters'
// 功能插件 // 功能插件
import pluginError from '@/plugin/error' import pluginError from '@/plugin/error'
import pluginOpen from '@/plugin/open' import pluginOpen from '@/plugin/open'
export default { export default {
async install(Vue, options) { async install(Vue, options) {
// 设置为 false 以阻止 vue 在启动时生成生产提示 // 设置为 false 以阻止 vue 在启动时生成生产提示
// https://cn.vuejs.org/v2/api/#productionTip // https://cn.vuejs.org/v2/api/#productionTip
Vue.config.productionTip = false Vue.config.productionTip = false
// 当前环境 // 当前环境
Vue.prototype.$env = process.env.NODE_ENV Vue.prototype.$env = process.env.NODE_ENV
// 当前的 baseUrl // 当前的 baseUrl
// Vue.prototype.$baseUrl = process.env.BASE_URL // Vue.prototype.$baseUrl = process.env.BASE_URL
// 当前版本 // 当前版本
Vue.prototype.$version = process.env.VUE_APP_VERSION Vue.prototype.$version = process.env.VUE_APP_VERSION
// 构建时间 // 构建时间
Vue.prototype.$buildTime = process.env.VUE_APP_BUILD_TIME Vue.prototype.$buildTime = process.env.VUE_APP_BUILD_TIME
// 事件传递 // 事件传递
Vue.prototype.$event = new Vue() Vue.prototype.$event = new Vue()
// Element // Element
Vue.use(ElementUI, { size: 'medium', zIndex: 3000 }) Vue.use(ElementUI, { size: 'medium', zIndex: 3000 })
// 插件 // 插件
Vue.use(pluginError) Vue.use(pluginError)
Vue.use(pluginOpen) Vue.use(pluginOpen)
} }
} }
...@@ -735,7 +735,8 @@ export default { ...@@ -735,7 +735,8 @@ export default {
}, },
accountVisible: false, accountVisible: false,
warehouseVisible: false, warehouseVisible: false,
orderId: '2203150922321960', orderId: '',
// orderId: '2203150922321960',
outboundStatusShow: { outboundStatusShow: {
'1': '待出库', '1': '待出库',
'2': '待出库', '2': '待出库',
......
...@@ -100,6 +100,7 @@ export default { ...@@ -100,6 +100,7 @@ export default {
const oParams = {} const oParams = {}
oParams.channelType = 1 oParams.channelType = 1
oParams.appId = 'wx06d1198e751435d1' oParams.appId = 'wx06d1198e751435d1'
// oParams.appId = 'wx902f0b9c4b2c669d'
oParams.qrcodeType = 'QR_WXA_UNLIMIT' oParams.qrcodeType = 'QR_WXA_UNLIMIT'
oParams.path = 'packagesPayment/pages/QRPayment/QRPayment' oParams.path = 'packagesPayment/pages/QRPayment/QRPayment'
// oParams.path = 'packagesPayment/pages/payment/index' // oParams.path = 'packagesPayment/pages/payment/index'
......
...@@ -5,22 +5,18 @@ const HardPlugin = require('hard-source-webpack-plugin') // 使用缓存,优 ...@@ -5,22 +5,18 @@ const HardPlugin = require('hard-source-webpack-plugin') // 使用缓存,优
const SpeedMeasurePlugin = require('speed-measure-webpack-plugin') const SpeedMeasurePlugin = require('speed-measure-webpack-plugin')
const SentryWebpackPlugin = require('@sentry/webpack-plugin') const SentryWebpackPlugin = require('@sentry/webpack-plugin')
const CopyDir = require('./plugins/copyDir') const CopyDir = require('./plugins/copyDir')
const AsyncRomveDir = require('./plugins/removeDir') // const AsyncRomveDir = require('./plugins/removeDir')
const { resolve: assets } = require('path') const { resolve: assets } = require('path')
const os = require('os') const os = require('os')
/** /**
* 获取当前机器的ip地址 * 获取当前机器的ip地址
*/ */
function getIpAddress() { function getIpAddress() {
var ifaces = os.networkInterfaces() var ifaces = os.networkInterfaces()
for (var dev in ifaces) { for (var dev in ifaces) {
const iface = ifaces[dev] const iface = ifaces[dev]
for (let i = 0; i < iface.length; i++) { for (let i = 0; i < iface.length; i++) {
const { family, address, internal } = iface[i] const { family, address, internal } = iface[i]
if (family === 'IPv4' && address !== '127.0.0.1' && !internal) { if (family === 'IPv4' && address !== '127.0.0.1' && !internal) {
return address return address
} }
...@@ -29,13 +25,10 @@ function getIpAddress() { ...@@ -29,13 +25,10 @@ function getIpAddress() {
} }
// 拼接路径 // 拼接路径
const resolve = dir => require('path').join(__dirname, dir) const resolve = dir => require('path').join(__dirname, dir)
// 增加环境变量 // 增加环境变量
process.env.VUE_APP_VERSION = require('./package.json').version process.env.VUE_APP_VERSION = require('./package.json').version
process.env.VUE_APP_BUILD_TIME = require('dayjs')().format('YYYY-M-D HH:mm:ss') process.env.VUE_APP_BUILD_TIME = require('dayjs')().format('YYYY-M-D HH:mm:ss')
const isDev = process.env.NODE_ENV !== 'development' const isDev = process.env.NODE_ENV !== 'development'
// 基础路径 注意发布之前要先修改这里 // 基础路径 注意发布之前要先修改这里
const publicPath = '/dj-carlife-web/' const publicPath = '/dj-carlife-web/'
// const publicPath = '/' // const publicPath = '/'
...@@ -62,11 +55,11 @@ const cdn = { ...@@ -62,11 +55,11 @@ const cdn = {
// `${CDN_DOMAIN}/vue-i18n/8.14.0/vue-i18n.esm.js`, // `${CDN_DOMAIN}/vue-i18n/8.14.0/vue-i18n.esm.js`,
] ]
} }
module.exports = { module.exports = {
publicPath, // 根据你的实际情况更改这里 publicPath, // 根据你的实际情况更改这里
outputDir: 'copyDirTarget', outputDir: 'copyDirTarget',
lintOnSave: false, lintOnSave: false,
productionSourceMap: true, // 配置SourceMap
devServer: { devServer: {
// publicPath, // 和 publicPath 保持一致 // publicPath, // 和 publicPath 保持一致
https: false, https: false,
...@@ -99,7 +92,6 @@ module.exports = { ...@@ -99,7 +92,6 @@ module.exports = {
// 'core-js': 'core-js' // 'core-js': 'core-js'
} }
} }
// 非开发环境 // 非开发环境
if (isDev) { if (isDev) {
config.optimization.minimizer[0].options.terserOptions.compress.warnings = false config.optimization.minimizer[0].options.terserOptions.compress.warnings = false
...@@ -110,7 +102,6 @@ module.exports = { ...@@ -110,7 +102,6 @@ module.exports = {
] ]
} }
// console.log(config) // console.log(config)
// const Plugins = [ // const Plugins = [
// new MiniCssExtractPlugin({ // new MiniCssExtractPlugin({
// // Options similar to the same options in webpackOptions.output // // Options similar to the same options in webpackOptions.output
...@@ -119,7 +110,6 @@ module.exports = { ...@@ -119,7 +110,6 @@ module.exports = {
// chunkFilename: devMode ? 'css/[id].css' : 'css/[id].[hash].css', // chunkFilename: devMode ? 'css/[id].css' : 'css/[id].[hash].css',
// })] // })]
// config.plugins = [...config.plugins, ...Plugins] // config.plugins = [...config.plugins, ...Plugins]
const plugins = [] const plugins = []
plugins.push( plugins.push(
...@@ -132,13 +122,12 @@ module.exports = { ...@@ -132,13 +122,12 @@ module.exports = {
if (isDev) { if (isDev) {
plugins.push( plugins.push(
new SpeedMeasurePlugin(), new SpeedMeasurePlugin(),
new CopyDir(), // 把dist 文件修改成有两份来兼容部署时请求目录不一样的情况 new CopyDir() // 把dist 文件修改成有两份来兼容部署时请求目录不一样的情况
new AsyncRomveDir() // new AsyncRomveDir()
) )
} }
config.plugins = [...config.plugins, ...plugins] config.plugins = [...config.plugins, ...plugins]
// sentry 配置 // sentry 配置
process.env.NODE_ENV === 'production' && process.env.NODE_ENV === 'production' &&
Object.assign(config, { Object.assign(config, {
...@@ -155,7 +144,6 @@ module.exports = { ...@@ -155,7 +144,6 @@ module.exports = {
] ]
}) })
}, },
// 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js // 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js
chainWebpack: config => { chainWebpack: config => {
/** /**
...@@ -223,7 +211,6 @@ module.exports = { ...@@ -223,7 +211,6 @@ module.exports = {
config.resolve.alias config.resolve.alias
.set('@', resolve('src')) .set('@', resolve('src'))
.set('@api', resolve('src/api')) .set('@api', resolve('src/api'))
if (isDev) { if (isDev) {
config.plugin('html').tap(args => { config.plugin('html').tap(args => {
// args[0].minify.removeComments = false; // args[0].minify.removeComments = false;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!