|
@@ -11,7 +11,7 @@
|
|
|
<el-col :span='12'>
|
|
|
<div class='start'>图例名称</div>
|
|
|
<!-- <el-input v-model='ruleForm.Name' style='width:200px;height:32px;'></el-input> -->
|
|
|
- <Input v-model='ruleForm.Name' placeholder maxlength='20' style='width:200px' />
|
|
|
+ <Input v-model='ruleForm.Name' placeholder :maxlength='maxlength' style='width:200px' />
|
|
|
</el-col>
|
|
|
<el-col :span='12' style='margin-top:20px'>
|
|
|
<div class>单位</div>
|
|
@@ -41,7 +41,7 @@
|
|
|
</div>
|
|
|
<div v-show='ruleForm.Type=="Zone" || ruleForm.Type=="Image" || ruleForm.Type =="Line"'>
|
|
|
<div style='color:#646C73'>展示预览</div>
|
|
|
- <div class='input-right' ref='graph' style="width:200px;height:114px;">
|
|
|
+ <div class='input-right' ref='graph' style='width:200px;height:114px;'>
|
|
|
<canvas id='canvas' :width='canvasWidth' :height='canvasHeight'></canvas>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -149,6 +149,7 @@ import { GraphView } from '@/lib/GraphView'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ maxlength: 20,
|
|
|
options: [
|
|
|
{
|
|
|
id: 'None',
|