Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
fukai
vue-gjjs
Commits
5397b72d
Commit
5397b72d
authored
Feb 10, 2023
by
lei wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加查询联动
parent
741177cd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
19 deletions
+26
-19
tdh.js
src/service/test/tdh.js
+9
-0
Tdh.js
src/views/Statics/Dbitdh/Tdh.js
+10
-1
TdhInfo.vue
src/views/Statics/Dbitdh/TdhInfo.vue
+4
-10
index.vue
src/views/Statics/Dbitdh/index.vue
+3
-8
Infsea.vue
src/views/Statics/Inftdh/Infsea.vue
+0
-0
No files found.
src/service/test/tdh.js
View file @
5397b72d
...
@@ -22,4 +22,12 @@ export function edit(data) {
...
@@ -22,4 +22,12 @@ export function edit(data) {
export
function
deleteById
(
data
)
{
export
function
deleteById
(
data
)
{
return
Api
.
post
(
`/manager/tdh/deleteById`
,
data
)
return
Api
.
post
(
`/manager/tdh/deleteById`
,
data
)
}
export
function
queryYearList
(
data
)
{
return
Api
.
post
(
`/manager/tdh/queryYearList`
,
data
)
}
export
function
queryCalList
(
data
)
{
return
Api
.
post
(
`/manager/tdh/queryCalList`
,
data
)
}
}
\ No newline at end of file
src/views/Statics/Dbitdh/Tdh.js
View file @
5397b72d
...
@@ -13,7 +13,16 @@ export default class Tdh {
...
@@ -13,7 +13,16 @@ export default class Tdh {
}
}
export
const
Pattern
=
{
export
const
Pattern
=
{
"calyear"
:
[
"dat"
:
[
{
"required"
:
true
,
"message"
:
"必输项"
,
"type"
:
"string"
,
"trigger"
:
"blur"
},
],
"calendar"
:
[
{
"required"
:
true
,
"message"
:
"必输项"
,
"type"
:
"string"
,
"trigger"
:
"blur"
},
],
"dateday"
:
[
{
"required"
:
true
,
"message"
:
"必输项"
,
"type"
:
"string"
,
"trigger"
:
"blur"
},
],
"calendarname"
:
[
{
"required"
:
true
,
"message"
:
"必输项"
,
"type"
:
"string"
,
"trigger"
:
"blur"
},
{
"required"
:
true
,
"message"
:
"必输项"
,
"type"
:
"string"
,
"trigger"
:
"blur"
},
],
],
}
}
src/views/Statics/Dbitdh/TdhInfo.vue
View file @
5397b72d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<c-col
:span=
"12"
class=
"col-left"
>
<c-col
:span=
"12"
class=
"col-left"
>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"日期"
prop=
"dat"
>
<el-form-item
label=
"日期"
prop=
"dat"
>
<c-
input
v-model=
"model.dat"
style=
"width: 100%"
placeholder=
"请输入日期"
>
</c-input
>
<c-
date-picker
type=
"date"
v-model=
"model.dat"
style=
"width:100%"
placeholder=
"请选择日期"
></c-date-picker
>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
...
@@ -14,23 +14,17 @@
...
@@ -14,23 +14,17 @@
</c-input>
</c-input>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"年份"
prop=
"calyear"
>
<c-select
:disabled=
"type === 'edit'"
v-model=
"model.calyear"
placeholder=
"请选择年份"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-col>
<!-- =============================================右边=========================================== -->
<!-- =============================================右边=========================================== -->
<c-col
:span=
"12"
class=
"col-right"
>
<c-col
:span=
"12"
class=
"col-right"
>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"节日名"
prop=
"dateday"
>
<el-form-item
label=
"节日名"
prop=
"dateday"
>
<c-input
v-model=
"model.
ownrefDesc"
style=
"width: 100%"
placeholder=
"请输入dateday
"
>
</c-input>
<c-input
v-model=
"model.
dateday"
style=
"width: 100%"
placeholder=
"请输入节日名
"
>
</c-input>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"日历名称"
prop=
"
ownrefDesc
"
>
<el-form-item
label=
"日历名称"
prop=
"
calendarname
"
>
<c-input
:disabled=
"type === 'edit'"
v-model=
"model.
ownrefDesc
"
style=
"width: 100%"
placeholder=
"请输入日历名称"
>
</c-input>
<c-input
:disabled=
"type === 'edit'"
v-model=
"model.
calendarname
"
style=
"width: 100%"
placeholder=
"请输入日历名称"
>
</c-input>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
</c-col>
</c-col>
...
...
src/views/Statics/Dbitdh/index.vue
View file @
5397b72d
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
created
()
{
created
()
{
if
(
this
.
type
!==
"add"
)
{
if
(
this
.
type
!==
"add"
)
{
const
data
=
{
"inr"
:
this
.
$route
.
params
.
inr
};
const
data
=
{
"inr"
:
this
.
$route
.
params
.
inr
};
query
Detail
ById
(
data
).
then
((
res
)
=>
{
queryById
(
data
).
then
((
res
)
=>
{
if
(
res
.
inr
)
{
if
(
res
.
inr
)
{
this
.
model
=
res
;
this
.
model
=
res
;
}
else
{
}
else
{
...
@@ -105,13 +105,8 @@
...
@@ -105,13 +105,8 @@
if
(
validated
)
{
if
(
validated
)
{
add
(
this
.
model
)
add
(
this
.
model
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
console
.
log
(
'返回结果'
+
res
.
messsage
);
this
.
$message
.
success
(
"保存成功!"
)
if
(
res
.
messsage
!==
null
&&
Object
.
keys
(
res
.
messsage
).
length
>
0
)
{
this
.
goBack
(
true
)
this
.
$message
.
error
(
res
.
messsage
)
}
else
{
this
.
$message
.
success
(
"保存成功!"
)
this
.
goBack
(
true
)
}
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"保存失败!"
);
this
.
$message
.
error
(
"保存失败!"
);
...
...
src/views/Statics/Inftdh/Infsea.vue
View file @
5397b72d
This diff is collapsed.
Click to expand it.
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