Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-finance
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4250bd7d
authored
Apr 24, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
111
1 parent
ae0c510c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
145 deletions
src/views/deliver/index.vue
src/views/deliver/index.vue
deleted
100644 → 0
View file @
ae0c510
<!-- 专区管理 -->
<
template
>
<div
class=
"marketing p-t-20"
>
<div
class=
"m-b-20"
>
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新建
</el-button>
</div>
<div
class=
"container"
>
<el-form
:inline=
"true"
>
<el-form-item
label=
"专区名称"
>
<el-input
style=
"width: 215px;"
:size=
"size"
v-model=
"searchForm.zoneName"
></el-input>
</el-form-item>
<el-form-item
class=
"search-btns"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"default"
@
click=
"handleReset"
>
查询
</el-button>
</el-form-item>
</el-form>
<!-- 表格区域 开始 -->
<GLTable
ref=
"zoneRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</el-button>
</div>
</GLTable>
<!-- 表格区域 end -->
</div>
</div>
</
template
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
export
default
{
name
:
'zoneList'
,
data
()
{
return
{
size
:
'small'
,
url
:
url
,
searchForm
:
{
zoneName
:
''
,
createDate
:
[]
},
tableSearchForm
:
{},
// 搜索
searchFormData
:
[
{
label
:
'专区名称'
,
name
:
'zoneName'
,
type
:
'input'
,
maxlength
:
20
},
{
label
:
'创建日期'
,
name
:
'createDate'
,
type
:
'datePicker'
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
}
],
// 表格
getListApi
:
this
.
$apis
.
zoneList
.
getZoneListApi
,
tableParams
:
{
listName
:
'list'
,
tableOption
:
true
,
tableColumns
:
[
{
label
:
'专区名称'
,
prop
:
'zoneName'
},
{
label
:
'创建日期'
,
prop
:
'createdDate'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
}
]
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
}
}
},
mounted
()
{},
methods
:
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
params
.
zoneType
=
'2'
//专区类型(1发现频道,2商城专区)
if
(
this
.
searchForm
.
createDate
.
length
)
{
params
.
startTime
=
new
Date
(
this
.
searchForm
.
createDate
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
endTime
=
new
Date
(
this
.
searchForm
.
createDate
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
}
delete
params
.
createDate
return
params
},
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
=
this
.
getParams
()
delete
this
.
tableSearchForm
.
createDate
resolve
()
})
},
// 1-新增;2-编辑
handleEdit
(
addOrEdit
,
row
)
{
this
.
$message
({
type
:
'success'
,
message
:
addOrEdit
==
'1'
?
'新增'
:
'编辑'
})
},
setTableFinishFun
()
{
//接收到的数据为空
this
.
$refs
.
zoneRef
.
data
.
length
?
(
this
.
$refs
.
zoneRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
zoneRef
.
setTableHeightFun
()
},
handleSearch
()
{
this
.
$refs
.
zoneRef
.
refreshTable
()
},
handleReset
()
{
this
.
searchForm
=
{
zoneName
:
''
}
this
.
handleSearch
()
}
}
}
</
script
>
<
style
scoped
>
.marketing
.search-btns
{
float
:
right
;
margin-right
:
0
;
}
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment