Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
workbiu-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gxx
workbiu-admin
Commits
d8e77991
Commit
d8e77991
authored
Dec 12, 2017
by
gxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取团队id
parent
b1716724
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
FileController.php
app/Http/Controllers/FileController.php
+2
-0
GroupController.php
app/Http/Controllers/GroupController.php
+1
-1
groupinformation.blade.php
resources/views/admin/group/groupinformation.blade.php
+5
-9
No files found.
app/Http/Controllers/FileController.php
View file @
d8e77991
...
...
@@ -33,7 +33,9 @@ class FileController extends Controller
public
function
groupSpace
(
Request
$request
)
{
$group_id
=
$request
->
group_id
;
$result
=
$this
->
mFile
->
groupSpace
(
$group_id
);
$mbyte
=
ceil
(
$result
/
1048576
)
;
$finalspace
=
array
(
"usespace"
=>
$mbyte
);
...
...
app/Http/Controllers/GroupController.php
View file @
d8e77991
...
...
@@ -37,7 +37,7 @@ class GroupController extends Controller
$groups
=
$this
->
mGroup
->
get
(
$id
);
$files
=
$this
->
mFile
->
getAll
(
120
);
if
(
$groups
){
return
view
(
'admin/group/groupinformation'
,
compact
(
'groups'
,
'files'
));
return
view
(
'admin/group/groupinformation'
,
compact
(
'groups'
,
'files'
,
'id'
));
}
return
Message
::
makeError
(
'查找失败'
);
}
...
...
resources/views/admin/group/groupinformation.blade.php
View file @
d8e77991
...
...
@@ -131,10 +131,8 @@
<!--
/.
tab
-
pane
-->
<
div
class
=
"tab-pane"
id
=
"settings"
>
<
div
id
=
"main"
style
=
"width: 600px;height:400px;"
></
div
>
<
input
type
=
"text"
value
=
""
>
<
input
type
=
"text"
value
=
"
{
{$id}
}
"
id
=
"id"
>
</
div
>
<!--
/.
tab
-
pane
-->
</
div
>
...
...
@@ -162,18 +160,16 @@
// ------------------ ajax ---------------//
groupSpance
();
function
groupSpance
(){
var
id
=
document
.
getElementById
(
'id'
)
.
value
;
$
.
ajax
({
type
:
'get'
,
url
:
'{{route('
file
.
groupSpace
')}}'
,
data
:
{
group_id
:
id
},
success
:
function
(
data
){
console
.
log
(
data
);
if
(
data
==
''
){
alert
(
111
);
}
else
{
console
.
log
(
option
[
'series'
]);
}
},
error
:
function
(
data
){
console
.
log
(
'错误'
);
...
...
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