Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 5fce3990
authored
Jul 10, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style: 格式化
1 parent
dc36a1e7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
55 deletions
src/api/serviceItemsManage.js
src/components/remoteSearchSelect/index.vue
src/components/venusNumberInput/index.vue
src/api/serviceItemsManage.js
View file @
5fce399
import
request
from
"./request"
import
RequestMethods
from
"./request.methods"
const
path
=
"dj.api.smarcarlife."
import
request
from
"./request"
;
import
RequestMethods
from
"./request.methods"
;
const
path
=
"dj.api.smarcarlife."
;
export
function
getList
(
data
)
{
data
.
method
=
`
${
path
}
construction.item.page`
return
request
(
data
,
RequestMethods
.
POST
)
}
\ No newline at end of file
data
.
method
=
`
${
path
}
construction.item.page`
;
return
request
(
data
,
RequestMethods
.
POST
);
}
src/components/remoteSearchSelect/index.vue
View file @
5fce399
<
template
>
<el-select
ref=
"selectRef"
:key=
"forceKey"
v-select-load-more=
"loadMore"
:value=
"value"
v-bind=
"selectProps"
v-on=
"selectEvent"
@
visible-change=
"handleVisibleChange"
@
change=
"handleSelectChange"
>
<el-option
v-for=
"subItem in localOptions"
:key=
"subItem[fieldName.value]"
v-bind=
"
{
value: $attrs['value-key'] ? subItem : subItem[fieldName.value],
label: subItem[fieldName.label],
...isFunction(optionProps) ? optionProps(subItem) : optionProps,
}">
<slot
name=
"options"
:row=
"subItem"
>
</slot>
</el-option>
<template
#
empty
>
<div
class=
"temp-wrapper empty-wrapper"
style=
"text-align: center;cursor: not-allowed;padding:4px 0;"
>
<div
v-if=
"loading"
>
<span
class=
"el-icon-loading"
/>
</div>
<div
v-else
title=
"请键入其他关键字"
>
没有找到相关数据
</div>
</div>
</
template
>
<div
class=
"temp-wrapper page-tips"
title=
"不要点我"
>
<div
v-if=
"(pageQuery.currentPage <= pageQuery.pages) && loading"
>
<span>
下一页加载中
</span>
<span
class=
"el-icon-loading"
/>
</div>
<div
v-else
>
到底没有更多了
</div>
<el-select
:key=
"forceKey"
ref=
"selectRef"
v-select-load-more=
"loadMore"
:value=
"value"
v-bind=
"selectProps"
v-on=
"selectEvent"
@
change=
"handleSelectChange"
@
visible-change=
"handleVisibleChange"
>
<el-option
v-for=
"subItem in localOptions"
:key=
"subItem[fieldName.value]"
v-bind=
"
{
value: $attrs['value-key'] ? subItem : subItem[fieldName.value],
label: subItem[fieldName.label],
...isFunction(optionProps) ? optionProps(subItem) : optionProps,
}">
<slot
name=
"options"
:row=
"subItem"
>
</slot>
</el-option>
<template
#
empty
>
<div
class=
"temp-wrapper empty-wrapper"
style=
"text-align: center;cursor: not-allowed;padding:4px 0;"
>
<div
v-if=
"loading"
>
<span
class=
"el-icon-loading"
/>
</div>
</el-select>
<div
v-else
title=
"请键入其他关键字"
>
没有找到相关数据
</div>
</div>
</
template
>
<div
class=
"temp-wrapper page-tips"
title=
"不要点我"
>
<div
v-if=
"(pageQuery.currentPage <= pageQuery.pages) && loading"
>
<span>
下一页加载中
</span>
<span
class=
"el-icon-loading"
/>
</div>
<div
v-else
>
到底没有更多了
</div>
</div>
</el-select>
</template>
<
script
>
...
...
@@ -203,7 +202,7 @@ export default {
// 是否第一次触发
isImmediate
,
});
le
t
{
defaultValue
}
=
this
;
cons
t
{
defaultValue
}
=
this
;
if
(
loadMore
)
{
// 加载更多时,如果默认值已存在则移除,避免重复
...
...
src/components/venusNumberInput/index.vue
View file @
5fce399
<
template
>
<el-input-number
v-bind=
"$attrs"
:value=
"displayValue"
v-on=
"inputNumberListeners"
>
<slot></slot>
</el-input-number>
<el-input-number
v-bind=
"$attrs"
:value=
"displayValue"
v-on=
"inputNumberListeners"
>
<slot></slot>
</el-input-number>
</
template
>
<
script
>
...
...
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