Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
9d811bf2
authored
2023-07-19 16:29:08 +0800
by
yuanbo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加注释
1 parent
aa197a91
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
125 additions
and
16 deletions
src/components/DialogBox/dialogBox.vue
src/components/formMenu/qlr.vue
src/components/formMenu/qlxz.vue
src/components/DialogBox/dialogBox.vue
View file @
9d811bf
...
...
@@ -92,6 +92,10 @@ export default {
}
},
methods
:
{
/**
* @description: handleFullscreen
* @author: renchao
*/
handleFullscreen
()
{
this
.
fullscreen
=
!
this
.
fullscreen
if
(
!
this
.
fullscreen
)
{
...
...
@@ -100,11 +104,19 @@ export default {
this
.
scrollerHeight
=
(
window
.
innerHeight
-
120
)
+
'px'
}
},
/**
* @description: submitForm
* @author: renchao
*/
submitForm
()
{
if
(
this
.
isButton
)
{
this
.
$emit
(
'submitForm'
);
}
},
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog
()
{
this
.
key
++
this
.
$emit
(
'input'
,
false
)
...
...
@@ -124,4 +136,4 @@ export default {
left
:
50%
!important
;
transform
:
translate
(
-50%
,
-50%
)
!important
;
}
</
style
>
\ No newline at end of file
</
style
>
...
...
src/components/formMenu/qlr.vue
View file @
9d811bf
...
...
@@ -345,6 +345,10 @@ export default {
};
},
methods
:
{
/**
* @description: inputBlur
* @author: renchao
*/
inputBlur
(
e
)
{
if
(
e
.
target
.
value
!=
''
)
{
e
.
target
.
style
.
border
=
""
...
...
@@ -353,8 +357,10 @@ export default {
e
.
target
.
style
.
boxSizing
=
'border-box'
;
}
},
//新增行数据
/**
* @description: 新增行数据
* @author: renchao
*/
addRow
()
{
console
.
log
(
this
.
gyfs
,
'共有方式'
)
...
...
@@ -382,7 +388,10 @@ export default {
this
.
dialogVisible
=
true
;
}
},
//确认权利人信息按钮;可以进行新增;可以进行更新;
/**
* @description: 确认权利人信息按钮;可以进行新增;可以进行更新;
* @author: renchao
*/
addNewQlrInfo
()
{
this
.
rules
=
[
...
...
@@ -482,7 +491,10 @@ export default {
},
//修改行数据
/**
* @description: 修改行数据
* @author: renchao
*/
changeRow
()
{
if
(
this
.
multipleSelection
.
length
===
1
)
{
this
.
dialogVisible
=
true
;
...
...
@@ -498,7 +510,10 @@ export default {
});
}
},
/**
* @description: updateGyfs
* @author: renchao
*/
updateGyfs
(
val
)
{
console
.
log
(
val
,
this
.
type
)
updateGyGyQlrQk
(
this
.
bsm
,
this
.
type
,
val
).
then
((
res
)
=>
{
...
...
@@ -509,12 +524,18 @@ export default {
})
},
//父组件改变子组件的共有方式
/**
* @description: 父组件改变子组件的共有方式
* @author: renchao
*/
changeGyfs
(
val
)
{
this
.
gyfs
=
val
;
},
//行双击事件
/**
* @description: 行双击事件
* @author: renchao
*/
rowDbclick
(
row
)
{
if
(
+
this
.
qszt
==
0
)
{
this
.
dialogVisible
=
true
;
...
...
@@ -542,7 +563,10 @@ export default {
// }
// },
//删除行数据
/**
* @description: 删除行数据
* @author: renchao
*/
delRow
()
{
if
(
this
.
multipleSelection
.
length
>
0
)
{
let
qlrbsms
=
[];
...
...
@@ -563,20 +587,35 @@ export default {
});
}
},
//选中表格某一项
/**
* @description: 选中表格某一项
* @author: renchao
*/
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
;
},
//供父组件调用来获取共有方式
/**
* @description: 供父组件调用来获取共有方式
* @author: renchao
*/
getQlgyfsData
()
{
return
this
.
gyfs
;
},
//供父组件调用来获取权利人表格数据
/**
* @description: 供父组件调用来获取权利人表格数据
* @author: renchao
*/
getQlrxxData
()
{
return
this
.
tableData
;
},
//增删代理人
/**
* @description: 增删代理人
* @param {*} obj
* @param {*} ind
* @param {*} type
* @author: renchao
*/
handleClick
(
obj
,
ind
,
type
)
{
if
(
type
===
"add"
)
{
this
.
formData
.
dlrList
.
push
({
...
...
@@ -595,6 +634,11 @@ export default {
});
}
},
/**
* @description: getQlrInfo
* @param {*} bsm
* @author: renchao
*/
getQlrInfo
(
bsm
)
{
if
(
this
.
lq
==
""
)
{
getQlrInfoByGlbsm
(
bsm
).
then
((
res
)
=>
{
...
...
src/components/formMenu/qlxz.vue
View file @
9d811bf
...
...
@@ -257,6 +257,12 @@ export default {
mounted
()
{
},
methods
:
{
/**
* @description: startTime
* @param {*} index
* @param {*} childIndex
* @author: renchao
*/
startTime
(
index
,
childIndex
)
{
let
startTime
=
this
.
countList
[
index
].
list
[
childIndex
].
tdsyqssj
;
let
endTime
=
this
.
countList
[
index
].
list
[
childIndex
].
tdsyjssj
;
...
...
@@ -276,6 +282,13 @@ export default {
// this.countList[index].list[childIndex].syqx=endYear-startYear;
}
},
/**
* @description: sumTime
* @param {*} index
* @param {*} childIndex
* @param {*} syqx
* @author: renchao
*/
sumTime
(
index
,
childIndex
,
syqx
,
e
)
{
this
.
$refs
.
syqx
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
value
==
syqx
)
{
...
...
@@ -285,6 +298,12 @@ export default {
let
startTime
=
this
.
countList
[
index
].
list
[
childIndex
].
tdsyqssj
;
this
.
countList
[
index
].
list
[
childIndex
].
tdsyjssj
=
Number
(
startTime
.
substring
(
0
,
4
))
+
Number
(
syqx
)
+
startTime
.
slice
(
4
,
10
);
},
/**
* @description: endTime
* @param {*} index
* @param {*} childIndex
* @author: renchao
*/
endTime
(
index
,
childIndex
,
e
)
{
let
startTime
=
this
.
countList
[
index
].
list
[
childIndex
].
tdsyqssj
;
let
endTime
=
this
.
countList
[
index
].
list
[
childIndex
].
tdsyjssj
;
...
...
@@ -303,7 +322,12 @@ export default {
// this.countList[index].list[childIndex].syqx=endYear-startYear;
}
},
//外层操作
/**
* @description: 外层操作
* @param {*} ind
* @param {*} type
* @author: renchao
*/
handleClick
(
ind
,
type
)
{
let
outsideObj
=
{
id
:
Math
.
random
(),
...
...
@@ -348,6 +372,10 @@ export default {
this
.
outNum
--
;
}
},
/**
* @description: reset
* @author: renchao
*/
reset
()
{
this
.
countList
=
[
{
...
...
@@ -383,7 +411,13 @@ export default {
},
];
},
//内层操作
/**
* @description: 内层操作
* @param {*} index
* @param {*} childIndex
* @param {*} type
* @author: renchao
*/
handleInClick
(
index
,
childIndex
,
type
)
{
let
insideObj
=
{
pzdjbsm
:
""
,
...
...
@@ -415,7 +449,10 @@ export default {
}
this
.
hasBorderOrNot
();
},
//判断是否显示边框
/**
* @description: 判断是否显示边框
* @author: renchao
*/
hasBorderOrNot
()
{
this
.
countList
.
forEach
((
item
,
index
)
=>
{
if
(
index
==
this
.
countList
.
length
-
1
)
{
...
...
@@ -426,9 +463,17 @@ export default {
}
});
},
/**
* @description: getQlxzDataList
* @author: renchao
*/
getQlxzDataList
()
{
return
this
.
countList
;
},
/**
* @description: getRules
* @author: renchao
*/
getRules
()
{
let
rules
=
[];
let
temp
=
0
;
...
...
@@ -507,9 +552,17 @@ export default {
})
// console.log(rules,'rules');
},
/**
* @description: getRulesResult
* @author: renchao
*/
getRulesResult
()
{
return
this
.
rulesResult
},
/**
* @description: inputBlur
* @author: renchao
*/
inputBlur
(
e
,
flag
)
{
if
(
flag
)
{
if
(
e
.
value
!=
''
)
{
...
...
Please
register
or
sign in
to post a comment