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
429cf904
Commit
429cf904
authored
Dec 29, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保养项目
parent
cd3db3e4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
177 additions
and
12 deletions
+177
-12
ckxm.vue
src/views/equipment/sbbymx/ckxm.vue
+130
-0
index.vue
src/views/equipment/sbbymx/index.vue
+41
-10
selector.vue
src/views/equipment/sbbymx/selector.vue
+6
-2
No files found.
src/views/equipment/sbbymx/ckxm.vue
0 → 100644
View file @
429cf904
<
template
>
<div
class=
"min_full"
slot=
'form'
style=
"height:100%;width:100%"
>
<Selector
:app=
'this'
v-if=
'showDialog&&DialogName=="ksry"'
></Selector>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<el-button
@
click=
"xzry"
size=
'mini'
type=
"primary"
>
导入项目
</el-button>
<el-button
@
click=
"xzry"
size=
'mini'
type=
"primary"
>
保养记录
</el-button>
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
style=
"height: 380px;"
>
<TablePager
:showPagination=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'this'
:query=
'query'
@
selectItem=
'selectItem'
:delParams=
"'mxid'"
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
Selector
from
'./selector'
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
'@/api/equipment/sbbymx.js'
;
//
/* edit页面*/
import
DtlEdit
from
'./dtlEdit.vue'
import
{
tableMixin_noapp
}
from
'common'
export
default
{
props
:[
'app'
],
mixins
:
[
tableMixin_noapp
],
name
:
'aqgl.pxglPxsjmx'
,
/* 初始额外赋值*/
async
mounted
()
{
/* 存储试卷数据*/
this
.
sjdata
=
this
.
app
.
singleItem
//试卷的
this
.
queryParams
.
mid
=
this
.
app
.
singleItem
.
id
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
})
},
data
()
{
return
{
typeObj
:{
'M'
:
'多选题'
,
'S'
:
'单选题'
,
'J'
:
'判断题'
,
'F'
:
'填空题'
},
sjdata
:{},
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogWidth
:
'85%'
,
DialogTitle
:
'导入试题'
,
/* 基础url*/
baseUrl
:
'/aqgl/pxgl/pxsjmx'
,
/* 查询参数*/
queryParams
:
{
info
:
''
,
mid
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"编码"
,
prop
:
"code"
,
fieldType
:
"ftString"
,
width
:
120
},
{
label
:
"名称"
,
prop
:
"name"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"保养周期-天"
,
prop
:
"byzq"
,
fieldType
:
"int"
,
width
:
252
},
{
label
:
"公司"
,
prop
:
"gsName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"停用标志"
,
prop
:
"tybz"
,
fieldType
:
"ftString"
,
width
:
100
},
{
label
:
"停用日期"
,
prop
:
"tyrq"
,
...
this
.
$common
(
'ftDateTime'
),
width
:
192
},
{
label
:
"标准工时"
,
prop
:
"bzgs"
,
fieldType
:
"float"
,
width
:
192
},
{
label
:
"附件数"
,
prop
:
"attachcount"
,
fieldType
:
"int"
,
width
:
192
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
...
this
.
$common
(
'ftDateTime'
),
width
:
192
},
{
label
:
"创建人"
,
prop
:
"cjr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"创建时间"
,
prop
:
"cjsj"
,
...
this
.
$common
(
'ftDateTime'
),
width
:
192
},
]
}
},
methods
:
{
xzry
(){
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
this
.
DialogTitle
=
'选择保养项目'
this
.
showDialog
=
true
this
.
DialogName
=
'ksry'
}
else
{
this
.
$warning
(
'请选中一行操作'
);
}
},
drst
(){
this
.
showDialog
=
true
},
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
// apiAdd: doDtlAdd,
// /* 基础更新*/
// apiUpdate: doDtlUpdate,
// /* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
init
()
{
}
},
components
:
{
DtlEdit
,
Selector
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/equipment/sbbymx/index.vue
View file @
429cf904
<
template
>
<
template
>
<div
class=
"min_full"
>
<div
style=
"display: flex;height: 120vh;"
>
<Byxm
:app=
'this'
v-if=
'showDialog&&DialogName=="byxm"'
></Byxm>
<div
class=
"min_full"
style=
"width: 200px;border-right: 0px;height: 100%;"
>
<TreeBase
:app=
'app'
:dgtype=
'4'
@
selected=
'selectedTree'
></TreeBase>
</div>
<div
class=
"min_full"
style=
"width: calc(100% - 200px);height: 100%;border: 0px;"
>
<div
class=
"min_full"
style=
"height: 60vh;"
>
<!-- 查询条件-->
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<SearchButton
:app=
'app'
></SearchButton>
...
@@ -37,36 +41,46 @@
...
@@ -37,36 +41,46 @@
<el-row
class=
"tool-bar"
>
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<!--
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
-->
<AttachFileButton
:app=
'app'
></AttachFileButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<FieldButton
:app=
'app'
></FieldButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<!-- 额外按钮-->
<el-button
@
click=
"byxm"
size=
'mini'
type=
"primary"
>
保养项目
</el-button>
<!-- 表头设置 -->
<!-- 表头设置 -->
<!-- 权限-->
<!-- 权限-->
</el-row>
</el-row>
<!-- 表格-->
<!-- 表格-->
<div
class=
"tablePagers"
>
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
<TablePager
:delButton=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
@
getRow=
'getRow'
>
</TablePager>
</TablePager>
</div>
</div>
</div>
</div>
<!-- 保养项目详情-->
<div
class=
"min_full"
style=
"height: 60vh;"
>
<Ckxm
ref=
'ckxm'
:app=
'this'
></Ckxm>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
queryGsTree
}
from
"@/api/train/planning.js"
;
import
{
import
{
doQuery
,
doQuery
,
doAdd
,
doAdd
,
doUpdate
,
doUpdate
,
doDelete
doDelete
}
from
'@/api/equipment/sbxx.js'
;
}
from
'@/api/equipment/sbxx.js'
;
import
Byxm
from
'./by
xm.vue'
import
Ckxm
from
'./ck
xm.vue'
/* edit页面*/
/* edit页面*/
import
Edit
from
'./edit'
import
Edit
from
'./edit'
import
{
import
{
...
@@ -78,7 +92,6 @@
...
@@ -78,7 +92,6 @@
/* 初始额外赋值*/
/* 初始额外赋值*/
async
mounted
()
{
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -100,6 +113,7 @@
...
@@ -100,6 +113,7 @@
sbxx
:
''
,
sbxx
:
''
,
doc
:
''
,
doc
:
''
,
xtfl
:
"0"
,
xtfl
:
"0"
,
gsid
:
''
},
},
/* 表格标题对应参数*/
/* 表格标题对应参数*/
tableTitle
:
[
tableTitle
:
[
...
@@ -123,10 +137,26 @@
...
@@ -123,10 +137,26 @@
{
label
:
"是否已入档"
,
prop
:
"doc"
,
fieldType
:
"ftString"
,
width
:
160
,
show
:
false
},
{
label
:
"是否已入档"
,
prop
:
"doc"
,
fieldType
:
"ftString"
,
width
:
160
,
show
:
false
},
{
label
:
"是否已入档"
,
prop
:
"docName"
,
fieldType
:
"ftString"
,
width
:
160
}
{
label
:
"是否已入档"
,
prop
:
"docName"
,
fieldType
:
"ftString"
,
width
:
160
}
]
],
/* 树的标题 */
treeTitle
:
'公司列表'
,
treeDefaultProps
:
{
children
:
'children'
,
label
:
'bmmc'
},
}
}
},
},
methods
:
{
methods
:
{
getRow
:
function
(
e
)
{
this
.
rowItem
=
e
this
.
$refs
.
ckxm
.
queryParams
.
mid
=
e
.
id
this
.
$refs
.
ckxm
.
$refs
[
'TablePager'
].
pageQuery
()
},
selectedTree
(
e
){
this
.
queryParams
.
gsid
=
e
.
id
||
'root'
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
/* 查看人员*/
/* 查看人员*/
byxm
(){
byxm
(){
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
...
@@ -148,6 +178,7 @@
...
@@ -148,6 +178,7 @@
/* 删除操作*/
/* 删除操作*/
apiDelete
:
doDelete
,
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
/* 初始化赋值操作*/
apiTreeQuery
:
queryGsTree
,
init
()
{
init
()
{
}
}
...
@@ -156,7 +187,7 @@
...
@@ -156,7 +187,7 @@
},
},
components
:
{
components
:
{
Edit
,
By
xm
Edit
,
Ck
xm
}
}
...
...
src/views/equipment/sbbymx/selector.vue
View file @
429cf904
...
@@ -234,8 +234,12 @@ props:['app'],
...
@@ -234,8 +234,12 @@ props:['app'],
},
},
save
(){
save
(){
this
.
selectedList
.
forEach
(
row
=>
{
row
.
xmid
=
row
.
id
// delete row.id
})
let
params
=
{
let
params
=
{
id
:
this
.
app
.
queryParams
.
mid
,
sb
id
:
this
.
app
.
queryParams
.
mid
,
data
:
this
.
selectedList
data
:
this
.
selectedList
}
}
doSave
(
params
).
then
(
res
=>
{
doSave
(
params
).
then
(
res
=>
{
...
...
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