Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
Project
Project
Details
Activity
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
王浩
zh-baseversion-project
Commits
e36ba559
Commit
e36ba559
authored
Jul 13, 2024
by
zhangjianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业上传,政府只看上传。
parent
68628511
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
TPipeOldPlanProcessController.java
...ntroller/oldpipesystem/TPipeOldPlanProcessController.java
+11
-0
index.vue
zh-baseversion-web/src/views/oldpipesystem/process/index.vue
+8
-1
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/oldpipesystem/TPipeOldPlanProcessController.java
View file @
e36ba559
package
com
.
zehong
.
web
.
controller
.
oldpipesystem
;
import
java.util.List
;
import
com.zehong.common.core.domain.model.LoginUser
;
import
com.zehong.common.utils.ServletUtils
;
import
com.zehong.framework.web.service.TokenService
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
...
@@ -33,12 +37,19 @@ public class TPipeOldPlanProcessController extends BaseController
@Autowired
private
ITPipeOldPlanProcessService
tPipeOldPlanProcessService
;
@Autowired
private
TokenService
tokenService
;
/**
* 查询老旧管网-改造计划和进度列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TPipeOldPlanProcess
tPipeOldPlanProcess
)
{
LoginUser
loginUser
=
tokenService
.
getLoginUser
(
ServletUtils
.
getRequest
());
if
(
loginUser
.
getUser
().
getRoles
().
get
(
0
).
getRoleId
()==
3
){
tPipeOldPlanProcess
.
setfUploadType
(
"1"
);
}
startPage
();
List
<
TPipeOldPlanProcess
>
list
=
tPipeOldPlanProcessService
.
selectTPipeOldPlanProcessList
(
tPipeOldPlanProcess
);
return
getDataTable
(
list
);
...
...
zh-baseversion-web/src/views/oldpipesystem/process/index.vue
View file @
e36ba559
...
...
@@ -170,6 +170,7 @@
size=
"mini"
type=
"text"
@
click=
"handleReport(scope.row)"
v-if=
"user.roleId==1||user.roleId==5"
>
上传
</el-button>
</
template
>
</el-table-column>
...
...
@@ -598,12 +599,18 @@ export default {
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fOldPlanProcessId
);
},
handleReport
(
row
){
console
.
log
(
"-----------------------------"
+
row
.
fOldPlanProcessId
)
this
.
$confirm
(
'是否确认上传老旧管网改造计划项目名称为"'
+
row
.
fProjectName
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
()
{
return
delProcess
(
fOldPlanProcessIds
);
updateProcess
({
fOldPlanProcessId
:
row
.
fOldPlanProcessId
,
fUploadType
:
1
}).
then
(
response
=>
{
this
.
msgSuccess
(
"上传成功"
);
this
.
open
=
false
;
this
.
getList
();
});
return
;
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"上传成功"
);
...
...
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