<template>
<el-container style="padding: 00px 20px 0px 20px">
<el-dialog
title="售电公司注册审批记录"
:visible.sync="innerVisible"
width="60%"
@close="closeDialog"
:close-on-click-modal="true"
:modal="false"
>
</el-dialog>
</el-container>
</template> <script>
import FlowNodeInsInfoRegApi from '@/api/pxf-service-imarketservice/imarketMemberManage/registerCheck/FlowNodeInsInfoRegApi'
import moment from 'moment'
export default {
props: {
accessVisible: Boolean,
membersRegInfo: {
type: Object,
default: function() {
return {}
}
},
states: {
type: Object,
default: function() {
return {}
}
},
processNum: {
type: String,
default: ''
}
},
data() {
return {
innerVisible: false,
mmFlowNodeInsInfoRegList: [],
scopeFlowNodeInsInfoRegList: [],
scopeInfos: [],
scopeProcessNum: '',
scopeAll: '',
}
},
watch: { accessVisible(newValue) {
this.innerVisible = newValue
}
},
mounted() {
if (this.accessVisible) {
this.init()
this.queryByProcessNum(this.processNum, 1)
this.queryByProcessNum(this.scopeProcessNum, 0)
}
},
methods: {
closeDialog() {
this.$emit('close-dialog')
},
close() {
this.$emit('update:visible') // 传递关闭事件
this.$emit('close-dialog')
},
closeModal(e) {
if (this.visible) {
document.querySelector('.dialog').contains(e.target) ? '' : this.close() // 判断点击的落点在不在dialog对话框内,如果在对话框外就调用this.close()方法关闭对话框
}
},
init() {
this.scopeInfos = this.membersRegInfo.scopeInfos.filter(item => item.isRegAdd !== 1 && item.state !== '01')
// 默认第一业务范围
this.scopeProcessNum = ''
if (this.scopeInfos.length > 0) {
if (this.scopeProcessNum === '') {
this.scopeProcessNum = this.scopeInfos[0].processNum
}
}
// 拼接所有业务范围
this.scopeAll = ''
this.membersRegInfo.scopeInfos.forEach((item) => {
this.scopeAll += item.name + '、'
})
if (this.scopeAll.indexOf('、') > -1) {
this.scopeAll = this.scopeAll.substr(0, this.scopeAll.length - 1)
}
},
queryByProcessNum(processNum, isRegAdd) {
if (!processNum) {
return
}
FlowNodeInsInfoRegApi.queryByProcessNum(processNum).then(result => {
if (isRegAdd === 1) {
this.mmFlowNodeInsInfoRegList = result.data
} else {
this.scopeFlowNodeInsInfoRegList = result.data
}
}).catch(err => {
console.log(err)
})
},
applicationDateFormat(row) {
var date = row.applicationDate
if (!date) {
return ''
}
return moment(date).format('YYYY-MM-DD')
},
dateFormat(row, column) {
var date = row[column.property]
if (!date) {
return ''
}
return moment(date).format('YYYY-MM-DD HH:mm:ss')
},
close() {
this.$emit('close-dialog')
},
formatterState(row, column) {
var state = row[column.property]
return this.states[state]
}
}
}
</script> <style scoped> </style>

