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
e3e00fb3
authored
2023-04-28 15:56:48 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:批量清单
1 parent
53d99aa5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
166 additions
and
167 deletions
src/components/LbTable/lb-table.vue
src/views/workflow/components/cfBdcdyTable.vue
src/views/ywbl/slsqxx/cfdj/plcfslxx.vue
src/components/LbTable/lb-table.vue
View file @
e3e00fb
This diff is collapsed.
Click to expand it.
src/views/workflow/components/cfBdcdyTable.vue
View file @
e3e00fb
<
template
>
<lb-table
:column=
"column"
:maxHeight=
"
300"
heightNumSetting
:pagination=
"false"
:key=
"key"
:data=
"tableData"
>
<lb-table
:column=
"column"
:maxHeight=
"
200"
:heightNumSetting=
"true"
:pagination=
"false"
:key=
"key"
:data=
"tableData"
>
</lb-table>
</
template
>
<
script
>
import
addQlr
from
'./addQlr.vue'
import
{
mapGetters
}
from
'vuex'
export
default
{
components
:
{
addQlr
},
computed
:
{
...
mapGetters
([
"dictData"
]),
},
props
:
{
tableData
:
{
type
:
Array
,
default
:
function
()
{
return
[]
import
addQlr
from
'./addQlr.vue'
import
{
mapGetters
}
from
'vuex'
export
default
{
components
:
{
addQlr
},
computed
:
{
...
mapGetters
([
"dictData"
]),
},
props
:
{
tableData
:
{
type
:
Array
,
default
:
function
()
{
return
[]
}
},
gyfs
:
{
type
:
String
,
default
:
'1'
}
},
gyfs
:
{
type
:
String
,
default
:
'1'
}
},
data
()
{
return
{
key
:
0
,
dataIndex
:
0
,
dialog
:
false
,
details
:
{},
tableDataList
:
[],
qlrCommonTable
:
[
{
label
:
'序号'
,
type
:
'index'
,
width
:
'50'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
{
scope
.
$index
+
1
}
<
/div
>
)
data
()
{
return
{
key
:
0
,
dataIndex
:
0
,
dialog
:
false
,
details
:
{},
tableDataList
:
[],
qlrCommonTable
:
[
{
label
:
'序号'
,
type
:
'index'
,
width
:
'50'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
{
scope
.
$index
+
1
}
<
/div
>
)
}
},
{
prop
:
"qllxmc"
,
label
:
"权利类型"
},
{
prop
:
"bdcqzh"
,
label
:
"不动产权证号"
},
{
prop
:
"qlrmc"
,
label
:
"权利人"
},
{
prop
:
"ytmc"
,
label
:
"用途"
},
{
prop
:
"mj"
,
label
:
"面积"
},
{
prop
:
"zl"
,
label
:
"坐落"
},
],
column
:
this
.
qlrCommonTable
}
},
watch
:
{
tableData
:
{
handler
:
function
(
val
,
oldVal
)
{
let
that
=
this
if
(
val
.
length
==
0
||
!
val
)
{
that
.
tableDataList
=
_
.
cloneDeep
([{
sqrmc
:
''
,
dlrzjlx
:
''
,
dlrzjh
:
''
,
fr
:
''
}])
}
else
{
that
.
tableDataList
=
_
.
cloneDeep
(
val
)
}
},
{
prop
:
"qllxmc"
,
label
:
"权利类型"
},
{
prop
:
"bdcqzh"
,
label
:
"不动产权证号"
},
{
prop
:
"qlrmc"
,
label
:
"权利人"
},
{
prop
:
"ytmc"
,
label
:
"用途"
},
{
prop
:
"mj"
,
label
:
"面积"
},
{
prop
:
"zl"
,
label
:
"坐落"
},
],
column
:
this
.
qlrCommonTable
}
},
watch
:
{
tableData
:
{
handler
:
function
(
val
,
oldVal
)
{
let
that
=
this
if
(
val
.
length
==
0
||
!
val
)
{
that
.
tableDataList
=
_
.
cloneDeep
([{
sqrmc
:
''
,
dlrzjlx
:
''
,
dlrzjh
:
''
,
fr
:
''
}])
}
else
{
that
.
tableDataList
=
_
.
cloneDeep
(
val
)
}
immediate
:
true
,
deep
:
true
},
immediate
:
true
,
deep
:
true
gyfs
:
{
handler
(
newVal
,
oldValue
)
{
let
dataList
=
_
.
cloneDeep
(
this
.
qlrCommonTable
)
if
(
newVal
==
'1'
)
{
this
.
column
=
_
.
cloneDeep
(
dataList
).
slice
(
1
,
dataList
.
length
)
}
else
if
((
newVal
==
'2'
))
{
this
.
column
=
dataList
}
else
{
this
.
column
=
_
.
cloneDeep
(
dataList
)
this
.
column
.
splice
(
2
,
0
,
{
prop
:
"fs"
,
label
:
"份数"
})
}
},
immediate
:
true
}
},
gyfs
:
{
handler
(
newVal
,
oldValue
)
{
let
dataList
=
_
.
cloneDeep
(
this
.
qlrCommonTable
)
if
(
newVal
==
'1'
)
{
this
.
column
=
_
.
cloneDeep
(
dataList
).
slice
(
1
,
dataList
.
length
)
}
else
if
((
newVal
==
'2'
))
{
this
.
column
=
dataList
}
else
{
this
.
column
=
_
.
cloneDeep
(
dataList
)
this
.
column
.
splice
(
2
,
0
,
{
prop
:
"fs"
,
label
:
"份数"
})
}
},
immediate
:
true
methods
:
{
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
</
style
>
\ No newline at end of file
...
...
src/views/ywbl/slsqxx/cfdj/plcfslxx.vue
View file @
e3e00fb
...
...
@@ -154,75 +154,75 @@
</div>
</
template
>
<
script
>
import
cfBdcdyTable
from
"@/views/workflow/components/cfBdcdyTable"
;
import
{
BatchInit
,
batchSaveData
}
from
"@/api/workflow/cfdjFlow.js"
;
import
{
mapGetters
}
from
"vuex"
;
export
default
{
data
()
{
return
{
disabled
:
true
,
flagTop
:
this
.
flag
?
"top"
:
""
,
rules
:
{},
//传递参数
propsParam
:
{},
//页面数据
ruleForm
:
{},
isJfOperation
:
false
,
tableData
:
[]
};
},
created
()
{
this
.
propsParam
=
this
.
$attrs
;
var
formdata
=
new
FormData
();
if
(
this
.
propsParam
.
djlx
==
'400'
)
{
this
.
isJfOperation
=
true
;
}
formdata
.
append
(
"bsmSlsq"
,
this
.
$route
.
query
.
bsmSlsq
);
formdata
.
append
(
"djlx"
,
this
.
propsParam
.
djlx
);
BatchInit
(
formdata
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
&&
res
.
result
)
{
this
.
ruleForm
=
res
.
result
import
cfBdcdyTable
from
"@/views/workflow/components/cfBdcdyTable"
;
import
{
BatchInit
,
batchSaveData
}
from
"@/api/workflow/cfdjFlow.js"
;
import
{
mapGetters
}
from
"vuex"
;
export
default
{
data
()
{
return
{
disabled
:
true
,
flagTop
:
this
.
flag
?
"top"
:
""
,
rules
:
{},
//传递参数
propsParam
:
{},
//页面数据
ruleForm
:
{
slywxx
:
{},
cfdj
:
{},
},
isJfOperation
:
false
,
tableData
:
[]
};
},
created
()
{
this
.
propsParam
=
this
.
$attrs
;
var
formdata
=
new
FormData
();
if
(
this
.
propsParam
.
djlx
==
'400'
)
{
this
.
isJfOperation
=
true
;
}
});
},
watch
:
{
},
components
:
{
cfBdcdyTable
},
props
:
{
flag
:
{
type
:
Boolean
,
default
:
false
,
formdata
.
append
(
"bsmSlsq"
,
this
.
$route
.
query
.
bsmSlsq
);
formdata
.
append
(
"djlx"
,
this
.
propsParam
.
djlx
);
BatchInit
(
formdata
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
&&
res
.
result
)
{
this
.
ruleForm
=
res
.
result
}
})
},
fetch
:
{
type
:
Boolean
,
default
:
false
,
components
:
{
cfBdcdyTable
},
props
:
{
flag
:
{
type
:
Boolean
,
default
:
false
,
},
fetch
:
{
type
:
Boolean
,
default
:
false
,
},
},
computed
:
{
...
mapGetters
([
"dictData"
]),
},
},
computed
:
{
...
mapGetters
([
"dictData"
]),
},
methods
:
{
onSubmit
()
{
this
.
ruleForm
.
bsmSlsq
=
this
.
$route
.
query
.
bsmSlsq
;
batchSaveData
(
this
.
ruleForm
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'保存成功'
);
}
});
methods
:
{
onSubmit
()
{
this
.
ruleForm
.
bsmSlsq
=
this
.
$route
.
query
.
bsmSlsq
;
batchSaveData
(
this
.
ruleForm
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'保存成功'
);
}
});
},
changeCflx
(
e
)
{
let
cflxItem
=
{}
cflxItem
=
this
.
dictData
[
'A32'
].
find
((
item
)
=>
{
return
item
.
dcode
==
e
})
this
.
ruleForm
.
cfdj
.
cflxmc
=
cflxItem
.
dname
;
}
},
changeCflx
(
e
)
{
let
cflxItem
=
{}
cflxItem
=
this
.
dictData
[
'A32'
].
find
((
item
)
=>
{
return
item
.
dcode
==
e
})
this
.
ruleForm
.
cfdj
.
cflxmc
=
cflxItem
.
dname
;
}
},
};
};
</
script
>
<
style
scoped
lang=
'scss'
>
@import
"~@/styles/public.scss"
;
@import
"~@/styles/slxx/slxx.scss"
;
@import
"~@/styles/public.scss"
;
@import
"~@/styles/slxx/slxx.scss"
;
</
style
>
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment