mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-05 05:29:29 +08:00
refactor(系统设置): 操作日志的操作对象增加清空
--bug=1026442 --user=王孝刚 【系统设置】-操作日志筛选条件中操作对象的筛选控件没有配置条件清空按钮 https://www.tapd.cn/55049933/s/1376250
This commit is contained in:
parent
dbe946a0cf
commit
ea3ca04c2a
@ -64,7 +64,8 @@
|
|||||||
:placeholder="$t('operating_log.object')"
|
:placeholder="$t('operating_log.object')"
|
||||||
:props="props"
|
:props="props"
|
||||||
class="ms-case"
|
class="ms-case"
|
||||||
@change="initTableData" ref="cascade"/>
|
clearable
|
||||||
|
@change="initTableData(condition.operModules)" ref="cascade"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
@ -292,6 +293,8 @@ export default {
|
|||||||
initTableData() {
|
initTableData() {
|
||||||
if (this.condition.operModules && this.condition.operModules.length > 0) {
|
if (this.condition.operModules && this.condition.operModules.length > 0) {
|
||||||
this.condition.operModule = this.condition.operModules[1];
|
this.condition.operModule = this.condition.operModules[1];
|
||||||
|
} else {
|
||||||
|
this.condition.operModule = undefined;
|
||||||
}
|
}
|
||||||
this.condition.projectIds = [getCurrentProjectID()];
|
this.condition.projectIds = [getCurrentProjectID()];
|
||||||
this.condition.projectId = getCurrentProjectID();
|
this.condition.projectId = getCurrentProjectID();
|
||||||
|
@ -85,6 +85,7 @@
|
|||||||
:placeholder="$t('operating_log.object')"
|
:placeholder="$t('operating_log.object')"
|
||||||
:props="props"
|
:props="props"
|
||||||
class="ms-case"
|
class="ms-case"
|
||||||
|
clearable
|
||||||
@change="initTableData" ref="cascade" style="width: 95%"/>
|
@change="initTableData" ref="cascade" style="width: 95%"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -316,6 +317,8 @@ export default {
|
|||||||
initTableData() {
|
initTableData() {
|
||||||
if (this.condition.operModules && this.condition.operModules.length > 0) {
|
if (this.condition.operModules && this.condition.operModules.length > 0) {
|
||||||
this.condition.operModule = this.condition.operModules[1];
|
this.condition.operModule = this.condition.operModules[1];
|
||||||
|
} else {
|
||||||
|
this.condition.operModule = undefined;
|
||||||
}
|
}
|
||||||
if (this.isSystem) {
|
if (this.isSystem) {
|
||||||
this.condition.projectIds = [];
|
this.condition.projectIds = [];
|
||||||
|
@ -85,6 +85,7 @@
|
|||||||
:placeholder="$t('operating_log.object')"
|
:placeholder="$t('operating_log.object')"
|
||||||
:props="props"
|
:props="props"
|
||||||
class="ms-case"
|
class="ms-case"
|
||||||
|
clearable
|
||||||
@change="initTableData" ref="cascade" style="width: 95%"/>
|
@change="initTableData" ref="cascade" style="width: 95%"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -315,6 +316,8 @@ export default {
|
|||||||
initTableData() {
|
initTableData() {
|
||||||
if (this.condition.operModules && this.condition.operModules.length > 0) {
|
if (this.condition.operModules && this.condition.operModules.length > 0) {
|
||||||
this.condition.operModule = this.condition.operModules[1];
|
this.condition.operModule = this.condition.operModules[1];
|
||||||
|
} else {
|
||||||
|
this.condition.operModule = undefined;
|
||||||
}
|
}
|
||||||
if (this.isSystem) {
|
if (this.isSystem) {
|
||||||
this.condition.projectIds = [];
|
this.condition.projectIds = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user