Commit 5e5f0897 authored by dingyoujian's avatar dingyoujian

日常管理部分

parent 7fa82e46
import request from 'common/src/utils/request'
/* 角色管理query */
export function doQuery(query) {
return request({
url: '/aqgl/rcgl/fcgzy/query',
method: 'post',
data: query||{}
})
}
/* 角色管理更新 */
export function doUpdate(query) {
return request({
url: '/aqgl/rcgl/fcgzy/update',
method: 'post',
data: query||{}
})
}
export function doAdd(query) {
return request({
url: '/aqgl/rcgl/fcgzy/add',
method: 'post',
data: query||{}
})
}
export function doDelete(query) {
return request({
url: '/aqgl/rcgl/fcgzy/delete',
method: 'post',
data: query||{}
})
}
/**
* 加载作业类型
* @param query
*/
export function doInitZylx(query) {
return request({
url: '/aqgl/rcgl/fcgzy/init/zylx',
method: 'post',
data: query||{}
})
}
/**
* 加载申请项
* @param query
*/
export function doInitSqx(query) {
return request({
url: '/aqgl/rcgl/fcgzy/init/sqx',
method: 'post',
data: query||{}
})
}
/**
* 风险等级
* @param query
* @returns {*}
*/
export function doInitWxdj(query) {
return request({
url: '/aqgl/fxyk/fxpc/init/wxdj',
method: 'post',
data: query||{}
})
}
import request from 'common/src/utils/request'
/* 角色管理query */
export function doQuery(query) {
return request({
url: '/aqgl/rcgl/fcgzybz/query',
method: 'post',
data: query||{}
})
}
/* 角色管理更新 */
export function doUpdate(query) {
return request({
url: '/aqgl/rcgl/fcgzybz/update',
method: 'post',
data: query||{}
})
}
export function doAdd(query) {
return request({
url: '/aqgl/rcgl/fcgzybz/add',
method: 'post',
data: query||{}
})
}
export function doDelete(query) {
return request({
url: '/aqgl/rcgl/fcgzybz/delete',
method: 'post',
data: query||{}
})
}
......@@ -3,30 +3,94 @@
<!-- 填写表单内容,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-model="form.xh" ></el-input>
<el-col :span="8">
<el-form-item label="申请单号" ref="djid" prop="djid">
<el-input :readonly="readonly" v-model="form.djid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="申请日期" ref="sqrq" prop="sqrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.sqrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="作业类型" ref="flid" prop="flid">
<el-input :readonly="readonly" v-model="form.flid" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name" ></el-input>
<el-col :span="8">
<el-form-item label="开始时间" ref="kssj" prop="kssj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.kssj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="结束时间" ref="jssj" prop="jssj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.jssj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="作业时长" ref="zysc" prop="zysc">
<el-input :readonly="readonly" v-model="form.zysc" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
<el-col :span="8">
<el-form-item label="作业项目" ref="zyxm" prop="zyxm">
<el-input :readonly="readonly" v-model="form.zyxm" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="作业地点" ref="zydd" prop="zydd">
<el-input :readonly="readonly" v-model="form.zydd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="施工单位" ref="sgdw" prop="sgdw">
<el-input :readonly="readonly" v-model="form.sgdw" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="系统版本" ref="sysversion" prop="sysversion">
<el-input :readonly="readonly" v-model="form.sysversion" ></el-input>
<el-col :span="8">
<el-form-item label="风险级别" ref="fxjb" prop="fxjb">
<el-input :readonly="readonly" v-model="form.fxjb" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="危害因素" ref="whys" prop="whys">
<el-input :readonly="readonly" v-model="form.whys" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="管控措施" ref="gkcs" prop="gkcs">
<el-input :readonly="readonly" v-model="form.gkcs" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<!--多选-->
<el-form-item label="申请项" ref="sqx" prop="sqx">
<el-input :readonly="readonly" v-model="form.sqx" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="工作流状态" ref="wfpname" prop="wfpname">
<el-input :readonly="readonly" v-model="form.wfpname" ></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -42,7 +106,7 @@
},
/* 组件名称*/
name: "aqglRcglFcgzylxEdit",
name: "aqgl/rcglFcgzyEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
......@@ -57,10 +121,32 @@
form: {
//ID
id:'',
//序号
xh:'',
//名称
name:'',
//申请单号
djid:'',
//申请日期
sqrq:new Date().getTime(),
//作业类型
flid:'',
//申请项
sqx:'',
//开始时间
kssj:new Date().getTime(),
//结束时间
jssj:new Date().getTime(),
//作业时长
zysc:'',
//作业项目
zyxm:'',
//作业地点
zydd:'',
//施工单位
sgdw:'',
//风险级别
fxjb:'',
//危害因素
whys:'',
//管控措施
gkcs:'',
//备注
bz:'',
//维护人编码
......@@ -77,6 +163,24 @@
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
//状态
zt:'',
//工作流ID
wfid:'',
//工作流实例号
wfinstid:'',
//工作流状态ID
wfpid:'',
//工作流状态
wfpname:'',
//待处理人id
wfwuserid:'',
//待处理人
wfwusername:'',
//已处理人id
wfhuserid:'',
//已处理人
wfhusername:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
......
......@@ -45,7 +45,7 @@
doAdd,
doUpdate,
doDelete
} from '@/api/daily/nrtm.js';
} from '@/api/aqgl/rcgl/fcgzy.js';
/* edit页面*/
import Edit from './edit'
import {
......@@ -53,7 +53,7 @@
} from 'common'
export default {
mixins: [tableMixin],
name: 'aqglRcglFcgzylx',
name: 'aqgl/rcglFcgzy',
/* 初始额外赋值*/
async mounted() {
......@@ -67,20 +67,32 @@
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/rcgl/fcgzylx',
baseUrl: '/aqgl/rcgl/fcgzy',
/* 查询参数*/
queryParams: {
info: ''
},
/* 表格标题对应参数*/
tableTitle: [
{label: "序号", prop: "xh", fieldType: "int"},
{label: "名称", prop: "name", fieldType: "ftString",width:300},
{label: "申请单号", prop: "djid", fieldType: "ftString",width:120},
{label: "申请日期", prop: "sqrq", fieldType: "ftDateTime"},
{label: "作业类型", prop: "flid", fieldType: "ftString",width:300},
{label: "开始时间", prop: "kssj", fieldType: "ftDateTime"},
{label: "结束时间", prop: "jssj", fieldType: "ftDateTime"},
{label: "作业时长", prop: "zysc", fieldType: "float"},
{label: "作业项目", prop: "zyxm", fieldType: "ftString",width:300},
{label: "作业地点", prop: "zydd", fieldType: "ftString",width:300},
{label: "施工单位", prop: "sgdw", fieldType: "ftString",width:300},
{label: "风险级别", prop: "fxjb", fieldType: "ftString",width:120},
{label: "危害因素", prop: "whys", fieldType: "ftString",width:300},
{label: "管控措施", prop: "gkcs", fieldType: "ftString",width:300},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
{label: "状态", prop: "zt", fieldType: "ftString",width:6},
{label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
]
}
},
......
......@@ -4,52 +4,66 @@
<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-model="form.roleid"></el-input>
<el-form-item label="作业活动" ref="zyhd" prop="zyhd">
<el-input :readonly="readonly" v-model="form.zyhd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="活动名称" ref="roleid" prop="roleid">
<el-input :readonly="readonly" v-model="form.roleid"></el-input>
<el-form-item label="事故后果" ref="sghg" prop="sghg">
<el-input :readonly="readonly" v-model="form.sghg" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="活动周期" ref="roleid" prop="roleid">
<el-input :readonly="readonly" v-model="form.roleid"></el-input>
<el-form-item label="风险登记" ref="fxdj" prop="fxdj">
<el-input :readonly="readonly" v-model="form.fxdj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="组织单位" ref="roleid" prop="roleid">
<el-input :readonly="readonly" v-model="form.roleid"></el-input>
<el-form-item label="作业地点" ref="zydd" prop="zydd">
<el-input :readonly="readonly" v-model="form.zydd" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="活动内容">
<el-input type="textarea"></el-input>
<el-col :span="12">
<el-form-item label="排查岗位" ref="pcgwid" prop="pcgwid">
<RelSelect src='/aqgl/jcsj/scgw/query' clearable :match="{value:'id',label:'name'}" v-model='form.pcgwid' ></RelSelect>
</el-form-item>
</el-col>
<el-form-item label="风险类型" ref="fxlx" prop="fxlx">
<RelSelect src='/aqgl/fxyk/shlx/query' clearable :match="{value:'id',label:'name'}" v-model='form.fxlx' ></RelSelect>
<!-- <el-input :readonly="readonly" v-model="form.fxlx" ></el-input> -->
</el-form-item>
<el-col :span="12">
<el-form-item label="危害因素" ref="whys" prop="whys">
<el-input :readonly="readonly" v-model="form.whys" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="管控措施" ref="gkcs" prop="gkcs">
<el-input :readonly="readonly" v-model="form.gkcs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="活动结论">
<el-input type="textarea"></el-input>
<el-col :span="12">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="改进措施">
<el-input type="textarea"></el-input>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="系统版本" ref="sysversion" prop="sysversion">
<el-input :readonly="readonly" v-model="form.sysversion" ></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>
......@@ -58,9 +72,10 @@
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
},
/* 组件名称*/
name: 'roleManagementEdit',
name: "nrosEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
......@@ -69,11 +84,42 @@
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
roleid: '',
rolename: '',
bz: "",
//ID
id:'',
//作业活动
zyhd:'',
//事故后果
sghg:'',
//风险登记
fxdj:'',
//作业地点
zydd:'',
//排查岗位ID
pcgwid:'',
//危害因素
whys:'',
//管控措施
gkcs:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
......@@ -97,3 +143,5 @@
<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="8" class="search-col">
<el-col :span="12" class="search-col">
<div class="search-item">
<span class="search-span">日期:</span>
<el-date-picker></el-date-picker>
</div>
</el-col>
<el-col :span="8" class="search-col">
<div class="search-item">
<span class="search-span">部门:</span>
<el-input></el-input>
<span class="search-span">名称:</span>
<el-input v-model="queryParams.info"></el-input>
</div>
</el-col>
</el-row>
......@@ -36,29 +29,23 @@
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' :isFontPage="true" :allData="allData"
:showOverflowTooltip="false"
@getRow='getRow' :cellStyle="cellStyle">
<template slot="tabCustom">
</template>
<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";
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/daily/nros.js';
/* edit页面*/
import Edit from './edit'
import {
......@@ -66,7 +53,7 @@
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
name: 'nros',
/* 初始额外赋值*/
async mounted() {
......@@ -80,66 +67,41 @@
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: 'kzzx/role',
baseUrl: '/aqgl/rcgl/fcgzybz',
/* 查询参数*/
queryParams: {
ksrq: '',
jsrq: ''
info: ''
},
allData:[{
"gkcs":"技术措施:安装声光报警器;管理措施:开口时,指挥人员站位于安全区域,无关人员禁止进入工作区域;操作设备前开启声光报警器,安全确认到位,专人指挥操作;教育措施:培训吊运风口套及直吹管SOP、危险因素辨识及预防控制措施、岗位禁令、岗位安全操作规程;个体防护措施:安全帽、工作服、劳保鞋、阻燃手套、防护面罩、防尘口罩;应急措施:发现有人受伤后,立即救治伤员,向上级上报,严重时送医院治疗;发现有人受伤后,创伤出血者迅速包扎止血,向上级上报,严重时送医院治疗"
}],
/* 表格标题对应参数*/
tableTitle: [
{
prop: 'gkcs',
label: '作业活动',
},
],
cellStyle:{},
{label: "作业活动", prop: "zyhd", fieldType: "ftString",width:300},
{label: "事故后果", prop: "sghg", fieldType: "ftString",width:300},
{label: "风险登记", prop: "fxdj", fieldType: "ftString",width:60},
{label: "作业地点", prop: "zydd", fieldType: "ftString",width:300},
// {label: "排查岗位ID", prop: "pcgwid", fieldType: "ftString",width:192},
{label: "排查岗位", prop: "pcgwName", fieldType: "ftString",width:192},
{label: "危害因素", prop: "whys", fieldType: "ftString",width:300},
{label: "管控措施", prop: "gkcs", fieldType: "ftString",width:300},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}
]
}
},
methods: {
tybz(a) {
let nTy = false
nTy = (a.row.tybz == 'N' ? true : false)
return nTy
},
/* 基础查询*/
query: QueryKzzxRole,
query: doQuery,
/* 基础增*/
apiAdd: AddKzzxRole,
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: UpdateKzzxRole,
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: DeleteKzzxRole,
apiDelete: doDelete,
/* 初始化赋值操作*/
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,
......@@ -152,3 +114,4 @@
<style scoped>
</style>
......@@ -3,53 +3,27 @@
<!-- 填写表单内容,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-model="form.roleid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="事故后果" ref="roleid" prop="roleid">
<el-input :readonly="readonly" v-model="form.roleid"></el-input>
<el-col :span="24">
<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="风险等级" ref="roleid" prop="roleid">
<el-input :readonly="readonly" v-model="form.roleid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="地点" ref="roleid" prop="roleid">
<el-input :readonly="readonly" v-model="form.roleid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="排查岗位" ref="roleid" prop="roleid">
<el-input :readonly="readonly" v-model="form.roleid"></el-input>
<el-col :span="24">
<el-form-item label="名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<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 label="备注" ref="bz" prop="bz">
<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>
......@@ -58,9 +32,10 @@
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
},
/* 组件名称*/
name: 'roleManagementEdit',
name: "nrtmEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
......@@ -69,11 +44,32 @@
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
roleid: '',
rolename: '',
bz: "",
//ID
id:'',
//序号
xh:'',
//名称
name:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
......@@ -97,3 +93,5 @@
<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="8" class="search-col">
<el-col :span="12" class="search-col">
<div class="search-item">
<span class="search-span">日期:</span>
<el-date-picker></el-date-picker>
</div>
</el-col>
<el-col :span="8" class="search-col">
<div class="search-item">
<span class="search-span">部门:</span>
<el-input></el-input>
<span class="search-span">名称:</span>
<el-input v-model="queryParams.info"></el-input>
</div>
</el-col>
</el-row>
......@@ -36,33 +29,23 @@
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' @selectItem='selectItem'
<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";
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/daily/nrtm.js';
/* edit页面*/
import Edit from './edit'
import {
......@@ -70,7 +53,7 @@
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
name: 'nrtm',
/* 初始额外赋值*/
async mounted() {
......@@ -78,84 +61,41 @@
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: 'kzzx/role',
baseUrl: '/aqgl/rcgl/fcgzylx',
/* 查询参数*/
queryParams: {
ksrq: '',
jsrq: ''
info: ''
},
allData:[
],
/* 表格标题对应参数*/
tableTitle: [
{
prop: 'whsj',
label: '作业类型',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '维护日期',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '维护人',
...this.$common('ftDateTime')
}
{label: "序号", prop: "xh", fieldType: "int"},
{label: "名称", prop: "name", fieldType: "ftString",width:300},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}
]
}
},
methods: {
tybz(a) {
let nTy = false
nTy = (a.row.tybz == 'N' ? true : false)
return nTy
},
/* 基础查询*/
query: QueryKzzxRole,
query: doQuery,
/* 基础增*/
apiAdd: AddKzzxRole,
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: UpdateKzzxRole,
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: DeleteKzzxRole,
apiDelete: doDelete,
/* 初始化赋值操作*/
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,
......@@ -168,3 +108,4 @@
<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