Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
3da3304b
Commit
3da3304b
authored
Oct 31, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
树接口更新
parent
5939502d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
197 additions
and
253 deletions
+197
-253
default.less
assets/css/themes/default.less
+1
-1
EditGrid.vue
components/page/treeGrid/EditGrid.vue
+136
-223
henq.js
libs/henq.js
+38
-20
index.vue
pages/project/plan/index.vue
+22
-9
No files found.
assets/css/themes/default.less
View file @
3da3304b
//-------------蓝色-----------
@Theme: rgba(38, 128, 235, 1);
//滚动条颜色
@scrollbar-track-bg-color: rgb(239, 239, 239);
@scrollbar-thumb-bg-color: rgba(38, 128, 235, 0.5);
...
...
components/page/treeGrid/EditGrid.vue
View file @
3da3304b
This diff is collapsed.
Click to expand it.
libs/henq.js
View file @
3da3304b
...
...
@@ -2,30 +2,48 @@ import XLSX from 'xlsx';
import
Api
from
'@/plugins/request'
let
henq
=
{};
let
pdfInfo
=
''
henq
.
clone
=
(
obj
)
=>
{
henq
.
clone
=
(
data
)
=>
{
var
that
=
henq
var
o
if
(
typeof
obj
===
'object'
)
{
if
(
obj
===
null
)
{
o
=
null
}
else
{
if
(
obj
instanceof
Array
)
{
o
=
[]
for
(
var
i
=
0
,
len
=
obj
.
length
;
i
<
len
;
i
++
)
{
o
.
push
(
that
.
clone
(
obj
[
i
]))
}
}
else
{
o
=
{}
for
(
var
j
in
obj
)
{
o
[
j
]
=
that
.
clone
(
obj
[
j
])
}
}
}
const
t
=
that
.
type
(
data
);
let
o
;
let
i
;
let
ni
;
if
(
t
===
"array"
)
{
o
=
[];
}
else
if
(
t
===
"object"
)
{
o
=
{};
}
else
{
o
=
obj
return
data
;
}
if
(
t
===
"array"
)
{
for
(
i
=
0
,
ni
=
data
.
length
;
i
<
ni
;
i
++
)
{
o
.
push
(
that
.
clone
(
data
[
i
]));
}
return
o
;
}
if
(
t
===
"object"
)
{
for
(
i
in
data
)
{
o
[
i
]
=
that
.
clone
(
data
[
i
]);
}
return
o
;
}
return
o
}
henq
.
type
=
(
obj
)
=>
{
const
{
toString
}
=
Object
.
prototype
;
const
map
=
{
"[object Boolean]"
:
"boolean"
,
"[object Number]"
:
"number"
,
"[object String]"
:
"string"
,
"[object Function]"
:
"function"
,
"[object Array]"
:
"array"
,
"[object Date]"
:
"date"
,
"[object RegExp]"
:
"regExp"
,
"[object Undefined]"
:
"undefined"
,
"[object Null]"
:
"null"
,
"[object Object]"
:
"object"
,
};
return
map
[
toString
.
call
(
obj
)];
},
henq
.
merge
=
()
=>
{
Object
.
assign
(
argments
)
}
...
...
pages/project/plan/index.vue
View file @
3da3304b
<
template
>
<div>
<Card>
<EditGrid
:columns=
"columns"
ref=
"grid"
:items=
"list"
>
<EditGrid
:columns=
"columns"
ref=
"grid"
:items=
"list"
:drag=
"true"
>
<template
slot=
"easySearch"
><Form
ref=
"formInline"
:model=
"easySearch"
inline
><FormItem
prop=
"keys"
...
...
@@ -86,6 +86,26 @@ export default {
// { key:"projectId",title:this.l("projectId") ,align:"left" ,high:true },
// { key:"upId",title:this.l("upId") ,align:"left" ,high:true },
// { type: "selection", width: 80, align: "center" },
{
key
:
"drag"
,
type
:
"drag"
,
width
:
50
,
align
:
'center'
},
{
key
:
"upId"
,
width
:
400
,
title
:
this
.
l
(
"upId"
),
},
{
key
:
"title"
,
title
:
this
.
l
(
"title"
),
align
:
"left"
,
tree
:
true
,
easy
:
true
,
high
:
true
,
},
{
key
:
"type"
,
width
:
90
,
...
...
@@ -106,14 +126,7 @@ export default {
easy
:
true
,
high
:
true
,
},
{
key
:
"title"
,
title
:
this
.
l
(
"title"
),
align
:
"left"
,
tree
:
true
,
easy
:
true
,
high
:
true
,
},
{
key
:
"status"
,
title
:
this
.
l
(
"status"
),
...
...
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