Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
Z
zhongtai-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
chenweiping
zhongtai-ui
Commits
39e7ab51
提交
39e7ab51
authored
9月 27, 2021
作者:
谢廷雅
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/master'
上级
7f8fcef3
8718dad4
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
111 行增加
和
9 行删除
+111
-9
job.js
src/api/backstage/job.js
+16
-0
index.vue
src/views/backstage/job/index.vue
+95
-9
没有找到文件。
src/api/backstage/job.js
浏览文件 @
39e7ab51
import
request
from
'@/utils/request'
//打回初次调查任务(复查任务不需要打回)
export
function
rollbackJob
(
id
)
{
return
request
({
url
:
'/backstage/job/rollbackJob/'
+
id
,
method
:
'put'
,
})
}
//审核初次调查任务(复查任务不需要审核)
export
function
auditJob
(
id
)
{
return
request
({
url
:
'/backstage/job/auditJob/'
+
id
,
method
:
'put'
,
})
}
// 查询整改任务列表
export
function
getList
(
query
)
{
return
request
({
...
...
src/views/backstage/job/index.vue
浏览文件 @
39e7ab51
...
...
@@ -65,9 +65,13 @@
</el-select>
</el-form-item>
<el-form-item
label=
"复查人员"
prop=
"jobStatus"
>
<el-select
v-model=
"queryParams.jobStatus"
placeholder=
"请选择任务状态"
clearable
size=
"small"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
</el-select>
<el-input
v-model=
"queryParams.checkUserName"
placeholder=
"请输入复查人员"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"cyan"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
...
...
@@ -121,8 +125,24 @@
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"区域名称"
align=
"center"
prop=
"totalAreaName"
/>
<el-table-column
label=
"项目名称"
align=
"center"
prop=
"projectName"
/>
<el-table-column
label=
"初考上报日期"
align=
"center"
prop=
"firstReportDate"
/>
<el-table-column
label=
"调查人员"
align=
"center"
prop=
"investigatorUserName"
/>
<el-table-column
label=
"任务类型"
align=
"center"
prop=
"jobType"
>
<template
scope=
"scope"
>
<span
v-if=
"scope.row.jobType == '1'"
>
普通任务
</span>
<span
v-if=
"scope.row.jobType == '2'"
>
复查任务
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"初考上报日期"
align=
"center"
prop=
"firstReportDate"
>
<
template
scope=
"scope"
>
<span
v-if=
"scope.row.jobType == '1'"
>
{{
scope
.
row
.
firstReportDate
}}
</span>
<span
v-if=
"scope.row.jobType == '2'"
>
{{
scope
.
row
.
firstReportDate1
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"调查人员"
align=
"center"
prop=
"investigatorUserName"
>
<
template
scope=
"scope"
>
<span
v-if=
"scope.row.jobType == '1'"
>
{{
scope
.
row
.
investigatorUserName
}}
</span>
<span
v-if=
"scope.row.jobType == '2'"
>
{{
scope
.
row
.
investigatorUserName1
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"考核主题"
align=
"center"
prop=
"themeName"
/>
<el-table-column
label=
"考核状态"
align=
"center"
prop=
"jobStatus"
>
<
template
scope=
"scope"
>
...
...
@@ -151,9 +171,24 @@
<span
v-if=
"scope.row.rectifyStatus != null && scope.row.rectifyStatus == '3'"
>
已审批
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"是否已复查"
align=
"center"
prop=
"projectId"
/>
<el-table-column
label=
"复查人员"
align=
"center"
prop=
"projectId"
/>
<el-table-column
label=
"复查上报日期"
align=
"center"
prop=
"projectId"
/>
<el-table-column
label=
"是否已复查"
align=
"center"
>
<
template
scope=
"scope"
>
<span
v-if=
"scope.row.checkUserName == null"
>
否
</span>
<span
v-else
>
是
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"复查人员"
align=
"center"
prop=
"checkUserName"
>
<
template
scope=
"scope"
>
<span
v-if=
"scope.row.jobType == '1'"
>
{{
scope
.
row
.
checkUserName
}}
</span>
<span
v-if=
"scope.row.jobType == '2'"
>
{{
scope
.
row
.
checkUserName1
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"复查上报日期"
align=
"center"
prop=
"checkTime"
>
<
template
scope=
"scope"
>
<span
v-if=
"scope.row.jobType == '1'"
>
{{
scope
.
row
.
checkTime
}}
</span>
<span
v-if=
"scope.row.jobType == '2'"
>
{{
scope
.
row
.
checkTime1
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"自然村得分"
align=
"center"
prop=
"projectId"
/>
<el-table-column
label=
"行政村得分"
align=
"center"
prop=
"projectId"
/>
<el-table-column
label=
"总得分"
align=
"center"
prop=
"projectId"
/>
...
...
@@ -161,6 +196,25 @@
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"scope.row.jobType == '1' && scope.row.jobStatus == '2'"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleAudit(scope.row)"
v-hasPermi=
"['backstage:job:edit']"
>
审核通过
</el-button>
<el-button
v-if=
"scope.row.jobType == '1' && scope.row.jobStatus == '2'"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleRollbackJob(scope.row)"
v-hasPermi=
"['backstage:job:edit']"
>
打回任务
</el-button>
<el-button
size=
"mini"
type=
"text"
...
...
@@ -279,7 +333,7 @@
</template>
<
script
>
import
{
getList
,
listJob
,
getJob
,
delJob
,
addJob
,
updateJob
,
exportJob
}
from
"@/api/backstage/job"
;
import
{
rollbackJob
,
auditJob
,
getList
,
listJob
,
getJob
,
delJob
,
addJob
,
updateJob
,
exportJob
}
from
"@/api/backstage/job"
;
export
default
{
name
:
"Job"
,
...
...
@@ -368,6 +422,7 @@ export default {
themeName
:
null
,
jobAssessmentType
:
null
,
rectifyStatus
:
null
,
checkUserName
:
null
,
},
// 表单参数
form
:
{},
...
...
@@ -497,6 +552,37 @@ export default {
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
})
},
//审核初次调查任务(复查任务不需要审核)
handleAudit
(
row
){
this
.
$confirm
(
'是否确认审核通过该调查任务?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
auditJob
(
row
.
id
).
then
(
res
=>
{
this
.
$message
.
success
(
"审核成功"
)
this
.
getList
();
}).
catch
(()
=>
{
this
.
$message
.
error
(
"审核失败"
)
})
})
},
//打回初次调查任务(复查任务不需要打回)
handleRollbackJob
(
row
){
this
.
$confirm
(
'是否确认打回该调查任务,打回任务调查员将重新调查?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
rollbackJob
(
row
.
id
).
then
(
res
=>
{
this
.
$message
.
success
(
"打回成功"
)
this
.
getList
();
}).
catch
(()
=>
{
this
.
$message
.
error
(
"打回失败"
)
})
})
}
}
};
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论