fix: chartBox type == URL 无法输入异常,type == Diagram,URL未隐藏
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user