fix: chartBox type == URL 无法输入异常,type == Diagram,URL未隐藏

This commit is contained in:
@changcode
2021-09-13 14:23:32 +08:00
parent 64d9cfee80
commit 868933fa09

View File

@@ -298,7 +298,7 @@
</el-select>
</el-form-item>
<el-form-item v-if="isUrl" :label='$t("dashboard.panel.chartForm.url")' :rules="{ required: true, message: $t('validate.required'), trigger: 'blur' }" prop="param.url">
<el-form-item v-if="editChart.type =='url' && isUrl" :label='$t("dashboard.panel.chartForm.url")' :rules="{ required: true, message: $t('validate.required'), trigger: 'blur' }" prop="param.url">
<el-input id="chart-box-url" v-model="editChart.param.url" maxlength="1024" show-word-limit size="small" type="textarea"></el-input>
</el-form-item>
@@ -1472,7 +1472,7 @@ export default {
},
chartTypeChange () {
const chartType = this.editChart.type
this.editChart.param.url = ''
// this.editChart.param.url = ''
this.editChart.height = 4
this.promqlType = 'metric'
if (chartType === 'url') {