NEZ-925 fix: 提交修复内容

This commit is contained in:
chenjinsong
2021-08-23 14:03:47 +08:00
parent 8dd6fa475d
commit 724c4ab720
2 changed files with 15 additions and 9 deletions

View File

@@ -84,10 +84,10 @@ export default {
rules: {
name: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
],
state: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
]
// state: [
// { required: true, message: this.$t('validate.required'), trigger: 'blur' }
// ]
},
areaData: [],
coordinateFlag: false
@@ -118,6 +118,7 @@ export default {
if (this.editDc.id) {
const param = { ...this.editDc }
const attr = this.$refs.latlngPicker.getAttribute()
console.log(attr)
param.latitude = attr.latitude
param.longitude = attr.longitude
this.$put('/dc', param).then(response => {
@@ -134,6 +135,9 @@ export default {
if (param.area) {
param.areaId = param.area.id
}
const attr = this.$refs.latlngPicker.getAttribute()
param.latitude = attr.latitude
param.longitude = attr.longitude
if (!regNum.test(param.longitude)) {
param.longitude = null
}