|
@@ -63,7 +63,7 @@
|
|
|
<!-- 地图 -->
|
|
|
<supermapDialog1 ref="supermapDialog1"
|
|
|
style="position: absolute; top:0;left: 0;"
|
|
|
- :mapDiv="'forestWarmSuperMap'"
|
|
|
+ :mapDiv="'forestWarmSuperMap1'"
|
|
|
:mapSite="{zoom:16,doubleClickZoom:true,dragging:true,scrollWheelZoom:true}"
|
|
|
:codes="['9fa5']"
|
|
|
:isSideBySide="false"
|
|
@@ -1804,6 +1804,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ eventTypeXl:null,
|
|
|
isLoading:false,
|
|
|
//海康
|
|
|
cameraTitle: '',
|
|
@@ -2630,12 +2631,16 @@ export default {
|
|
|
if (eventStatus == 'qs') {//签收
|
|
|
that.eventConfirmTitle = '事件签收'
|
|
|
let param = { parentId: that.eventType }
|
|
|
- await listSJfl(param).then(res => {
|
|
|
- //事件类型
|
|
|
- if (res.code == 200) {
|
|
|
- that.eventTypeList = res.data
|
|
|
- }
|
|
|
- })
|
|
|
+ if(that.eventTypeXl != null){
|
|
|
+ that.sendEventType = that.eventTypeXl;
|
|
|
+ }else{
|
|
|
+ await listSJfl(param).then(res => {
|
|
|
+ //事件类型
|
|
|
+ if (res.code == 200) {
|
|
|
+ that.eventTypeList = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
await listYuAn().then(res => {
|
|
|
//关联预案
|
|
|
if (res.code == 200) {
|
|
@@ -2691,7 +2696,7 @@ export default {
|
|
|
}
|
|
|
} else {//事件提交后台
|
|
|
if (eventStatus == 'ld') {
|
|
|
- //事件处理流程--联动
|
|
|
+ //事件处理流程--联动1
|
|
|
let array = that.$refs.LiandongDept.getCheckedNodes()
|
|
|
if (array != null && array.length > 0) {
|
|
|
for (let i = 0; i < array.length; i++) {
|
|
@@ -2752,28 +2757,30 @@ export default {
|
|
|
})
|
|
|
|
|
|
} else if (eventStatus == 'gd') {
|
|
|
- let double = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; //数字和两位小数
|
|
|
- let number = /^[+]{0,1}(\d+)$/g; //正整数
|
|
|
+ if(that.eventTypeXl == 101){
|
|
|
+ let double = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; //数字和两位小数
|
|
|
+ let number = /^[+]{0,1}(\d+)$/g; //正整数
|
|
|
|
|
|
- if(!double.test(that.table2.areaTotal)){
|
|
|
- that.$message.error(`面积只能填写到小数后两位!`)
|
|
|
- return
|
|
|
- }
|
|
|
- if(!number.test(that.table2.peopleTotal)){
|
|
|
- that.$message.error(`人员请填写正整数!`)
|
|
|
- return
|
|
|
- }
|
|
|
- if(that.table2.forestComposition == '' || that.table2.forestComposition==null){
|
|
|
- that.$message.error(`林木组成不能为空!`)
|
|
|
- return
|
|
|
- }
|
|
|
- if(that.table2.forestToken == '' || that.table2.forestToken==null){
|
|
|
- that.$message.error(`林令不能为空!`)
|
|
|
- return
|
|
|
- }
|
|
|
- if(that.table2.porosities == '' || that.table2.porosities==null){
|
|
|
- that.$message.error(`疏密度不能为空!`)
|
|
|
- return
|
|
|
+ if(!double.test(that.table2.areaTotal)){
|
|
|
+ that.$message.error(`面积只能填写到小数后两位!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!number.test(that.table2.peopleTotal)){
|
|
|
+ that.$message.error(`人员请填写正整数!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(that.table2.forestComposition == '' || that.table2.forestComposition==null){
|
|
|
+ that.$message.error(`林木组成不能为空!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(that.table2.forestToken == '' || that.table2.forestToken==null){
|
|
|
+ that.$message.error(`林令不能为空!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(that.table2.porosities == '' || that.table2.porosities==null){
|
|
|
+ that.$message.error(`疏密度不能为空!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//事件处理流程--归档
|
|
@@ -2797,8 +2804,17 @@ export default {
|
|
|
that.$emit('getSupermap', that.calendarDay)
|
|
|
}
|
|
|
})
|
|
|
+ } else if(eventStatus == 'cz'){
|
|
|
+ eventHandling(that.eventId,that.eventCode).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ that.$message.success(`处理成功!`)
|
|
|
+ that.refreshEvent(that.eventCode)
|
|
|
+ that.cancelEventConfirm_send()
|
|
|
+ that.showEventConfirm = false
|
|
|
+ }
|
|
|
+ })
|
|
|
} else {
|
|
|
- if (eventStatus == 'qs') {
|
|
|
+ if (eventStatus == 'qs' ) {
|
|
|
if (that.sendDeptId == '' || that.sendDeptId == null || that.sendDeptName == '' || that.sendDeptName == null) {
|
|
|
that.$message.error(`请选择部门!`)
|
|
|
return
|
|
@@ -2834,10 +2850,10 @@ export default {
|
|
|
that.showEventConfirm = false
|
|
|
that.$emit('getEventList', that.calendarDay,10,1)
|
|
|
that.$emit('getSupermap', that.calendarDay)
|
|
|
- if (eventStatus == "cf" || eventStatus == "wb") {
|
|
|
- this.eventDialog = false;
|
|
|
- return;
|
|
|
- }
|
|
|
+ if (eventStatus == "cf" || eventStatus == "wb") {
|
|
|
+ this.eventDialog = false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
that.refreshEvent(that.eventCode)
|
|
|
}
|
|
|
})
|
|
@@ -3062,9 +3078,12 @@ export default {
|
|
|
// 获取父标签,意思是这个标签内的 DOM 元素生成图片
|
|
|
// imageTofile是给截图范围内的父级元素自定义的ref名称
|
|
|
// let canvasBox = this.$refs.imageTofile
|
|
|
- let canvasBox = document.getElementById('forestWarmSuperMap')
|
|
|
+ let canvasBox = document.getElementById('forestWarmSuperMap1')
|
|
|
let toolbar = document.getElementById('toolbar')
|
|
|
- canvasBox.removeChild(toolbar)
|
|
|
+ if(toolbar!=null)
|
|
|
+ {
|
|
|
+ canvasBox.removeChild(toolbar)
|
|
|
+ }
|
|
|
// 获取父级的宽高
|
|
|
const width = parseInt(window.getComputedStyle(canvasBox).width)
|
|
|
const height = parseInt(window.getComputedStyle(canvasBox).height)
|
|
@@ -3086,6 +3105,7 @@ export default {
|
|
|
let dataBase64 = canvas.toDataURL('image/png')
|
|
|
this.uploadBase64(dataBase64)
|
|
|
})
|
|
|
+
|
|
|
canvasBox.appendChild(toolbar)
|
|
|
},
|
|
|
uploadBase64(dataBase64) {
|