@ -31,13 +31,7 @@
class = "title-button"
class = "title-button"
@ click = "handleClick"
@ click = "handleClick"
>
>
{ {
{ { ENUM_ImportantFileStatus [ dialogType ] } }
dialogType == "0"
? "重要事件上报"
: dialogType == "1" || dialogType == "2"
? "已初报待续报"
: "重要事件已送报"
} }
< / ButtonGradient >
< / ButtonGradient >
<!-- < ButtonGradient class = "title-button" > 路赔 < / ButtonGradient > -- >
<!-- < ButtonGradient class = "title-button" > 路赔 < / ButtonGradient > -- >
@ -122,19 +116,20 @@
< / ElSelect >
< / ElSelect >
< ButtonGradient
< ButtonGradient
v - if = "detailData.eventState != 2"
v - if = "detailData.eventState != 2"
disabled
class = "title-button special-button"
class = "title-button special-button"
@ click = "onSubmit"
@ click = "onSubmit"
>
>
发送
发送
< / ButtonGradient >
< / ButtonGradient >
< Button v -else disabled style = "border:0" class = "title-button special-button" > 发送 < / Button >
<!-- < ButtonGradient class = "title-button special-button" >
<!-- < ButtonGradient class = "title-button special-button" >
调度预案
调度预案
< / ButtonGradient > -- >
< / ButtonGradient > -- >
< / div >
< / div >
< / Card >
< / Card >
< DialogVisible
< DialogProcess
v - if = "dialogVisible !== null"
v - model = "dialogProcessVisible"
: visible = "dialogVisible"
@ update : value = "handleClose"
@ update : value = "handleClose"
@ update : type = "handleUpdate"
@ update : type = "handleUpdate"
: eventId = "eventId"
: eventId = "eventId"
@ -145,14 +140,16 @@
< script >
< script >
import Card from "@screen/components/Card2/Card.vue" ;
import Card from "@screen/components/Card2/Card.vue" ;
import ButtonGradient from "@screen/components/Buttons/ButtonGradient.vue" ;
import ButtonGradient from "@screen/components/Buttons/ButtonGradient.vue" ;
import Button from "@screen/components/Buttons/Button.vue" ;
import RadioGroup from "@screen/components/FormConfig/components/RadioGroup/index.vue" ;
import RadioGroup from "@screen/components/FormConfig/components/RadioGroup/index.vue" ;
import { getToken } from "@/utils/auth" ;
import { getToken } from "@/utils/auth" ;
import TimeLine1 from "@screen/components/TimeLine/TimeLine1/index" ;
import TimeLine1 from "@screen/components/TimeLine/TimeLine1/index" ;
import TimeLine2 from "@screen/components/TimeLine/TimeLine2/index" ;
import TimeLine2 from "@screen/components/TimeLine/TimeLine2/index" ;
import DialogVisible from "./DialogVisible /index.vue" ;
import DialogProcess from "./DialogProcess /index.vue" ;
import {
import {
getProcessNode ,
getProcessNode ,
getProcessList ,
getProcessList ,
getImportantFileStatus ,
postProcess ,
postProcess ,
postCompleteEvent ,
postCompleteEvent ,
postNoSkipClear ,
postNoSkipClear ,
@ -162,6 +159,7 @@ import {
import { timeLine2List } from "./data" ;
import { timeLine2List } from "./data" ;
import request from "@/utils/request" ;
import request from "@/utils/request" ;
import { provideMixin } from "./../../mixin" ;
import { provideMixin } from "./../../mixin" ;
import { result } from "lodash" ;
export default {
export default {
name : "DisposalProcess" ,
name : "DisposalProcess" ,
@ -174,14 +172,14 @@ export default {
TimeLine1 ,
TimeLine1 ,
TimeLine2 ,
TimeLine2 ,
RadioGroup ,
RadioGroup ,
DialogVisible ,
DialogProcess ,
} ,
} ,
emit : [ "fullHeight" ] ,
emit : [ "fullHeight" ] ,
data ( ) {
data ( ) {
return {
return {
provideDetail : { } ,
provideDetail : { } ,
dialogType : "" ,
dialogType : - 1 ,
dialogVisible : null ,
dialogProcess Visible : null ,
eventId : "" ,
eventId : "" ,
test : null ,
test : null ,
testRadio : "input" ,
testRadio : "input" ,
@ -203,12 +201,19 @@ export default {
fileType : [ "bmp" , "gif" , "jpg" , "jpeg" , "png" , "mp4" , "avi" , "xmvb" ] ,
fileType : [ "bmp" , "gif" , "jpg" , "jpeg" , "png" , "mp4" , "avi" , "xmvb" ] ,
imageUrl : "" ,
imageUrl : "" ,
imageName : "点击上传" ,
imageName : "点击上传" ,
ENUM_ImportantFileStatus : [
'重要事件上报' ,
'已初报待续报' ,
'已续报待终报' ,
'重要事件已报送'
] ,
} ;
} ;
} ,
} ,
watch : {
watch : {
processId ( newVlaue , oldValue ) {
processId ( newVlaue , oldValue ) {
if ( newVlaue === '' ) {
if ( newVlaue === '' ) {
this . processName = ''
this . processName = ''
this . processType = ''
}
}
this . options . forEach ( ( element ) => {
this . options . forEach ( ( element ) => {
if ( newVlaue == element . nodeNode ) {
if ( newVlaue == element . nodeNode ) {
@ -234,9 +239,11 @@ export default {
this . provideDetail = newValue ;
this . provideDetail = newValue ;
this . eventId = newValue . id ;
this . eventId = newValue . id ;
this . getProcess ( ) ;
this . getProcess ( ) ;
this . getImportantStatus ( ) ;
await this . disposalRecords ( this . eventId ) ;
await this . disposalRecords ( this . eventId ) ;
/ / 获 取 重 要 事 件 状 态
/ / c o n s o l e . l o g ( " 建 亭 侯 " , t h i s . p r o v i d e D e t a i l ) ;
} ,
} ,
} ,
} ,
methods : {
methods : {
@ -250,6 +257,15 @@ export default {
this . $emit ( "fullHeight" , "CrowdnessIndicatorRankings" ) ;
this . $emit ( "fullHeight" , "CrowdnessIndicatorRankings" ) ;
} ,
} ,
/ /
getImportantStatus ( ) {
getImportantFileStatus ( this . eventId ) . then ( result => {
if ( result . code === 200 ) {
this . dialogType = result . data
} ;
} )
} ,
/ / 处 置 过 程 节 点
/ / 处 置 过 程 节 点
getProcess ( ) {
getProcess ( ) {
getProcessNode ( this . eventId ) . then ( ( result ) => {
getProcessNode ( this . eventId ) . then ( ( result ) => {
@ -338,6 +354,7 @@ export default {
this . disposalRecords ( this . eventId ) ;
this . disposalRecords ( this . eventId ) ;
this . processId = "" ;
this . processId = "" ;
this . processName = "" ;
this . processName = "" ;
this . processType = "" ;
this . testRadio = "input" ;
this . testRadio = "input" ;
this . context = "" ;
this . context = "" ;
this . imageUrl = "" ;
this . imageUrl = "" ;
@ -390,14 +407,13 @@ export default {
} ,
} ,
handleClick ( ) {
handleClick ( ) {
this . dialogVisible = true ;
this . dialogProcess Visible = true ;
} ,
} ,
handleClose ( ) {
handleClose ( ) {
this . dialogVisible = false ;
this . dialogProcess Visible = false ;
} ,
} ,
handleUpdate ( val ) {
handleUpdate ( val ) {
this . dialogType = val ;
this . dialogType = val ;
console . log ( "传过来的状态" , val ) ;
} ,
} ,
} ,
} ,
async mounted ( ) {
async mounted ( ) {