mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-11 03:46:50 +08:00
fix(track): 修复新增分段按钮状态
- 在 addSegment 方法中添加了对 optStatus 的判断,只有当状态为 4
This commit is contained in:
@@ -192,6 +192,9 @@ export default {
|
|||||||
},
|
},
|
||||||
// 新增分段
|
// 新增分段
|
||||||
addSegment() {
|
addSegment() {
|
||||||
|
if (this.newForm.optStatus !== 4) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
// this._getSplitResultPreview()
|
// this._getSplitResultPreview()
|
||||||
|
|
||||||
this.addSegmentDialog = true
|
this.addSegmentDialog = true
|
||||||
@@ -292,12 +295,21 @@ export default {
|
|||||||
type="primary"
|
type="primary"
|
||||||
@click="addSegment"
|
@click="addSegment"
|
||||||
class="line-button"
|
class="line-button"
|
||||||
|
:class="newForm.optStatus !== 4 ? 'is-disabled' : ''"
|
||||||
@command="command"
|
@command="command"
|
||||||
>
|
>
|
||||||
新增分段
|
新增分段
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown" :disabled="newForm.optStatus !== 4">
|
||||||
<el-dropdown-item command="newAdd">批量新增</el-dropdown-item>
|
<el-dropdown-item
|
||||||
<el-dropdown-item command="exportSeg">分段导出</el-dropdown-item>
|
command="newAdd"
|
||||||
|
:disabled="newForm.optStatus !== 4"
|
||||||
|
>批量新增</el-dropdown-item
|
||||||
|
>
|
||||||
|
<el-dropdown-item
|
||||||
|
command="exportSeg"
|
||||||
|
:disabled="newForm.optStatus !== 4"
|
||||||
|
>分段导出</el-dropdown-item
|
||||||
|
>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
|
|
||||||
@@ -494,6 +506,11 @@ export default {
|
|||||||
background: $--color-primary-button-gradient;
|
background: $--color-primary-button-gradient;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
&.is-disabled {
|
||||||
|
& .el-button {
|
||||||
|
cursor: no-drop;
|
||||||
|
}
|
||||||
|
}
|
||||||
& .el-button-group {
|
& .el-button-group {
|
||||||
& .el-button {
|
& .el-button {
|
||||||
background: unset;
|
background: unset;
|
||||||
|
|||||||
Reference in New Issue
Block a user