修改右键菜单,文字颜色
This commit is contained in:
parent
068dbdbbde
commit
4da9dc977b
@ -69,8 +69,8 @@
|
||||
</el-button>
|
||||
<el-button
|
||||
v-else
|
||||
class="dsp-block"
|
||||
id="testId"
|
||||
class="dsp-block"
|
||||
type="text"
|
||||
:disabled="checkIfDisabled(item)"
|
||||
@click="item.handler"
|
||||
@ -171,10 +171,10 @@ export default {
|
||||
close() {
|
||||
this.show = false;
|
||||
// 关闭时立即影藏popover组件
|
||||
const popoverList = document.getElementsByClassName('el-popover');
|
||||
for (let i = 0; i < popoverList.length ; i++){
|
||||
popoverList[i].style.display = 'none';
|
||||
}
|
||||
const popoverList = document.getElementsByClassName('el-popover');
|
||||
for (let i = 0; i < popoverList.length; i++) {
|
||||
popoverList[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
checkIfDisabled(menuObj) {
|
||||
return menuObj.disabled === true;
|
||||
@ -227,7 +227,7 @@ export default {
|
||||
width: 100%;
|
||||
border-radius: unset;
|
||||
border: 1px solid transparent;
|
||||
color: #000;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.dsp-block:hover {
|
||||
@ -241,6 +241,7 @@ export default {
|
||||
width: 100%;
|
||||
cursor: pointer;
|
||||
border: 1px solid transparent;
|
||||
color: #000;
|
||||
|
||||
input {
|
||||
opacity: 0;
|
||||
|
@ -161,18 +161,16 @@ export default {
|
||||
importRunPlan({ skinCode: skinCode, runPlanList: jsonData }).then(response => {
|
||||
loading.close();
|
||||
that.refresh();
|
||||
that.$message.success(this.$t('tip.importOperationGraphSuccessfully'));
|
||||
}).catch((error) => {
|
||||
console.error(error);
|
||||
that.$message.success(that.$t('tip.importOperationGraphSuccessfully'));
|
||||
}).catch(() => {
|
||||
loading.close();
|
||||
that.refresh();
|
||||
that.$message.warning(this.$t('tip.importOperationGraphFailed'));
|
||||
that.$message.warning(that.$t('tip.importOperationGraphFailed'));
|
||||
});
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
loading.close();
|
||||
that.refresh();
|
||||
that.$message.warning(this.$t('tip.parsingOperationGraphFailed'));
|
||||
that.$message.warning(that.$t('tip.parsingOperationGraphFailed'));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user