|
@ -20,7 +20,7 @@ import Dialog from "@screen/components/Dialog/index.vue"; |
|
|
import Button from "@screen/components/Buttons/Button.vue" |
|
|
import Button from "@screen/components/Buttons/Button.vue" |
|
|
import Form from '@screen/components/FormConfig'; |
|
|
import Form from '@screen/components/FormConfig'; |
|
|
|
|
|
|
|
|
import * as PresetFormItems from "@screen/pages/control/event/event/FormEvent/PresetFormItems.js"; |
|
|
import * as PresetFormItems from "@screen/common/PresetFormItems.js"; |
|
|
import request from "@/utils/request"; |
|
|
import request from "@/utils/request"; |
|
|
import { CameraDirectionEnumList } from "@screen/utils/enum.js" |
|
|
import { CameraDirectionEnumList } from "@screen/utils/enum.js" |
|
|
import { Message } from "element-ui"; |
|
|
import { Message } from "element-ui"; |
|
@ -53,7 +53,7 @@ export default { |
|
|
key: "parentId", |
|
|
key: "parentId", |
|
|
type: 'select', |
|
|
type: 'select', |
|
|
options: { |
|
|
options: { |
|
|
clearable: true, |
|
|
clearable: false, |
|
|
options: [] |
|
|
options: [] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -171,11 +171,11 @@ export default { |
|
|
this.formData = |
|
|
this.formData = |
|
|
!this.data ? null : { |
|
|
!this.data ? null : { |
|
|
"parentId": this.data.dcOrganizations.parentId, |
|
|
"parentId": this.data.dcOrganizations.parentId, |
|
|
"organizationType": this.data.dcOrganizations.organizationType, |
|
|
// "organizationType": this.data.dcOrganizations.organizationType, |
|
|
"organizationName": this.data.dcOrganizations.organizationName, |
|
|
"organizationName": this.data.dcOrganizations.organizationName, |
|
|
"direction": this.data.dcOrganizations.direction, |
|
|
"direction": this.data.dcOrganizations.direction, |
|
|
"organizationAddress": this.data.dcOrganizations.organizationAddress, |
|
|
"organizationAddress": this.data.dcOrganizations.organizationAddress, |
|
|
"stakeMark": [...(this.data.dcOrganizations.stakeMark || "").match(/[0-9]+/g)], |
|
|
"stakeMark": this.data.dcOrganizations.stakeMark ? [...(this.data.dcOrganizations.stakeMark || "").match(/[0-9]+/g)] : ["", ""], |
|
|
"rescueUnit": this.data.dcOrganizations.rescueUnit, |
|
|
"rescueUnit": this.data.dcOrganizations.rescueUnit, |
|
|
"description": this.data.dcOrganizations.description |
|
|
"description": this.data.dcOrganizations.description |
|
|
} |
|
|
} |
|
@ -190,6 +190,7 @@ export default { |
|
|
const result = await getSelectOptionsStation(1); |
|
|
const result = await getSelectOptionsStation(1); |
|
|
|
|
|
|
|
|
this.formList[0].options.options = result; |
|
|
this.formList[0].options.options = result; |
|
|
|
|
|
this.formList[0].default = result[0]?.key; |
|
|
}, |
|
|
}, |
|
|
handleSubmit() { |
|
|
handleSubmit() { |
|
|
this.$refs.FormConfigRef.validate() |
|
|
this.$refs.FormConfigRef.validate() |
|
@ -200,9 +201,9 @@ export default { |
|
|
|
|
|
|
|
|
if (typeof data.parentId != 'number') data.parentId = 0; |
|
|
if (typeof data.parentId != 'number') data.parentId = 0; |
|
|
if (data.stakeMark[0]) { |
|
|
if (data.stakeMark[0]) { |
|
|
data.stakeMark = `K${data.stakeMark[0]}+${data.stakeMark[1]}` |
|
|
data.stakeMark = `K${data.stakeMark[0]}+${data.stakeMark[1]}`; |
|
|
}else{ |
|
|
}else{ |
|
|
data.stakeMark = '' |
|
|
data.stakeMark = ''; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
request({ |
|
|
request({ |
|
|