Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
卡
卡车调度系统
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
caicaicai
卡车调度系统
Commits
5c50a052
Commit
5c50a052
authored
Sep 01, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
08c44f64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
7 deletions
+35
-7
index.vue
src/views/MLargeScreen/index.vue
+1
-1
index.vue
...ws/system/dataDictionary/largeScreenMenuDispose/index.vue
+34
-6
No files found.
src/views/MLargeScreen/index.vue
View file @
5c50a052
...
@@ -103,7 +103,7 @@ export default {
...
@@ -103,7 +103,7 @@ export default {
let
leftTemporaryData
=
[];
let
leftTemporaryData
=
[];
let
rightTemporaryData
=
[];
let
rightTemporaryData
=
[];
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
HttpReq
.
truckDispatching
.
screenTitleMenuQuery
({
size
:
9999
,
status
:
1
}).
then
((
res
)
=>
{
HttpReq
.
truckDispatching
.
screenTitleMenuQuery
({
size
:
9999
,
status
:
1
,
pid
:
0
,
sort
:
'
dsort
'
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){;
if
(
res
.
code
==
200
){;
let
array1
=
res
.
data
.
content
;
let
array1
=
res
.
data
.
content
;
for
(
let
i
=
0
;
i
<
3
;
i
++
){
for
(
let
i
=
0
;
i
<
3
;
i
++
){
...
...
src/views/system/dataDictionary/largeScreenMenuDispose/index.vue
View file @
5c50a052
...
@@ -3,14 +3,15 @@
...
@@ -3,14 +3,15 @@
<!-- 表格 -->
<!-- 表格 -->
<div
class=
"panel-bottom page-row"
>
<div
class=
"panel-bottom page-row"
>
<h3>
大屏
主标题
配置
</h3>
<h3>
大屏配置
</h3>
<div
class=
"ctin-box"
>
<div
class=
"ctin-box"
>
<div
class=
"content-within"
>
<div
class=
"content-within"
>
<div
class=
"content-fix"
>
<div
class=
"content-fix"
>
<div
class=
"content"
>
<div
class=
"content"
>
<el-table
:data=
"tableData"
v-loading=
"loading"
border
:row-class-name=
"tableRowClassName"
height=
"
30
vh"
row-key=
"id"
:tree-props=
"
{children: 'children', hasChildren: 'hasChildren'}">
<el-table
:data=
"tableData"
v-loading=
"loading"
border
:row-class-name=
"tableRowClassName"
height=
"
75
vh"
row-key=
"id"
:tree-props=
"
{children: 'children', hasChildren: 'hasChildren'}">
<el-table-column
prop=
"title"
label=
"标题"
align=
"center"
></el-table-column>
<el-table-column
prop=
"title"
label=
"标题"
align=
"center"
></el-table-column>
<el-table-column
prop=
"componentName"
label=
"组件名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"componentName"
label=
"组件名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"dsort"
label=
"排序"
align=
"center"
></el-table-column>
<el-table-column
prop=
"status"
label=
"状态"
align=
"center"
:formatter=
"statusChange"
></el-table-column>
<el-table-column
prop=
"status"
label=
"状态"
align=
"center"
:formatter=
"statusChange"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"200"
>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"200"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -80,10 +81,37 @@ export default {
...
@@ -80,10 +81,37 @@ export default {
methods
:
{
methods
:
{
loadData
()
{
loadData
()
{
//获取大屏顶部大标题
//获取大屏顶部大标题
HttpReq
.
truckDispatching
.
screenTitleMenuQuery
({
size
:
9999
}).
then
((
res
)
=>
{
// HttpReq.truckDispatching.screenTitleMenuQuery({size:9999,pid:0,sort:'dsort'}).then((res1) => {
if
(
res
.
code
==
200
){
// if(res1.code == 200){
this
.
loading
=
false
;
// let alltableData = [];
this
.
tableData
=
res
.
data
.
content
;
// res1.data.content.forEach((item,index)=>{
// if(item.children){
// let sonData = {...item};
// sonData.children = [];
// //获取对应子标题
// HttpReq.truckDispatching.screenTitleMenuQuery({size:9999,pid:item.children,sort:'dsort'}).then((res2) => {
// if(res2.code == 200){
// sonData.children = res2.data.content;
// alltableData.push(sonData);
// this.tableData = alltableData;
// }else{
// return
// }
// })
// }else{
// alltableData.push(item);
// this.tableData = alltableData;
// }
// })
// }
// })
HttpReq
.
truckDispatching
.
screenTitleMenuQuery
({
size
:
9999
,
pid
:
0
,
sort
:
'
dsort
'
}).
then
((
res1
)
=>
{
if
(
res1
.
code
==
200
){
this
.
tableData
=
res1
.
data
.
content
;
}
}
})
})
...
...
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