Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
Details
Activity
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
hooloo
web
soss
Commits
9d72ebfc
Commit
9d72ebfc
authored
Aug 02, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改机型
parent
a06d686c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
75 additions
and
22 deletions
+75
-22
src/api/component/component.js
+0
-0
src/views/machine/component.vue
+69
-0
src/views/machine/model/model.vue
+0
-20
src/views/machine/model/modelCom.vue
+6
-2
No files found.
src/api/component/component.js
0 → 100644
View file @
9d72ebfc
src/views/machine/component.vue
View file @
9d72ebfc
<
template
>
<div
class=
"app-container"
>
<el-table
v-loading=
"loading"
:data=
"modelList"
>
<el-table-column
label=
"机器型号"
align=
"center"
prop=
"model_name"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"created_at"
/>
<el-table-column
label=
"组件管理"
align=
"center"
>
<template
slot-scope=
"scope"
>
<a
@
click=
"handleComponentDialog(scope.row)"
style=
"color: blue"
>
管理组件
</a>
</
template
>
</el-table-column>
<el-table-column
label=
"机器数量"
align=
"center"
prop=
""
/>
<el-table-column
label=
"备注说明"
align=
"center"
prop=
""
/>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"queryParams.page"
:limit
.
sync=
"queryParams.limit"
@
pagination=
"getList"
/>
</div>
</template>
<
script
>
import
{
getModelList
}
from
"@/api/component/component"
;
export
default
{
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 总条数
total
:
0
,
// 表格数据
modelList
:
[],
// 查询参数
queryParams
:
{
page
:
1
,
limit
:
10
,
},
modelList
:[]
};
},
created
()
{
this
.
getList
();
},
methods
:
{
/** 查询列表 */
getList
()
{
this
.
loading
=
true
;
getModelList
(
this
.
queryParams
).
then
((
response
)
=>
{
if
(
response
.
code
==
0
){
this
.
modelList
=
response
.
data
;
this
.
total
=
response
.
data
.
length
;
this
.
loading
=
false
;
}
});
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
page
=
1
;
this
.
getList
();
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
getList
();
},
}
};
</
script
>
src/views/machine/model/model.vue
View file @
9d72ebfc
<
template
>
<div
class=
"app-container"
>
<!--
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"100px"
>
<el-form-item
label=
"机器型号"
>
<el-select
v-model=
"queryParams.model_id"
placeholder=
"请选择机器型号"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
>
<el-option
v-for=
"item in modelList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"机器编码"
>
<el-input
placeholder=
"请输入机器编码"
v-model=
"queryParams.code"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
v-hasPermi=
"['coupon:category:query']"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
-->
<el-table
v-loading=
"loading"
:data=
"modelList"
>
<el-table-column
label=
"机器型号"
align=
"center"
prop=
"model_name"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"created_at"
/>
...
...
src/views/machine/model/modelCom.vue
View file @
9d72ebfc
...
...
@@ -94,7 +94,7 @@
</el-col>
</el-row>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"editDiaLog
Cancel
"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"editDiaLog
Submit
"
>
确定
</el-button>
<el-button
@
click=
"editDiaLogCancel"
>
退出
</el-button>
</div>
</el-dialog>
...
...
@@ -182,8 +182,12 @@ export default {
comDiaLogCancel
(){
this
.
comDiaLog
=
false
},
//
编辑
组件属性
//
关闭
组件属性
editDiaLogCancel
(){
this
.
editDiaLog
=
false
},
//编辑组件属性
editDiaLogSubmit
(){
var
regular
=
/
(
^
[
+
]{0,1}([
0-9
]
+
)
$
)
/
;
let
hang
=
0
;
for
(
let
i
=
0
;
i
<
this
.
comAry
.
length
;
i
++
){
...
...
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