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
9879ace4
Commit
9879ace4
authored
Jan 12, 2021
by
徐来柯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
83c9d0fe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
35 deletions
+31
-35
relateDialog.vue
src/views/education/component/relateDialog.vue
+31
-35
No files found.
src/views/education/component/relateDialog.vue
View file @
9879ace4
...
...
@@ -49,7 +49,7 @@
<el-input
type=
"text"
v-model=
"argKeyWord"
placeholder=
"关键字"
></el-input>
</div>
<div
class=
"search-btn"
>
查询
</div>
<div
class=
"search-btn"
@
click=
"getData"
>
查询
</div>
</div>
<!-- 第二部分 table部分 -->
...
...
@@ -58,23 +58,25 @@
height=
"675"
ref=
"multipleTable"
:data=
"innerTableData"
highlight-current-row
:header-cell-style=
"
{ background: '#DCF0F9', color: '#507CE6' }"
class="inner-table"
tooltip-effect="dark"
@current-change="handleCurrentChange"
style="width: 100%">
<el-table-column
label=
"设备名"
:show-overflow-tooltip=
"true"
prop=
"
NO
"
>
prop=
"
Device
"
>
</el-table-column>
<el-table-column
label=
"数据类型"
:show-overflow-tooltip=
"true"
prop=
"
data
Type"
prop=
"
Date
Type"
>
</el-table-column>
<el-table-column
prop=
"
Product
Name"
prop=
"Name"
label=
"变量名"
:show-overflow-tooltip=
"true"
>
...
...
@@ -82,13 +84,13 @@
<el-table-column
label=
"描述"
:show-overflow-tooltip=
"true"
prop=
"
ProductType
"
prop=
"
Descript
"
>
</el-table-column>
<el-table-column
label=
"变量地址"
:show-overflow-tooltip=
"true"
prop=
"
PlanType
"
prop=
"
Address
"
>
</el-table-column>
</el-table>
...
...
@@ -120,6 +122,7 @@ export default {
groupList
:
[],
cloneData
:
[],
innerTableData
:
[],
currentRow
:
{},
// 分页数据
totalCount
:
0
,
// pageIndex: 1,
...
...
@@ -150,8 +153,12 @@ export default {
}
},
created
()
{
this
.
getData
()
this
.
$nextTick
(()
=>
{
this
.
getDevices
()
this
.
getGroups
()
this
.
getTypes
()
this
.
getData
()
})
},
methods
:{
// guid() {
...
...
@@ -162,35 +169,27 @@ export default {
// },
getData
()
{
var
$this
=
this
var
postData
=
{
argDevice
:
this
.
argDevice
,
argGroup
:
this
.
argGroup
,
argDataType
:
this
.
argDataType
,
argKeyWord
:
this
.
argKeyWord
,
argPageSize
:
50
,
argPageIndex
:
1
}
this
.
$axios
({
method
:
"post"
,
url
:
`/api/NewTrendChart/GstVariableList`
,
url
:
`/api/NewTrendChart/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
)
=>
{
if
(
res
.
data
.
data
.
length
!=
0
){
this
.
AllTableData
=
res
.
data
.
data
.
map
(
item
=>
({
this
.
AllTableData
=
res
.
data
.
data
.
DataList
.
map
(
item
=>
({
...
item
,
UpdateTime
:
this
.
$moment
(
item
.
UpdateTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}))
// 克隆一份tableData数据
this
.
cloneData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
AllTableData
))
if
(
this
.
AllTableData
.
length
>
this
.
$refs
.
page
.
pageSize
){
this
.
t
ableData
=
this
.
AllTableData
.
slice
(
0
,
this
.
$refs
.
page
.
pageSize
)
this
.
innerT
ableData
=
this
.
AllTableData
.
slice
(
0
,
this
.
$refs
.
page
.
pageSize
)
}
else
{
this
.
t
ableData
=
this
.
AllTableData
this
.
innerT
ableData
=
this
.
AllTableData
}
this
.
totalCount
=
this
.
AllTableData
.
length
// this.pageIndex = 1
this
.
totalPage
=
Math
.
ceil
(
this
.
AllTableData
.
length
/
this
.
$refs
.
page
.
pageSize
)
}
else
{
this
.
t
ableData
=
[]
this
.
innerT
ableData
=
[]
this
.
totalCount
=
0
// this.pageIndex = 1
this
.
totalPage
=
1
...
...
@@ -200,18 +199,24 @@ export default {
console
.
log
(
'err'
,
err
)
})
},
handleCurrentChange
(
val
)
{
this
.
currentRow
=
val
},
// 分页方法
pageFun
(
num
){
if
(
num
==
1
){
this
.
t
ableData
=
this
.
cloneData
.
slice
(
0
,
this
.
$refs
.
page
.
pageSize
)
this
.
innerT
ableData
=
this
.
cloneData
.
slice
(
0
,
this
.
$refs
.
page
.
pageSize
)
}
else
{
this
.
t
ableData
=
this
.
cloneData
.
slice
((
num
-
1
)
*
this
.
$refs
.
page
.
pageSize
,
this
.
$refs
.
page
.
pageSize
*
num
)
this
.
innerT
ableData
=
this
.
cloneData
.
slice
((
num
-
1
)
*
this
.
$refs
.
page
.
pageSize
,
this
.
$refs
.
page
.
pageSize
*
num
)
}
},
close
(){
this
.
count
=
''
this
.
value
=
''
this
.
value1
=
''
this
.
argDevice
=
'不限'
this
.
argGroup
=
'不限'
this
.
argDataType
=
'不限'
this
.
deviceList
=
[]
this
.
typeList
=
[]
this
.
groupList
=
[]
this
.
$emit
(
'closeDialog'
)
},
numFun
(){
...
...
@@ -221,18 +226,9 @@ export default {
}
},
conserve
()
{
var
dialogData
=
{
count
:
this
.
count
,
value
:
this
.
value
,
value1
:
this
.
value1
,
}
this
.
$emit
(
'conserve'
,
dialogData
)
this
.
$emit
(
'conserve'
,
this
.
currentRow
)
},
getDevices
()
{
this
.
groupList
=
[]
this
.
typeList
=
[]
this
.
argGroup
=
''
this
.
argDataType
=
''
this
.
$axios
({
method
:
"post"
,
url
:
`/api/FormulaManage/FormulaManage_GstCondition`
,
...
...
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