Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
Z
zhongtai-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
chenweiping
zhongtai-ui
Commits
8c7c1588
提交
8c7c1588
authored
11月 18, 2021
作者:
陈泽楷
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
提交
上级
a270c462
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
63 行增加
和
33 行删除
+63
-33
dataReport.js
src/api/backstage/dataReport.js
+17
-0
index.vue
src/views/backstage/investigator/index.vue
+2
-0
detail.vue
src/views/backstage/job/detail.vue
+6
-6
index.vue
src/views/backstage/job/index.vue
+18
-17
index.vue
src/views/backstage/point/index.vue
+17
-7
vue.config.js
vue.config.js
+3
-3
没有找到文件。
src/api/backstage/dataReport.js
浏览文件 @
8c7c1588
...
@@ -23,6 +23,17 @@ export function exportAllProject(value) {
...
@@ -23,6 +23,17 @@ export function exportAllProject(value) {
data
:
value
data
:
value
})
})
}
}
// 导出所有主题数据
export
function
exportAllTheme
(
projectId
,
value
)
{
value
.
unshift
(
projectId
)
return
request
({
url
:
'/backstage/dataReport/exportAllTheme'
,
method
:
'post'
,
data
:
value
})
}
//获取全部项目
//获取全部项目
export
function
getAllProjectList
()
{
export
function
getAllProjectList
()
{
return
request
({
return
request
({
...
@@ -30,3 +41,9 @@ export function getAllProjectList() {
...
@@ -30,3 +41,9 @@ export function getAllProjectList() {
method
:
'get'
method
:
'get'
})
})
}
}
export
function
getThemeListByProjectId
(
projectId
)
{
return
request
({
url
:
'/backstage/dataReport/getThemeListByProjectId?projectId='
+
projectId
,
method
:
'get'
})
}
\ No newline at end of file
src/views/backstage/investigator/index.vue
浏览文件 @
8c7c1588
...
@@ -78,6 +78,7 @@
...
@@ -78,6 +78,7 @@
<el-table-column
label=
"被打回任务数"
align=
"center"
prop=
"repulseJobNum"
/>
<el-table-column
label=
"被打回任务数"
align=
"center"
prop=
"repulseJobNum"
/>
<el-table-column
label=
"待复查任务数"
align=
"center"
prop=
"notReviewedJobNum"
/>
<el-table-column
label=
"待复查任务数"
align=
"center"
prop=
"notReviewedJobNum"
/>
<el-table-column
label=
"待审核任务数"
align=
"center"
prop=
"examineJobNum"
/>
<el-table-column
label=
"待审核任务数"
align=
"center"
prop=
"examineJobNum"
/>
<el-table-column
label=
"密码"
align=
"center"
prop=
"realPassword"
/>
<el-table-column
label=
"状态"
align=
"center"
>
<el-table-column
label=
"状态"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-switch
<el-switch
...
@@ -310,6 +311,7 @@ export default {
...
@@ -310,6 +311,7 @@ export default {
}).then(({ value }) => {
}).then(({ value }) => {
resetUserPwd(row.userId, value).then(response => {
resetUserPwd(row.userId, value).then(response => {
this.msgSuccess("
修改成功,新密码是:
" + value);
this.msgSuccess("
修改成功,新密码是:
" + value);
this.getList();
});
});
}).catch(() => {});
}).catch(() => {});
},
},
...
...
src/views/backstage/job/detail.vue
浏览文件 @
8c7c1588
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
<img
<img
:src=
"image.url"
:src=
"image.url"
style=
"width: 100px;height: 100px; cursor:pointer"
/>
style=
"width: 100px;height: 100px; cursor:pointer"
/>
<div
style=
"margin-top: 20px"
v-if=
"image.type == null"
>
备注:
{{
image
.
remark
}}
</div>
<div
style=
"margin-top: 20px"
v-if=
"image.type == null
|| image.type =='' || image.type =='0'
"
>
备注:
{{
image
.
remark
}}
</div>
<div
style=
"margin-top: 20px"
v-else
>
<div
style=
"margin-top: 20px"
v-else
>
<div
:style=
"
{'color':image.type ==2?'red':'blue'}">备注:
{{
image
.
remark
}}
</div>
<div
:style=
"
{'color':image.type ==2?'red':'blue'}">备注:
{{
image
.
remark
}}
</div>
</div>
</div>
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
<!-- :options="playerOptions"-->
<!-- :options="playerOptions"-->
<!-- @play="apply(image.url)"-->
<!-- @play="apply(image.url)"-->
<!-- >
</video-player>
-->
<!-- >
</video-player>
-->
<div
style=
"margin-top: 20px"
v-if=
"image.type == null"
>
备注:
{{
image
.
remark
}}
</div>
<div
style=
"margin-top: 20px"
v-if=
"image.type == null
|| image.type =='' || image.type =='0'
"
>
备注:
{{
image
.
remark
}}
</div>
<div
style=
"margin-top: 20px"
v-else
>
<div
style=
"margin-top: 20px"
v-else
>
<div
:style=
"
{'color':image.type ==2?'red':'blue'}">备注:
{{
image
.
remark
}}
</div>
<div
:style=
"
{'color':image.type ==2?'red':'blue'}">备注:
{{
image
.
remark
}}
</div>
</div>
</div>
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
<img
<img
:src=
"image.url"
:src=
"image.url"
style=
"width: 100px;height: 100px; cursor:pointer"
/>
style=
"width: 100px;height: 100px; cursor:pointer"
/>
<div
style=
"margin-top: 20px"
v-if=
"image.type == null"
>
备注:
{{
image
.
remark
}}
</div>
<div
style=
"margin-top: 20px"
v-if=
"image.type == null
|| image.type =='' || image.type =='0'
"
>
备注:
{{
image
.
remark
}}
</div>
<div
style=
"margin-top: 20px"
v-else
>
<div
style=
"margin-top: 20px"
v-else
>
<div
:style=
"
{'color':image.type ==2?'red':'blue'}">备注:
{{
image
.
remark
}}
</div>
<div
:style=
"
{'color':image.type ==2?'red':'blue'}">备注:
{{
image
.
remark
}}
</div>
</div>
</div>
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
<div>
<div>
<video
style=
"width: 100%; height: 200px;"
autoplay
controls
:src=
"image.url"
></video>
<video
style=
"width: 100%; height: 200px;"
autoplay
controls
:src=
"image.url"
></video>
<div
style=
"margin-top: 20px"
v-if=
"image.type == null"
>
备注:
{{
image
.
remark
}}
</div>
<div
style=
"margin-top: 20px"
v-if=
"image.type == null
|| image.type =='' || image.type =='0'
"
>
备注:
{{
image
.
remark
}}
</div>
<div
style=
"margin-top: 20px"
v-else
>
<div
style=
"margin-top: 20px"
v-else
>
<div
:style=
"
{'color':image.type ==2?'red':'blue'}">备注:
{{
image
.
remark
}}
</div>
<div
:style=
"
{'color':image.type ==2?'red':'blue'}">备注:
{{
image
.
remark
}}
</div>
</div>
</div>
...
@@ -175,7 +175,7 @@
...
@@ -175,7 +175,7 @@
<img
<img
:src=
"image.url"
:src=
"image.url"
style=
"width: 100px;height: 100px; cursor:pointer"
/>
style=
"width: 100px;height: 100px; cursor:pointer"
/>
<div
style=
"margin-top: 20px"
v-if=
"image.type == null"
>
备注:
{{
image
.
remark
}}
</div>
<div
style=
"margin-top: 20px"
v-if=
"image.type == null
|| image.type =='' || image.type =='0'
"
>
备注:
{{
image
.
remark
}}
</div>
<div
style=
"margin-top: 20px"
v-else
>
<div
style=
"margin-top: 20px"
v-else
>
<div
:style=
"
{'color':image.type ==2?'red':'blue'}">备注:
{{
image
.
remark
}}
</div>
<div
:style=
"
{'color':image.type ==2?'red':'blue'}">备注:
{{
image
.
remark
}}
</div>
</div>
</div>
...
@@ -186,7 +186,7 @@
...
@@ -186,7 +186,7 @@
<div>
<div>
<video
style=
"width: 100%; height: 200px;"
autoplay
controls
:src=
"image.url"
></video>
<video
style=
"width: 100%; height: 200px;"
autoplay
controls
:src=
"image.url"
></video>
<div
style=
"margin-top: 20px"
v-if=
"image.type == null"
>
备注:
{{
image
.
remark
}}
</div>
<div
style=
"margin-top: 20px"
v-if=
"image.type == null
|| image.type =='' || image.type =='0'
"
>
备注:
{{
image
.
remark
}}
</div>
<div
style=
"margin-top: 20px"
v-else
>
<div
style=
"margin-top: 20px"
v-else
>
<div
:style=
"
{'color':image.type ==2?'red':'blue'}">备注:
{{
image
.
remark
}}
</div>
<div
:style=
"
{'color':image.type ==2?'red':'blue'}">备注:
{{
image
.
remark
}}
</div>
</div>
</div>
...
...
src/views/backstage/job/index.vue
浏览文件 @
8c7c1588
...
@@ -158,7 +158,7 @@
...
@@ -158,7 +158,7 @@
</el-table-column>
</el-table-column>
<el-table-column
width=
"100px"
label=
"整改审批状态"
align=
"center"
prop=
"rectifyStatus"
>
<el-table-column
width=
"100px"
label=
"整改审批状态"
align=
"center"
prop=
"rectifyStatus"
>
<
template
scope=
"scope"
>
<
template
scope=
"scope"
>
<span
v-if=
"scope.row.approveStatus != null &&
(scope.row.approveStatus == '1' ||scope.row.approveStatus == '2'||scope.row.approveStatus == '3' )
"
>
待审批
</span>
<span
v-if=
"scope.row.approveStatus != null &&
scope.row.approveStatus == '3'
"
>
待审批
</span>
<span
v-if=
"scope.row.approveStatus != null && scope.row.approveStatus == '4'"
>
已审批
</span>
<span
v-if=
"scope.row.approveStatus != null && scope.row.approveStatus == '4'"
>
已审批
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -314,13 +314,9 @@
...
@@ -314,13 +314,9 @@
<br><br>
<br><br>
<div>
<div>
<span>
<span>
主题:
<el-cascader
主题:
<el-select
multiple
style=
"width: 80%"
v-model=
"exportLevelValue"
placeholder=
"请选择主题"
clearable
>
style=
"width: 80%"
<el-option
v-for=
"item in themeListName"
:label=
"item.name"
:value=
"item.id"
/>
key=
"id"
</el-select>
v-model=
"exportLevelValue"
:options=
"exportLevelOptions"
:props=
"{ expandTrigger: 'hover',checkStrictly: true}"
clearable
></el-cascader>
</span>
</span>
</div>
</div>
...
@@ -336,7 +332,7 @@
...
@@ -336,7 +332,7 @@
<
script
>
<
script
>
import
{
selectCheckTarget
,
getCheckTarget
,
selectRectifyTarget
,
getRectifyTarget
,
distributeRectificationJob
,
rollbackJob
,
auditJob
,
getList
,
listJob
,
getJob
,
delJob
,
addJob
,
updateJob
,
exportJob
}
from
"@/api/backstage/job"
;
import
{
selectCheckTarget
,
getCheckTarget
,
selectRectifyTarget
,
getRectifyTarget
,
distributeRectificationJob
,
rollbackJob
,
auditJob
,
getList
,
listJob
,
getJob
,
delJob
,
addJob
,
updateJob
,
exportJob
}
from
"@/api/backstage/job"
;
import
{
exportAllProject
,
getProjectList
,
getAllProjectList
}
from
"@/api/backstage/dataReport"
;
import
{
exportAllProject
,
getProjectList
,
getAllProjectList
,
getThemeListByProjectId
,
exportAllTheme
}
from
"@/api/backstage/dataReport"
;
export
default
{
export
default
{
name
:
"Job"
,
name
:
"Job"
,
...
@@ -345,7 +341,9 @@ export default {
...
@@ -345,7 +341,9 @@ export default {
exportLevelValue
:[],
exportLevelValue
:[],
exportLevelOptions
:[],
exportLevelOptions
:[],
projectIdSelect
:
null
,
projectIdSelect
:
null
,
themeIdSelectList
:[],
projectListName
:[],
projectListName
:[],
themeListName
:[],
exportOpen
:
false
,
exportOpen
:
false
,
rectifyTargetValueOptions
:[],
rectifyTargetValueOptions
:[],
checkTargetValueOptions
:[],
checkTargetValueOptions
:[],
...
@@ -584,6 +582,11 @@ export default {
...
@@ -584,6 +582,11 @@ export default {
},
},
//提交导出
//提交导出
exportSubmit
(){
exportSubmit
(){
if
(
this
.
projectIdSelect
==
null
){
this
.
$message
.
error
(
"请先选择导出项目"
);
return
;
}
if
(
this
.
exportLevelValue
==
null
){
if
(
this
.
exportLevelValue
==
null
){
this
.
$message
.
error
(
"请先选择导出的项目主题"
);
this
.
$message
.
error
(
"请先选择导出的项目主题"
);
return
;
return
;
...
@@ -595,12 +598,7 @@ export default {
...
@@ -595,12 +598,7 @@ export default {
type
:
"warning"
type
:
"warning"
}).
then
(()
=>
{
}).
then
(()
=>
{
var
data
=
{
return
exportAllTheme
(
this
.
projectIdSelect
,
this
.
exportLevelValue
);
"ids"
:
this
.
exportLevelValue
,
"projectId"
:
this
.
projectIdSelect
};
return
exportAllProject
(
data
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
download
(
response
.
msg
);
this
.
exportOpen
=
false
;
this
.
exportOpen
=
false
;
...
@@ -731,11 +729,14 @@ export default {
...
@@ -731,11 +729,14 @@ export default {
});
});
},
},
selectProject
(){
selectProject
(){
console
.
log
(
this
.
projectIdSelect
)
getProjectList
(
this
.
projectIdSelect
).
then
(
res
=>
{
getProjectList
(
this
.
projectIdSelect
).
then
(
res
=>
{
this
.
exportLevelOptions
=
res
.
data
;
this
.
exportLevelOptions
=
res
.
data
;
})
})
}
getThemeListByProjectId
(
this
.
projectIdSelect
).
then
(
res
=>
{
this
.
themeListName
=
res
.
data
;
})
},
}
}
};
};
</
script
>
</
script
>
src/views/backstage/point/index.vue
浏览文件 @
8c7c1588
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"名称"
prop=
"name"
>
<el-form-item
label=
"名称"
prop=
"name"
>
<el-input
<el-input
v-model=
"queryParams.
n
ame"
v-model=
"queryParams.
totalLevelN
ame"
placeholder=
"请输入名称"
placeholder=
"请输入名称"
clearable
clearable
size=
"small"
size=
"small"
...
@@ -60,11 +60,17 @@
...
@@ -60,11 +60,17 @@
<!-- @keyup.enter.native="handleQuery"-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- />-->
<!--
</el-form-item>
-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"统计点类型"
prop=
"type"
>
-->
<el-form-item
label=
"统计点类型"
prop=
"type"
>
<!--
<el-select
v-model=
"queryParams.type"
placeholder=
"请选择统计点类型"
clearable
size=
"small"
>
-->
<el-select
v-model=
"queryParams.type"
placeholder=
"请选择统计点类型"
clearable
size=
"small"
>
<!--
<el-option
label=
"请选择字典生成"
value=
""
/>
-->
<el-option
label=
"省级"
value=
"1"
/>
<!--
</el-select>
-->
<el-option
label=
"市级"
value=
"2"
/>
<!--
</el-form-item>
-->
<el-option
label=
"县级"
value=
"3"
/>
<el-option
label=
"乡级"
value=
"4"
/>
<el-option
label=
"村级"
value=
"5"
/>
<el-option
label=
"自然村"
value=
"6"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"cyan"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
type=
"cyan"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -211,7 +217,7 @@
...
@@ -211,7 +217,7 @@
<el-input
show-password
type=
"password"
v-model=
"form.password"
autocomplete=
"off"
placeholder=
"密码要求:8-20位字符在数字、小写、大写字母以及特殊字符中四选三"
></el-input>
<el-input
show-password
type=
"password"
v-model=
"form.password"
autocomplete=
"off"
placeholder=
"密码要求:8-20位字符在数字、小写、大写字母以及特殊字符中四选三"
></el-input>
<el-progress
:percentage=
"passwordPercent"
:format=
"passwordPercentFormat"
></el-progress>
<el-progress
:percentage=
"passwordPercent"
:format=
"passwordPercentFormat"
></el-progress>
</el-form-item>
</el-form-item>
<el-form-item
label=
"再次输入密码"
prop=
"comfirmPassword"
>
<el-form-item
v-if=
"this.isAdd === true"
label=
"再次输入密码"
prop=
"comfirmPassword"
>
<el-input
show-password
type=
"password"
placeholder=
"请再次输入密码"
v-model=
"form.comfirmPassword"
autocomplete=
"off"
></el-input>
<el-input
show-password
type=
"password"
placeholder=
"请再次输入密码"
v-model=
"form.comfirmPassword"
autocomplete=
"off"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -401,6 +407,7 @@ export default {
...
@@ -401,6 +407,7 @@ export default {
title
:
""
,
title
:
""
,
// 是否显示弹出层
// 是否显示弹出层
open
:
false
,
open
:
false
,
isAdd
:
false
,
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageNum
:
1
,
...
@@ -413,6 +420,7 @@ export default {
...
@@ -413,6 +420,7 @@ export default {
latitude
:
null
,
latitude
:
null
,
superiorId
:
null
,
superiorId
:
null
,
type
:
null
,
type
:
null
,
totalLevelName
:
null
,
},
},
// 表单参数
// 表单参数
form
:
{
form
:
{
...
@@ -506,6 +514,7 @@ export default {
...
@@ -506,6 +514,7 @@ export default {
this
.
statisticsPointsType
=
''
;
//初始化统计点类型
this
.
statisticsPointsType
=
''
;
//初始化统计点类型
this
.
passwordPercent
=
0
;
//初始化密码进度条
this
.
passwordPercent
=
0
;
//初始化密码进度条
this
.
addStatisticsTypeStatus
=
true
;
this
.
addStatisticsTypeStatus
=
true
;
this
.
isAdd
=
true
;
},
},
//选择新增类型确定按钮
//选择新增类型确定按钮
handleAddStatisticsPointsType
(){
handleAddStatisticsPointsType
(){
...
@@ -537,6 +546,7 @@ export default {
...
@@ -537,6 +546,7 @@ export default {
this
.
passwordPercent
=
0
;
//初始化密码进度条
this
.
passwordPercent
=
0
;
//初始化密码进度条
this
.
reset
();
this
.
reset
();
const
id
=
row
.
id
||
this
.
ids
;
const
id
=
row
.
id
||
this
.
ids
;
this
.
isAdd
=
false
;
getPoint
(
id
).
then
(
response
=>
{
getPoint
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
this
.
form
.
levelValue
=
JSON
.
parse
(
response
.
data
.
levelValue
)
this
.
form
.
levelValue
=
JSON
.
parse
(
response
.
data
.
levelValue
)
...
...
vue.config.js
浏览文件 @
8c7c1588
...
@@ -37,9 +37,9 @@ module.exports = {
...
@@ -37,9 +37,9 @@ module.exports = {
proxy
:
{
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `http://localhost:7788`,
// target: `http://localhost:7788`,
//
target: `http://152.136.125.222:8095/investigation`, //正式
//
target: `http://152.136.125.222:8095/investigation`, //正式
target
:
'https://faces.diaosaas.com/investigation'
,
//测试
target
:
'https://faces.diaosaas.com/investigation'
,
//测试
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论