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