Commit e36ba559 authored by zhangjianqian's avatar zhangjianqian

企业上传,政府只看上传。

parent 68628511
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);
......
......@@ -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("上传成功");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment