|
@@ -66,13 +66,28 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="图表单位" prop="Unit" v-if="chartInfo.ChartType===7">
|
|
|
- <el-input
|
|
|
+ <!-- <el-input
|
|
|
v-model="chartInfo.Unit"
|
|
|
style="width: 90%"
|
|
|
placeholder="请输入图表单位"
|
|
|
clearable
|
|
|
@change="changeUnit"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
+ <el-select
|
|
|
+ v-model="chartInfo.Unit"
|
|
|
+ filterable
|
|
|
+ allow-create
|
|
|
+ default-first-option
|
|
|
+ clearable
|
|
|
+ @change="changeUnit"
|
|
|
+ placeholder="请输入图表单位">
|
|
|
+ <el-option
|
|
|
+ v-for="item in UnitOptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
|
|
@@ -497,6 +512,7 @@
|
|
|
<script>
|
|
|
import { dataBaseInterface } from '@/api/api.js';
|
|
|
import { chartSetMixin } from './mixins/chartPublic';
|
|
|
+import {unitArr} from '@/utils/defaultOptions.js'
|
|
|
import addOrEditMixn from './mixins/addOreditMixin';
|
|
|
|
|
|
import Chart from './components/chart';
|
|
@@ -562,6 +578,8 @@ export default {
|
|
|
initBarOptions: null,//编辑时回显的barOptions数据
|
|
|
needWatch: false,
|
|
|
SeriesNameModify:false,
|
|
|
+
|
|
|
+ UnitOptions:unitArr
|
|
|
};
|
|
|
},
|
|
|
methods: {
|