diff --git a/src/assets/js/myConfig.js b/src/assets/js/myConfig.js
index 2b02ed9..ffe26be 100644
--- a/src/assets/js/myConfig.js
+++ b/src/assets/js/myConfig.js
@@ -4,6 +4,7 @@ const headerCellStyle = {
'font-weight': '700'
}
+// 动态控制表单斑马格颜色 主要是怕需求变更又得改很多。
const tableRowClassName = function({row, rowIndex}) {
if (rowIndex % 2 === 1) {
return 'warning-row';
diff --git a/src/components/checkPhoto/index.vue b/src/components/checkPhoto/index.vue
index 12eae47..bd0987f 100644
--- a/src/components/checkPhoto/index.vue
+++ b/src/components/checkPhoto/index.vue
@@ -212,6 +212,21 @@ export default {
methods: {
closeIt() {
this.$emit('update:showImg', false)
+ },
+ test() {
+ const str = '2018年结束了,2019年开始了,2020年就也不远了'
+ const rex = /\d+/g // 这里是定义匹配规则,匹配字符串里的1到多个数字
+ const str1 = str.replace(rex, '****')
+ console.log(str1) // 输出:"****年结束了,****年开始了,****年也不远了"
+ const str2 = str.replace(rex, function(item){
+ console.log(arguments) // 看下面的图片
+ const arr = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
+ let newStr = ''
+ item.split('').map(function(i){
+ newStr += arr[i]
+ })
+ return newStr
+ })
}
},
diff --git a/src/components/dialogTwo/index.vue b/src/components/dialogTwo/index.vue
index 4fa4c3c..9fcac69 100644
--- a/src/components/dialogTwo/index.vue
+++ b/src/components/dialogTwo/index.vue
@@ -60,6 +60,9 @@