Commit 873b4d78 authored by 李苏's avatar 李苏 💬

新增功能

parent 6b9b8c86
...@@ -187,7 +187,7 @@ export const constantRoutes = [ ...@@ -187,7 +187,7 @@ export const constantRoutes = [
component: Layout, component: Layout,
hidden: false, hidden: false,
alwaysShow:true, alwaysShow:true,
redirect: 'noredirect', redirect: 'screeningCriteria',
meta: {title: "风险预控", icon: "system", noCache: false, link: null,mkid:105000000}, meta: {title: "风险预控", icon: "system", noCache: false, link: null,mkid:105000000},
children: [ children: [
{ {
......
<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>
<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>
<template>
<div>
details
</div>
</template>
<script>
</script>
<style>
</style>
\ No newline at end of file
<template> <template>
<div class="min_full" style="height: 140vh;"> <div class="min_full" style="height: 140vh;">
<div class="min_full" style="height: 40%;"> <div class="min_full" style="height: 40%;">
<!-- 查询条件--> <!-- 查询条件-->
<div class="search" v-condition> <div class="search" v-condition>
<SearchButton :app='app'></SearchButton> <SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1"> <el-row :gutter="20" class="search-row-1">
<el-col :span="6" class="search-col"> <el-col :span="6" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">开始日期:</span> <span class="search-span">开始日期:</span>
<el-date-picker <el-date-picker v-model="queryParams.ksrq" type="date" placeholder="选择日期">
v-model="queryParams.ksrq" </el-date-picker>
type="date" </div>
placeholder="选择日期"> </el-col>
</el-date-picker> <el-col :span="6" class="search-col">
</div> <div class="search-item">
</el-col> <span class="search-span">结束日期:</span>
<el-col :span="6" class="search-col"> <el-date-picker v-model="queryParams.jsrq" type="date" placeholder="选择日期">
<div class="search-item"> </el-date-picker>
<span class="search-span">结束日期:</span> </div>
<el-date-picker </el-col>
v-model="queryParams.jsrq"
type="date" </el-row>
placeholder="选择日期"> </div>
</el-date-picker> <!-- 按钮操作-->
</div> <el-row class="tool-bar">
</el-col> <PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
</el-row> <AddButton ref="add" :app='app'></AddButton>
</div> <CopyButton ref="copy" :app='app'></CopyButton>
<!-- 按钮操作--> <EditButton ref="edit" :app='app'></EditButton>
<el-row class="tool-bar"> <AttachFileButton :app='app'></AttachFileButton>
<PrintButton :app='app'></PrintButton> <FieldButton :app='app'></FieldButton>
<ViewButton ref="view" :app='app'></ViewButton> <ExcelButton :app='app'></ExcelButton>
<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> </el-row>
<ExcelButton :app='app'></ExcelButton> <!-- 表格-->
<!-- 额外按钮--> <div class="tablePagers">
<!-- 表头设置 --> <TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
<!-- 权限-->
</el-row> </TablePager>
<!-- 表格--> </div>
<div class="tablePagers"> </div>
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <div class="min_full" style="height: 60%;padding: 10px;">
@getRow='getRow'> <!-- tabs -->
<el-tabs v-model="activeName" @tab-click="handleClick" >
</TablePager> <el-tab-pane label="详细" name="first" >
</div> <Details />
</div> </el-tab-pane>
<div class="min_full" style="height: 60%;padding: 5px;"> <el-tab-pane label="检查周期" name="second">
<!-- tabs --> <Cycle />
<el-tabs v-model="activeName" @tab-click="handleClick"> </el-tab-pane>
<el-tab-pane label="详细" name="first">用户管理</el-tab-pane> <el-tab-pane label="检查内容" name="third">
<el-tab-pane label="检查周期" name="second">配置管理</el-tab-pane> <Content />
<el-tab-pane label="检查内容" name="third">角色管理</el-tab-pane> </el-tab-pane>
<el-tab-pane label="责任人" name="fourth">定时任务补偿</el-tab-pane> <el-tab-pane label="责任人" name="fourth">
</el-tabs> <PersonLiable />
</div> </el-tab-pane>
</el-tabs>
</div> </div>
</template>
</div>
<script> </template>
/* 引入需要的接口*/
import { <script>
QueryKzzxRole, /* 引入需要的接口*/
QueryApptype, import {
AddKzzxRole, QueryKzzxRole,
DeleteKzzxRole, QueryApptype,
UpdateKzzxRole, AddKzzxRole,
QtKzzxRole DeleteKzzxRole,
} from "common/src/api/system/dmgSystem.js"; UpdateKzzxRole,
/* edit页面*/ QtKzzxRole
import Edit from './edit' } from "common/src/api/system/dmgSystem.js";
import { /* edit页面*/
tableMixin import Edit from './edit'
} from 'common' import Details from './details.vue'
export default { import Cycle from './cycle.vue'
mixins: [tableMixin], import Content from './content.vue' import PersonLiable from './personLiable.vue'
name: 'appVersion', import {
tableMixin
/* 初始额外赋值*/ } from 'common'
async mounted() { export default {
this.$refs['TablePager'].pageQuery() mixins: [tableMixin],
}, name: 'appVersion',
data() {
return { /* 初始额外赋值*/
async mounted() {
/*需要的额外参数 */ this.$refs['TablePager'].pageQuery()
showDialog: false, },
DialogName: '', data() {
type: '', return {
DialogTitle: '', activeName: 'first',
/* 基础url*/ /*需要的额外参数 */
baseUrl: 'kzzx/role', showDialog: false,
/* 查询参数*/ DialogName: '',
queryParams: { type: '',
ksrq: '', DialogTitle: '',
jsrq: '' /* 基础url*/
}, baseUrl: 'kzzx/role',
/* 表格标题对应参数*/ /* 查询参数*/
tableTitle: [ queryParams: {
{ ksrq: '',
prop: 'whsj', jsrq: ''
label: '公告日期', },
...this.$common('ftDateTime') /* 表格标题对应参数*/
}, tableTitle: [{
{ prop: 'whsj',
prop: 'whsj', label: '公告日期',
label: '有效期至', ...this.$common('ftDateTime')
...this.$common('ftDateTime') },
}, {
{ prop: 'whsj',
prop: 'whr', label: '有效期至',
label: '标题', ...this.$common('ftDateTime')
width: '100' },
}, {
{ prop: 'whr',
prop: 'whr', label: '标题',
label: '编制单位', width: '100'
width: '100' },
}, {
{ prop: 'whr',
prop: 'whr', label: '编制单位',
label: '内容', width: '100'
width: '100' },
} {
] prop: 'whr',
} label: '内容',
}, width: '100'
methods: { }
]
/* 基础查询*/ }
query: QueryKzzxRole, },
/* 基础增*/ methods: {
apiAdd: AddKzzxRole,
/* 基础更新*/ /* 基础查询*/
apiUpdate: UpdateKzzxRole, query: QueryKzzxRole,
/* 删除操作*/ /* 基础增*/
apiDelete: DeleteKzzxRole, apiAdd: AddKzzxRole,
/* 初始化赋值操作*/ /* 基础更新*/
init() { apiUpdate: UpdateKzzxRole,
/* 删除操作*/
}, apiDelete: DeleteKzzxRole,
/* 启用停用*/ /* 初始化赋值操作*/
setEnable(id) { init() {
this.$confirm('是否启用/停用该角色, 是否继续?', '提示', {
confirmButtonText: '确定', },
cancelButtonText: '取消', /* 启用停用*/
type: 'warning' setEnable(id) {
}).then(() => { this.$confirm('是否启用/停用该角色, 是否继续?', '提示', {
let params = { confirmButtonText: '确定',
id: id cancelButtonText: '取消',
} type: 'warning'
QtKzzxRole(params).then(res => { }).then(() => {
if (res.success) { let params = {
this.$success('操作成功') id: id
this.app.$refs['TablePager'].reLoad() }
} else { QtKzzxRole(params).then(res => {
this.$error(res.message || '操作失败') if (res.success) {
} this.$success('操作成功')
}) this.app.$refs['TablePager'].reLoad()
}) } else {
this.$error(res.message || '操作失败')
} }
})
})
},
components: { }
Edit,
}
},
components: {
} Edit,
</script> Details,
Cycle,
<style scoped> PersonLiable,
Content
}
}
</script>
<style scoped>
/deep/.el-tabs__item {
font-size: 13px;
color: #666;
}
</style> </style>
......
<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>
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