Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tianjin
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
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
徐来柯
tianjin
Commits
c4e149ef
Commit
c4e149ef
authored
Jan 29, 2021
by
tao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://gitlab.com/970104719/tijing
into develop
parents
1d289a35
046e610b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
17 deletions
+20
-17
relateDialog.vue
src/views/education/component/relateDialog.vue
+20
-17
No files found.
src/views/education/component/relateDialog.vue
View file @
c4e149ef
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<el-input
type=
"text"
v-model=
"argKeyWord"
placeholder=
"关键字"
></el-input>
<el-input
type=
"text"
v-model=
"argKeyWord"
placeholder=
"关键字"
></el-input>
</div>
</div>
<div
class=
"search-btn"
@
click=
"getData"
>
查询
</div>
<div
class=
"search-btn"
@
click=
"getData
(1, 'reset')
"
>
查询
</div>
</div>
</div>
<!-- 第二部分 table部分 -->
<!-- 第二部分 table部分 -->
...
@@ -176,27 +176,34 @@ export default {
...
@@ -176,27 +176,34 @@ export default {
// return v.toString(16);
// return v.toString(16);
// });
// });
// },
// },
getData
()
{
getData
(
num
,
type
)
{
var
$this
=
this
var
$this
=
this
if
(
type
===
'reset'
)
{
this
.
$refs
.
page
.
num
=
1
this
.
$refs
.
page
.
pageIndex
=
1
}
this
.
$axios
({
this
.
$axios
({
method
:
"post"
,
method
:
"post"
,
url
:
`/api/FormulaManage/FormulaManage_GstVariableList?argKeyWord=
${
this
.
argKeyWord
}
&argDevice=
${
this
.
argDevice
}
&argGroup=
${
this
.
argGroup
}
&argDataType=
${
this
.
argDataType
}
&argPageSize=
${
this
.
$refs
.
page
.
pageSize
}
&argPageIndex=
${
this
.
$refs
.
page
.
pageIndex
}
`
,
url
:
`/api/FormulaManage/FormulaManage_GstVariableList?argKeyWord=
${
this
.
argKeyWord
}
&argDevice=
${
this
.
argDevice
}
&argGroup=
${
this
.
argGroup
}
&argDataType=
${
this
.
argDataType
}
&argPageSize=
${
this
.
$refs
.
page
.
pageSize
}
&argPageIndex=
${
this
.
$refs
.
page
.
pageIndex
}
`
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
this
.
AllTableData
=
res
.
data
.
data
.
DataList
.
map
(
item
=>
({
let
{
ParameterList
,
DataList
}
=
res
.
data
.
data
$this
.
AllTableData
=
DataList
.
map
(
item
=>
({
...
item
,
...
item
,
UpdateTime
:
item
.
UpdateTime
?
this
.
$moment
(
item
.
UpdateTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
' '
UpdateTime
:
item
.
UpdateTime
?
$
this
.
$moment
(
item
.
UpdateTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
' '
}))
}))
// 克隆一份tableData数据
// 克隆一份tableData数据
this
.
cloneData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
AllTableData
))
$this
.
cloneData
=
JSON
.
parse
(
JSON
.
stringify
(
$
this
.
AllTableData
))
if
(
this
.
AllTableData
.
length
>
this
.
$refs
.
page
.
pageSize
){
if
(
$this
.
AllTableData
.
length
>
$
this
.
$refs
.
page
.
pageSize
){
this
.
innerTableData
=
this
.
AllTableData
.
slice
(
0
,
this
.
$refs
.
page
.
pageSize
)
$this
.
innerTableData
=
$this
.
AllTableData
.
slice
(
0
,
$
this
.
$refs
.
page
.
pageSize
)
}
else
{
}
else
{
this
.
innerTableData
=
this
.
AllTableData
$this
.
innerTableData
=
$this
.
AllTableData
}
$this
.
totalCount
=
ParameterList
.
TotalCount
$this
.
totalPage
=
ParameterList
.
TotalPage
if
(
num
===
undefined
)
{
$this
.
$refs
.
page
.
first
()
$this
.
pageFun
(
1
)
}
}
this
.
totalCount
=
this
.
AllTableData
.
length
this
.
$refs
.
page
.
first
()
this
.
totalPage
=
Math
.
ceil
(
this
.
AllTableData
.
length
/
this
.
$refs
.
page
.
pageSize
)
this
.
pageFun
(
1
)
}).
catch
(
function
(
err
){
}).
catch
(
function
(
err
){
console
.
log
(
'err'
,
err
)
console
.
log
(
'err'
,
err
)
})
})
...
@@ -206,11 +213,7 @@ export default {
...
@@ -206,11 +213,7 @@ export default {
},
},
// 分页方法
// 分页方法
pageFun
(
num
){
pageFun
(
num
){
if
(
num
==
1
){
this
.
getData
(
num
)
this
.
innerTableData
=
this
.
cloneData
.
slice
(
0
,
this
.
$refs
.
page
.
pageSize
)
}
else
{
this
.
innerTableData
=
this
.
cloneData
.
slice
((
num
-
1
)
*
this
.
$refs
.
page
.
pageSize
,
this
.
$refs
.
page
.
pageSize
*
num
)
}
},
},
close
(){
close
(){
this
.
argDevice
=
'不限'
this
.
argDevice
=
'不限'
...
...
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