Commit fbfc7a8b by 张立顺

fix:代码合并冲突

2 parents acff3704 f2584945
[defaults]
url = 'http://sentry.glsx.com.cn'
org = sentry
project = dj-car-life-system
[auth]
token = 2d992c92b53b40b9869313a353c037d1208ee8bfcc1d418eaec1777f846401b6
auth.token=45d2be625091494b9a0de35af25bb273c0a471650575471096d60dd61f6995e6
defaults.url = http://sentry.glsx.com.cn
defaults.org = sentry
defaults.project =dj-carlife-web
......@@ -1782,6 +1782,14 @@
"eslint-plugin-node": "^8.0.0",
"eslint-plugin-promise": "^4.0.1",
"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": {
......@@ -6089,10 +6097,9 @@
"dev": true
},
"eslint-plugin-standard": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-4.0.0.tgz",
"integrity": "sha512-OwxJkR6TQiYMmt1EsNRMe5qG3GsbjlcOhbGUBY4LtavF9DsLaTcoR+j2Tdjqi23oUwKNUqX7qcn5fPStafMdlA==",
"dev": true
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-5.0.0.tgz",
"integrity": "sha512-eSIXPc9wBM4BrniMzJRBm2uoVuXz2EPa+NXPk2+itrVt+r5SbKFERx/IgrK/HmfjddyKVz2f+j+7gBRvu19xLg=="
},
"eslint-plugin-vue": {
"version": "5.2.3",
......@@ -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": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz",
......
......@@ -10,7 +10,8 @@
"build:nomock": "vue-cli-service build --mode nomock",
"build:travis": "vue-cli-service build --mode travis",
"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": {
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.17.12",
......@@ -64,12 +65,12 @@
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"hard-source-webpack-plugin": "^0.13.1",
"html-webpack-plugin": "4",
"sass": "^1.18.0",
"sass-loader": "^7.1.0",
"script-loader": "^0.7.2",
"svg-sprite-loader": "^4.1.3",
"vue-template-compiler": "^2.5.21",
"webpack-bundle-analyzer": "^3.4.1",
"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 @@
require('script-loader!file-saver')
require('./Blob')
require('script-loader!xlsx/dist/xlsx.core.min')
// import * as XLSX from 'xlsx' // 数据导出导入所需要的依赖
function generateArray(table) {
var out = []
var rows = table.querySelectorAll('tr')
......
......@@ -44,7 +44,8 @@ if (!isProd) {
process.env.NODE_ENV === 'production' &&
Sentry.init({
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: [
new BrowserTracing({
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
......@@ -57,7 +58,7 @@ process.env.NODE_ENV === 'production' &&
tracesSampleRate: 1.0,
logErrors: true
})
// console.log(test)
// Vue.use(D2Crud)
var baseConfig = {
axios: {
......
// Element
import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
// flex 布局库
import 'flex.css'
// 组件
import '@/components'
// svg 图标
import '@/assets/svg-icons'
// 指令
import '@/directives'
// 过滤器
import '@/filters'
// 功能插件
import pluginError from '@/plugin/error'
import pluginOpen from '@/plugin/open'
export default {
async install(Vue, options) {
// 设置为 false 以阻止 vue 在启动时生成生产提示
// https://cn.vuejs.org/v2/api/#productionTip
Vue.config.productionTip = false
// 当前环境
Vue.prototype.$env = process.env.NODE_ENV
// 当前的 baseUrl
// Vue.prototype.$baseUrl = process.env.BASE_URL
// 当前版本
Vue.prototype.$version = process.env.VUE_APP_VERSION
// 构建时间
Vue.prototype.$buildTime = process.env.VUE_APP_BUILD_TIME
// 事件传递
Vue.prototype.$event = new Vue()
// Element
Vue.use(ElementUI, { size: 'medium', zIndex: 3000 })
// 插件
Vue.use(pluginError)
Vue.use(pluginOpen)
}
}
// Element
import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
// flex 布局库
import 'flex.css'
// 组件
import '@/components'
// svg 图标
import '@/assets/svg-icons'
// 指令
import '@/directives'
// 过滤器
import '@/filters'
// 功能插件
import pluginError from '@/plugin/error'
import pluginOpen from '@/plugin/open'
export default {
async install(Vue, options) {
// 设置为 false 以阻止 vue 在启动时生成生产提示
// https://cn.vuejs.org/v2/api/#productionTip
Vue.config.productionTip = false
// 当前环境
Vue.prototype.$env = process.env.NODE_ENV
// 当前的 baseUrl
// Vue.prototype.$baseUrl = process.env.BASE_URL
// 当前版本
Vue.prototype.$version = process.env.VUE_APP_VERSION
// 构建时间
Vue.prototype.$buildTime = process.env.VUE_APP_BUILD_TIME
// 事件传递
Vue.prototype.$event = new Vue()
// Element
Vue.use(ElementUI, { size: 'medium', zIndex: 3000 })
// 插件
Vue.use(pluginError)
Vue.use(pluginOpen)
}
}
......@@ -735,7 +735,8 @@ export default {
},
accountVisible: false,
warehouseVisible: false,
orderId: '2203150922321960',
orderId: '',
// orderId: '2203150922321960',
outboundStatusShow: {
'1': '待出库',
'2': '待出库',
......
......@@ -100,6 +100,7 @@ export default {
const oParams = {}
oParams.channelType = 1
oParams.appId = 'wx06d1198e751435d1'
// oParams.appId = 'wx902f0b9c4b2c669d'
oParams.qrcodeType = 'QR_WXA_UNLIMIT'
oParams.path = 'packagesPayment/pages/QRPayment/QRPayment'
// oParams.path = 'packagesPayment/pages/payment/index'
......
......@@ -5,22 +5,18 @@ const HardPlugin = require('hard-source-webpack-plugin') // 使用缓存,优
const SpeedMeasurePlugin = require('speed-measure-webpack-plugin')
const SentryWebpackPlugin = require('@sentry/webpack-plugin')
const CopyDir = require('./plugins/copyDir')
const AsyncRomveDir = require('./plugins/removeDir')
// const AsyncRomveDir = require('./plugins/removeDir')
const { resolve: assets } = require('path')
const os = require('os')
/**
* 获取当前机器的ip地址
*/
function getIpAddress() {
var ifaces = os.networkInterfaces()
for (var dev in ifaces) {
const iface = ifaces[dev]
for (let i = 0; i < iface.length; i++) {
const { family, address, internal } = iface[i]
if (family === 'IPv4' && address !== '127.0.0.1' && !internal) {
return address
}
......@@ -29,13 +25,10 @@ function getIpAddress() {
}
// 拼接路径
const resolve = dir => require('path').join(__dirname, dir)
// 增加环境变量
process.env.VUE_APP_VERSION = require('./package.json').version
process.env.VUE_APP_BUILD_TIME = require('dayjs')().format('YYYY-M-D HH:mm:ss')
const isDev = process.env.NODE_ENV !== 'development'
// 基础路径 注意发布之前要先修改这里
const publicPath = '/dj-carlife-web/'
// const publicPath = '/'
......@@ -62,11 +55,11 @@ const cdn = {
// `${CDN_DOMAIN}/vue-i18n/8.14.0/vue-i18n.esm.js`,
]
}
module.exports = {
publicPath, // 根据你的实际情况更改这里
outputDir: 'copyDirTarget',
lintOnSave: false,
productionSourceMap: true, // 配置SourceMap
devServer: {
// publicPath, // 和 publicPath 保持一致
https: false,
......@@ -99,7 +92,6 @@ module.exports = {
// 'core-js': 'core-js'
}
}
// 非开发环境
if (isDev) {
config.optimization.minimizer[0].options.terserOptions.compress.warnings = false
......@@ -110,7 +102,6 @@ module.exports = {
]
}
// console.log(config)
// const Plugins = [
// new MiniCssExtractPlugin({
// // Options similar to the same options in webpackOptions.output
......@@ -119,7 +110,6 @@ module.exports = {
// chunkFilename: devMode ? 'css/[id].css' : 'css/[id].[hash].css',
// })]
// config.plugins = [...config.plugins, ...Plugins]
const plugins = []
plugins.push(
......@@ -132,13 +122,12 @@ module.exports = {
if (isDev) {
plugins.push(
new SpeedMeasurePlugin(),
new CopyDir(), // 把dist 文件修改成有两份来兼容部署时请求目录不一样的情况
new AsyncRomveDir()
new CopyDir() // 把dist 文件修改成有两份来兼容部署时请求目录不一样的情况
// new AsyncRomveDir()
)
}
config.plugins = [...config.plugins, ...plugins]
// sentry 配置
process.env.NODE_ENV === 'production' &&
Object.assign(config, {
......@@ -155,7 +144,6 @@ module.exports = {
]
})
},
// 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js
chainWebpack: config => {
/**
......@@ -223,7 +211,6 @@ module.exports = {
config.resolve.alias
.set('@', resolve('src'))
.set('@api', resolve('src/api'))
if (isDev) {
config.plugin('html').tap(args => {
// 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!