提交 4ab6a15c authored 作者: junjie's avatar junjie

refactor(视图): 拖拽bug fix;标题编辑、图形属性编辑优化;

上级 7a529b29
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
</el-form-item> </el-form-item>
<el-form-item :label="$t('chart.line_type')" class="form-item"> <el-form-item :label="$t('chart.line_type')" class="form-item">
<el-radio-group v-model="sizeForm.lineType" @change="changeBarSizeCase"> <el-radio-group v-model="sizeForm.lineType" @change="changeBarSizeCase">
<el-radio label="solid">{{ $t('chart.line_type_solid') }}</el-radio> <el-radio-button label="solid">{{ $t('chart.line_type_solid') }}</el-radio-button>
<el-radio label="dashed">{{ $t('chart.line_type_dashed') }}</el-radio> <el-radio-button label="dashed">{{ $t('chart.line_type_dashed') }}</el-radio-button>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item :label="$t('chart.line_symbol')" class="form-item"> <el-form-item :label="$t('chart.line_symbol')" class="form-item">
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<div style="border-bottom: 1px solid #E6E6E6;overflow-y:hidden;" class="padding-lr"> <div style="border-bottom: 1px solid #E6E6E6;overflow-y:hidden;" class="padding-lr">
<el-row> <el-row>
<span>{{ $t('chart.title') }}</span> <span>{{ $t('chart.title') }}</span>
<!-- <el-checkbox v-model="view.show" style="float: right;">{{$t('chart.show')}}</el-checkbox>--> <el-button style="float: right;padding: 0;margin: 8px 0 0 0;font-size: 12px;" type="text" @click="save">{{ $t('chart.confirm') }}</el-button>
</el-row> </el-row>
<el-form> <el-form>
<el-form-item class="form-item"> <el-form-item class="form-item">
...@@ -69,7 +69,6 @@ ...@@ -69,7 +69,6 @@
:placeholder="$t('chart.title')" :placeholder="$t('chart.title')"
prefix-icon="el-icon-search" prefix-icon="el-icon-search"
clearable clearable
@blur="save"
/> />
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -371,10 +370,10 @@ export default { ...@@ -371,10 +370,10 @@ export default {
const yItems = this.quota.filter(function(m) { const yItems = this.quota.filter(function(m) {
return m.id === that.moveId return m.id === that.moveId
}) })
if (xItems && xItems.length > 0) { if (xItems && xItems.length > 1) {
this.dimension.splice(e.newDraggableIndex, 1) this.dimension.splice(e.newDraggableIndex, 1)
} }
if (yItems && yItems.length > 0) { if (yItems && yItems.length > 1) {
this.quota.splice(e.newDraggableIndex, 1) this.quota.splice(e.newDraggableIndex, 1)
} }
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论