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
f14d0132
Commit
f14d0132
authored
Nov 22, 2022
by
liaoxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gtx
parent
3c91e6e4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
48 deletions
+69
-48
gtx.js
src/service/test/gtx.js
+21
-0
index.vue
src/views/Statics/Dbigtx/index.vue
+1
-1
Infsea.vue
src/views/Statics/Infgtx/Infsea.vue
+47
-47
No files found.
src/service/test/gtx.js
0 → 100644
View file @
f14d0132
import
Api
from
"~/service/Api"
export
function
queryByPage
(
data
)
{
return
Api
.
post
(
"/test/gtx/queryByPage"
,
data
)
}
export
function
queryDetailById
(
inr
)
{
return
Api
.
post
(
`/test/gtx/queryDetailById?inr=
${
inr
}
`
)
}
export
function
add
(
data
)
{
return
Api
.
post
(
"/test/gtx/add"
,
data
)
}
export
function
edit
(
data
)
{
return
Api
.
post
(
"/test/gtx/edit"
,
data
)
}
export
function
deleteById
(
inr
)
{
return
Api
.
post
(
`/test/gtx/deleteById?inr=
${
inr
}
`
)
}
src/views/Statics/Dbigtx/index.vue
View file @
f14d0132
...
...
@@ -60,7 +60,7 @@ import Gtx, { Pattern } from "./Gtx.js";
import
{
queryDetailById
,
add
,
edit
,
deleteById
}
from
"~/service/test/pty.js"
;
export
default
{
name
:
"StaticsDbi
pty
"
,
name
:
"StaticsDbi
gtx
"
,
components
:
{
// "m-pty-info": PtyInfo,
// "m-adr-list": AdrList,
...
...
src/views/Statics/Infgtx/Infsea.vue
View file @
f14d0132
...
...
@@ -195,7 +195,7 @@
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
style=
"text-align: left"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"
pty
Add"
>
新增
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"
gtx
Add"
>
新增
</el-button>
</c-col>
<c-col
:span=
"12"
style=
"text-align: right"
>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
...
...
@@ -203,7 +203,7 @@
type=
"primary"
icon=
"el-icon-search"
size=
"small"
@
click=
"onInf
pty
Search()"
@
click=
"onInf
gtx
Search()"
>
查询
</el-button>
</c-col>
...
...
@@ -211,7 +211,7 @@
<c-col
:span=
"24"
>
<c-paging-table
:data=
"gtxData"
:columns=
"
pty
Columns"
:columns=
"
gtx
Columns"
:pageNumber=
"model.pageNum"
:pageSize=
"model.pageSize"
:total=
"model.total"
...
...
@@ -266,7 +266,7 @@
<
script
>
import
codes
from
"~/config/CodeTable"
;
import
{
queryByPage
}
from
"~/service/test/
pty
.js"
;
import
{
queryByPage
}
from
"~/service/test/
gtx
.js"
;
export
default
{
name
:
""
,
...
...
@@ -297,58 +297,58 @@ export default {
};
},
computed
:
{
//
seatypb: {
//
get: function () {
//
return this.model.ptytyp === "B";
//
},
//
set: function (val) {
//
this.model.ptytyp = val ? "B" : "";
//
},
//
},
//
seatypc: {
//
get: function () {
//
return this.model.ptytyp === "C";
//
},
//
set: function (val) {
//
this.model.ptytyp = val ? "C" : "";
//
},
//
},
//
seatypa: {
//
get: function () {
//
return this.model.ptytyp === "A";
//
},
//
set: function (val) {
//
this.model.ptytyp = val ? "A" : "";
//
},
//
},
//
seatypo: {
//
get: function () {
//
return this.model.ptytyp === "O";
//
},
//
set: function (val) {
//
this.model.ptytyp = val ? "O" : "";
//
},
//
},
//
seatyph: {
//
get: function () {
//
return this.model.ptytyp === "H";
//
},
//
set: function (val) {
//
this.model.ptytyp = val ? "H" : "";
//
},
//
},
seatypb
:
{
get
:
function
()
{
return
this
.
model
.
ptytyp
===
"B"
;
},
set
:
function
(
val
)
{
this
.
model
.
ptytyp
=
val
?
"B"
:
""
;
},
},
seatypc
:
{
get
:
function
()
{
return
this
.
model
.
ptytyp
===
"C"
;
},
set
:
function
(
val
)
{
this
.
model
.
ptytyp
=
val
?
"C"
:
""
;
},
},
seatypa
:
{
get
:
function
()
{
return
this
.
model
.
ptytyp
===
"A"
;
},
set
:
function
(
val
)
{
this
.
model
.
ptytyp
=
val
?
"A"
:
""
;
},
},
seatypo
:
{
get
:
function
()
{
return
this
.
model
.
ptytyp
===
"O"
;
},
set
:
function
(
val
)
{
this
.
model
.
ptytyp
=
val
?
"O"
:
""
;
},
},
seatyph
:
{
get
:
function
()
{
return
this
.
model
.
ptytyp
===
"H"
;
},
set
:
function
(
val
)
{
this
.
model
.
ptytyp
=
val
?
"H"
:
""
;
},
},
},
activated
()
{
const
{
update
}
=
this
.
$route
.
params
if
(
update
)
{
this
.
onInf
pty
Search
()
this
.
onInf
gtx
Search
()
}
},
methods
:
{
handleReset
()
{
this
.
root
.
$refs
.
modelForm
.
resetFields
();
},
onInf
pty
Search
()
{
onInf
gtx
Search
()
{
queryByPage
(
this
.
model
).
then
(
res
=>
{
/**
* pageNumber: 0
...
...
@@ -366,7 +366,7 @@ export default {
queryFunc
(
pageNumber
,
pageSize
)
{
this
.
model
.
pageNum
=
pageNumber
this
.
model
.
pageSize
=
pageSize
this
.
onInf
pty
Search
()
this
.
onInf
gtx
Search
()
},
ptytypeChange
(
val
)
{
this
.
model
.
ptytyp
=
val
;
...
...
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