Commit 20744b07 authored by 李苏's avatar 李苏 💬

有限空间作业

parent d4aec598
import request from 'common/src/utils/request'
/* query */
export function doQuery(query) {
return request({
url: '/aqgl/yxkjzygl/query',
method: 'post',
data: query||{}
})
}
/* 更新 */
export function doUpdate(query) {
return request({
url: '/aqgl/yxkjzygl/update',
method: 'post',
data: query||{}
})
}
export function doAdd(query) {
return request({
url: '/aqgl/yxkjzygl/add',
method: 'post',
data: query||{}
})
}
export function doDelete(query) {
return request({
url: '/aqgl/yxkjzygl/delete',
method: 'post',
data: query||{}
})
}
export function doQuerytree(query) {
return request({
url: '/aqgl/yxkjzygl/query/tree',
method: 'post',
data: query||{}
})
}
......@@ -488,19 +488,19 @@ export const powerRoutes=[
redirect: 'maintainTV',
meta: {title: "三违管理", icon: "fa-cog", noCache: false, link: null,mkid:904000000},
children: [
{
component:'threeViolations/homePage/index',
hidden:false,
meta:{
"title": "首页",
"icon": "",
"noCache": false,
"link": null,
"mkid":'test',
},
name:'homePage',
path:"homePage"
},
// {
// component:'threeViolations/homePage/oldIndex',
// hidden:false,
// meta:{
// "title": "首页",
// "icon": "",
// "noCache": false,
// "link": null,
// "mkid":'test',
// },
// name:'homePage',
// path:"homePage"
// },
{
component:'threeViolations/maintainTV/index',
hidden:false,
......@@ -1426,6 +1426,30 @@ export const powerRoutes=[
path:"archives"
}
]
},
/* 有限空间作业*/
{
path: '/spaceOperations',
component: 'Layout',
hidden: false,
alwaysShow:true,
redirect: 'declare',
meta: {title: "有限空间作业", icon: "fa-cog", noCache: false, link: null,mkid:905000000},
children: [
{
component:'spaceOperations/declare/index',
hidden:false,
meta:{
"title": "外协单位准入申报",
"icon": "",
"noCache": false,
"link": null,
"mkid":905002000,
},
name:'declare',
path:"declare"
}
]
}
]
// 公共路由
......
This diff is collapsed.
<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="title" prop="title">
<el-input :readonly="readonly" v-model="form.title"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
// this.form.mlid=this.app.queryParams.mlid
this.form.gsid=this.app.queryParams.gsid
},
/* 组件名称*/
name: 'appVersionEdit',
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
mlid:'',
gsid:'',
title: '',
sytk: '',
bz: "",
fbrq:new Date().getTime(),
ssrq:new Date().getTime(),
mlid:''
},
/* form提交时的规则,具体规则参考官网*/
rules: {
gsid: [{
required: true,
}, ],
}
}
},
methods: {
/* 重写方法,this.app来调用index页面定义的api*/
}
}
</script>
<style scoped lang="scss">
</style>
......@@ -517,4 +517,3 @@
background-color: #d3dce6;
}
</style>
\ No newline at end of file
This diff is collapsed.
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