Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_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
胡宝山
template_vue
Commits
f17a97b4
Commit
f17a97b4
authored
Aug 08, 2024
by
XuYang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改分页
parent
71464c52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
25 deletions
+43
-25
wcporder.vue
src/views/template/wcporder.vue
+43
-25
No files found.
src/views/template/wcporder.vue
View file @
f17a97b4
...
@@ -56,13 +56,13 @@
...
@@ -56,13 +56,13 @@
@
click=
"handleImport"
@
click=
"handleImport"
>
导入
>
导入
</el-button>
</el-button>
<!--
<el-button-->
<!--
<el-button-->
<!-- :class="commonField.exportClass"-->
<!-- :class="commonField.exportClass"-->
<!-- :type="commonField.typeSuccess"-->
<!-- :type="commonField.typeSuccess"-->
<!-- :icon="commonField.exportIcon"-->
<!-- :icon="commonField.exportIcon"-->
<!-- :size="commonField.smallSize"-->
<!-- :size="commonField.smallSize"-->
<!-- @click="handleExport"-->
<!-- @click="handleExport"-->
<!-- >导出
</el-button>
-->
<!-- >导出
</el-button>
-->
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
...
@@ -78,12 +78,12 @@
...
@@ -78,12 +78,12 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"状态"
prop=
"status"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"状态"
prop=
"status"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
type
||
'-'
}}
{{
scope
.
row
.
status
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"
备注"
prop=
"remarks
"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"
创建人"
prop=
"createName
"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
remarks
||
'-'
}}
{{
scope
.
row
.
createName
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"创建时间"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"创建时间"
prop=
"createDate"
:show-overflow-tooltip=
"true"
>
...
@@ -93,12 +93,12 @@
...
@@ -93,12 +93,12 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"200px"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"200px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<!--
<el-button-->
<!--
<el-button-->
<!-- :class="commonField.updateClass"-->
<!-- :class="commonField.updateClass"-->
<!-- :type="commonField.typeParent"-->
<!-- :type="commonField.typeParent"-->
<!-- :size="commonField.size"-->
<!-- :size="commonField.size"-->
<!-- @click="handleUpdate(scope.row)"-->
<!-- @click="handleUpdate(scope.row)"-->
<!-- >修改
</el-button>
-->
<!-- >修改
</el-button>
-->
<el-button
<el-button
:class=
"commonField.delClass"
:class=
"commonField.delClass"
:type=
"commonField.typeParent"
:type=
"commonField.typeParent"
...
@@ -148,7 +148,14 @@
...
@@ -148,7 +148,14 @@
</div>
</div>
</el-dialog>
</el-dialog>
<!--详情-->
<!--详情-->
<el-dialog
class=
"aboutSingleDetails"
:title=
"title"
:visible
.
sync=
"openDetails"
width=
"80%"
append-to-body
:close-on-click-modal=
"false"
>
<el-dialog
class=
"aboutSingleDetails"
:title=
"title"
:visible
.
sync=
"openDetails"
width=
"80%"
append-to-body
:close-on-click-modal=
"false"
>
<el-table
v-loading=
"loading"
border
:data=
"queryParamsNew.TempList"
>
<el-table
v-loading=
"loading"
border
:data=
"queryParamsNew.TempList"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"orderId"
prop=
"orderId"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"orderId"
prop=
"orderId"
:show-overflow-tooltip=
"true"
>
...
@@ -375,6 +382,15 @@ export default {
...
@@ -375,6 +382,15 @@ export default {
return
commonField
return
commonField
}
}
},
},
watch
:
{
'openDetails'
:
function
(
newValue
,
oldValue
)
{
this
.
queryParamsNew
=
{
page
:
1
,
rows
:
10
,
TempList
:
[]
}
}
},
created
()
{
created
()
{
this
.
getList
()
// 列表查询
this
.
getList
()
// 列表查询
this
.
handleDetail
()
this
.
handleDetail
()
...
@@ -603,10 +619,12 @@ export default {
...
@@ -603,10 +619,12 @@ export default {
},
},
// 获取所选行详情信息操作
// 获取所选行详情信息操作
handleDetail
(
row
)
{
handleDetail
(
row
)
{
const
id
=
row
.
businessId
if
(
row
.
businessId
!==
undefined
&&
row
.
businessId
!==
''
&&
row
.
businessId
!==
null
)
{
this
.
id
=
row
.
businessId
}
this
.
queryParamsNew
.
TempList
=
[]
this
.
queryParamsNew
.
TempList
=
[]
const
queryParams
=
{
const
queryParams
=
{
businessId
:
id
,
businessId
:
this
.
id
,
page
:
this
.
queryParamsNew
.
page
,
page
:
this
.
queryParamsNew
.
page
,
rows
:
this
.
queryParamsNew
.
rows
rows
:
this
.
queryParamsNew
.
rows
}
}
...
@@ -615,12 +633,12 @@ export default {
...
@@ -615,12 +633,12 @@ export default {
this
.
Newtotal
=
response
.
data
.
total
this
.
Newtotal
=
response
.
data
.
total
})
})
this
.
title
=
'详情信息'
this
.
title
=
'详情信息'
this
.
openDetails
=
!
this
.
openDetails
this
.
openDetails
=
true
this
.
queryParamsNew
=
{
//
this.queryParamsNew = {
page
:
1
,
//
page: 1,
rows
:
10
,
//
rows: 10,
TempList
:
[]
//
TempList: []
}
//
}
}
}
}
}
}
}
...
...
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