Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mobi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
wbx-PCAndMobi
mobi
Commits
36a7cd1f
Commit
36a7cd1f
authored
Dec 18, 2020
by
程卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改丢失keycode
parent
7d44efc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
tbls.vue
src/views/houseData/tbls.vue
+8
-2
No files found.
src/views/houseData/tbls.vue
View file @
36a7cd1f
...
@@ -16,9 +16,12 @@
...
@@ -16,9 +16,12 @@
<a-row
type=
"flex"
justify=
"space-between"
align=
"middle"
>
<a-row
type=
"flex"
justify=
"space-between"
align=
"middle"
>
<a-col
span=
"6"
>
<a-col
span=
"6"
>
<a-button
class=
"addZiduan"
type=
"primary"
@
click=
"showModal()"
ghost
>
新增字段
</a-button>
<a-button
class=
"addZiduan"
type=
"primary"
@
click=
"showModal()"
ghost
>
新增字段
</a-button>
<div>
<div
>
<a-modal
:title=
"!isChangeZdy ? '新增字段':'修改字段'"
v-model=
"visible"
@
cancel=
"handleCancel"
@
ok=
"handleOk"
>
<a-modal
:title=
"!isChangeZdy ? '新增字段':'修改字段'"
v-model=
"visible"
@
cancel=
"handleCancel"
@
ok=
"handleOk"
>
<a-form
class=
"protalForm"
:form=
"form"
>
<a-form
class=
"protalForm"
:form=
"form"
>
<a-form-item
label=
"keyCode"
:label-col=
"
{ span: 0 }" :wrapper-col="{ span: 0 }" style="height:0;visibility:hidden">
<a-input
v-decorator=
"['keyCode',]"
/>
</a-form-item>
<a-form-item
label=
"字段名"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 19 }">
<a-form-item
label=
"字段名"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 19 }">
<a-input
v-decorator=
"['keyName',
{validateTrigger:'blur',rules: [ {required: true, message: '请输入字段名!',}]}]" />
<a-input
v-decorator=
"['keyName',
{validateTrigger:'blur',rules: [ {required: true, message: '请输入字段名!',}]}]" />
</a-form-item>
</a-form-item>
...
@@ -322,6 +325,8 @@ export default {
...
@@ -322,6 +325,8 @@ export default {
sltJson
:
list
[
i
].
sltJson
,
sltJson
:
list
[
i
].
sltJson
,
canSearch
:
list
[
i
].
canSearch
canSearch
:
list
[
i
].
canSearch
})
})
// console.log(this.taskCollectList, ' 获取的参数')
}
}
// //
// //
// // 存储当前页面列表的搜索信息
// // 存储当前页面列表的搜索信息
...
@@ -401,7 +406,7 @@ export default {
...
@@ -401,7 +406,7 @@ export default {
if
(
!!
row
.
defVal
&&
row
.
compntType
==
'date'
)
{
if
(
!!
row
.
defVal
&&
row
.
compntType
==
'date'
)
{
row
.
defVal
=
this
.
$moment
(
row
.
defVal
)
row
.
defVal
=
this
.
$moment
(
row
.
defVal
)
}
}
// console.log(row, '修改的按钮')
// 默认值的回显需要判断之前是否有
// 默认值的回显需要判断之前是否有
if
(
!!
row
.
sltJson
&&
row
.
sltJson
!=
null
)
{
if
(
!!
row
.
sltJson
&&
row
.
sltJson
!=
null
)
{
...
@@ -492,6 +497,7 @@ export default {
...
@@ -492,6 +497,7 @@ export default {
}
}
if
(
this
.
isChangeZdy
)
{
if
(
this
.
isChangeZdy
)
{
// console.log(values, '修改的参数')
this
.
$ajax
.
put
({
this
.
$ajax
.
put
({
url
:
this
.
$api
.
PUT_TBLS_KEYS
.
replace
(
'{id}'
,
this
.
keyId
),
url
:
this
.
$api
.
PUT_TBLS_KEYS
.
replace
(
'{id}'
,
this
.
keyId
),
params
:
values
params
:
values
...
...
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