Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
Jz-Php
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
PHP
Jz-Php
Commits
87e7f693
提交
87e7f693
authored
2月 05, 2020
作者:
chengye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复不能上传电表照片bug
上级
be077230
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
27 行增加
和
41 行删除
+27
-41
workspace.xml
.idea/workspace.xml
+25
-23
Em.php
application/em/controller/Em.php
+0
-15
create.html
application/em/view/em/create.html
+2
-2
admin.php
route/admin.php
+0
-1
没有找到文件。
.idea/workspace.xml
浏览文件 @
87e7f693
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"f51c1393-9404-4c81-be85-d91ed40531b3"
name=
"默认更改列表"
comment=
""
>
<list
default=
"true"
id=
"f51c1393-9404-4c81-be85-d91ed40531b3"
name=
"默认更改列表"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/application/em/controller/Em.php"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/application/em/controller/Em.php"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/application/em/controller/Em.php"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/application/em/controller/Em.php"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/application/em/view/em/create.html"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/application/em/view/em/create.html"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/route/admin.php"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/route/admin.php"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
@@ -28,11 +30,11 @@
...
@@ -28,11 +30,11 @@
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/application/em/controller/Em.php"
>
<entry
file=
"file://$PROJECT_DIR$/application/em/controller/Em.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"689"
>
<state
relative-caret-position=
"689"
>
<caret
line=
"26
9"
selection-start-line=
"269"
selection-end-line=
"269
"
/>
<caret
line=
"26
0"
column=
"5"
lean-forward=
"true"
selection-start-line=
"260"
selection-start-column=
"5"
selection-end-line=
"260"
selection-end-column=
"5
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
@@ -40,8 +42,8 @@
...
@@ -40,8 +42,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/application/em/view/em/create.html"
>
<entry
file=
"file://$PROJECT_DIR$/application/em/view/em/create.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
297
"
>
<state
relative-caret-position=
"
351
"
>
<caret
line=
"65
6"
column=
"32"
lean-forward=
"true"
selection-start-line=
"656"
selection-start-column=
"32"
selection-end-line=
"656"
selection-end-column=
"32
"
/>
<caret
line=
"65
8"
column=
"38"
lean-forward=
"true"
selection-start-line=
"658"
selection-start-column=
"38"
selection-end-line=
"658"
selection-end-column=
"38
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
@@ -55,11 +57,11 @@
...
@@ -55,11 +57,11 @@
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/route/admin.php"
>
<entry
file=
"file://$PROJECT_DIR$/route/admin.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
552
"
>
<state
relative-caret-position=
"
498
"
>
<caret
line=
"1
40"
lean-forward=
"true"
selection-start-line=
"140"
selection-end-line=
"140
"
/>
<caret
line=
"1
38"
column=
"41"
selection-start-line=
"138"
selection-start-column=
"41"
selection-end-line=
"138"
selection-end-column=
"41
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
@@ -94,9 +96,9 @@
...
@@ -94,9 +96,9 @@
<option
value=
"$PROJECT_DIR$/application/admin/view/basestation/base_map.html"
/>
<option
value=
"$PROJECT_DIR$/application/admin/view/basestation/base_map.html"
/>
<option
value=
"$PROJECT_DIR$/application/admin/controller/Upload.php"
/>
<option
value=
"$PROJECT_DIR$/application/admin/controller/Upload.php"
/>
<option
value=
"$PROJECT_DIR$/application/admin/controller/Em.php"
/>
<option
value=
"$PROJECT_DIR$/application/admin/controller/Em.php"
/>
<option
value=
"$PROJECT_DIR$/route/admin.php"
/>
<option
value=
"$PROJECT_DIR$/application/em/view/em/create.html"
/>
<option
value=
"$PROJECT_DIR$/application/em/controller/Em.php"
/>
<option
value=
"$PROJECT_DIR$/application/em/controller/Em.php"
/>
<option
value=
"$PROJECT_DIR$/application/em/view/em/create.html"
/>
<option
value=
"$PROJECT_DIR$/route/admin.php"
/>
</list>
</list>
</option>
</option>
</component>
</component>
...
@@ -286,12 +288,12 @@
...
@@ -286,12 +288,12 @@
<workItem
from=
"1579059424177"
duration=
"1050000"
/>
<workItem
from=
"1579059424177"
duration=
"1050000"
/>
<workItem
from=
"1579079847870"
duration=
"1330000"
/>
<workItem
from=
"1579079847870"
duration=
"1330000"
/>
<workItem
from=
"1579164336952"
duration=
"142000"
/>
<workItem
from=
"1579164336952"
duration=
"142000"
/>
<workItem
from=
"1580875021110"
duration=
"2
318
000"
/>
<workItem
from=
"1580875021110"
duration=
"2
413
000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TimeTrackingManager"
>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"20
192
000"
/>
<option
name=
"totallyTimeSpent"
value=
"20
287
000"
/>
</component>
</component>
<component
name=
"ToolWindowManager"
>
<component
name=
"ToolWindowManager"
>
<frame
x=
"-7"
y=
"-7"
width=
"2575"
height=
"1415"
extended-state=
"6"
/>
<frame
x=
"-7"
y=
"-7"
width=
"2575"
height=
"1415"
extended-state=
"6"
/>
...
@@ -493,31 +495,31 @@
...
@@ -493,31 +495,31 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
config/admin
.php"
>
<entry
file=
"file://$PROJECT_DIR$/
application/em/controller/Em
.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
270
"
>
<state
relative-caret-position=
"
689
"
>
<caret
line=
"
10"
column=
"22"
lean-forward=
"true"
selection-start-line=
"10"
selection-start-column=
"22"
selection-end-line=
"10"
selection-end-column=
"44
"
/>
<caret
line=
"
260"
column=
"5"
lean-forward=
"true"
selection-start-line=
"260"
selection-start-column=
"5"
selection-end-line=
"260"
selection-end-column=
"5
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
route/admin.php
"
>
<entry
file=
"file://$PROJECT_DIR$/
application/em/view/em/create.html
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
552
"
>
<state
relative-caret-position=
"
351
"
>
<caret
line=
"
140"
lean-forward=
"true"
selection-start-line=
"140"
selection-end-line=
"140
"
/>
<caret
line=
"
658"
column=
"38"
lean-forward=
"true"
selection-start-line=
"658"
selection-start-column=
"38"
selection-end-line=
"658"
selection-end-column=
"38
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
application/em/view/em/create.html
"
>
<entry
file=
"file://$PROJECT_DIR$/
config/admin.php
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
97
"
>
<state
relative-caret-position=
"2
70
"
>
<caret
line=
"
656"
column=
"32"
lean-forward=
"true"
selection-start-line=
"656"
selection-start-column=
"32"
selection-end-line=
"656"
selection-end-column=
"32
"
/>
<caret
line=
"
10"
column=
"22"
lean-forward=
"true"
selection-start-line=
"10"
selection-start-column=
"22"
selection-end-line=
"10"
selection-end-column=
"44
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
application/em/controller/Em
.php"
>
<entry
file=
"file://$PROJECT_DIR$/
route/admin
.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
689
"
>
<state
relative-caret-position=
"
498
"
>
<caret
line=
"
269"
selection-start-line=
"269"
selection-end-line=
"269
"
/>
<caret
line=
"
138"
column=
"41"
selection-start-line=
"138"
selection-start-column=
"41"
selection-end-line=
"138"
selection-end-column=
"41
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
...
application/em/controller/Em.php
浏览文件 @
87e7f693
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
namespace
app\em\controller
;
namespace
app\em\controller
;
use
app\admin\controller\Base
;
use
app\admin\controller\Base
;
use
app\admin\controller\Upload
;
use
app\admin\model\DepartmentModel
;
use
app\admin\model\DepartmentModel
;
use
app\admin\model\ElectricMeter
;
use
app\admin\model\ElectricMeter
;
use
app\admin\model\ElectricMeterType
;
use
app\admin\model\ElectricMeterType
;
...
@@ -260,17 +259,4 @@ class Em extends Base
...
@@ -260,17 +259,4 @@ class Em extends Base
return
true
;
return
true
;
}
}
}
}
public
function
emPhoto
(){
$file
=
Request
::
file
(
'em_photo'
);
$upload
=
new
Upload
(
$file
,
1
);
$result
=
$upload
->
upload
();
if
(
!
empty
(
$result
)){
return
jsonSuc
(
'电表附件上传成功'
,
$result
);
}
else
{
return
jsonErr
(
$result
);
}
}
}
}
\ No newline at end of file
application/em/view/em/create.html
浏览文件 @
87e7f693
...
@@ -654,8 +654,8 @@
...
@@ -654,8 +654,8 @@
//上传电表照片
//上传电表照片
var
uploadEa
=
upload
.
render
({
var
uploadEa
=
upload
.
render
({
elem
:
'#electric_annex_button'
,
elem
:
'#electric_annex_button'
,
url
:
'/
emPhoto
'
,
url
:
'/
upAnnex
'
,
field
:
'
em_photo
'
,
field
:
'
annex_file
'
,
done
:
function
(
res
)
{
done
:
function
(
res
)
{
if
(
res
.
status
==
1
){
if
(
res
.
status
==
1
){
//将电表照片的ID填写
//将电表照片的ID填写
...
...
route/admin.php
浏览文件 @
87e7f693
...
@@ -137,7 +137,6 @@ Route::get('em_add/:sid','em/em/create');
...
@@ -137,7 +137,6 @@ Route::get('em_add/:sid','em/em/create');
Route
::
post
(
'em_add'
,
'em/em/store'
);
Route
::
post
(
'em_add'
,
'em/em/store'
);
Route
::
get
(
'em'
,
'em/em/index'
);
Route
::
get
(
'em'
,
'em/em/index'
);
Route
::
get
(
'em_edit/:id'
,
'em/em/update'
);
Route
::
get
(
'em_edit/:id'
,
'em/em/update'
);
Route
::
post
(
'emPhoto'
,
'em/em/emPhoto'
);
//抄表单
//抄表单
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论