diff --git a/common/utils.js b/common/utils.js index 3640f03..870df2e 100644 --- a/common/utils.js +++ b/common/utils.js @@ -220,11 +220,11 @@ let hour = time.getHours(); let minute = time.getMinutes(); let second = time.getSeconds(); - month = month < 10 ? '0'+ month +'-' : month +'-'; + month = month < 10 ? '0'+ month +'/' : month +'/'; date = date < 10 ? '0'+ date : date; hour = hour < 10 ? '0'+ hour + ":" : hour + ":"; - minute = minute < 10 ? '0'+ minute : minute + ":"; - second = second < 10 ? '0'+ second : second; + minute = minute < 10 ? '0'+ minute + ':' : minute + ":"; + second = second < 10 ? '0'+ second : second let str = String(year)+String(month)+String(date)+ ' ' + String(hour) + String(minute) + String(second); return str; } diff --git a/common/utils.js b/common/utils.js index 3640f03..870df2e 100644 --- a/common/utils.js +++ b/common/utils.js @@ -220,11 +220,11 @@ let hour = time.getHours(); let minute = time.getMinutes(); let second = time.getSeconds(); - month = month < 10 ? '0'+ month +'-' : month +'-'; + month = month < 10 ? '0'+ month +'/' : month +'/'; date = date < 10 ? '0'+ date : date; hour = hour < 10 ? '0'+ hour + ":" : hour + ":"; - minute = minute < 10 ? '0'+ minute : minute + ":"; - second = second < 10 ? '0'+ second : second; + minute = minute < 10 ? '0'+ minute + ':' : minute + ":"; + second = second < 10 ? '0'+ second : second let str = String(year)+String(month)+String(date)+ ' ' + String(hour) + String(minute) + String(second); return str; } diff --git a/packageIndex/recordDetail/recordDetail.vue b/packageIndex/recordDetail/recordDetail.vue index 72a391c..e70871b 100644 --- a/packageIndex/recordDetail/recordDetail.vue +++ b/packageIndex/recordDetail/recordDetail.vue @@ -139,7 +139,7 @@ this.form = info this.form.reportType = this.reportTypeList.filter(item => item.id === Number(this.form.reportType))[0]?.label this.form.infoSource = String(this.form.reportType) === '10' ? '其他' : this.infoSourceList.filter(item => item.id === Number(this.form.infoSource))[0]?.label - + }, stamp2Time:stamp2Time, } diff --git a/common/utils.js b/common/utils.js index 3640f03..870df2e 100644 --- a/common/utils.js +++ b/common/utils.js @@ -220,11 +220,11 @@ let hour = time.getHours(); let minute = time.getMinutes(); let second = time.getSeconds(); - month = month < 10 ? '0'+ month +'-' : month +'-'; + month = month < 10 ? '0'+ month +'/' : month +'/'; date = date < 10 ? '0'+ date : date; hour = hour < 10 ? '0'+ hour + ":" : hour + ":"; - minute = minute < 10 ? '0'+ minute : minute + ":"; - second = second < 10 ? '0'+ second : second; + minute = minute < 10 ? '0'+ minute + ':' : minute + ":"; + second = second < 10 ? '0'+ second : second let str = String(year)+String(month)+String(date)+ ' ' + String(hour) + String(minute) + String(second); return str; } diff --git a/packageIndex/recordDetail/recordDetail.vue b/packageIndex/recordDetail/recordDetail.vue index 72a391c..e70871b 100644 --- a/packageIndex/recordDetail/recordDetail.vue +++ b/packageIndex/recordDetail/recordDetail.vue @@ -139,7 +139,7 @@ this.form = info this.form.reportType = this.reportTypeList.filter(item => item.id === Number(this.form.reportType))[0]?.label this.form.infoSource = String(this.form.reportType) === '10' ? '其他' : this.infoSourceList.filter(item => item.id === Number(this.form.infoSource))[0]?.label - + }, stamp2Time:stamp2Time, } diff --git a/packageMine/accountBound/accountBound.vue b/packageMine/accountBound/accountBound.vue index 6a0343a..bae0226 100644 --- a/packageMine/accountBound/accountBound.vue +++ b/packageMine/accountBound/accountBound.vue @@ -92,11 +92,11 @@ message: '请填写密码', trigger: ['blur', 'change'] }, - { - min: 8, - max: 30, - message: '长度在8-30个字符之间' - }, + // { + // min: 8, + // max: 30, + // message: '长度在8-30个字符之间' + // }, ], // 验证码规则 'code': [