861da534 by 任超

style:业务申请

1 parent 8fd3ab4e
......@@ -11,7 +11,7 @@
</div>
<div class="ls-mask-content" ref='contentRef' :style="{'height': contentHeight + 'px'}">
<component :is="editItem" ref='childRef' @loading='loadingFn' :formData='formData' />
<component :is="editItem" ref='childRef' @loading='loadingFn' :key="key" :formData='formData' />
</div>
<div class="ls-mask-footer">
<el-button type="primary" @click="onConfirm">{{confirmText}}</el-button>
......@@ -38,24 +38,25 @@ export default {
width: "75%",
height: "auto",
formData: "",//父组件传递的参数 负责传给子组件
contentHeight:"",
iconClass:"",
contentHeight: "",
iconClass: "",
key: 0
}
},
props: {
loading: { type: Boolean, default: false },
},
watch: {
isShow (a, b) {
this.key++
this.editItem = this.loadViewFn(this.editItem)
},
},
mounted(){
mounted () {
// 计算滚动条高度
setTimeout(() => {
this.contentHeight = this.$refs.contentRef.offsetHeight
}, 1000);
}, 1000)
},
methods: {
onCancel () {
......@@ -80,7 +81,7 @@ export default {
require.ensure([], () =>
r(require(`@/views/${view}.vue`))
);
},
}
}
}
</script>
......@@ -109,21 +110,26 @@ export default {
transform: translate(-50%, -50%);
border-radius: 10px;
}
.ls-head{
.ls-head {
position: relative;
}
.ls-mask-window b {
padding-left: 5px;
}
.ls-title{
.ls-title {
padding: 16px;
background: linear-gradient(2deg, #00CCFF, transparent);
color: #ffffff;
}
.ls-title .svg-icon{
.ls-title .svg-icon {
font-size: 18px;
}
}
.ls-mask-content {
padding: 20px;
text-align: center;
......@@ -145,7 +151,7 @@ export default {
}
/deep/.closeStyle{
/deep/.closeStyle {
position: absolute;
top: 17px;
right: 12px;
......@@ -153,10 +159,12 @@ export default {
cursor: pointer;
color: #ffffff;
}
/deep/.el-loading-mask {
background: none;
}
/deep/.el-button{
/deep/.el-button {
margin: 15px 10px;
width: 75px;
}
......
......@@ -101,6 +101,7 @@
.iconName {
line-height: 24px;
font-size: 12px;
white-space: nowrap;
}
.container {
......
......@@ -153,11 +153,8 @@ export default {
case "B0":
let type = queueDjywmc(this.$route.query.sqywbm)
this.$popup({
title: '提示', // 弹窗标题
editItem: 'ywbl/ywsq/components/' + type,
formData: this.formData, //父组件传给子组件的参数
cancel: function () { }, //取消事件的回调
confirm: function () { }, //确认事件的回调
title: '查询权利信息',
editItem: 'ywbl/ywsq/components/houseOwnership',
})
break;
case "B1":
......
......@@ -116,9 +116,9 @@ export default {
// 业务-登记情形选择
handleSelectYw (item, list) {
list.forEach(item => {
item.cselect = false
this.$set(item, 'cselect', false)
})
item.cselect = !item.cselect
item.cselect = true
this.$store.dispatch('ywbl/setDjqxObj', {
'djqxbm': item.nodecode,
'djqxmc': item.nodename,
......@@ -141,18 +141,18 @@ export default {
this.djlxList = []
},
// 获取下个节点类型
getNextNode (bsmSqyw) {
getNextNode (bsmSqyw, type) {
getNextNode(bsmSqyw).then(res => {
if (res.result.djqx) this.djqxList = res.result.djqx
if (res.result.djlx) this.djlxList = res.result.djlx
if (type) {
this.djqxList.forEach(item => {
this.$set(item, 'cselect', false)
this.$set(item, 'select', false)
})
this.djlxList.forEach(item => {
this.$set(item, 'cselect', false)
this.$set(item, 'select', false)
})
}
})
},
handleCollection (item) {
......@@ -165,6 +165,7 @@ export default {
message: '收藏成功!',
type: 'success'
})
that.getDataList()
}
})
} else {
......@@ -175,6 +176,7 @@ export default {
message: '取消收藏成功!',
type: 'success'
})
that.getDataList()
}
})
}
......@@ -197,7 +199,7 @@ export default {
this.$store.dispatch('ywbl/setBsmSqyw', item.bsmSqyw)
this.$store.dispatch('ywbl/setDjywbm', item.djywbm)
} else {
this.getNextNode(item.bsmSqyw)
this.getNextNode(item.bsmSqyw, false)
}
this.djqxList = []
},
......