Commit a1073904 authored by zqm's avatar zqm

综合申报正常开表

parent 21583cc4
<!--
* @Author: your name
* @Date: 2021-07-09 17:03:14
* @LastEditTime: 2022-05-05 09:56:26
* @LastEditors: Please set LastEditors
* @LastEditTime: 2022-05-06 14:07:39
* @LastEditors: zqm qimengzhou9618@163.com
* @Description: In User Settings Edit
* @FilePath: \taxFormToolFramework\src\components\inTablemodal.vue
-->
......@@ -58,21 +58,24 @@ export default {
var clientHeight = document.documentElement.clientHeight;
var height = clientHeight - 128;
var tableBox = document.getElementById('tableBox');
var width = tableBox.offsetWidth;
var left = tableBox.getBoundingClientRect().left;
var top = tableBox.getBoundingClientRect().top;
$(".modal-bg").css({
width: width,
height: height,
left: left,
top: top
})
var dialogTop = top / 2;
var dialogLeft = left / 2;
$(".dialogClass").css({
top: dialogTop,
left: dialogLeft,
})
if (tableBox != undefined) {
var width = tableBox.offsetWidth;
var left = tableBox.getBoundingClientRect().left;
var top = tableBox.getBoundingClientRect().top;
$(".modal-bg").css({
width: width,
height: height,
left: left,
top: top
})
var dialogTop = top / 2;
var dialogLeft = left / 2;
$(".dialogClass").css({
top: dialogTop,
left: dialogLeft,
})
}
},
methods: {
//初始化
......
<!--
* @Author: zqm
* @Date: 2021-06-21 14:04:53
* @LastEditTime: 2022-01-06 09:52:26
* @LastEditors: Please set LastEditors
* @LastEditTime: 2022-05-06 14:39:28
* @LastEditors: zqm qimengzhou9618@163.com
* @Description: 入口文件
* @FilePath: \taxFormToolFramework\src\pages\index.vue
-->
......@@ -26,7 +26,7 @@ export default {
},
created: function () {
var url = this.$route.path;
if (url.indexOf("taxRelated") != -1) {
if (url.indexOf("taxRelated") != -1 || url.indexOf("inlineIframe") != -1) {
this.platform = "1";
} else {
this.platform = "2";
......
......@@ -2,23 +2,25 @@
* @Author: zqm qimengzhou9618@163.com
* @Date: 2022-05-05 15:06:40
* @LastEditors: zqm qimengzhou9618@163.com
* @LastEditTime: 2022-05-06 13:24:57
* @LastEditTime: 2022-05-06 15:56:09
* @FilePath: \tableDisplayBusiness\src\pages\view\inlineIframe.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<el-container>
<div class="tableBox" id="tableBox" ref="tableBox">
<div ref="taxForm" id="taxForm" class="taxForm"></div>
<inTablemodal ref="inTablemodal"></inTablemodal>
<plusDeduction ref="plusDeduction" @changeInitValue="changeInitValue"></plusDeduction>
</el-container>
</div>
</template>
<script>
import inTablemodal from '../../components/inTablemodal'
import plusDeduction from '../../components/plusDeduction'
export default {
name: "inlineIframe",
components: {
plusDeduction
inTablemodal, plusDeduction
},
data() {
return {
......@@ -39,6 +41,15 @@ export default {
millisecondList: ["10101_001"]
};
},
watch: {
'$route'(to, from) { //监听路由是否变化
// if (to.query.pid != from.query.pid && to.query.pid != null) { //pid不为空才请求数据
// this.pid = to.query.pid;
// this.getData(); //调接口,请求数据
// }
console.log(to);
}
},
methods: {
getUrlParam(name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)');
......@@ -123,6 +134,10 @@ export default {
}, "json", true);
},
//创建报表实例
changeInitValue(item) {
this.createEngine(item);
},
//创建报表实例
createEngine(item) {
var _self = this;
//增加传参
......@@ -133,14 +148,12 @@ export default {
var prefix = config.environmental == "";
if (['dev'].includes(config.environmental)) {
var prefix = '/engineJson/';
this.$refs.buttonArea.isRemovePopup = true
} else if (['production'].includes(config.environmental)) {
var prefix = '/web/online/tableDisplayBusiness/static/engineJson/';
var dmbPrefix = '/web/online/tableDisplayBusiness/static/dmb/';//下拉选路径
} else {
var prefix = '/web/tableDisplayBusiness/static/engineJson/';
var dmbPrefix = '/web/tableDisplayBusiness/static/dmb/';
this.$refs.buttonArea.isRemovePopup = true
}
var url = prefix + item.bblxDm + "/" + sbdm + "/" + item.bbDm + '_' + item.versionNumber + ".json";
var template = {};
......@@ -267,8 +280,6 @@ export default {
if (this.sbResult != 'success') {//正常开表弹窗
this.$refs.inTablemodal.initModal("init")
}
//保存按钮置灰
this.$refs.buttonArea.isSave()
},
},
created() {
......@@ -286,10 +297,22 @@ export default {
this.$store.commit("openData", this.selectTaxData);
sessionStorage.setItem("zsDjxh", this.selectTaxData.zsDjxh);
sessionStorage.setItem("djxh", this.selectTaxData.djxh);
// 调整高度
var height = document.documentElement.clientHeight;
this.$refs.taxForm.style.height = height + 'px';
this.menuSelect(this.selectTaxData, "open");
}
}
</script>
<style>
.taxForm {
margin: 0;
padding: 0;
border: 0;
width: 100%;
height: 100%;
min-height: 503px;
float: left;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment