mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:52:57 +00:00
feat: update
This commit is contained in:
parent
ed03967120
commit
016f999bf7
@ -31,7 +31,7 @@ limitations under the License. -->
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { nextTick, ref } from "vue";
|
import { nextTick, ref, watch } from "vue";
|
||||||
import type { PropType } from "vue";
|
import type { PropType } from "vue";
|
||||||
import { ElInput } from "element-plus";
|
import { ElInput } from "element-plus";
|
||||||
|
|
||||||
@ -69,6 +69,13 @@ limitations under the License. -->
|
|||||||
inputValue.value = "";
|
inputValue.value = "";
|
||||||
emits("change", dynamicTags.value);
|
emits("change", dynamicTags.value);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => props.tags,
|
||||||
|
() => {
|
||||||
|
dynamicTags.value = props.tags || [];
|
||||||
|
},
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.input-name {
|
.input-name {
|
||||||
|
@ -150,7 +150,7 @@ limitations under the License. -->
|
|||||||
<div>{{ t("hierarchyNodeMetrics") }}</div>
|
<div>{{ t("hierarchyNodeMetrics") }}</div>
|
||||||
<div class="mt-10 expressions">
|
<div class="mt-10 expressions">
|
||||||
<Tags
|
<Tags
|
||||||
:tags="currentRow.expressions"
|
:tags="currentRow.expressions || []"
|
||||||
:vertical="true"
|
:vertical="true"
|
||||||
:text="t('addExpressions')"
|
:text="t('addExpressions')"
|
||||||
@change="(param) => changeExpressions(param)"
|
@change="(param) => changeExpressions(param)"
|
||||||
@ -207,6 +207,11 @@ limitations under the License. -->
|
|||||||
currentRow.value.expressions = params;
|
currentRow.value.expressions = params;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleEditMQE(row: DashboardItem) {
|
||||||
|
MQEVisible.value = !MQEVisible.value;
|
||||||
|
currentRow.value = row;
|
||||||
|
}
|
||||||
|
|
||||||
async function saveMQE() {
|
async function saveMQE() {
|
||||||
const items: DashboardItem[] = [];
|
const items: DashboardItem[] = [];
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
@ -530,10 +535,6 @@ limitations under the License. -->
|
|||||||
searchDashboards(1);
|
searchDashboards(1);
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
}
|
}
|
||||||
function handleEditMQE(row: DashboardItem) {
|
|
||||||
MQEVisible.value = !MQEVisible.value;
|
|
||||||
currentRow.value = row;
|
|
||||||
}
|
|
||||||
function handleRename(row: DashboardItem) {
|
function handleRename(row: DashboardItem) {
|
||||||
ElMessageBox.prompt("Please input dashboard name", "Edit", {
|
ElMessageBox.prompt("Please input dashboard name", "Edit", {
|
||||||
confirmButtonText: "OK",
|
confirmButtonText: "OK",
|
||||||
|
Loading…
Reference in New Issue
Block a user