Commit 8425a7ae authored by 王向前's avatar 王向前

no message

parent 724544a0
...@@ -778,60 +778,21 @@ export const constantRoutes = [ ...@@ -778,60 +778,21 @@ export const constantRoutes = [
] ]
}, },
/* 查询统计 */ /* 外协管理*/
{ {
path: '/statistics', path: '/outsoure',
component: Layout, component: Layout,
hidden: false, hidden: false,
alwaysShow:true, alwaysShow:true,
redirect: 'securitySituation', // redirect: 'screeningCriteria',
meta: {title: "查询统计", icon: "fa-cog", noCache: false, link: null,mkid:105000000}, meta: {title: "外协管理", icon: "fa-cog", noCache: false, link: null,mkid:105000000},
children: [
{
commonComponent:'securitySituation',
component:() => import( "@/views/statistics/securitySituation/index"),
hidden:false,
meta:{
"title": "培训计划制定",
"icon": "",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'securitySituation',
path:"securitySituation"
},
{
commonComponent:'dangeRecords',
component:() => import( "@/views/statistics/dangeRecords/index"),
hidden:false,
meta:{
"title": "查询超期隐患记录",
"icon": "",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'dangeRecords',
path:"dangeRecords"
}
]
},
/* 设备管理 */
{
path: '/equipment',
component: Layout,
hidden: false,
alwaysShow:true,
redirect: 'securitySituation',
meta: {title: "设备管理", icon: "fa-cog", noCache: false, link: null,mkid:105000000},
children: [ children: [
{ {
commonComponent:'archives', commonComponent:'archives',
component:() => import( "@/views/equipment/archives/index"), component:() => import( "@/views/outsourcingDirector/archives/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "设备档案管理", "title": "外协单位管理",
"icon": "", "icon": "",
"noCache": false, "noCache": false,
"link": null, "link": null,
...@@ -840,64 +801,10 @@ export const constantRoutes = [ ...@@ -840,64 +801,10 @@ export const constantRoutes = [
name:'archives', name:'archives',
path:"archives" path:"archives"
}, },
{
commonComponent:'archives',
component:() => import( "@/views/equipment/specialEquipment/index"),
hidden:false,
meta:{
"title": "特种设备档案管理",
"icon": "",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'specialEquipment',
path:"specialEquipment"
},
{
commonComponent:'environment',
component:() => import( "@/views/equipment/environment/index"),
hidden:false,
meta:{
"title": "环保设备档案管理",
"icon": "",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'environment',
path:"environment"
},
{
commonComponent:'maintain',
component:() => import( "@/views/equipment/maintain/index"),
hidden:false,
meta:{
"title": "维护防护设施档案",
"icon": "",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'maintain',
path:"maintain"
},
{
commonComponent:'inspection',
component:() => import( "@/views/equipment/inspection/index"),
hidden:false,
meta:{
"title": "设备设施巡检记录管理",
"icon": "",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'inspection',
path:"inspection"
}
] ]
}, },
] ]
// 动态路由,基于用户权限动态去加载 // 动态路由,基于用户权限动态去加载
......
<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="12">
<el-form-item label="角色编码" ref="roleid" prop="roleid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.roleid"></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>
</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">
</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-date-picker></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 ></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>
<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'>
<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>
</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: '',
powerList: [{
name: '分配'
}, {
name: '复制'
}, {
name: '查看'
}],
/* 基础url*/
baseUrl: 'kzzx/role',
/* 查询参数*/
queryParams: {
role: '',
all: false
},
/* 表格标题对应参数*/
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: '备注',
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: {
Edit,
}
}
</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