diff --git a/.idea/misc.xml b/.idea/misc.xml index 28a804d8..1c24890b 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,4 +3,7 @@ + + \ No newline at end of file diff --git a/manager/src/utils/regular.js b/manager/src/utils/regular.js index 05e78f2c..1ef4ce13 100644 --- a/manager/src/utils/regular.js +++ b/manager/src/utils/regular.js @@ -57,3 +57,35 @@ export const URL = // 固话 export const TEL = /0\d{2,3}-\d{7,8}/ + + +// 正整数 +export const INTEGER = { + + pattern: /^[0-9]\d{0,10}|0$/, + message:'请输入正整数' +} + +export const VARCHAR5 = { + pattern:/^.{1,5}$/, + message:'长度应该限制在1-5个字符' +} + +export const VARCHAR20 = { + pattern:/^.{1,20}$/, + message:'长度应该限制在1-20个字符' +} + +export const VARCHAR255 = { + pattern:/^.{1,255}$/, + message:'超出最大长度限制' +} + +export const URL200 = { + pattern:/[a-zA-z]+\:\/\/[^\s]{1,190}/, + message:'请输入长度不超过200的URL地址' +} +export const REQUIRED = { + required: true, + message:'请填写参数' +} diff --git a/manager/src/views/distribution/dataJson.js b/manager/src/views/distribution/dataJson.js index c63e1456..63f61dde 100644 --- a/manager/src/views/distribution/dataJson.js +++ b/manager/src/views/distribution/dataJson.js @@ -24,11 +24,11 @@ export const cashStatusList = [ label:'待处理' }, { - value:'REFUSE', + value:'FAIL_AUDITING', label:'拒绝' }, { - value:'PASS', + value:'VIA_AUDITING', label:'通过' } ] @@ -46,4 +46,4 @@ export const orderStatusList = [ value:'COMPLETE_CASH', label:'提现完成' } -] \ No newline at end of file +] diff --git a/manager/src/views/distribution/distributionCash.vue b/manager/src/views/distribution/distributionCash.vue index f8c213e6..c1316360 100644 --- a/manager/src/views/distribution/distributionCash.vue +++ b/manager/src/views/distribution/distributionCash.vue @@ -1,24 +1,27 @@