Commit 20ccdd73 by 张立顺

fix:第一轮bug修复

1 parent bb712e5a
Showing 660 changed files with 59 additions and 6 deletions
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
526802676d7fbdc3945be6c83f1ec40b_c203b3a54ce295ba780fd5144684a8f104ef5cf979ac5406bc1c3b824e5db172
\ No newline at end of file \ No newline at end of file
0.13.1
\ No newline at end of file \ No newline at end of file
const fs = require('fs')
const path = require('path')
class copyDir {
apply(compiler) {
// done是webpack 得编译完成周期
compiler.hooks.done.tap('DonePlugins', function(stats) {
// console.log('编译完成!!')
cpSync(path.join(__dirname, '/dist'), path.join(__dirname, '/testDist'))
})
}
}
/** 主要版本 */
const major = process.version.match(/v([0-9]*).([0-9]*)/)[1]
/** 特性版本 */
const minor = process.version.match(/v([0-9]*).([0-9]*)/)[2]
/**
* 文件夹复制
* @param {string} source 源文件夹
* @param {string} destination 目标文件夹
*/
function cpSync(source, destination) {
console.log('source', source)
// 判断node版本不是16.7.0以上的版本
// 则进入兼容处理
// 这样处理是因为16.7.0的版本支持了直接复制文件夹的操作
if (Number(major) < 16 || (Number(major) == 16 && Number(minor) < 7)) {
// 如果存在文件夹 先递归删除该文件夹
if (fs.existsSync(destination)) fs.rmSync(destination, { recursive: true })
// 新建文件夹 递归新建
fs.mkdirSync(destination, { recursive: true })
// 读取源文件夹
const rd = fs.readdirSync(source)
console.log('rd', rd)
for (const fd of rd) {
// 循环拼接源文件夹/文件全名称
const sourceFullName = source + '/' + fd
// 循环拼接目标文件夹/文件全名称
const destFullName = destination + '/' + fd
// 读取文件信息
const lstatRes = fs.lstatSync(sourceFullName)
// 是否是文件
if (lstatRes.isFile()) fs.copyFileSync(sourceFullName, destFullName)
// 是否是文件夹
if (lstatRes.isDirectory()) cpSync(sourceFullName, destFullName)
}
} else fs.cpSync(source, destination, { force: true, recursive: true })
}
module.exports = copyDir
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
"qs": "^6.8.0", "qs": "^6.8.0",
"screenfull": "^4.2.0", "screenfull": "^4.2.0",
"sha1": "^1.1.1", "sha1": "^1.1.1",
"speed-measure-webpack-plugin": "^1.5.0",
"ua-parser-js": "^0.7.19", "ua-parser-js": "^0.7.19",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-i18n": "^8.14.0", "vue-i18n": "^8.14.0",
...@@ -59,6 +60,7 @@ ...@@ -59,6 +60,7 @@
"babel-jest": "^23.6.0", "babel-jest": "^23.6.0",
"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",
"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",
......
...@@ -325,8 +325,8 @@ ...@@ -325,8 +325,8 @@
<span v-if="!isSecondSetEdit"> <span v-if="!isSecondSetEdit">
<span>{{accountSecondSetForm.installCostCalculateType | filterCostLabel(accountSecondSetForm.installCostSettleType,accountSecondSetForm.installCostValue)}}</span> <span>{{accountSecondSetForm.installCostCalculateType | filterCostLabel(accountSecondSetForm.installCostSettleType,accountSecondSetForm.installCostValue)}}</span>
<span <span
class="m-l-lable targetObj">目标分账对象:{{accountSetForm.installCostPartnerMerchant.merchantName}} class="m-l-lable targetObj">目标分账对象:{{accountSetForm.installCostPartnerMerchant.merchantName|| filterMerchantName(accountSecondSetForm.installCostMerchantId)}}
(商户号:{{accountSetForm.installCostPartnerMerchant.merchantId}})</span> (商户号:{{accountSetForm.installCostPartnerMerchant.merchantId||accountSecondSetForm.installCostMerchantId}})</span>
</span> </span>
</el-form-item> </el-form-item>
<el-form-item class="p-l-30 el-item" <el-form-item class="p-l-30 el-item"
...@@ -396,8 +396,8 @@ ...@@ -396,8 +396,8 @@
<span v-if="!isSecondSetEdit"> <span v-if="!isSecondSetEdit">
<span>{{accountSecondSetForm.marketingCostCalculateType | filterCostLabel(accountSecondSetForm.marketingCostSettleType,accountSecondSetForm.marketingCostValue)}}</span> <span>{{accountSecondSetForm.marketingCostCalculateType | filterCostLabel(accountSecondSetForm.marketingCostSettleType,accountSecondSetForm.marketingCostValue)}}</span>
<span <span
class="m-l-lable targetObj">目标分账对象:{{accountSetForm.marketingCostPartnerMerchant.merchantName}} class="m-l-lable targetObj">目标分账对象:{{accountSetForm.marketingCostPartnerMerchant.merchantName|| filterMerchantName(accountSecondSetForm.marketingCostMerchantId)}}
(商户号:{{accountSetForm.marketingCostPartnerMerchant.merchantId}})</span> (商户号:{{accountSetForm.marketingCostPartnerMerchant.merchantId ||accountSecondSetForm.marketingCostMerchantId}})</span>
<!-- <span> <!-- <span>
<span class="title-target-obj">目标分账对象:</span> <span class="title-target-obj">目标分账对象:</span>
<span>{{accountSecondSetForm.parentMerchantName}}(商户号:{{form.parentMerchantId}})</span> <span>{{accountSecondSetForm.parentMerchantName}}(商户号:{{form.parentMerchantId}})</span>
...@@ -603,10 +603,10 @@ export default { ...@@ -603,10 +603,10 @@ export default {
}, },
handleInput(newValue, name, type) { handleInput(newValue, name, type) {
newValue = newValue.replace(/[^\d.]/g, '') // 清除“数字”和“.”以外的字符 newValue = newValue.replace(/[^\d.]/g, '') // 清除“数字”和“.”以外的字符
// console.log(newValue) console.log(newValue)
// 按金额 // 按金额
if (type == 1) { if (type == 1) {
this.accountSecondSetForm[name] = limitPrice(newValue, this.accountSecondSetForm[name], 6, 0, 1) this.accountSecondSetForm[name] = limitPrice(newValue, this.accountSecondSetForm[name], 10, 2,)
// 按百分比 // 按百分比
} else { } else {
// console.log(newValue) // console.log(newValue)
......
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
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.
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.
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.
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.
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.
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!