Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
taxformtoolframework
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Bugzilla
Bugzilla
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
税表组件2.0工具兼容框架
taxformtoolframework
Commits
a1073904
Commit
a1073904
authored
May 07, 2022
by
zqm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
综合申报正常开表
parent
21583cc4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
28 deletions
+54
-28
inTablemodal.vue
src/components/inTablemodal.vue
+20
-17
index.vue
src/pages/index.vue
+3
-3
inlineIframe.vue
src/pages/view/inlineIframe.vue
+31
-8
No files found.
src/components/inTablemodal.vue
View file @
a1073904
<!--
* @Author: your name
* @Date: 2021-07-09 17:03:14
* @LastEditTime: 2022-05-0
5 09:56:26
* @LastEditors:
Please set LastEditors
* @LastEditTime: 2022-05-0
6 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
:
{
//初始化
...
...
src/pages/index.vue
View file @
a1073904
<!--
* @Author: zqm
* @Date: 2021-06-21 14:04:53
* @LastEditTime: 2022-0
1-06 09:52:26
* @LastEditors:
Please set LastEditors
* @LastEditTime: 2022-0
5-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"
;
...
...
src/pages/view/inlineIframe.vue
View file @
a1073904
...
...
@@ -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 1
3:24:57
* @LastEditTime: 2022-05-06 1
5: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
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment