Commit 3b0b447e authored by 李苏's avatar 李苏 💬

10.17部分

parent 9fe4dea9
......@@ -289,6 +289,73 @@ export const constantRoutes = [
},
name:'maintenanceRiskTask',
path:"maintenanceRiskTask"
},
{
commonComponent:'riskAnalysis',
component:() => import( "@/views/riskPrecontrol/riskAnalysis/index"),
hidden:false,
meta:{
"title": "风险排查综合分析",
"icon": "",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'riskAnalysis',
path:"riskAnalysis"
},
{
commonComponent:'maintenanceRisk',
component:() => import( "@/views/riskPrecontrol/maintenanceRisk/index"),
hidden:false,
meta:{
"title": "维护风险事件库",
"icon": "",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'maintenanceRisk',
path:"maintenanceRisk"
},
{
commonComponent:'queryRisk',
component:() => import( "@/views/riskPrecontrol/queryRisk/index"),
hidden:false,
meta:{
"title": "查询风险事件库",
"icon": "",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'queryRisk',
path:"queryRisk"
}
]
},
/* 三违管理*/
{
path: '/threeViolations',
component: Layout,
hidden: false,
alwaysShow:true,
// redirect: 'screeningCriteria',
meta: {title: "三违管理", icon: "fa-cog", noCache: false, link: null,mkid:105000000},
children: [
{
commonComponent:'maintainTV',
component:() => import( "@/views/threeViolations/maintainTV/index"),
hidden:false,
meta:{
"title": "维护三违处罚标准",
"icon": "",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'maintainTV',
path:"maintainTV"
}
]
},
......
<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: 'roleid',
label: '事故日期',
width: '120'
},
{
prop: 'rolename',
label: '事故时间',
width: '160'
},
{
prop: 'rolename',
label: '类型',
width: '160'
},
{
prop: 'rolename',
label: '性质',
width: '160'
},
{
prop: 'rolename',
label: '死亡人数',
width: '160'
},
{
prop: 'rolename',
label: '重伤人数',
width: '160'
},
{
prop: 'rolename',
label: '轻伤人数',
width: '160'
},
{
prop: 'tybz',
label: '直接经济损失(万元)',
width: '120',
...this.$common('tybz')
},
{
prop: 'tyrq',
label: '损失工作日',
width: '120',
...this.$common('ftDate')
},
{
prop: 'whr',
label: '所属分厂',
width: '100'
},
{
prop: 'whsj',
label: '所属车间',
...this.$common('ftDateTime')
},
{
prop: 'bz',
label: '录入人工号',
},
{
prop: 'bz',
label: '录入人',
}
]
}
},
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>
......@@ -48,18 +48,10 @@
<div class="min_full" style="height: 60%;padding: 10px;">
<!-- tabs -->
<el-tabs v-model="activeName" @tab-click="handleClick" >
<el-tab-pane label="详细" name="first" >
<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>
......@@ -67,6 +59,7 @@
</template>
<script>
/* 引入需要的接口*/
import {
QueryKzzxRole,
......@@ -79,18 +72,35 @@
/* 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'
let fdcs=function(){
let timer=false
let a=function(){
if(timer){
clearTimeout(timer)
timer=setTimeout(()=>{
console.log('防抖方法')
},500)
}else{
timer=setTimeout(()=>{
console.log('防抖方法')
},500)
}
}
return a
}
export default {
mixins: [tableMixin],
name: 'appVersion',
/* 初始额外赋值*/
async mounted() {
this.fdcs=fdcs()
this.$refs['TablePager'].pageQuery()
},
data() {
return {
......@@ -111,88 +121,73 @@
tableTitle: [
{
prop: 'whsj',
label: '时间',
show:false,
label: '下达日期',
fieldType:'ftDateTime',
width: '100',
align:'left'
},
{
prop: 'whsj',
label: '车间',
label: '检查班次',
...this.$common('ftDateTime')
},
{
prop: 'whr',
label: '岗位',
label: '次数',
width: '100'
},
{
prop: 'whr',
label: '地点',
label: '检查岗位',
width: '100'
},
{
prop: 'whr',
label: '作业活动设施风险点',
label: '检查时间',
width: '100'
},
{
prop: 'whr',
label: '事故类型',
label: '检查状态',
width: '100'
},
{
prop: 'whr',
label: '危险等级',
label: '截止时间',
width: '100'
},
{
prop: 'whr',
label: '危险分值',
label: '检查人',
width: '100'
},
{
prop: 'whr',
label: '风险类型',
width: '100'
},
{
prop: 'whr',
label: '管控措施落实后等级',
width: '100'
},
{
prop: 'whr',
label: '管理层级',
width: '100'
},
{
prop: 'whr',
label: '拍照选项',
label: '地点',
width: '100'
},
{
prop: 'whr',
label: '序号',
label: '作业活动',
width: '100'
},
{
prop: 'whr',
label: '图形编号',
label: '车间',
width: '100'
},
{
prop: 'whr',
label: '措施类型',
label: '维护方式',
width: '100'
}
]
],
timer:false,
}
},
methods: {
fdcs:()=>{},
handleClick(val){
console.log(val,'val')
},
......@@ -235,9 +230,6 @@
components: {
Edit,
Details,
Cycle,
PersonLiable,
Content
}
......
<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: 'roleid',
label: '事故日期',
width: '120'
},
{
prop: 'rolename',
label: '事故时间',
width: '160'
},
{
prop: 'rolename',
label: '类型',
width: '160'
},
{
prop: 'rolename',
label: '性质',
width: '160'
},
{
prop: 'rolename',
label: '死亡人数',
width: '160'
},
{
prop: 'rolename',
label: '重伤人数',
width: '160'
},
{
prop: 'rolename',
label: '轻伤人数',
width: '160'
},
{
prop: 'tybz',
label: '直接经济损失(万元)',
width: '120',
...this.$common('tybz')
},
{
prop: 'tyrq',
label: '损失工作日',
width: '120',
...this.$common('ftDate')
},
{
prop: 'whr',
label: '所属分厂',
width: '100'
},
{
prop: 'whsj',
label: '所属车间',
...this.$common('ftDateTime')
},
{
prop: 'bz',
label: '录入人工号',
},
{
prop: 'bz',
label: '录入人',
}
]
}
},
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>
<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 class="form-detail">
<el-form ref="form" label-width='auto' :model="form" >
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="部门或分厂">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="车间">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="岗位">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="地点">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="作业活动设施风险点">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="事故类型">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="危险等级">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="危险分值">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label=" 风险类型">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="管控措施落实后等级">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="管理层级">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="拍照选项">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="检查要点">
<el-input type="textarea">
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="危害因素">
<el-input type="textarea" >
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="事故后果">
<el-input type="textarea">
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="检查措施描述">
<el-input type="textarea">
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="备注">
<el-input type="textarea" >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="序号">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="图形编号">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="措施类型">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="基准精度">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="基准维度">
<el-input >
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="责任人">
<el-input >
</el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</template>
<script>
export default {
data() {
return {
methods: {
}
}
}
}
</script>
<style scoped>
.form-detail{
height: 500px;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
}
</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-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option> -->
</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-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()
console.log(_)
},
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'
},
{
prop: 'whr',
label: '拍照选项',
width: '100'
},
{
prop: 'whr',
label: '序号',
width: '100'
},
{
prop: 'whr',
label: '图形编号',
width: '100'
},
{
prop: 'whr',
label: '措施类型',
width: '100'
}
]
}
},
methods: {
handleClick(val){
console.log(val,'val')
},
/* 基础查询*/
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>
<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>
maintainTV
</div>
</template>
<script>
</script>
<style>
</style>
\ No newline at end of file
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