Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
87147b7c
authored
2018-03-29 14:23:41 +0800
by
Zelig
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
资料补录限制
1 parent
8c6ecffd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
6 deletions
application/controllers/Work.php
application/views/common/footer.php
application/views/config/index.php
application/views/work/图片上传.php
application/views/work/资料/资料补录.php
resource/static/h-ui.admin/css/style.css
application/controllers/Work.php
View file @
87147b7
...
...
@@ -155,7 +155,7 @@ class Work extends CI_Controller
'operatorRecord'
=>
$ret2
,
'id'
=>
$id
);
// var_dump($data);exit;
$this
->
load
->
view
(
'work/资料/资料补录'
,
$data
);
}
...
...
application/views/common/footer.php
View file @
87147b7
...
...
@@ -155,4 +155,37 @@
}
})
}
function
json
(
data
)
{
const
n
=
new
Object
();
$
.
each
(
data
,
function
(
index
,
value
)
{
tree
(
index
,
value
,
n
)
});
return
n
;
}
function
tree
(
attr
,
value
,
tree
)
{
var
nestedAttrs
=
attr
.
split
(
'.'
)
for
(
var
i
=
0
;
i
<
nestedAttrs
.
length
;
i
++
)
{
if
(
i
===
(
nestedAttrs
.
length
-
1
))
{
if
(
tree
[
nestedAttrs
[
i
]]
!==
value
)
{
tree
[
nestedAttrs
[
i
]]
=
value
}
}
else
if
(
!
tree
.
hasOwnProperty
(
nestedAttrs
[
i
]))
{
tree
[
nestedAttrs
[
i
]]
=
{}
tree
=
tree
[
nestedAttrs
[
i
]]
}
else
{
tree
=
tree
[
nestedAttrs
[
i
]]
}
}
}
$
(
'.Wdate'
).
on
(
'focus'
,
function
()
{
WdatePicker
();
});
function
reload
()
{
table
.
fnDraw
();
}
</script>
...
...
application/views/config/index.php
View file @
87147b7
...
...
@@ -115,10 +115,6 @@
});
}
function
reload
()
{
table
.
fnDraw
();
}
</script>
</body>
<html>
...
...
application/views/work/图片上传.php
View file @
87147b7
...
...
@@ -6,7 +6,7 @@
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
资料上传
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select uploader"
size=
"1"
name=
"sourceType"
id=
"upload"
>
<select
class=
"select uploader"
size=
"1"
id=
"upload"
>
<?php
foreach
(
$this
->
session
->
sourceBaseType
as
$k
=>
$v
)
:?>
<
option
value
=
"<?=
$v->code
?>"
data
-
name
=
"<?=
$v->desc
?>"
><?=
$v
->
desc
?>
</option>
<?php
if
(
$v
->
children
&&
!
empty
(
$v
->
children
))
:?>
...
...
application/views/work/资料/资料补录.php
View file @
87147b7
This diff is collapsed.
Click to expand it.
resource/static/h-ui.admin/css/style.css
View file @
87147b7
...
...
@@ -326,3 +326,7 @@ label.radio > input:checked + img{
.top
.name
,
.top
.num
{
padding-left
:
40px
;
}
.input-text
[
type
=
"number"
]
{
width
:
100%
;
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment