Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
Z
zhongtai-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
chenweiping
zhongtai-ui
Commits
af69fd2c
提交
af69fd2c
authored
10月 23, 2021
作者:
陈泽楷
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
接口调整
上级
f1e4e18a
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
132 行增加
和
79 行删除
+132
-79
index.vue
src/views/backstage/job/index.vue
+9
-5
index.vue
src/views/backstage/policy/index.vue
+98
-70
index.vue
src/views/backstage/project/index.vue
+22
-2
vue.config.js
vue.config.js
+3
-2
没有找到文件。
src/views/backstage/job/index.vue
浏览文件 @
af69fd2c
...
...
@@ -152,13 +152,13 @@
<
template
scope=
"scope"
>
<!--
<span
v-if=
"scope.row.rectifyStatus == null"
>
没有进行整改
</span>
-->
<span
v-if=
"scope.row.rectifyStatus != null && (scope.row.rectifyStatus == '1' || scope.row.rectifyStatus == '2')"
>
整改中
</span>
<span
v-if=
"scope.row.rectifyStatus != null && scope.row.rectifyStatus == '3'"
>
整改中
</span>
<span
v-if=
"scope.row.rectifyStatus != null && scope.row.rectifyStatus == '3'"
>
已整改
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"100px"
label=
"整改审批状态"
align=
"center"
prop=
"rectifyStatus"
>
<
template
scope=
"scope"
>
<span
v-if=
"scope.row.
rectifyStatus != null && scope.row.rectifyStatus == '2'
"
>
待审批
</span>
<span
v-if=
"scope.row.
rectifyStatus != null && scope.row.rectifyStatus == '3
'"
>
已审批
</span>
<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 == '4
'"
>
已审批
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"100px"
label=
"是否已复查"
align=
"center"
>
...
...
@@ -167,6 +167,9 @@
<span
v-if=
"scope.row.checkUserName == null"
>
否
</span>
<span
v-else
>
是
</span>
</div>
<div
v-else=
"scope.row.jobType == '2'"
>
<span
v-if=
"scope.row.isCheck == '1'"
>
是
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"复查人员"
align=
"center"
prop=
"checkUserName"
/>
...
...
@@ -430,6 +433,7 @@ export default {
themeName
:
null
,
jobAssessmentType
:
null
,
rectifyStatus
:
null
,
approveStatus
:
null
,
checkUserName
:
null
,
isCheck
:
null
,
},
...
...
@@ -482,8 +486,8 @@ export default {
checkTime
:
null
,
createTime
:
null
,
updateTime
:
null
,
status
:
"
0
"
,
jobStatus
:
"
0
"
status
:
"
1
"
,
jobStatus
:
"
1
"
};
this
.
resetForm
(
"form"
);
},
...
...
src/views/backstage/policy/index.vue
浏览文件 @
af69fd2c
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<!--
<el-form-item
label=
"发布时间"
prop=
"publishTime"
>
-->
<!--
<el-date-picker
clearable
size=
"small"
style=
"width: 200px"
--
>
<!-- v-model="queryParams.publishTime"-->
<!-- type="date"-->
<!-- value-format="yyyy-MM-dd"-->
<!-- placeholder="选择发布时间">-->
<!--
</el-date-picker>
-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"状态 1正常 0删除"
prop=
"status"
>
-->
<!--
<el-select
v-model=
"queryParams.status"
placeholder=
"请选择状态 1正常 0删除"
clearable
size=
"small"
>
-->
<!--
<el-option
label=
"请选择字典生成"
value=
""
/>
-->
<!--
</el-select>
-->
<!--
</el-form-item>
-->
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<!--
<el-form-item
label=
"发布时间"
prop=
"publishTime"
>
-->
<!--
<el-date-picker
clearable
size=
"small"
style=
"width: 200px"
--
>
<!-- v-model="queryParams.publishTime"-->
<!-- type="date"-->
<!-- value-format="yyyy-MM-dd"-->
<!-- placeholder="选择发布时间">-->
<!--
</el-date-picker>
-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"状态 1正常 0删除"
prop=
"status"
>
-->
<!--
<el-select
v-model=
"queryParams.status"
placeholder=
"请选择状态 1正常 0删除"
clearable
size=
"small"
>
-->
<!--
<el-option
label=
"请选择字典生成"
value=
""
/>
-->
<!--
</el-select>
-->
<!--
</el-form-item>
-->
<el-form-item
label=
"公告标题"
prop=
"title"
>
<el-input
...
...
@@ -60,23 +66,23 @@
v-hasPermi=
"['backstage:policy:remove']"
>
删除
</el-button>
</el-col>
<!--
<el-col
:span=
"1.5"
>
-->
<!--
<el-button-->
<!-- type="warning"-->
<!-- icon="el-icon-download"-->
<!-- size="mini"-->
<!-- @click="handleExport"-->
<!-- v-hasPermi="['backstage:policy:export']"-->
<!-- >导出
</el-button>
-->
<!--
</el-col>
-->
<!--
<el-col
:span=
"1.5"
>
-->
<!--
<el-button-->
<!-- type="warning"-->
<!-- icon="el-icon-download"-->
<!-- size="mini"-->
<!-- @click="handleExport"-->
<!-- v-hasPermi="['backstage:policy:export']"-->
<!-- >导出
</el-button>
-->
<!--
</el-col>
-->
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"policyList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"id"
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"标题"
align=
"center"
prop=
"title"
/>
<el-table-column
label=
"内容"
align=
"center"
prop=
"content"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"id"
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"标题"
align=
"center"
prop=
"title"
/>
<el-table-column
label=
"内容"
align=
"center"
prop=
"content"
/>
<el-table-column
label=
"发布时间"
align=
"center"
prop=
"publishTime"
width=
"180"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
publishTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
...
...
@@ -114,24 +120,24 @@
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"500px"
append
-
to
-
body
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"80px"
>
<
el
-
form
-
item
label
=
"标题"
prop
=
"title"
>
<
el
-
input
v
-
model
=
"form.title"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
el
-
input
v
-
model
=
"form.title"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"内容"
>
<
editor
v
-
model
=
"form.content"
:
min
-
height
=
"192"
/>
<
/el-form-item
>
<!--
<
el
-
form
-
item
label
=
"发布时间"
prop
=
"publishTime"
>-->
<!--
<
el
-
date
-
picker
clearable
size
=
"small"
style
=
"width: 200px"
-->
<!--
v
-
model
=
"form.publishTime"
-->
<!--
type
=
"date"
-->
<!--
value
-
format
=
"yyyy-MM-dd"
-->
<!--
placeholder
=
"选择发布时间"
>-->
<!--
<
/el-date-picker>--
>
<!--
<
/el-form-item>--
>
<!--
<
el
-
form
-
item
label
=
"状态 1正常 0删除"
>-->
<!--
<
el
-
radio
-
group
v
-
model
=
"form.status"
>-->
<!--
<
el
-
radio
label
=
"1"
>
请选择字典生成
<
/el-radio>--
>
<!--
<
/el-radio-group>--
>
<!--
<
/el-form-item>--
>
<!--
<
el
-
form
-
item
label
=
"发布时间"
prop
=
"publishTime"
>-->
<!--
<
el
-
date
-
picker
clearable
size
=
"small"
style
=
"width: 200px"
-->
<!--
v
-
model
=
"form.publishTime"
-->
<!--
type
=
"date"
-->
<!--
value
-
format
=
"yyyy-MM-dd"
-->
<!--
placeholder
=
"选择发布时间"
>-->
<!--
<
/el-date-picker>--
>
<!--
<
/el-form-item>--
>
<!--
<
el
-
form
-
item
label
=
"状态 1正常 0删除"
>-->
<!--
<
el
-
radio
-
group
v
-
model
=
"form.status"
>-->
<!--
<
el
-
radio
label
=
"1"
>
请选择字典生成
<
/el-radio>--
>
<!--
<
/el-radio-group>--
>
<!--
<
/el-form-item>--
>
<
/el-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
type
=
"primary"
@
click
=
"submitForm"
:
disabled
=
"repeatSubmit"
>
确
定
<
/el-button
>
...
...
@@ -142,8 +148,15 @@
<
/template
>
<
script
>
import
{
listPolicy
,
getPolicy
,
delPolicy
,
addPolicy
,
updatePolicy
,
exportPolicy
}
from
"@/api/backstage/policy"
;
import
Editor
from
'@/components/Editor'
;
import
{
listPolicy
,
getPolicy
,
delPolicy
,
addPolicy
,
updatePolicy
,
exportPolicy
}
from
"@/api/backstage/policy"
;
import
Editor
from
"@/components/Editor"
;
export
default
{
name
:
"Policy"
,
...
...
@@ -182,8 +195,7 @@ export default {
// 表单参数
form
:
{
}
,
// 表单校验
rules
:
{
}
rules
:
{
}
}
;
}
,
created
()
{
...
...
@@ -195,6 +207,9 @@ export default {
this
.
loading
=
true
;
listPolicy
(
this
.
queryParams
).
then
(
response
=>
{
this
.
policyList
=
response
.
rows
;
for
(
var
i
=
0
;
i
<
this
.
policyList
.
length
;
i
++
){
this
.
policyList
[
i
].
content
=
this
.
getSimpleText
(
this
.
policyList
[
i
].
content
)
}
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
...
...
@@ -229,9 +244,9 @@ export default {
}
,
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
id
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
this
.
ids
=
selection
.
map
(
item
=>
item
.
id
)
;
this
.
single
=
selection
.
length
!==
1
;
this
.
multiple
=
!
selection
.
length
;
}
,
/** 新增按钮操作 */
handleAdd
()
{
...
...
@@ -242,7 +257,7 @@ export default {
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
id
=
row
.
id
||
this
.
ids
const
id
=
row
.
id
||
this
.
ids
;
getPolicy
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
...
...
@@ -251,10 +266,10 @@ export default {
}
,
/** 提交按钮 */
submitForm
()
{
this
.
repeatSubmit
=
true
setTimeout
(()
=>
{
this
.
repeatSubmit
=
false
//点击一次时隔两秒后才能再次点击
}
,
2000
)
this
.
repeatSubmit
=
true
;
setTimeout
(()
=>
{
this
.
repeatSubmit
=
false
;
//点击一次时隔两秒后才能再次点击
}
,
2000
);
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
id
!=
null
)
{
...
...
@@ -276,29 +291,42 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
ids
=
row
.
id
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除政策公告编号为"'
+
ids
+
'"的数据项?'
,
"警告"
,
{
this
.
$confirm
(
'是否确认删除政策公告编号为"'
+
ids
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(
function
()
{
}
)
.
then
(
function
()
{
return
delPolicy
(
ids
);
}
).
then
(()
=>
{
}
)
.
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
}
)
}
)
;
}
,
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有政策公告数据项?'
,
"警告"
,
{
this
.
$confirm
(
"是否确认导出所有政策公告数据项?"
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(
function
()
{
}
)
.
then
(
function
()
{
return
exportPolicy
(
queryParams
);
}
).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
}
)
.
then
(
response
=>
{
this
.
download
(
response
.
msg
);
}
);
}
,
getSimpleText
(
html
)
{
var
re1
=
new
RegExp
(
"<.+?>"
,
"g"
);
//匹配html标签的正则表达式,"g"是搜索匹配多个符合的内容
var
msg
=
html
.
replace
(
re1
,
""
);
//执行替换成空字符
return
msg
;
}
}
}
;
...
...
src/views/backstage/project/index.vue
浏览文件 @
af69fd2c
...
...
@@ -143,6 +143,18 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"选择级别"
prop=
"projectType"
>
<el-select
style=
"width: 100%"
clearable
filterable
v-model=
"form.projectType"
placeholder=
"请选择级别"
>
<el-option
v-for=
"dict in projectTypeSelectValueOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
>
</el-option>
</el-select>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
:disabled=
"repeatSubmit"
>
确 定
</el-button>
...
...
@@ -236,6 +248,7 @@ export default {
themeListOpen
:
false
,
themeList
:
[],
//主题列表
themeSelectValueOptions
:
[],
projectTypeSelectValueOptions
:[],
// 不可重复提交
repeatSubmit
:
false
,
// 遮罩层
...
...
@@ -280,6 +293,9 @@ export default {
themeSelectValue
:
[
{
required
:
true
,
message
:
"主题不能为空,请选择主题"
,
trigger
:
"blur"
}
],
projectType
:[
{
required
:
true
,
message
:
"项目级别不能为空,请选择级别"
,
trigger
:
"blur"
}
]
}
};
},
...
...
@@ -315,7 +331,8 @@ export default {
updateTime
:
null
,
status
:
"1"
,
themeSelectValue
:
null
,
areaSelectValue
:
null
areaSelectValue
:
null
,
projectType
:
null
,
};
this
.
resetForm
(
"form"
);
},
...
...
@@ -345,6 +362,9 @@ export default {
/** 新增按钮操作 */
handleAdd
()
{
this
.
getThemeList
();
this
.
getDicts
(
"project_type"
).
then
(
response
=>
{
this
.
projectTypeSelectValueOptions
=
response
.
data
;
});
this
.
reset
();
this
.
open
=
true
;
...
...
vue.config.js
浏览文件 @
af69fd2c
...
...
@@ -37,7 +37,8 @@ module.exports = {
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://localhost:7788`
,
// target: `http://localhost:7788`,
target
:
'https://faces.diaosaas.com/investigation'
,
changeOrigin
:
true
,
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论