bug: 国内标准编辑提交后,实施日期都变成了1910-01-01号
This commit is contained in:
@@ -2281,6 +2281,7 @@ export default {
|
||||
},
|
||||
// 编辑标准属性
|
||||
selectStandardPro (item, state) {
|
||||
debugger
|
||||
this.id = item.id
|
||||
this.collectId = item.collectId
|
||||
this.addOrUPdateFlag = 2
|
||||
@@ -3096,6 +3097,7 @@ export default {
|
||||
},
|
||||
// 保存或修改标准
|
||||
saveOrUpdateStands () {
|
||||
debugger
|
||||
this.isSubmit = true
|
||||
this.$refs['sarStandardsInfoForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
@@ -3122,7 +3124,7 @@ export default {
|
||||
const value = nowstandinfo[item.attrField]
|
||||
// 时间格式处理
|
||||
if (item.attrType === 'DATE_PICKER' && value) {
|
||||
nowstandinfo[item.attrField] = this.$dateFormat(this.sarStandardsInfoEO[item.attrField], 'yyyy-MM-dd hh:mm:ss')
|
||||
nowstandinfo[item.attrField] = this.sarStandardsInfoEO[item.attrField]
|
||||
}
|
||||
// 数组处理
|
||||
if (item.attrType === 'SEL_OPTION' || item.attrType === 'SEL_OPTS') {
|
||||
@@ -3133,6 +3135,7 @@ export default {
|
||||
sarStandAttrObj[item.attrField] = nowstandinfo[item.attrField]
|
||||
})
|
||||
nowstandinfo['sarStandAttrEOStr'] = JSON.stringify(sarStandAttrObj).replace(/"/g, "'")
|
||||
console.log(nowstandinfo, '提交参数')
|
||||
this.$http.postData(this.addOrUPdateFlag === 1 ? 'sarStandardsInfo/sar-standards-info/addarStandardsInfo' : 'sarStandardsInfo/sar-standards-info/updateSarStandardsInfo', nowstandinfo, {
|
||||
_this: this
|
||||
}, res => {
|
||||
|
||||
Reference in New Issue
Block a user