Commit 6f8d3ce1 authored by 王向前's avatar 王向前

外协管理界面

parent 95ef247e
......@@ -912,6 +912,59 @@ export const constantRoutes = [
}
]
},
/* 外协管理 */
{
path: '/outsourcingDirector',
component: Layout,
hidden: false,
alwaysShow:true,
redirect: 'outsourcingDirector',
meta: {title: "外协管理", icon: "fa-cog", noCache: false, link: null,mkid:105000000},
children: [
{
commonComponent:'archives',
component:() => import( "@/views/outsourcingDirector/archives/index"),
hidden:false,
meta:{
"title": "外协单位档案管理",
"icon": "",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'archives',
path:"archives"
},
{
commonComponent:'declare',
component:() => import( "@/views/outsourcingDirector/declare/index"),
hidden:false,
meta:{
"title": "外协单位准入申报",
"icon": "",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'declare',
path:"declare"
},
{
commonComponent:'process',
component:() => import( "@/views/outsourcingDirector/process/index"),
hidden:false,
meta:{
"title": "外协单位过程管理",
"icon": "",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'process',
path:"process"
}
]
},
]
// 动态路由,基于用户权限动态去加载
......@@ -985,7 +1038,8 @@ export const dynamicRoutes = [
meta: { title: '修改生成配置', activeMenu: '/tool/gen' }
}
]
}
},
]
// 防止连续点击多次路由报错
......
......@@ -138,8 +138,6 @@
})
}
},
components: {
Edit,
......
......@@ -14,7 +14,7 @@
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">设备名称:</span>
<el-select></el-select>
<el-input></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
......
<template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp' class="table-form-border">
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="档案编号" ref="xh" prop="xh">
<el-input :readonly="readonly" v-toUpperCase v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="名称" prop="mc">
<el-input :readonly="readonly" v-model="form.mc"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="单位类型" prop="type">
<el-input :readonly="readonly" v-toUpperCase v-model="form.type"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="管理责任单位" prop="glzrdw">
<el-input :readonly="readonly" v-model="form.glzrdw"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="角色编码" ref="roleid" prop="roleid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.roleid"></el-input>
<el-form-item label="负责人" prop="fzr">
<el-input :readonly="readonly" v-model="form.fzr"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="单位地址" prop="dwdz">
<el-input :readonly="readonly" v-model="form.dwdz"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="角色名称" ref="rolename" prop="rolename">
<el-input :readonly="readonly" v-model="form.rolename"></el-input>
<el-form-item label="电子信箱" prop="mail">
<el-input :readonly="readonly" v-model="form.mail"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="联系电话" prop="phone">
<el-input :readonly="readonly" v-model="form.phone"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系人" prop="lxr">
<el-input :readonly="readonly" v-model="form.lxr"></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -73,5 +117,37 @@
</script>
<style scoped lang="scss">
$color-border-grey:#c0c4cc;
.table-form-border {
.el-form{
border-top: 1px solid $color-border-grey;
border-right: 1px solid $color-border-grey;
}
.el-row .el-form-item{
border-bottom: 1px solid $color-border-grey;
margin-bottom:0;
::v-deep .el-form-item__label {
border-right: 1px solid $color-border-grey;
border-left: 1px solid $color-border-grey;
padding: 0;
text-align: center;
background: #eee;
}
::v-deep .el-input__inner{
border:none
}
}
.el-row .el-col:nth-child(2n+1){
padding-right: 0!important
}
.el-row .el-col:nth-child(2n){
padding-left: 0!important
}
.el-row:last-child .el-col,.el-row:first-child .el-col{
padding-right: 10px!important;
padding-left: 10px!important
}
}
</style>
<template>
<div class="min_full">
<!-- 查询条件-->
<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-input v-model="queryParams.xh"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">开始日期:</span>
<el-date-picker></el-date-picker>
<span class="search-span">单位名称:</span>
<el-input v-model="queryParams.dwmc"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">结束日期:</span>
<el-date-picker ></el-date-picker>
<span class="search-span">单位类型:</span>
<el-select v-model="queryParams.type" placeholder="请选择">
<el-option
v-for="(item,index) in options"
:key="index"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</div>
</el-col>
</el-row>
......@@ -24,26 +35,15 @@
<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'
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' :delButton="false" :isFontPage="true" :allData="allData"
@getRow='getRow'>
<template slot="tabCustom">
<el-table-column label="启用/停用" width="90" header-align="center" >
<template slot-scope="scope">
<el-switch @click.native="setEnable(scope.row.id)" :value='tybz(scope)' style="width: 80px;justify-content: center;"
active-color="#13ce66" inactive-color="#eee">
</el-switch>
</template>
</el-table-column>
</template>
</TablePager>
</div>
......@@ -76,7 +76,7 @@
},
data() {
return {
allData:[{xh:"1"}],
/*需要的额外参数 */
showDialog: false,
DialogName: '',
......@@ -93,20 +93,37 @@
baseUrl: 'kzzx/role',
/* 查询参数*/
queryParams: {
role: '',
all: false
xh: '',
dwmc:'',
type:''
},
options: [{
value: 'all',
label: '(空)'
}, {
value: 'A',
label: 'A类'
}, {
value: 'B',
label: 'B类'
}, {
value: 'C',
label: 'C类'
}, {
value: 'D',
label: 'D类'
}],
/* 表格标题对应参数*/
tableTitle: [{
prop: 'xh',
label: '档案编号',
width: '120'
},
{
prop: 'mc',
label: '名称',
width: '160'
},
prop: 'xh',
label: '档案编号',
width: '120'
},
{
prop: 'mc',
label: '名称',
width: '160'
},
{
prop: 'dwlx',
label: '单位类型',
......@@ -140,52 +157,20 @@ tableTitle: [{
{
prop: 'bz',
label: '备注',
width: '100'
}
]
],
}
},
methods: {
tybz(a) {
let nTy = false
nTy = (a.row.tybz == 'N' ? true : false)
return nTy
},
/* 基础查询*/
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: {
......
<template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp' class="table-form-border">
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="档案编号" ref="xh" prop="xh">
<el-input :readonly="readonly" v-toUpperCase v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="名称" prop="mc">
<el-input :readonly="readonly" v-model="form.mc"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="单位类型" prop="type">
<el-input :readonly="readonly" v-toUpperCase v-model="form.type"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="管理责任单位" prop="glzrdw">
<el-input :readonly="readonly" v-model="form.glzrdw"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="负责人" prop="fzr">
<el-input :readonly="readonly" v-model="form.fzr"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="单位地址" prop="dwdz">
<el-input :readonly="readonly" v-model="form.dwdz"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="电子信箱" prop="mail">
<el-input :readonly="readonly" v-model="form.mail"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="联系电话" prop="phone">
<el-input :readonly="readonly" v-model="form.phone"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系人" prop="lxr">
<el-input :readonly="readonly" v-model="form.lxr"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="备注">
<el-input :readonly="readonly" v-model="form.bz"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 按钮重写, -->
<!-- <div slot="reFooter">
<span slot="footer">
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div> -->
</RelDialog>
</template>
<script>
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
},
/* 组件名称*/
name: 'roleManagementEdit',
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
roleid: '',
rolename: '',
bz: "",
},
/* form提交时的规则,具体规则参考官网*/
rules: {
roleid: [{
required: true,
trigger: 'blur'
}, ],
rolename: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
$color-border-grey:#c0c4cc;
.table-form-border {
.el-form{
border-top: 1px solid $color-border-grey;
border-right: 1px solid $color-border-grey;
}
.el-row .el-form-item{
border-bottom: 1px solid $color-border-grey;
margin-bottom:0;
::v-deep .el-form-item__label {
border-right: 1px solid $color-border-grey;
border-left: 1px solid $color-border-grey;
padding: 0;
text-align: center;
background: #eee;
}
::v-deep .el-input__inner{
border:none
}
}
.el-row .el-col:nth-child(2n+1){
padding-right: 0!important
}
.el-row .el-col:nth-child(2n){
padding-left: 0!important
}
.el-row:last-child .el-col,.el-row:first-child .el-col{
padding-right: 10px!important;
padding-left: 10px!important
}
}
</style>
<template>
<div class="min_full">
<!-- 查询条件-->
<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-input v-model="queryParams.xh"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">单位名称:</span>
<el-input v-model="queryParams.dwmc"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">单位类型:</span>
<el-select v-model="queryParams.type" placeholder="请选择">
<el-option
v-for="(item,index) in options"
:key="index"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</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>
<workFlowButton :app='app'></workFlowButton>
<!-- 额外按钮-->
</el-row>
<!-- 表格-->
<el-row class="full">
<el-col :span="12" class="full-h">
<div class="tablePagers full" style="border-right:1px solid #eee">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' :delButton="false" :isFontPage="true" :allData="allData"
@getRow='getRow'>
<template slot="tabCustom">
</template>
</TablePager>
</div>
</el-col>
<el-col :span="12" class="full-h">
<div class="tablePagers full table-form-border">
<h5 style="text-align:center">外协单位准入申报</h5>
<el-form slot="form" ref="form" :model="form" label-width="120px">
<el-row :gutter="20" class="">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="档案编号" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="名称" prop="mc">
<el-input :readonly="readonly" v-model="form.mc"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="单位类型" prop="type">
<el-input :readonly="readonly" v-toUpperCase v-model="form.type"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="管理责任单位" prop="glzrdw">
<el-input :readonly="readonly" v-model="form.glzrdw"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="负责人" prop="fzr">
<el-input :readonly="readonly" v-model="form.fzr"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="单位地址" prop="dwdz">
<el-input :readonly="readonly" v-model="form.dwdz"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="电子信箱" prop="mail">
<el-input :readonly="readonly" v-model="form.mail"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="联系电话" prop="phone">
<el-input :readonly="readonly" v-model="form.phone"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系人" prop="lxr">
<el-input :readonly="readonly" v-model="form.lxr"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="备注">
<el-input :readonly="readonly" v-model="form.bz"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="评价单位" prop="phone">
<el-input :readonly="readonly" v-model="form.phone"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="申报日期" prop="sbrq">
<el-input :readonly="readonly" v-model="form.lxr"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<div class="" style="line-height:36px;font-size:14px;text-align:center">审批</div>
</el-col>
</el-row>
</el-form>
<el-form slot="form" ref="form" :model="form" label-width="120px" class="declare-table-right">
<el-row :gutter="20" class="">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="物业所在单位" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="申报人" prop="mc">
<el-input :readonly="readonly" v-model="form.mc"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="物业所在单位" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="申报人" prop="mc">
<el-input :readonly="readonly" v-model="form.mc"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="物业所在单位" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="申报人" prop="mc">
<el-input :readonly="readonly" v-model="form.mc"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="物业所在单位" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="申报人" prop="mc">
<el-input :readonly="readonly" v-model="form.mc"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="物业所在单位" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="申报人" prop="mc">
<el-input :readonly="readonly" v-model="form.mc"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="物业所在单位" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="申报人" prop="mc">
<el-input :readonly="readonly" v-model="form.mc"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="物业所在单位" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="申报人" prop="mc">
<el-input :readonly="readonly" v-model="form.mc"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="物业所在单位" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="申报人" prop="mc">
<el-input :readonly="readonly" v-model="form.mc"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="物业所在单位" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="申报人" prop="mc">
<el-input :readonly="readonly" v-model="form.mc"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="物业所在单位" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24" class="padding-right-sm padding-left-sm">
<el-form-item label="申报人" prop="mc">
<el-input :readonly="readonly" v-model="form.mc"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</el-col>
</el-row>
</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 {
allData:[{xh:"1"}],
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
readonly:true,
powerList: [{
name: '分配'
}, {
name: '复制'
}, {
name: '查看'
}],
/* 基础url*/
baseUrl: 'kzzx/role',
/* 查询参数*/
queryParams: {
xh: '',
dwmc:'',
type:''
},
options: [{
value: 'all',
label: '(空)'
}, {
value: 'A',
label: 'A类'
}, {
value: 'B',
label: 'B类'
}, {
value: 'C',
label: 'C类'
}, {
value: 'D',
label: 'D类'
}],
/* 表格标题对应参数*/
tableTitle: [{
prop: 'xh',
label: '档案编号',
width: '120'
},
{
prop: 'mc',
label: '名称',
width: '160'
},
{
prop: 'dwlx',
label: '单位类型',
width: '160'
},
{
prop: 'rolename',
label: '管理责任单位',
width: '160'
},
{
prop: 'rolename',
label: '负责人',
width: '160'
},
{
prop: 'rolename',
label: '单位地址',
width: '160'
},
{
prop: 'rolename',
label: '电子邮箱',
width: '160'
},
{
prop: 'telephone',
label: '联系电话',
width: '120',
},
{
prop: 'bz',
label: '备注',
}
],
form:{
}
}
},
methods: {
/* 基础查询*/
query: QueryKzzxRole,
/* 基础增*/
/* 初始化赋值操作*/
init() {
},
},
components: {
Edit,
}
}
</script>
<style scoped lang="scss">
.full{
width: 100%;
height: 100%;
}
.full-h{
height: 100%;
}
.marin-top-10{
margin-top: 10px
}
.padding-left-sm{
padding-left: 10px!important
}
.padding-right-sm{
padding-right: 10px!important;
}
.declare-table-right{
height: calc(100% - 420px);
overflow-y: auto;
overflow-x: hidden
}
$color-border-grey:#c0c4cc;
.table-form-border {
.el-form{
border-top: 1px solid $color-border-grey;
border-right: 1px solid $color-border-grey;
}
.el-row .el-form-item{
border-bottom: 1px solid $color-border-grey;
margin-bottom:0;
::v-deep .el-form-item__label {
border-right: 1px solid $color-border-grey;
border-left: 1px solid $color-border-grey;
padding: 0;
text-align: center;
background: #eee;
}
::v-deep .el-input__inner{
border:none
}
}
.el-row .el-col:nth-child(2n+1){
padding-right: 0!important
}
.el-row .el-col:nth-child(2n+1).padding-right-sm{
padding-right: 10px!important
}
.el-row .el-col:nth-child(2n){
padding-left: 0!important
}
}
</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: '人员编号',
width: '120'
},
{
prop: 'name',
label: '人员姓名',
width: '120'
},
{
prop: 'type',
label: '总结内容',
width: '120',
formatter: (row, column, cellValue, index) => {
var text = this.typeMap[cellValue]
return text;
}
},
{
prop: 'version',
label: '总结日期',
width: '120'
}
]
}
},
methods: {
/* 基础查询*/
query: QueryAppversion,
/* 基础增*/
apiAdd: AddAppversion,
/* 基础更新*/
apiUpdate: UpdateAppversion,
/* 删除操作*/
apiDelete: DelAppversion,
/* 初始化赋值操作*/
},
/* 注册组件*/
components: {
}
}
</script>
<style scoped>
</style>
<template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="标题" ref="roleid" prop="roleid">
<el-input :readonly="readonly" v-model="form.roleid"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="内容" ref="roleid" prop="roleid">
<el-input :readonly="readonly" type="textarea" v-model="form.roleid"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="有效期至">
<el-date-picker style="width: 100%;"
type="date"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="编制单位">
<el-select placeholder="请选择" style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 按钮重写, -->
<!-- <div slot="reFooter">
<span slot="footer">
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div> -->
</RelDialog>
</template>
<script>
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
},
/* 组件名称*/
name: 'roleManagementEdit',
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
roleid: '',
rolename: '',
bz: "",
},
/* form提交时的规则,具体规则参考官网*/
rules: {
roleid: [{
required: true,
trigger: 'blur'
}, ],
rolename: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
<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-input style="width:60% ;"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">计划月份:</span>
<el-input></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">授课人:</span>
<el-input></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">培训方式:</span>
<el-select></el-select>
</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;">
<el-tabs v-model="activeName" >
<el-tab-pane label="隐患记录" name="first" >
<Participants />
</el-tab-pane>
<el-tab-pane label="教育培训记录" name="second">
<Content />
</el-tab-pane>
<el-tab-pane label="三违记录" name="third">
<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 Participants from './participants.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: '计划年份',
show:false,
fieldType:'ftDateTime',
width: '100',
align:'left'
},
{
prop: 'whsj',
label: '计划月份',
...this.$common('ftDateTime')
},
{
prop: 'whr',
label: '培训项目',
width: '100'
},
{
prop: 'whr',
label: '培训人数',
width: '100'
},
{
prop: 'whr',
label: '培训目标',
width: '100'
},
{
prop: 'whr',
label: '培训方式',
width: '100'
},
{
prop: 'whr',
label: '培训时间',
width: '100'
},
{
prop: 'whr',
label: '培训课时',
width: '100'
},
{
prop: 'whr',
label: '授课人',
width: '100'
},
{
prop: 'whr',
label: '培训单位',
width: '100'
},
{
prop: 'whr',
label: '备注',
width: '100'
},
]
}
},
methods: {
handleClick(val){
},
/* 基础查询*/
query: QueryKzzxRole,
/* 基础增*/
apiAdd: AddKzzxRole,
/* 基础更新*/
apiUpdate: UpdateKzzxRole,
/* 删除操作*/
apiDelete: DeleteKzzxRole,
/* 初始化赋值操作*/
init() {
},
},
components: {
Edit,
Participants,
PersonLiable,
Content
}
}
</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 Edit from './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: '人员编号',
width: '120'
},
{
prop: 'name',
label: '人员姓名',
width: '120'
}
]
}
},
methods: {
/* 基础查询*/
query: QueryAppversion,
/* 基础增*/
apiAdd: AddAppversion,
/* 基础更新*/
apiUpdate: UpdateAppversion,
/* 删除操作*/
apiDelete: DelAppversion,
/* 初始化赋值操作*/
},
/* 注册组件*/
components: {
Edit
}
}
</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: '提交日期',
width: '120'
},
{
prop: 'name',
label: '培训内容',
width: '120'
},
{
prop: 'type',
label: '效果评估',
width: '120',
formatter: (row, column, cellValue, index) => {
var text = this.typeMap[cellValue]
return text;
}
}
]
}
},
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