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

新增功能

parent 6b9b8c86
......@@ -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: [
{
......
<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
......@@ -10,20 +10,14 @@
<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 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 v-model="queryParams.jsrq" type="date" placeholder="选择日期">
</el-date-picker>
</div>
</el-col>
......@@ -37,7 +31,7 @@
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton>
<AttachFileButton :app='app'></AttachFileButton>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
......@@ -53,13 +47,21 @@
</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>
<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>
......@@ -78,6 +80,9 @@
} 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'
......@@ -91,7 +96,7 @@
},
data() {
return {
activeName: 'first',
/*需要的额外参数 */
showDialog: false,
DialogName: '',
......@@ -105,8 +110,7 @@
jsrq: ''
},
/* 表格标题对应参数*/
tableTitle: [
{
tableTitle: [{
prop: 'whsj',
label: '公告日期',
...this.$common('ftDateTime')
......@@ -174,6 +178,10 @@
},
components: {
Edit,
Details,
Cycle,
PersonLiable,
Content
}
......@@ -181,5 +189,8 @@
</script>
<style scoped>
/deep/.el-tabs__item {
font-size: 13px;
color: #666;
}
</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