Commit 3de2f569 by 前端

Merge branch 'dev_v4.8.0' into 'develop'

Dev v4.8.0

See merge request !27
2 parents 38219f37 400ae7b4
......@@ -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
......@@ -45,8 +45,8 @@ const request = (
reqData = reqData = Object.assign(reqData, options, {})
// console.log(method === RequestMethods.POST)
// console.log(url)
console.log(options)
console.log(reqData)
// console.log(options)
// console.log(reqData)
return axios({
url,
method,
......
......@@ -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')
......
......@@ -48,7 +48,8 @@ if (!isProd) {
process.env.NODE_ENV === 'production' &&
Sentry.init({
Vue,
dsn: 'http://6225fb8e73fb453a8455a9371f3517da@192.168.3.115:9000/4',
dsn: 'http://c130dfd99792456ca835ca54680a8bbf@sentry.glsx.com.cn/14',
// dsn: 'http://6225fb8e73fb453a8455a9371f3517da@192.168.3.115:9000/4',
integrations: [
new BrowserTracing({
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
......@@ -61,19 +62,24 @@ process.env.NODE_ENV === 'production' &&
tracesSampleRate: 1.0,
logErrors: true
})
// console.log(test)
// Vue.use(D2Crud)
var baseConfig = ''
axios({
// baseURL: process.env.VUE_APP_REPO + '/dj-car-life-system-config-test',
baseURL: process.env.VUE_APP_REPO + '/dj-car-life-system-config',
// baseURL:
// 'http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=dj-car-life-system-config',
// 'http://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=dj-car-life-system-config',
// 'http://config-center-front.glsx.com.cn/glsxAdmin/config?moduleUrl=dj-car-life-system-config',
method: 'get'
}).then(({ data }) => {
// console.log(data)
// let {data} = res
baseConfig = data
}).then(res => {
const { data, status, code } = res
// const { status, code } = res.data
// console.log(res)
if (code == '200' || status == '200') {
baseConfig = data
}
console.log(baseConfig)
// baseConfig = data.data
// 先本地切换到测试环境接口
// data.axios.baseURL = 'http://dj.test.glsx.com.cn/rop-dj-smartcarlife/router'
......
// 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': '待出库',
......
......@@ -95,8 +95,11 @@ export default {
label: '主订单编号',
name: 'inputtedOrderCode'
}, {
label: '支付流水号',
label: '交易参考号',
name: 'tradeNo'
}, {
label: '支付订单号',
name: 'outTradeNo'
}],
handleSelectChange: (value) => {
this.searchSelectObj.orderOrTrade.value = ''
......@@ -147,10 +150,14 @@ export default {
listName: 'list',
tableOption: true,
tableColumns: [{
label: '支付流水号',
label: '交易参考号',
prop: 'tradeNo',
width: '160px'
}, {
label: '支付订单号',
prop: 'outTradeNo',
width: '160px'
}, {
label: '支付金额',
prop: 'totalFee',
formatter: (cellValue) => {
......@@ -198,7 +205,8 @@ export default {
},
{
label: '主订单编号',
prop: 'inputtedOrderCode'
prop: 'inputtedOrderCode',
width: '160px'
}
]
},
......
......@@ -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'
......
......@@ -8,19 +8,15 @@ const SentryWebpackPlugin = require('@sentry/webpack-plugin')
// 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,7 +55,6 @@ const cdn = {
// `${CDN_DOMAIN}/vue-i18n/8.14.0/vue-i18n.esm.js`,
]
}
module.exports = {
publicPath, // 根据你的实际情况更改这里
// outputDir: 'copyDirTarget',
......@@ -99,7 +91,6 @@ module.exports = {
// 'core-js': 'core-js'
}
}
// 非开发环境
if (isDev) {
config.optimization.minimizer[0].options.terserOptions.compress.warnings = false
......@@ -110,7 +101,6 @@ module.exports = {
]
}
// console.log(config)
// const Plugins = [
// new MiniCssExtractPlugin({
// // Options similar to the same options in webpackOptions.output
......@@ -119,7 +109,6 @@ module.exports = {
// chunkFilename: devMode ? 'css/[id].css' : 'css/[id].[hash].css',
// })]
// config.plugins = [...config.plugins, ...Plugins]
const plugins = []
plugins.push(
new HardPlugin({
......@@ -132,24 +121,22 @@ module.exports = {
// new AsyncRomveDir()
)
config.plugins = [...config.plugins, ...plugins]
// sentry 配置
process.env.NODE_ENV === 'production' &&
Object.assign(config, {
plugins: [
...config.plugins,
new SentryWebpackPlugin({
// webpack specific configuration
release: '0.0.1',
include: './dist', // 需要上传到sentry服务器的资源目录,会自动匹配js 以及map文件
ignore: ['node_modules', 'vue.config.js'], // 忽略文件目录,当然我们在inlcude中制定了文件路径,这个忽略目录可以不加
configFile: '.sentryclirc',
urlPrefix: '~/dj-carlife-web/'
})
]
})
// process.env.NODE_ENV === 'production' &&
// Object.assign(config, {
// plugins: [
// ...config.plugins,
// new SentryWebpackPlugin({
// // webpack specific configuration
// release: '0.0.1',
// include: './dist', // 需要上传到sentry服务器的资源目录,会自动匹配js 以及map文件
// ignore: ['node_modules', 'vue.config.js'], // 忽略文件目录,当然我们在inlcude中制定了文件路径,这个忽略目录可以不加
// configFile: '.sentryclirc',
// urlPrefix: '~/dj-carlife-web/'
// })
// ]
// })
},
// 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js
chainWebpack: config => {
/**
......@@ -217,7 +204,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!