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
13b0170c
Commit
13b0170c
authored
Nov 09, 2022
by
zhoumaotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备巡检
parent
51eca016
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
304 additions
and
1 deletion
+304
-1
sbxj.js
src/api/equipment/sbxj.js
+40
-0
index.js
src/router/index.js
+1
-1
edit.vue
src/views/equipment/inspection/new/edit.vue
+140
-0
index.vue
src/views/equipment/inspection/new/index.vue
+123
-0
No files found.
src/api/equipment/sbxj.js
0 → 100644
View file @
13b0170c
import
request
from
'common/src/utils/request'
/* 查询 */
export
function
doQuery
(
query
)
{
return
request
({
url
:
'/aqgl/sbgl/sbxj/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/* 更新 */
export
function
doUpdate
(
query
)
{
return
request
({
url
:
'/aqgl/sbgl/sbxj/update'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAdd
(
query
)
{
return
request
({
url
:
'/aqgl/sbgl/sbxj/add'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDelete
(
query
)
{
return
request
({
url
:
'/aqgl/sbgl/sbxj/delete'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/* 状态查询 */
export
function
initZt
(
query
)
{
return
request
({
url
:
'/aqgl/sbgl/sbxj/init/zt'
,
method
:
'post'
,
data
:
query
||
{}
})
}
\ No newline at end of file
src/router/index.js
View file @
13b0170c
...
...
@@ -972,7 +972,7 @@ export const constantRoutes = [
component
:()
=>
import
(
"@/views/equipment/inspection/index"
),
hidden
:
false
,
meta
:{
"title"
:
"设备设施巡检
记录
管理"
,
"title"
:
"设备设施巡检管理"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
...
...
src/views/equipment/inspection/new/edit.vue
0 → 100644
View file @
13b0170c
<
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=
"xjrq"
prop=
"xjrq"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.xjrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<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=
"12"
>
<el-form-item
label=
"设备ID"
ref=
"sbxxid"
prop=
"sbxxid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sbxxid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"安装位置"
ref=
"azwz"
prop=
"azwz"
>
<el-input
:readonly=
"readonly"
v-model=
"form.azwz"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查情况"
ref=
"jcqk"
prop=
"jcqk"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jcqk"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查人"
ref=
"jcrid"
prop=
"jcrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jcrid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查时间"
ref=
"jcsj"
prop=
"jcsj"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.jcsj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<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-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>
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
"aqglSbxjEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
//ID
id
:
''
,
//巡检日期
xjrq
:
new
Date
().
getTime
(),
//设备分类
flid
:
''
,
//设备ID
sbxxid
:
''
,
//安装位置
azwz
:
''
,
//检查状态
zt
:
''
,
//检查情况
jcqk
:
''
,
//检查人
jcrid
:
''
,
//检查时间
jcsj
:
new
Date
().
getTime
(),
//备注
bz
:
''
,
//维护人编码
whrid
:
''
,
//维护人
whr
:
''
,
//维护时间
whsj
:
new
Date
().
getTime
(),
//创建人编码
cjrid
:
''
,
//创建人
cjr
:
''
,
//创建时间
cjsj
:
new
Date
().
getTime
(),
//系统版本
sysversion
:
''
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
}
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/equipment/inspection/new/index.vue
0 → 100644
View file @
13b0170c
<
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=
"12"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
名称:
</span>
<el-input
v-model=
"queryParams.info"
></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
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
'@/api/equipment/sbxj.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'aqglSbxj'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/sbgl/sbxj'
,
/* 查询参数*/
queryParams
:
{
info
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"巡检日期"
,
prop
:
"xjrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"设备分类"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
96
},
{
label
:
"设备分类"
,
prop
:
"xtflName"
,
fieldType
:
"ftString"
,
width
:
96
},
{
label
:
"设备ID"
,
prop
:
"sbxxid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"设备编号"
,
prop
:
"sbxxCode"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"设备名称"
,
prop
:
"sbxxName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"安装位置"
,
prop
:
"azwz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"检查状态"
,
prop
:
"zt"
,
fieldType
:
"ftString"
,
width
:
12
},
{
label
:
"检查状态"
,
prop
:
"ztName"
,
fieldType
:
"ftString"
,
width
:
12
},
{
label
:
"检查情况"
,
prop
:
"jcqk"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"检查人"
,
prop
:
"jcrid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"检查人"
,
prop
:
"jcrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"检查时间"
,
prop
:
"jcsj"
,
fieldType
:
"ftDateTime"
},
{
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"
},
]
}
},
methods
:
{
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
init
()
{
}
},
components
:
{
Edit
,
}
}
</
script
>
<
style
scoped
>
</
style
>
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