Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
sgaqgl-vue
Commits
724544a0
Commit
724544a0
authored
Oct 31, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
27
parent
f6b50e14
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
2530 additions
and
3 deletions
+2530
-3
package.json
package.json
+1
-0
index.js
src/router/index.js
+120
-2
edit.vue
src/views/equipment/archives/edit.vue
+110
-0
index.vue
src/views/equipment/archives/index.vue
+204
-0
edit.vue
src/views/equipment/environment/edit.vue
+125
-0
index.vue
src/views/equipment/environment/index.vue
+194
-0
edit.vue
src/views/equipment/inspection/edit.vue
+115
-0
index.vue
src/views/equipment/inspection/index.vue
+221
-0
edit.vue
src/views/equipment/maintain/edit.vue
+115
-0
index.vue
src/views/equipment/maintain/index.vue
+204
-0
edit.vue
src/views/equipment/specialEquipment/edit.vue
+99
-0
index.vue
src/views/equipment/specialEquipment/index.vue
+266
-0
edit.vue
src/views/statistics/dangeRecords/edit.vue
+178
-0
index.vue
src/views/statistics/dangeRecords/index.vue
+260
-0
edit.vue
src/views/statistics/securitySituation/edit.vue
+99
-0
index.vue
src/views/statistics/securitySituation/index.vue
+214
-0
index.vue
src/views/train/onlinExamination/index.vue
+4
-0
vue.config.js
vue.config.js
+1
-1
No files found.
package.json
View file @
724544a0
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
"clear"
:
"rmdir /s/q node_modules"
,
"clear"
:
"rmdir /s/q node_modules"
,
"serve"
:
"node init && vue-cli-service serve"
,
"serve"
:
"node init && vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
,
"build"
:
"vue-cli-service build"
,
"build:report"
:
"vue-cli-service build --report"
,
"build:stage"
:
"vue-cli-service build --mode staging"
,
"build:stage"
:
"vue-cli-service build --mode staging"
,
"preview"
:
"node build/index.js --preview"
,
"preview"
:
"node build/index.js --preview"
,
"lint"
:
"eslint --ext .js,.vue src"
"lint"
:
"eslint --ext .js,.vue src"
...
...
src/router/index.js
View file @
724544a0
...
@@ -778,8 +778,126 @@ export const constantRoutes = [
...
@@ -778,8 +778,126 @@ export const constantRoutes = [
]
]
},
},
/* 查询统计 */
{
path
:
'/statistics'
,
component
:
Layout
,
hidden
:
false
,
alwaysShow
:
true
,
redirect
:
'securitySituation'
,
meta
:
{
title
:
"查询统计"
,
icon
:
"fa-cog"
,
noCache
:
false
,
link
:
null
,
mkid
:
105000000
},
children
:
[
{
commonComponent
:
'securitySituation'
,
component
:()
=>
import
(
"@/views/statistics/securitySituation/index"
),
hidden
:
false
,
meta
:{
"title"
:
"培训计划制定"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
101001300
,
},
name
:
'securitySituation'
,
path
:
"securitySituation"
},
{
commonComponent
:
'dangeRecords'
,
component
:()
=>
import
(
"@/views/statistics/dangeRecords/index"
),
hidden
:
false
,
meta
:{
"title"
:
"查询超期隐患记录"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
101001300
,
},
name
:
'dangeRecords'
,
path
:
"dangeRecords"
}
]
},
/* 设备管理 */
{
path
:
'/equipment'
,
component
:
Layout
,
hidden
:
false
,
alwaysShow
:
true
,
redirect
:
'securitySituation'
,
meta
:
{
title
:
"设备管理"
,
icon
:
"fa-cog"
,
noCache
:
false
,
link
:
null
,
mkid
:
105000000
},
children
:
[
{
commonComponent
:
'archives'
,
component
:()
=>
import
(
"@/views/equipment/archives/index"
),
hidden
:
false
,
meta
:{
"title"
:
"设备档案管理"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
101001300
,
},
name
:
'archives'
,
path
:
"archives"
},
{
commonComponent
:
'archives'
,
component
:()
=>
import
(
"@/views/equipment/specialEquipment/index"
),
hidden
:
false
,
meta
:{
"title"
:
"特种设备档案管理"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
101001300
,
},
name
:
'specialEquipment'
,
path
:
"specialEquipment"
},
{
commonComponent
:
'environment'
,
component
:()
=>
import
(
"@/views/equipment/environment/index"
),
hidden
:
false
,
meta
:{
"title"
:
"环保设备档案管理"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
101001300
,
},
name
:
'environment'
,
path
:
"environment"
},
{
commonComponent
:
'maintain'
,
component
:()
=>
import
(
"@/views/equipment/maintain/index"
),
hidden
:
false
,
meta
:{
"title"
:
"维护防护设施档案"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
101001300
,
},
name
:
'maintain'
,
path
:
"maintain"
},
{
commonComponent
:
'inspection'
,
component
:()
=>
import
(
"@/views/equipment/inspection/index"
),
hidden
:
false
,
meta
:{
"title"
:
"设备设施巡检记录管理"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
101001300
,
},
name
:
'inspection'
,
path
:
"inspection"
}
]
},
]
]
// 动态路由,基于用户权限动态去加载
// 动态路由,基于用户权限动态去加载
...
...
src/views/equipment/archives/edit.vue
0 → 100644
View file @
724544a0
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<el-form
style=
"max-height: 75vh;overflow-y: auto;overflow-x: hidden;"
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-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-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-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-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-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
>
src/views/equipment/archives/index.vue
0 → 100644
View file @
724544a0
<
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-input></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
设备名称:
</span>
<el-select></el-select>
</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.ksrq"
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'
},
{
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
>
src/views/equipment/environment/edit.vue
0 → 100644
View file @
724544a0
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<el-form
style=
"max-height: 75vh;overflow-y: auto;overflow-x: hidden;"
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-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-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-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-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"参数量程"
ref=
"roleid"
prop=
"roleid"
>
<el-input
type=
"textarea"
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"检测因子"
ref=
"roleid"
prop=
"roleid"
>
<el-input
type=
"textarea"
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"使用地点"
ref=
"roleid"
prop=
"roleid"
>
<el-input
type=
"textarea"
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"生产厂家"
ref=
"roleid"
prop=
"roleid"
>
<el-input
type=
"textarea"
: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-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
>
src/views/equipment/environment/index.vue
0 → 100644
View file @
724544a0
<
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-input></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
设备名称:
</span>
<el-select></el-select>
</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.ksrq"
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'
},
{
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
>
src/views/equipment/inspection/edit.vue
0 → 100644
View file @
724544a0
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<el-form
style=
"max-height: 75vh;overflow-y: auto;overflow-x: hidden;"
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"110px"
: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-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-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-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-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"用途"
ref=
"roleid"
prop=
"roleid"
>
<el-input
type=
"textarea"
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"检查人岗位"
ref=
"roleid"
prop=
"roleid"
>
<el-input
type=
"textarea"
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"拍照选项"
ref=
"roleid"
prop=
"roleid"
>
<el-input
type=
"textarea"
:readonly=
"readonly"
v-model=
"form.roleid"
></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
>
src/views/equipment/inspection/index.vue
0 → 100644
View file @
724544a0
<
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-input></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
设施编号:
</span>
<el-select></el-select>
</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.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.ksrq"
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></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'
}
]
}
},
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
>
src/views/equipment/maintain/edit.vue
0 → 100644
View file @
724544a0
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<el-form
style=
"max-height: 75vh;overflow-y: auto;overflow-x: hidden;"
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"110px"
: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-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-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-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-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"用途"
ref=
"roleid"
prop=
"roleid"
>
<el-input
type=
"textarea"
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"检查人岗位"
ref=
"roleid"
prop=
"roleid"
>
<el-input
type=
"textarea"
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"拍照选项"
ref=
"roleid"
prop=
"roleid"
>
<el-input
type=
"textarea"
:readonly=
"readonly"
v-model=
"form.roleid"
></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
>
src/views/equipment/maintain/index.vue
0 → 100644
View file @
724544a0
<
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-input></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
设备名称:
</span>
<el-select></el-select>
</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.ksrq"
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'
},
{
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
>
src/views/equipment/specialEquipment/edit.vue
0 → 100644
View file @
724544a0
<
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
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
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-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
>
src/views/equipment/specialEquipment/index.vue
0 → 100644
View file @
724544a0
<
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-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=
"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=
"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-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'
},
{
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
>
src/views/statistics/dangeRecords/edit.vue
0 → 100644
View file @
724544a0
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<el-form
style=
"max-height: 75vh;overflow-y: auto;overflow-x: hidden;"
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-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-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-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-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-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-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"责任人"
>
<el-select
placeholder=
"请选择"
style=
"width: 100%;"
>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"处置时间"
>
<el-select
placeholder=
"请选择"
style=
"width: 100%;"
>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"执行人"
>
<el-select
placeholder=
"请选择"
style=
"width: 100%;"
>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"反馈时间"
>
<el-select
placeholder=
"请选择"
style=
"width: 100%;"
>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"复查人"
>
<el-select
placeholder=
"请选择"
style=
"width: 100%;"
>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"复查时间"
>
<el-select
placeholder=
"请选择"
style=
"width: 100%;"
>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"处置人"
>
<el-select
placeholder=
"请选择"
style=
"width: 100%;"
>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"责任单位"
>
<el-select
placeholder=
"请选择"
style=
"width: 100%;"
>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"记录状态"
>
<el-select
placeholder=
"请选择"
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
()
{
},
/* 组件名称*/
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
>
src/views/statistics/dangeRecords/index.vue
0 → 100644
View file @
724544a0
<
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-input></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
处理状态:
</span>
<el-select></el-select>
</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.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'
},
{
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'
},
{
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
>
src/views/statistics/securitySituation/edit.vue
0 → 100644
View file @
724544a0
<
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
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
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-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
>
src/views/statistics/securitySituation/index.vue
0 → 100644
View file @
724544a0
<
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-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-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'
}
]
}
},
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
>
src/views/train/onlinExamination/index.vue
View file @
724544a0
<
template
>
<
template
>
<div
style=
"padding: 10px;"
>
<div
style=
"padding: 10px;"
>
<!-- 测试-->
<RelSelect
v-model=
'test'
></RelSelect>
<el-input
v-model=
'test'
></el-input>
<h1>
<h1>
SVG
SVG
</h1>
</h1>
...
@@ -37,6 +40,7 @@
...
@@ -37,6 +40,7 @@
},
},
data
(){
data
(){
return
{
return
{
test
:
''
,
x
:
10
,
x
:
10
,
y
:
10
,
y
:
10
,
arr
:[[
1
,
3
],
4
,[
3
,[
12
,
3
,[
1
]],
4
],
19
],
arr
:[[
1
,
3
],
4
,[
3
,[
12
,
3
,[
1
]],
4
],
19
],
...
...
vue.config.js
View file @
724544a0
...
@@ -35,7 +35,7 @@ module.exports = {
...
@@ -35,7 +35,7 @@ module.exports = {
proxy
:
{
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://1
19.3.92.249
:18080/dmg`
,
target
:
`http://1
92.168.30.254
:18080/dmg`
,
// target: `http://localhost:9080/dmg`,
// target: `http://localhost:9080/dmg`,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment