|
@@ -31,12 +31,12 @@
|
|
|
:props="levelProps"
|
|
|
style="width: 80%"
|
|
|
clearable
|
|
|
- placeholder="请选择所属目录"/>
|
|
|
+ :placeholder="$t('CustomAnalysisPage.select_appropriate_category')"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item :label="$t('Edb.Detail.e_fre')" prop="frequency">
|
|
|
<el-select
|
|
|
v-model="formData.frequency"
|
|
|
- placeholder="请选择频率"
|
|
|
+ :placeholder="$t('EtaBasePage.select_frequency')"
|
|
|
style="width:80%"
|
|
|
disabled
|
|
|
clearable>
|
|
@@ -54,20 +54,20 @@
|
|
|
filterable
|
|
|
allow-create
|
|
|
style="width: 80%"
|
|
|
- placeholder="请输入单位">
|
|
|
+ :placeholder="$t('Edb.Detail.e_unit')">
|
|
|
<el-option
|
|
|
v-for="item in unitArr"
|
|
|
- :key="item"
|
|
|
- :label="item"
|
|
|
- :value="item">
|
|
|
+ :key="item.label"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<div class="dia-bot">
|
|
|
- <el-button type="primary" style="margin-right:20px" @click="addTarget">保存</el-button>
|
|
|
- <el-button type="primary" plain @click="cancelHandle">取消</el-button>
|
|
|
+ <el-button type="primary" style="margin-right:20px" @click="addTarget">{{$t('Dialog.confirm_save_btn')}}</el-button>
|
|
|
+ <el-button type="primary" plain @click="cancelHandle">{{$t('Dialog.cancel_btn')}}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -75,7 +75,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { dataBaseInterface } from '@/api/api.js';
|
|
|
-import { unitArr,frequencySelectList } from '@/utils/defaultOptions';
|
|
|
+import { unitSelectList,frequencySelectList } from '@/utils/defaultOptions';
|
|
|
import * as supplyApi from '@/api/modules/supplyApi.js';
|
|
|
export default {
|
|
|
name:'',
|
|
@@ -101,29 +101,10 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- computed:{
|
|
|
- formRules(){
|
|
|
- return {
|
|
|
- edb_name:[
|
|
|
- { required: true, message: /* '指标名称不能为空' */this.$t('Edb.Valids.name_msg'), trigger: 'blur' },
|
|
|
- ],
|
|
|
- menu:[
|
|
|
- { required: true, message: /* '所属目录不能为空' */this.$t('Edb.Valids.menu_msg'), trigger: 'blur' },
|
|
|
- ],
|
|
|
- frequency:[
|
|
|
- { required: true, message: /* '频率不能为空' */this.$t('Edb.Valids.fre_msg'), trigger: 'blur' },
|
|
|
- ],
|
|
|
- unit:[
|
|
|
- { required: true, message: /* '单位不能为空' */this.$t('Edb.Valids.unit_msg'), trigger: 'blur' },
|
|
|
- ],
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
data () {
|
|
|
return {
|
|
|
formData: {},
|
|
|
options: [],
|
|
|
- unitArr,
|
|
|
levelProps: {
|
|
|
label: 'ClassifyName',
|
|
|
value: 'ClassifyId',
|
|
@@ -136,6 +117,25 @@ export default {
|
|
|
computed:{
|
|
|
frequencyArr(){
|
|
|
return frequencySelectList()
|
|
|
+ },
|
|
|
+ unitArr(){
|
|
|
+ return unitSelectList()
|
|
|
+ },
|
|
|
+ formRules(){
|
|
|
+ return {
|
|
|
+ edb_name:[
|
|
|
+ { required: true, message: /* '指标名称不能为空' */this.$t('Edb.Valids.name_msg'), trigger: 'blur' },
|
|
|
+ ],
|
|
|
+ menu:[
|
|
|
+ { required: true, message: /* '所属目录不能为空' */this.$t('Edb.Valids.menu_msg'), trigger: 'blur' },
|
|
|
+ ],
|
|
|
+ frequency:[
|
|
|
+ { required: true, message: /* '频率不能为空' */this.$t('Edb.Valids.fre_msg'), trigger: 'blur' },
|
|
|
+ ],
|
|
|
+ unit:[
|
|
|
+ { required: true, message: /* '单位不能为空' */this.$t('Edb.Valids.unit_msg'), trigger: 'blur' },
|
|
|
+ ],
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
methods: {
|