Commit e246088c authored by 李苏's avatar 李苏 💬

10.13新增

parent 873b4d78
...@@ -178,6 +178,78 @@ export const constantRoutes = [ ...@@ -178,6 +178,78 @@ export const constantRoutes = [
}, },
name:'maintenanceDg', name:'maintenanceDg',
path:"maintenanceDg" path:"maintenanceDg"
},
{
commonComponent:'enterSafetyRecords',
component:() => import( "@/views/dangerManagement/enterSafetyRecords/index"),
hidden:false,
meta:{
"title": "录入安全隐患记录",
"icon": "user",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'enterSafetyRecords',
path:"enterSafetyRecords"
},
{
commonComponent:'safetyDisposalRecord',
component:() => import( "@/views/dangerManagement/safetyDisposalRecord/index"),
hidden:false,
meta:{
"title": "安全隐患处理记录",
"icon": "user",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'safetyDisposalRecord',
path:"safetyDisposalRecord"
},
{
commonComponent:'dangerRectificationRecord',
component:() => import( "@/views/dangerManagement/dangerRectificationRecord/index"),
hidden:false,
meta:{
"title": "录入隐患整改情况",
"icon": "user",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'dangerRectificationRecord',
path:"dangerRectificationRecord"
},
/* 10 13*/
{
commonComponent:'dangerReviewRecord',
component:() => import( "@/views/dangerManagement/dangerReviewRecord/index"),
hidden:false,
meta:{
"title": "录入隐患复查记录",
"icon": "user",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'dangerReviewRecord',
path:"dangerReviewRecord"
},
{
commonComponent:'queryDangerRecords',
component:() => import( "@/views/dangerManagement/queryDangerRecords/index"),
hidden:false,
meta:{
"title": "查询安全隐患记录",
"icon": "user",
"noCache": false,
"link": null,
"mkid":101001300,
},
name:'queryDangerRecords',
path:"queryDangerRecords"
} }
] ]
}, },
......
<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="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患等级" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item :span="12" label="处罚金额">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="考核分数">
<el-input :readonly="readonly" v-model="form.phone"></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="检验内容">
<el-input type="textarea" :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() {
this.app.apiTreeQuery({}).then(res=>{
this.bmList=res.data.records
})
},
/* 组件名称*/
name: 'roleManagementEdit',
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
bmid:'',
userid: '',
username: '',
phone:'',
email:'',
bz: "",
},
/* form提交时的规则,具体规则参考官网*/
rules: {
userid: [{
required: true,
trigger: 'blur'
}, ],
username: [{
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
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>
</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>
</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: '',
/* 基础url*/
baseUrl: 'kzzx/role',
/* 查询参数*/
queryParams: {
ksrq: '',
jsrq: ''
},
/* 表格标题对应参数*/
tableTitle: [
{
prop: 'whsj',
label: '公告日期',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '有效期至',
...this.$common('ftDateTime')
},
{
prop: 'whr',
label: '标题',
width: '100'
},
{
prop: 'whr',
label: '编制单位',
width: '100'
},
{
prop: 'whr',
label: '内容',
width: '100'
}
]
}
},
methods: {
/* 基础查询*/
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>
<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="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="设施风险" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="隐患地点" ref="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="上报级别" ref="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患分类" ref="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="责任单位" ref="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患类型" ref="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="责任人" ref="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患等级" ref="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="报告人" ref="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="备注" ref="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></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() {
this.app.apiTreeQuery({}).then(res=>{
this.bmList=res.data.records
})
},
/* 组件名称*/
name: 'roleManagementEdit',
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
bmid:'',
userid: '',
username: '',
phone:'',
email:'',
bz: "",
},
/* form提交时的规则,具体规则参考官网*/
rules: {
userid: [{
required: true,
trigger: 'blur'
}, ],
username: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
<template>
<div style="display: flex;">
<div class="min_full" style="width: 200px;border-right: 0px;">
<TreeBase :app='app' @selected='selectedTree'></TreeBase>
</div>
<div class="min_full" style="width: calc(100% - 200px)">
<!-- 查询条件-->
<!-- 查询条件-->
<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
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
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-input size="small" class="search-input"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">隐患类型:</span>
<el-select placeholder="请选择" ></el-select>
</div>
</el-col>
</el-row>
<!-- 测试 -->
<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.usercx" size="small" class="search-input"></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.phone" size="small" class="search-input"></el-input>
</div>
</el-col>
<el-col :span="4" class="search-col">
<div class="search-item">
<el-checkbox true-label='Y' false-label='' v-model="queryParams.login">显示登录用户</el-checkbox>
</div>
</el-col>
<el-col :span="4" class="search-col">
<div class="search-item">
<el-checkbox true-label='' false-label='N' v-model="queryParams.tybz">显示所有用户</el-checkbox>
</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>
<DeleteButton :app='app'></DeleteButton>
<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>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
QueryUser,
QueryApptype,
AddUser,
DeleteUser,
UpdateUser,
QtUser,
QueryBm,
Setcanlogin,
ResetPassword
} from "common/src/api/system/dmgSystem.js";
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
/* 初始额外赋值*/
async mounted() {
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
powerList: [{
name: '分配'
}, {
name: '复制'
}, {
name: '查看'
}],
/* 基础url*/
baseUrl: 'kzzx/user',
/* 查询参数*/
queryParams: {
bmid:'',
usercx: '',
phone:'',
login:'Y',
tybz:''
},
/* 树的标题 */
treeTitle: '隐患检查标准分类',
treeDefaultProps: {
children: 'children',
label: 'bmmc'
},
/* 表格标题对应参数*/
tableTitle: [
{
prop: 'userid',
label: '隐患日期',
width: '120'
},
{
prop: 'userid',
label: '设施及风险点',
width: '120'
},
{
prop: 'userid',
label: '隐患地点',
width: '120'
},
{
prop: 'userid',
label: '隐患上报级别',
width: '120'
},
{
prop: 'userid',
label: '隐患等级',
width: '120'
},
{
prop: 'userid',
label: '隐患分类',
width: '120'
},
{
prop: 'userid',
label: '隐患类型',
width: '120'
},
{
prop: 'userid',
label: '报告人姓名',
width: '120'
},
{
prop: 'userid',
label: '责任单位',
width: '120'
},
{
prop: 'userid',
label: '责任人',
width: '120'
},
{
prop: 'userid',
label: '备注',
width: '120'
}
]
}
},
methods: {
selectedTree(e){
this.queryParams.bmid=e.id||'root'
this.$refs['TablePager'].pageQuery()
},
tybz(a) {
let nTy = false
nTy = (a.row.tybz == 'N' ? true : false)
return nTy
},
/* 基础查询*/
query: QueryUser,
/* 基础增*/
apiAdd: AddUser,
/* 基础更新*/
apiUpdate: UpdateUser,
/* 删除操作*/
apiDelete: DeleteUser,
/* treeQuery */
apiTreeQuery: QueryBm,
/* 初始化赋值操作*/
init() {
},
/* 启用停用*/
setEnable(id) {
this.$confirm('是否启用/停用该角色, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let params = {
id: id
}
QtUser(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>
<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">
<!-- 查询条件-->
<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
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>
</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>
</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>
</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: '',
/* 基础url*/
baseUrl: 'kzzx/role',
/* 查询参数*/
queryParams: {
ksrq: '',
jsrq: ''
},
/* 表格标题对应参数*/
tableTitle: [
{
prop: 'whsj',
label: '隐患日期',
...this.$common('ftDateTime')
},
{
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: {
/* 基础查询*/
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>
<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="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="设备风险" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="隐患地点" ref="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="上报级别" ref="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="隐患内容" ref="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="处理措施" ref="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item :span="12" label="责任单位">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="整改方案">
<el-input :readonly="readonly" v-model="form.phone"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item :span="12" label="责任人">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患等级">
<el-input :readonly="readonly" v-model="form.phone"></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="备注">
<el-input type="textarea" :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() {
this.app.apiTreeQuery({}).then(res=>{
this.bmList=res.data.records
})
},
/* 组件名称*/
name: 'roleManagementEdit',
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
bmid:'',
userid: '',
username: '',
phone:'',
email:'',
bz: "",
},
/* form提交时的规则,具体规则参考官网*/
rules: {
userid: [{
required: true,
trigger: 'blur'
}, ],
username: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
<template>
<div style="display: flex;">
<div class="min_full" style="width: 200px;border-right: 0px;">
<TreeBase :app='app' @selected='selectedTree'></TreeBase>
</div>
<div class="min_full" style="width: calc(100% - 200px)">
<!-- 查询条件-->
<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
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
type="date"
placeholder="选择日期">
</el-date-picker>
</div>
</el-col>
</el-row>
<!-- 测试 -->
<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.usercx" size="small" class="search-input"></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.phone" size="small" class="search-input"></el-input>
</div>
</el-col>
<el-col :span="4" class="search-col">
<div class="search-item">
<el-checkbox true-label='Y' false-label='' v-model="queryParams.login">显示登录用户</el-checkbox>
</div>
</el-col>
<el-col :span="4" class="search-col">
<div class="search-item">
<el-checkbox true-label='' false-label='N' v-model="queryParams.tybz">显示所有用户</el-checkbox>
</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>
<DeleteButton :app='app'></DeleteButton>
<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>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
QueryUser,
QueryApptype,
AddUser,
DeleteUser,
UpdateUser,
QtUser,
QueryBm,
Setcanlogin,
ResetPassword
} from "common/src/api/system/dmgSystem.js";
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
/* 初始额外赋值*/
async mounted() {
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
powerList: [{
name: '分配'
}, {
name: '复制'
}, {
name: '查看'
}],
/* 基础url*/
baseUrl: 'kzzx/user',
/* 查询参数*/
queryParams: {
bmid:'',
usercx: '',
phone:'',
login:'Y',
tybz:''
},
/* 树的标题 */
treeTitle: '隐患分类',
treeDefaultProps: {
children: 'children',
label: 'bmmc'
},
/* 表格标题对应参数*/
tableTitle: [
{
prop: 'userid',
label: '发现日期',
width: '120'
},
{
prop: 'userid',
label: '设施及风险点',
width: '620'
},
{
prop: 'userid',
label: '隐患地点',
width: '120'
},
{
prop: 'userid',
label: '隐患类型',
width: '120'
},
{
prop: 'userid',
label: '隐患上报级别',
width: '120'
},
{
prop: 'userid',
label: '隐患等级',
width: '120'
},
{
prop: 'userid',
label: '隐患内容',
width: '120'
},
{
prop: 'userid',
label: '责任单位',
width: '120'
},
{
prop: 'userid',
label: '责任人',
width: '120'
},
{
prop: 'userid',
label: '上报人',
width: '120'
},
{
prop: 'userid',
label: '执行人',
width: '120'
},
{
prop: 'userid',
label: '复查时间',
width: '120'
},
{
prop: 'bz',
label: '备注',
width: '120'
}
]
}
},
methods: {
selectedTree(e){
this.queryParams.bmid=e.id||'root'
this.$refs['TablePager'].pageQuery()
},
tybz(a) {
let nTy = false
nTy = (a.row.tybz == 'N' ? true : false)
return nTy
},
/* 基础查询*/
query: QueryUser,
/* 基础增*/
apiAdd: AddUser,
/* 基础更新*/
apiUpdate: UpdateUser,
/* 删除操作*/
apiDelete: DeleteUser,
/* treeQuery */
apiTreeQuery: QueryBm,
/* 初始化赋值操作*/
init() {
},
/* 启用停用*/
setEnable(id) {
this.$confirm('是否启用/停用该角色, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let params = {
id: id
}
QtUser(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>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules" style="height: 60vh;overflow-y: auto;overflow-x: hidden;">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="发现时间" ref="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="设施风险" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患地点" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患类型" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上报级别" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患等级" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患内容" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处理措施" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处理状态" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="整改日期" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="责任单位" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="定方案" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处罚金额" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上报人" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="责任人" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处置时间" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="执行人" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="反馈时间" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="复查人" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="复查时间" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处置人" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处理意见" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="复查情况" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="反馈人" ref="username" prop="username">
<el-select 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() {
this.app.apiTreeQuery({}).then(res=>{
this.bmList=res.data.records
})
},
/* 组件名称*/
name: 'roleManagementEdit',
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
bmid:'',
userid: '',
username: '',
phone:'',
email:'',
bz: "",
},
/* form提交时的规则,具体规则参考官网*/
rules: {
userid: [{
required: true,
trigger: 'blur'
}, ],
username: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
<template>
<div style="display: flex;">
<div class="min_full" style="width: 200px;border-right: 0px;">
<TreeBase :app='app' @selected='selectedTree'></TreeBase>
</div>
<div class="min_full" style="width: calc(100% - 200px)">
<!-- 查询条件-->
<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
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
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-input size="small" class="search-input"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">处理状态:</span>
<el-select placeholder="请选择" ></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>
<DeleteButton :app='app'></DeleteButton>
<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>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
QueryUser,
QueryApptype,
AddUser,
DeleteUser,
UpdateUser,
QtUser,
QueryBm,
Setcanlogin,
ResetPassword
} from "common/src/api/system/dmgSystem.js";
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
/* 初始额外赋值*/
async mounted() {
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
powerList: [{
name: '分配'
}, {
name: '复制'
}, {
name: '查看'
}],
/* 基础url*/
baseUrl: 'kzzx/user',
/* 查询参数*/
queryParams: {
bmid:'',
usercx: '',
phone:'',
login:'Y',
tybz:''
},
/* 树的标题 */
treeTitle: '隐患检查标准分类',
treeDefaultProps: {
children: 'children',
label: 'bmmc'
},
/* 表格标题对应参数*/
tableTitle: [
{
prop: 'userid',
label: '发现时间',
width: '120'
},
{
prop: 'userid',
label: '设施及风险点',
width: '620'
},
{
prop: 'userid',
label: '隐患地点',
width: '120'
},
{
prop: 'userid',
label: '隐患类型',
width: '120'
},
{
prop: 'userid',
label: '隐患上报级别',
width: '120'
},
{
prop: 'userid',
label: '隐患等级',
width: '120'
},
{
prop: 'userid',
label: '隐患内容',
width: '120'
},
{
prop: 'userid',
label: '处理措施',
width: '120'
},
{
prop: 'userid',
label: '责任单位',
width: '120'
},
{
prop: 'userid',
label: '上报人',
width: '120'
},
{
prop: 'userid',
label: '责任人',
width: '120'
},
{
prop: 'userid',
label: '处置时间',
width: '120'
},
{
prop: 'userid',
label: '处理反馈时间',
width: '120'
},
{
prop: 'userid',
label: '处置人',
width: '120'
},
{
prop: 'userid',
label: '执行人',
width: '120'
},
{
prop: 'userid',
label: '复查人',
width: '120'
},
{
prop: 'userid',
label: '复查时间',
width: '120'
},
{
prop: 'userid',
label: '要求整改日期',
width: '120'
},
{
prop: 'userid',
label: '是否制定整改方案',
width: '120'
},
{
prop: 'userid',
label: '处罚金额',
width: '120'
},
{
prop: 'userid',
label: '处理状态',
width: '120'
},
{
prop: 'userid',
label: '备注',
width: '120'
}
]
}
},
methods: {
selectedTree(e){
this.queryParams.bmid=e.id||'root'
this.$refs['TablePager'].pageQuery()
},
tybz(a) {
let nTy = false
nTy = (a.row.tybz == 'N' ? true : false)
return nTy
},
/* 基础查询*/
query: QueryUser,
/* 基础增*/
apiAdd: AddUser,
/* 基础更新*/
apiUpdate: UpdateUser,
/* 删除操作*/
apiDelete: DeleteUser,
/* treeQuery */
apiTreeQuery: QueryBm,
/* 初始化赋值操作*/
init() {
},
/* 启用停用*/
setEnable(id) {
this.$confirm('是否启用/停用该角色, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let params = {
id: id
}
QtUser(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>
<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="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患等级" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item :span="12" label="处罚金额">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="考核分数">
<el-input :readonly="readonly" v-model="form.phone"></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="检验内容">
<el-input type="textarea" :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() {
this.app.apiTreeQuery({}).then(res=>{
this.bmList=res.data.records
})
},
/* 组件名称*/
name: 'roleManagementEdit',
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
bmid:'',
userid: '',
username: '',
phone:'',
email:'',
bz: "",
},
/* form提交时的规则,具体规则参考官网*/
rules: {
userid: [{
required: true,
trigger: 'blur'
}, ],
username: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
<template>
<div style="display: flex;">
<div class="min_full" style="width: 200px;border-right: 0px;">
<TreeBase :app='app' @selected='selectedTree'></TreeBase>
</div>
<div class="min_full" style="width: calc(100% - 200px)">
<!-- 查询条件-->
<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
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
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-input size="small" class="search-input"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">隐患类型:</span>
<el-select placeholder="请选择" ></el-select>
</div>
</el-col>
</el-row>
<!-- 测试 -->
<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.usercx" size="small" class="search-input"></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.phone" size="small" class="search-input"></el-input>
</div>
</el-col>
<el-col :span="4" class="search-col">
<div class="search-item">
<el-checkbox true-label='Y' false-label='' v-model="queryParams.login">显示登录用户</el-checkbox>
</div>
</el-col>
<el-col :span="4" class="search-col">
<div class="search-item">
<el-checkbox true-label='' false-label='N' v-model="queryParams.tybz">显示所有用户</el-checkbox>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
<ViewButton ref="view" :app='app'></ViewButton>
<el-button size='mini' class="margin-right-10" type="primary">查看照片</el-button>
<!-- 权限-->
</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>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
QueryUser,
QueryApptype,
AddUser,
DeleteUser,
UpdateUser,
QtUser,
QueryBm,
Setcanlogin,
ResetPassword
} from "common/src/api/system/dmgSystem.js";
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
/* 初始额外赋值*/
async mounted() {
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
powerList: [{
name: '分配'
}, {
name: '复制'
}, {
name: '查看'
}],
/* 基础url*/
baseUrl: 'kzzx/user',
/* 查询参数*/
queryParams: {
bmid:'',
usercx: '',
phone:'',
login:'Y',
tybz:''
},
/* 树的标题 */
treeTitle: '隐患检查标准分类',
treeDefaultProps: {
children: 'children',
label: 'bmmc'
},
/* 表格标题对应参数*/
tableTitle: [
{
prop: 'userid',
label: '发现日期',
width: '120'
},
{
prop: 'userid',
label: '设施及风险点',
width: '620'
},
{
prop: 'userid',
label: '隐患地点',
width: '120'
},
{
prop: 'userid',
label: '隐患类型',
width: '120'
},
{
prop: 'userid',
label: '隐患上报级别',
width: '120'
},
{
prop: 'userid',
label: '隐患等级',
width: '120'
},
{
prop: 'userid',
label: '隐患内容',
width: '120'
},
{
prop: 'userid',
label: '责任单位',
width: '120'
},
{
prop: 'userid',
label: '责任人',
width: '120'
},
{
prop: 'userid',
label: '上报人',
width: '120'
},
{
prop: 'userid',
label: '执行人',
width: '120'
},
{
prop: 'userid',
label: '复查时间',
width: '120'
},
{
prop: 'bz',
label: '备注',
width: '120'
}
]
}
},
methods: {
selectedTree(e){
this.queryParams.bmid=e.id||'root'
this.$refs['TablePager'].pageQuery()
},
tybz(a) {
let nTy = false
nTy = (a.row.tybz == 'N' ? true : false)
return nTy
},
/* 基础查询*/
query: QueryUser,
/* 基础增*/
apiAdd: AddUser,
/* 基础更新*/
apiUpdate: UpdateUser,
/* 删除操作*/
apiDelete: DeleteUser,
/* treeQuery */
apiTreeQuery: QueryBm,
/* 初始化赋值操作*/
init() {
},
/* 启用停用*/
setEnable(id) {
this.$confirm('是否启用/停用该角色, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let params = {
id: id
}
QtUser(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