element 弹框关闭报错的更多相关文章

  1. angularJs $mdDialog和$uibModal弹框关闭传值

    $mdDialog以一个点击button按钮出现弹框为例: $scope.btn=function($event,row){ var dScope = $scope.$new(true); dScop ...

  2. 记一次layui弹框关闭问题

    我在博客园记录过layui关于弹框关闭问题,文章为layui关闭弹出层,这次出现了特殊情况,之前是通过layer.closeAll()解决了这个问题,但是这次解决不了.而换成parent.layer. ...

  3. 关于点击弹框外部区域弹框关闭的交互处理(前端JS)

    常见需求场景 前端在处理交互的时候,经常遇到这样的场景,点击一个按钮,出现一个弹框,点击外部区域,弹框关闭. 解决方法 思路说明: 1.给弹框的div父级都加个类名,如: 2.在document绑定一 ...

  4. TOMCAT 关闭报错:Tomcat did not stop in time. PID file was not removed

    关闭tomcat的时候,报出如下错误信息: # ./shutdown.sh Using CATALINA_BASE: /opt/openkm-6.3.1-community/tomcat Using ...

  5. Element和vue框架报错提示

    上面报错提示Error in render function: "TypeError:Cannot read property '$options' of undefined" 就 ...

  6. spring boot thymeleaf 标签未关闭报错

    每天学习一点点 编程PDF电子书免费下载: http://www.shitanlife.com/code spring boot,input标签未关闭报bug,代码稍有不慎就出小问题,后来百度,goo ...

  7. netty-websocket-spring-boot-starter关闭报错 io/netty/channel/AbstractChannel$AbstractUnsafe io/netty/util/concurrent/GlobalEventExecutor

    报错 java.lang.NoClassDefFoundError: io/netty/channel/AbstractChannel$AbstractUnsafe$ at io.netty.chan ...

  8. gridView AspNetPager 翻页时 弹出窗体关闭报错

    gridView AspNetPager 翻页后,你右击刷新或F5会发现弹出一个刷新页面. 这是因为默认翻页都是用dopostback方式回发的.因为这时的页面已经不是原来的页面.所以会弹出提示. 这 ...

  9. mysql配置mha高可用防火墙未关闭报错

    ########################################################################## l  问题背景:检查主从复制之后做高可用报错 [r ...

随机推荐

  1. LCA【Tarjan】

    首先,我们先来了解LCA. LCA 是树上两个点最近的公共祖先. 比如说,在如图的树中,3与4的公共祖先有“2”,“1”,但最近的祖先是“2”. 显然,暴力可以做O(n),但是我们希望更快. 现在,有 ...

  2. Ubuntu 16.04下使用docker部署Redis主从复制

    (以下docker相关的命令,需要在root用户环境下或通过sudo提升权限来进行操作.) 1.拉取Redis镜像到本地 docker pull redis 2. 准备Redis主从配置文件 Redi ...

  3. Windows server 2003+IIS6+PHP5.4.45环境搭建教程

    今天试了一下升级到PHP 5.4.45,但是却发现了不少问题.在以前PHP 5.2.X中,只需要使用php5isapi.dll的方式就可以,但在PHP 5.3以后却不再支持ISAPI模式了,也没有此文 ...

  4. linux-解决添加的网卡无法识别的问题

    添加网卡之后,网卡无法被正确的识别和使用排错方法 查看/etc/udev/rules.d/70-persistent-net.rules的内容,该文件中可以查看到新添加的网卡的MAC地址 修改/etc ...

  5. 我的"开发工具箱"

    我使用的IDEA插件 Free Mybatis plugin Alibaba Java Coding Guidelines 我的IDEA开发配置 配置Maven Runner -DarchetypeC ...

  6. 10.6 Comment Syntax

    w https://dev.mysql.com/doc/refman/5.7/en/comments.html MySQL 5.7 Reference Manual  /  Language Stru ...

  7. 关闭掉mysql 8和mysql5.7的密码验证插件validate_password

    在mysql文档中的一段话If you installed MySQL 5.7 using the MySQL Yum repository, MySQL SLES Repository, or RP ...

  8. 《JavaScript 高级程序设计》

    第 3 章 基本概念 3.5.2 位操作符 ECMAScript 中所有数值都是以 IEEE-754 64 位格式存储,但位操作符并不直接操作 64 位的值.而是先将 64 位的值转换成 32 位的整 ...

  9. uni-app学习资料整理-1.白话uni-app

    白话uni-app  https://ask.dcloud.net.cn/article/35657 文件内代码架构的变化 以前一个html大节点,里面有script和style节点: 现在templ ...

  10. truncate()函数

    1 truncate()方法用于截断文件,如果指定了可选参数 size,则表示截断文件为 size 个字符,截断之后 size 后面的所有字符被删除. 参考: https://www.runoob.c ...