Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
Project
Project
Details
Activity
Releases
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
李苏
sgaqgl-vue
Commits
873b4d78
Commit
873b4d78
authored
Oct 12, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增功能
parent
6b9b8c86
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
597 additions
and
185 deletions
+597
-185
index.js
src/router/index.js
+1
-1
content.vue
src/views/riskPrecontrol/screeningCriteria/content.vue
+130
-0
cycle.vue
src/views/riskPrecontrol/screeningCriteria/cycle.vue
+130
-0
details.vue
src/views/riskPrecontrol/screeningCriteria/details.vue
+11
-0
index.vue
src/views/riskPrecontrol/screeningCriteria/index.vue
+195
-184
personLiable.vue
src/views/riskPrecontrol/screeningCriteria/personLiable.vue
+130
-0
No files found.
src/router/index.js
View file @
873b4d78
...
...
@@ -187,7 +187,7 @@ export const constantRoutes = [
component
:
Layout
,
hidden
:
false
,
alwaysShow
:
true
,
redirect
:
'
noredirect
'
,
redirect
:
'
screeningCriteria
'
,
meta
:
{
title
:
"风险预控"
,
icon
:
"system"
,
noCache
:
false
,
link
:
null
,
mkid
:
105000000
},
children
:
[
{
...
...
src/views/riskPrecontrol/screeningCriteria/content.vue
0 → 100644
View file @
873b4d78
<
template
>
<div
class=
"min_full"
style=
"height: calc(84vh - 75px);"
>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
<!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/-->
</TablePager>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
QueryAppversion
,
QueryApptype
,
AddAppversion
,
DelAppversion
,
UpdateAppversion
}
from
"common/src/api/system/dmgSystem.js"
;
/* edit页面*/
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
/* 初始额外赋值*/
async
mounted
()
{
await
this
.
$asRun
(
[
QueryApptype
(),
res
=>
{
var
data
=
res
[
'data'
][
'records'
];
let
typeMap
=
[]
for
(
var
i
in
data
)
{
typeMap
[
data
[
i
].
id
]
=
data
[
i
].
name
}
this
.
systemType
=
data
this
.
typeMap
=
typeMap
}
]
)
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
typeMap
:
[],
systemType
:
[],
baseUrl
:
'kzzx/appversion'
,
/* 查询参数*/
queryParams
:
{},
/* 表格标题对应参数*/
tableTitle
:
[{
prop
:
'appid'
,
label
:
'APPID'
,
width
:
'120'
},
{
prop
:
'name'
,
label
:
'APP名称'
,
width
:
'120'
},
{
prop
:
'type'
,
label
:
'系统类型'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
var
text
=
this
.
typeMap
[
cellValue
]
return
text
;
}
},
{
prop
:
'version'
,
label
:
'app版本'
,
width
:
'120'
},
{
prop
:
'url'
,
label
:
'下载路径'
,
width
:
'350'
},
{
prop
:
'bz'
,
label
:
'备注'
,
width
:
'140'
},
{
prop
:
'whr'
,
label
:
'维护人'
,
width
:
'100'
},
{
prop
:
'whsj'
,
label
:
'维护时间'
,
...
this
.
$common
(
'ftDateTime'
)
},
]
}
},
methods
:
{
/* 基础查询*/
query
:
QueryAppversion
,
/* 基础增*/
apiAdd
:
AddAppversion
,
/* 基础更新*/
apiUpdate
:
UpdateAppversion
,
/* 删除操作*/
apiDelete
:
DelAppversion
,
/* 初始化赋值操作*/
},
/* 注册组件*/
components
:
{
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/riskPrecontrol/screeningCriteria/cycle.vue
0 → 100644
View file @
873b4d78
<
template
>
<div
class=
"min_full"
style=
"height: calc(84vh - 75px);"
>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
<!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/-->
</TablePager>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
QueryAppversion
,
QueryApptype
,
AddAppversion
,
DelAppversion
,
UpdateAppversion
}
from
"common/src/api/system/dmgSystem.js"
;
/* edit页面*/
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
/* 初始额外赋值*/
async
mounted
()
{
await
this
.
$asRun
(
[
QueryApptype
(),
res
=>
{
var
data
=
res
[
'data'
][
'records'
];
let
typeMap
=
[]
for
(
var
i
in
data
)
{
typeMap
[
data
[
i
].
id
]
=
data
[
i
].
name
}
this
.
systemType
=
data
this
.
typeMap
=
typeMap
}
]
)
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
typeMap
:
[],
systemType
:
[],
baseUrl
:
'kzzx/appversion'
,
/* 查询参数*/
queryParams
:
{},
/* 表格标题对应参数*/
tableTitle
:
[{
prop
:
'appid'
,
label
:
'APPID'
,
width
:
'120'
},
{
prop
:
'name'
,
label
:
'APP名称'
,
width
:
'120'
},
{
prop
:
'type'
,
label
:
'系统类型'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
var
text
=
this
.
typeMap
[
cellValue
]
return
text
;
}
},
{
prop
:
'version'
,
label
:
'app版本'
,
width
:
'120'
},
{
prop
:
'url'
,
label
:
'下载路径'
,
width
:
'350'
},
{
prop
:
'bz'
,
label
:
'备注'
,
width
:
'140'
},
{
prop
:
'whr'
,
label
:
'维护人'
,
width
:
'100'
},
{
prop
:
'whsj'
,
label
:
'维护时间'
,
...
this
.
$common
(
'ftDateTime'
)
},
]
}
},
methods
:
{
/* 基础查询*/
query
:
QueryAppversion
,
/* 基础增*/
apiAdd
:
AddAppversion
,
/* 基础更新*/
apiUpdate
:
UpdateAppversion
,
/* 删除操作*/
apiDelete
:
DelAppversion
,
/* 初始化赋值操作*/
},
/* 注册组件*/
components
:
{
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/riskPrecontrol/screeningCriteria/details.vue
0 → 100644
View file @
873b4d78
<
template
>
<div>
details
</div>
</
template
>
<
script
>
</
script
>
<
style
>
</
style
>
\ No newline at end of file
src/views/riskPrecontrol/screeningCriteria/index.vue
View file @
873b4d78
<
template
>
<div
class=
"min_full"
style=
"height: 140vh;"
>
<div
class=
"min_full"
style=
"height: 40%;"
>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
开始日期:
</span>
<el-date-picker
v-model=
"queryParams.ksrq"
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
结束日期:
</span>
<el-date-picker
v-model=
"queryParams.jsrq"
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
<div
class=
"min_full"
style=
"height: 60%;padding: 5px;"
>
<!-- tabs -->
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"详细"
name=
"first"
>
用户管理
</el-tab-pane>
<el-tab-pane
label=
"检查周期"
name=
"second"
>
配置管理
</el-tab-pane>
<el-tab-pane
label=
"检查内容"
name=
"third"
>
角色管理
</el-tab-pane>
<el-tab-pane
label=
"责任人"
name=
"fourth"
>
定时任务补偿
</el-tab-pane>
</el-tabs>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
QueryKzzxRole
,
QueryApptype
,
AddKzzxRole
,
DeleteKzzxRole
,
UpdateKzzxRole
,
QtKzzxRole
}
from
"common/src/api/system/dmgSystem.js"
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'kzzx/role'
,
/* 查询参数*/
queryParams
:
{
ksrq
:
''
,
jsrq
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'whsj'
,
label
:
'公告日期'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'whsj'
,
label
:
'有效期至'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'whr'
,
label
:
'标题'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'编制单位'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'内容'
,
width
:
'100'
}
]
}
},
methods
:
{
/* 基础查询*/
query
:
QueryKzzxRole
,
/* 基础增*/
apiAdd
:
AddKzzxRole
,
/* 基础更新*/
apiUpdate
:
UpdateKzzxRole
,
/* 删除操作*/
apiDelete
:
DeleteKzzxRole
,
/* 初始化赋值操作*/
init
()
{
},
/* 启用停用*/
setEnable
(
id
)
{
this
.
$confirm
(
'是否启用/停用该角色, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
params
=
{
id
:
id
}
QtKzzxRole
(
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
app
.
$refs
[
'TablePager'
].
reLoad
()
}
else
{
this
.
$error
(
res
.
message
||
'操作失败'
)
}
})
})
}
},
components
:
{
Edit
,
}
}
</
script
>
<
style
scoped
>
<
template
>
<div
class=
"min_full"
style=
"height: 140vh;"
>
<div
class=
"min_full"
style=
"height: 40%;"
>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
开始日期:
</span>
<el-date-picker
v-model=
"queryParams.ksrq"
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
结束日期:
</span>
<el-date-picker
v-model=
"queryParams.jsrq"
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
<div
class=
"min_full"
style=
"height: 60%;padding: 10px;"
>
<!-- tabs -->
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"详细"
name=
"first"
>
<Details
/>
</el-tab-pane>
<el-tab-pane
label=
"检查周期"
name=
"second"
>
<Cycle
/>
</el-tab-pane>
<el-tab-pane
label=
"检查内容"
name=
"third"
>
<Content
/>
</el-tab-pane>
<el-tab-pane
label=
"责任人"
name=
"fourth"
>
<PersonLiable
/>
</el-tab-pane>
</el-tabs>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
QueryKzzxRole
,
QueryApptype
,
AddKzzxRole
,
DeleteKzzxRole
,
UpdateKzzxRole
,
QtKzzxRole
}
from
"common/src/api/system/dmgSystem.js"
;
/* edit页面*/
import
Edit
from
'./edit'
import
Details
from
'./details.vue'
import
Cycle
from
'./cycle.vue'
import
Content
from
'./content.vue'
import
PersonLiable
from
'./personLiable.vue'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
activeName
:
'first'
,
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'kzzx/role'
,
/* 查询参数*/
queryParams
:
{
ksrq
:
''
,
jsrq
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[{
prop
:
'whsj'
,
label
:
'公告日期'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'whsj'
,
label
:
'有效期至'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'whr'
,
label
:
'标题'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'编制单位'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'内容'
,
width
:
'100'
}
]
}
},
methods
:
{
/* 基础查询*/
query
:
QueryKzzxRole
,
/* 基础增*/
apiAdd
:
AddKzzxRole
,
/* 基础更新*/
apiUpdate
:
UpdateKzzxRole
,
/* 删除操作*/
apiDelete
:
DeleteKzzxRole
,
/* 初始化赋值操作*/
init
()
{
},
/* 启用停用*/
setEnable
(
id
)
{
this
.
$confirm
(
'是否启用/停用该角色, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
params
=
{
id
:
id
}
QtKzzxRole
(
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
app
.
$refs
[
'TablePager'
].
reLoad
()
}
else
{
this
.
$error
(
res
.
message
||
'操作失败'
)
}
})
})
}
},
components
:
{
Edit
,
Details
,
Cycle
,
PersonLiable
,
Content
}
}
</
script
>
<
style
scoped
>
/
deep
/
.el-tabs__item
{
font-size
:
13px
;
color
:
#666
;
}
</
style
>
...
...
src/views/riskPrecontrol/screeningCriteria/personLiable.vue
0 → 100644
View file @
873b4d78
<
template
>
<div
class=
"min_full"
style=
"height: calc(84vh - 75px);"
>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
<!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/-->
</TablePager>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
QueryAppversion
,
QueryApptype
,
AddAppversion
,
DelAppversion
,
UpdateAppversion
}
from
"common/src/api/system/dmgSystem.js"
;
/* edit页面*/
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
/* 初始额外赋值*/
async
mounted
()
{
await
this
.
$asRun
(
[
QueryApptype
(),
res
=>
{
var
data
=
res
[
'data'
][
'records'
];
let
typeMap
=
[]
for
(
var
i
in
data
)
{
typeMap
[
data
[
i
].
id
]
=
data
[
i
].
name
}
this
.
systemType
=
data
this
.
typeMap
=
typeMap
}
]
)
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
typeMap
:
[],
systemType
:
[],
baseUrl
:
'kzzx/appversion'
,
/* 查询参数*/
queryParams
:
{},
/* 表格标题对应参数*/
tableTitle
:
[{
prop
:
'appid'
,
label
:
'APPID'
,
width
:
'120'
},
{
prop
:
'name'
,
label
:
'APP名称'
,
width
:
'120'
},
{
prop
:
'type'
,
label
:
'系统类型'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
var
text
=
this
.
typeMap
[
cellValue
]
return
text
;
}
},
{
prop
:
'version'
,
label
:
'app版本'
,
width
:
'120'
},
{
prop
:
'url'
,
label
:
'下载路径'
,
width
:
'350'
},
{
prop
:
'bz'
,
label
:
'备注'
,
width
:
'140'
},
{
prop
:
'whr'
,
label
:
'维护人'
,
width
:
'100'
},
{
prop
:
'whsj'
,
label
:
'维护时间'
,
...
this
.
$common
(
'ftDateTime'
)
},
]
}
},
methods
:
{
/* 基础查询*/
query
:
QueryAppversion
,
/* 基础增*/
apiAdd
:
AddAppversion
,
/* 基础更新*/
apiUpdate
:
UpdateAppversion
,
/* 删除操作*/
apiDelete
:
DelAppversion
,
/* 初始化赋值操作*/
},
/* 注册组件*/
components
:
{
}
}
</
script
>
<
style
scoped
>
</
style
>
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