Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
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
34cd25ea
authored
2020-12-22 10:43:10 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(jzd,jzx):批量修改去除默认选项
1 parent
aaeee444
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
130 additions
and
88 deletions
src/views/zd/jzd/index.vue
src/views/zd/jzx/index.vue
src/views/zd/jzd/index.vue
View file @
34cd25e
...
...
@@ -55,46 +55,43 @@
title=
"批量修改"
:visible
.
sync=
"centerDialogVisible"
width=
"30%"
>
>
<div
class=
"plxg"
>
<div>
<span
class=
"batchlx"
>
界标类型:
</span>
<el-select
v-model=
"batchJzd.jblx"
>
<el-option
v-for=
"i in jblx"
:key=
"i.key"
:label=
"i.label"
:value=
"i.value"
></el-option>
</el-select>
</div>
<div>
<span
class=
"batchlx"
>
界址点类型:
</span>
<el-select
v-model=
"batchJzd.jzdlx"
>
<el-option
v-for=
"i in jzdlx"
:key=
"i.key"
:label=
"i.label"
:value=
"i.value"
></el-option>
</el-select>
</div>
<table>
<tr>
<th>
界标类型:
</th>
<td>
<el-select
v-model=
"batchJzd.jblx"
>
<el-option
v-for=
"i in jblx"
:key=
"i.key"
:label=
"i.label"
:value=
"i.value"
></el-option>
</el-select>
</td>
</tr>
<tr>
<th>
界址点类型:
</th>
<td>
<el-select
v-model=
"batchJzd.jzdlx"
>
<el-option
v-for=
"i in jzdlx"
:key=
"i.key"
:label=
"i.label"
:value=
"i.value"
></el-option>
</el-select>
</td>
</tr>
</table>
</div>
<div
class=
"dialog-footer"
>
<el-button
@
click=
"centerDialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"jzdbatchsave"
>
确 定
</el-button>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"centerDialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"jzdbatchsave"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
<!--
<div
class=
"header-button"
:style=
"
{width:mainBoxWidth+'px'}">
<el-button
type=
"primary"
@
click=
"oneExit"
>
编辑
</el-button>
<el-button
type=
"primary"
@
click=
"save"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"batchExit"
>
批量修改
</el-button>
<el-button
type=
"primary"
class=
"saveBtn"
@
click=
"save"
>
保存
</el-button>
</div>
-->
</div>
</
template
>
...
...
@@ -164,8 +161,8 @@
jzdlist
:
[],
batchJzd
:
{
bsms
:
[],
jblx
:
'
1
'
,
jzdlx
:
'
1
'
jblx
:
''
,
jzdlx
:
''
}
}
},
...
...
@@ -174,12 +171,16 @@
},
mounted
()
{
let
bsm
=
this
.
$store
.
state
.
zdbsm
this
.
bsm
=
bsm
;
this
.
bsm
=
bsm
;
this
.
getData
(
bsm
)
},
methods
:
{
result
()
{
this
.
batchJzd
.
jblx
=
''
;
this
.
batchJzd
.
jzdlx
=
''
;
},
getData
(
bsm
)
{
queryjzd
({
glBsm
:
bsm
}).
then
(
res
=>
{
queryjzd
({
glBsm
:
bsm
}).
then
(
res
=>
{
for
(
let
i
=
0
;
i
<
res
.
result
.
length
;
i
++
)
{
res
.
result
[
i
][
'isCheck'
]
=
false
;
res
.
result
[
i
][
'iszb'
]
=
'readonly'
;
...
...
@@ -269,8 +270,11 @@
computed
:
{},
watch
:
{
"$store.state.zdbsm"
:
function
(
bsm
)
{
this
.
bsm
=
bsm
this
.
bsm
=
bsm
this
.
getData
(
bsm
)
},
centerDialogVisible
()
{
this
.
result
();
}
},
}
...
...
@@ -289,7 +293,6 @@
height
:
50px
;
position
:
fixed
;
bottom
:
0
;
right
:
;
text-align
:
center
;
background-color
:
#ffffff
;
.saveBtn
{
...
...
@@ -328,7 +331,11 @@
table
:hover
{
cursor
:
pointer
;
}
.plxg
{
.el-select{
float
:
left
;
}
}
.batchlx
{
text-align
:
center
;
}
...
...
@@ -366,4 +373,8 @@
width
:
180px
}
.dialog-footer
{
text-align
:
center
;
margin-top
:
20px
;
}
</
style
>
...
...
src/views/zd/jzx/index.vue
View file @
34cd25e
...
...
@@ -67,47 +67,54 @@
title=
"批量修改"
:visible
.
sync=
"centerDialogVisible"
width=
"30%"
>
>
<div
class=
"plxg"
>
<div
class=
"batchlx"
>
<span
class=
""
>
界址线类型:
</span>
<el-select
v-model=
"batchJzx.jzxlx"
>
<el-option
v-for=
"i in jzxlx"
:key=
"i.key"
:label=
"i.label"
:value=
"i.value"
></el-option>
</el-select>
</div>
<div
class=
"batchlx"
>
<span>
界址线位置:
</span>
<el-select
v-model=
"batchJzx.jzxwz"
>
<el-option
v-for=
"i in jzxwz"
:key=
"i.key"
:label=
"i.label"
:value=
"i.value"
></el-option>
</el-select>
</div>
<div
class=
"batchlx"
>
<span
class=
""
>
界线性质:
</span>
<el-select
v-model=
"batchJzx.jxxz"
>
<el-option
v-for=
"i in jxxz"
:key=
"i.key"
:label=
"i.label"
:value=
"i.value"
></el-option>
</el-select>
</div>
<table>
<tr>
<th>
界址线类型:
</th>
<td>
<el-select
v-model=
"batchJzx.jzxlx"
>
<el-option
v-for=
"i in jzxlx"
:key=
"i.key"
:label=
"i.label"
:value=
"i.value"
></el-option>
</el-select>
</td>
</tr>
<tr>
<th>
界址线位置:
</th>
<td>
<el-select
v-model=
"batchJzx.jzxwz"
>
<el-option
v-for=
"i in jzxwz"
:key=
"i.key"
:label=
"i.label"
:value=
"i.value"
></el-option>
</el-select>
</td>
</tr>
<tr>
<th>
界线性质:
</th>
<td>
<el-select
v-model=
"batchJzx.jxxz"
>
<el-option
v-for=
"i in jxxz"
:key=
"i.key"
:label=
"i.label"
:value=
"i.value"
></el-option>
</el-select>
</td>
</tr>
</table>
</div>
<div
class=
"dialog-footer"
>
<el-button
@
click=
"centerDialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"jzxbatchsave"
>
确 定
</el-button>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"centerDialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"jzxbatchsave"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</div>
...
...
@@ -222,9 +229,9 @@
jzxlist
:
[],
batchJzx
:
{
bsms
:
[],
jzxlx
:
'
250200
'
,
jzxwz
:
'
1
'
,
jxxz
:
'
600001
'
jzxlx
:
''
,
jzxwz
:
''
,
jxxz
:
''
}
}
},
...
...
@@ -233,10 +240,15 @@
},
mounted
()
{
let
bsm
=
this
.
$store
.
state
.
zdbsm
this
.
bsm
=
bsm
;
this
.
bsm
=
bsm
;
this
.
getData
(
bsm
)
},
methods
:
{
result
()
{
this
.
batchJzx
.
jzxlx
=
''
;
this
.
batchJzx
.
jzxwz
=
''
;
this
.
batchJzx
.
jxxz
=
''
;
},
getData
(
bsm
)
{
queryjzx
(
bsm
).
then
(
res
=>
{
for
(
let
i
=
0
;
i
<
res
.
result
.
length
;
i
++
)
{
...
...
@@ -295,7 +307,6 @@
},
batchExit
()
{
console
.
log
(
"批量修改"
)
let
flag
=
false
;
for
(
let
item
of
this
.
jzxlist
)
{
if
(
item
.
isCheck
)
{
...
...
@@ -328,8 +339,11 @@
computed
:
{},
watch
:
{
"$store.state.zdbsm"
:
function
(
bsm
)
{
this
.
bsm
=
bsm
;
this
.
bsm
=
bsm
;
this
.
getData
(
bsm
)
},
centerDialogVisible
()
{
this
.
result
();
}
},
}
...
...
@@ -378,29 +392,46 @@
height
:
100px
;
}
}
.cz
{
width
:
50px
;
}
.qsd
{
width
:
150px
;
}
.zzd
{
width
:
150px
;
}
.jzdj
{
width
:
150px
;
}
.jzxlx
{
width
:
180px
;
}
.jzxwz
{
width
:
150px
;
}
.jxxz
{
width
:
150px
;
}
.sm
{
width
:
150px
;
}
.dialog-footer
{
text-align
:
center
;
margin-top
:
20px
;
}
.plxg
{
.el-select{
float
:
left
;
}
}
</
style
>
...
...
Please
register
or
sign in
to post a comment