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 417fcbd8
authored
Feb 05, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refactor(绩效方案): 移除不必要的可见性状态和事件处理
简化级联选择器逻辑,直接使用计算属性作为选项,避免条件渲染和可见性状态管理
1 parent
0d55e9b7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
src/views/residentManage/salaryPerformance/performanceScheme/components/prodectDefine/index.vue
src/views/residentManage/salaryPerformance/performanceScheme/components/prodectDefine/index.vue
View file @
417fcbd
<
template
>
<
template
>
<div
class=
""
>
<div
class=
""
>
<el-cascader
clearable
<el-cascader
clearable
:options=
"
visible ? computedOptions : getProductDefineList
Options"
:options=
"
computed
Options"
placeholder=
"请选择"
placeholder=
"请选择"
:props=
"
{ checkStrictly: true }"
:props=
"
{ checkStrictly: true }"
:show-all-levels="false"
:show-all-levels="false"
:value="value"
:value="value"
@change="handleProductChange"
@change="handleProductChange">
@visible-change="handleVisibleChange">
</el-cascader>
</el-cascader>
</div>
</div>
</
template
>
</
template
>
...
@@ -74,7 +73,6 @@ export default {
...
@@ -74,7 +73,6 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
visible
:
false
,
};
};
},
},
computed
:
{
computed
:
{
...
@@ -83,7 +81,6 @@ export default {
...
@@ -83,7 +81,6 @@ export default {
occupiedPaths
()
{
occupiedPaths
()
{
const
paths
=
[];
const
paths
=
[];
// Determine the scope: specific config (if index provided) or all configs
let
targetConfigs
=
[];
let
targetConfigs
=
[];
let
targetConfigIndices
=
[];
let
targetConfigIndices
=
[];
...
@@ -307,9 +304,7 @@ export default {
...
@@ -307,9 +304,7 @@ export default {
this
.
$emit
(
"input"
,
value
);
this
.
$emit
(
"input"
,
value
);
this
.
$emit
(
"change"
,
value
);
this
.
$emit
(
"change"
,
value
);
},
},
handleVisibleChange
(
isVisible
)
{
this
.
visible
=
isVisible
;
},
},
},
};
};
</
script
>
</
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