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
7988c14a
authored
2018-03-26 22:25:04 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
1bd6cb0b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
application/controllers/Work.php
application/views/work/图片上传.php
resource/upload.js
application/controllers/Work.php
View file @
7988c14
...
...
@@ -152,7 +152,8 @@ class Work extends CI_Controller
'clientUnitOutputVO'
=>
$ret
->
clientUnitOutputVO
,
'clientContactOutputVOS'
=>
$ret
->
clientContactOutputVOS
,
'applyOrderVO'
=>
$ret
->
applyOrderVO
,
'operatorRecord'
=>
$ret2
'operatorRecord'
=>
$ret2
,
'id'
=>
$id
);
// var_dump($data);exit;
$this
->
load
->
view
(
'work/资料/资料补录'
,
$data
);
...
...
application/views/work/图片上传.php
View file @
7988c14
<input
type=
"hidden"
name=
"orderId"
value=
"
<?=
isset
(
$id
)
?
$id
:
''
?>
"
>
<div
class=
"panel panel-default mb-20"
>
<div
class=
"panel-header"
>
上传图片
</div>
<div
class=
"panel-body"
>
...
...
@@ -5,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"
id=
"upload"
>
<select
class=
"select uploader"
size=
"1"
name=
"sourceType"
id=
"upload"
>
<?php
foreach
(
$this
->
session
->
sourceBaseType
as
$k
=>
$v
)
:?>
<
option
value
=
"<?=
$v->code
?>"
><?=
$v
->
desc
?>
</option>
<?php
if
(
$v
->
children
&&
!
empty
(
$v
->
children
))
:?>
...
...
resource/upload.js
View file @
7988c14
...
...
@@ -12,7 +12,7 @@ jQuery(function() {
auto
:
true
,
// 文件接收服务端。
server
:
'http://151.28ms.com:8088/order/ordersource/baseUpload?type='
+
$
(
'#upload'
).
val
(),
server
:
'http://151.28ms.com:8088/order/ordersource/baseUpload?type='
+
$
(
'#upload'
).
val
()
+
'&orderId='
+
$
(
'#orderId'
).
val
()
,
// 选择文件的按钮。可选。
// 内部根据当前运行是创建,可能是input元素,也可能是flash.
...
...
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