refactor(系统设置): 操作日志的操作对象增加清空

--bug=1026442 --user=王孝刚 【系统设置】-操作日志筛选条件中操作对象的筛选控件没有配置条件清空按钮
https://www.tapd.cn/55049933/s/1376250
This commit is contained in:
wxg0103 2023-05-26 16:10:53 +08:00 committed by fit2-zhao
parent dbe946a0cf
commit ea3ca04c2a
3 changed files with 10 additions and 1 deletions

View File

@ -64,7 +64,8 @@
:placeholder="$t('operating_log.object')"
:props="props"
class="ms-case"
@change="initTableData" ref="cascade"/>
clearable
@change="initTableData(condition.operModules)" ref="cascade"/>
</el-form-item>
</el-col>
@ -292,6 +293,8 @@ export default {
initTableData() {
if (this.condition.operModules && this.condition.operModules.length > 0) {
this.condition.operModule = this.condition.operModules[1];
} else {
this.condition.operModule = undefined;
}
this.condition.projectIds = [getCurrentProjectID()];
this.condition.projectId = getCurrentProjectID();

View File

@ -85,6 +85,7 @@
:placeholder="$t('operating_log.object')"
:props="props"
class="ms-case"
clearable
@change="initTableData" ref="cascade" style="width: 95%"/>
</el-form-item>
</el-col>
@ -316,6 +317,8 @@ export default {
initTableData() {
if (this.condition.operModules && this.condition.operModules.length > 0) {
this.condition.operModule = this.condition.operModules[1];
} else {
this.condition.operModule = undefined;
}
if (this.isSystem) {
this.condition.projectIds = [];

View File

@ -85,6 +85,7 @@
:placeholder="$t('operating_log.object')"
:props="props"
class="ms-case"
clearable
@change="initTableData" ref="cascade" style="width: 95%"/>
</el-form-item>
</el-col>
@ -315,6 +316,8 @@ export default {
initTableData() {
if (this.condition.operModules && this.condition.operModules.length > 0) {
this.condition.operModule = this.condition.operModules[1];
} else {
this.condition.operModule = undefined;
}
if (this.isSystem) {
this.condition.projectIds = [];