|
@@ -9,24 +9,30 @@
|
|
>
|
|
>
|
|
<th>{{ labelArr.get(item) }}</th>
|
|
<th>{{ labelArr.get(item) }}</th>
|
|
<td v-for="(data, sub_index) in tableOption" :key="sub_index">
|
|
<td v-for="(data, sub_index) in tableOption" :key="sub_index">
|
|
- <template v-if="source!=='baiinfo'">
|
|
|
|
- {{ (item === 'Frequency' && source === 'lz') ? frequencyType.get(data[item]) : data[item] }}
|
|
|
|
- </template>
|
|
|
|
|
|
+ <template v-if="source!=='baiinfo'">
|
|
|
|
+ {{
|
|
|
|
+ (['FrequencyName','Frequency'].includes(item))
|
|
|
|
+ ? (source === 'lz')
|
|
|
|
+ ? frequencyType.get(data[item])
|
|
|
|
+ : frequencyMap.get(data[item])
|
|
|
|
+ : data[item]
|
|
|
|
+ }}
|
|
|
|
+ </template>
|
|
<!-- 百川盈孚数据源 频度和单位需要可编辑 -->
|
|
<!-- 百川盈孚数据源 频度和单位需要可编辑 -->
|
|
<template v-else>
|
|
<template v-else>
|
|
- <span>
|
|
|
|
- {{data[item]}}
|
|
|
|
- <span v-if="data['IndexCode']&&(item==='Frequency'||item==='Unit')">
|
|
|
|
- <img
|
|
|
|
- v-permission="permissionBtn.dataSourcePermission.bcyfData_edit"
|
|
|
|
- src="~@/assets/img/set_m/edit.png"
|
|
|
|
- alt="edit"
|
|
|
|
- style="width: 14px; height: 14px; margin-left: 5px;cursor:pointer;"
|
|
|
|
- @click.stop="editTarget(data)"
|
|
|
|
- />
|
|
|
|
- </span>
|
|
|
|
- </span>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <span>
|
|
|
|
+ {{ item==='Frequency'?frequencyMap.get(data[item]):data[item] }}
|
|
|
|
+ <span v-if="data['IndexCode']&&(item==='Frequency'||item==='Unit')">
|
|
|
|
+ <img
|
|
|
|
+ v-permission="permissionBtn.dataSourcePermission.bcyfData_edit"
|
|
|
|
+ src="~@/assets/img/set_m/edit.png"
|
|
|
|
+ alt="edit"
|
|
|
|
+ style="width: 14px; height: 14px; margin-left: 5px;cursor:pointer;"
|
|
|
|
+ @click.stop="editTarget(data)"
|
|
|
|
+ />
|
|
|
|
+ </span>
|
|
|
|
+ </span>
|
|
|
|
+ </template>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
</template>
|
|
</template>
|
|
@@ -118,6 +124,29 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
return key
|
|
return key
|
|
|
|
+ },
|
|
|
|
+ //隆众原始数据库,返回频度不是string是number,分开写
|
|
|
|
+ frequencyType(){
|
|
|
|
+ return new Map([
|
|
|
|
+ [1, /* 日度 */ this.$t('Edb.FreAll.day')],
|
|
|
|
+ [2, /*周度*/ this.$t('Edb.FreAll.week')],
|
|
|
|
+ [3, /*月度*/ this.$t('Edb.FreAll.month')],
|
|
|
|
+ [4, /*季度*/ this.$t('Edb.FreAll.quarter')],
|
|
|
|
+ [5, /*年度*/ this.$t('Edb.FreAll.year')],
|
|
|
|
+ [99, /*无固定频率*/ this.$t('Edb.FreAll.unfixed')],
|
|
|
|
+ ])
|
|
|
|
+ },
|
|
|
|
+ //其他数据源
|
|
|
|
+ frequencyMap(){
|
|
|
|
+ return new Map([
|
|
|
|
+ ['日度',this.$t('Edb.FreAll.day')],
|
|
|
|
+ ['周度',this.$t('Edb.FreAll.week')],
|
|
|
|
+ ['月度',this.$t('Edb.FreAll.month')],
|
|
|
|
+ ['旬度',this.$t('Edb.FreAll.dekad')],
|
|
|
|
+ ['季度',this.$t('Edb.FreAll.quarter')],
|
|
|
|
+ ['半年度',this.$t('Edb.FreAll.half_year')],
|
|
|
|
+ ['年度',this.$t('Edb.FreAll.year')]
|
|
|
|
+ ])
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
@@ -133,14 +162,14 @@ export default {
|
|
// : this.source==='baiinfo'
|
|
// : this.source==='baiinfo'
|
|
// ? ['IndexName','IndexCode','Frequency','Unit','ModifyTime']
|
|
// ? ['IndexName','IndexCode','Frequency','Unit','ModifyTime']
|
|
// :['QuotaName','LzCode','Frequency','UnitName','ModifyTime'],
|
|
// :['QuotaName','LzCode','Frequency','UnitName','ModifyTime'],
|
|
- frequencyType:new Map([
|
|
|
|
|
|
+ /* frequencyType:new Map([
|
|
[1,'日度'],
|
|
[1,'日度'],
|
|
[2,'周度'],
|
|
[2,'周度'],
|
|
[3,'月度'],
|
|
[3,'月度'],
|
|
[4,'季度'],
|
|
[4,'季度'],
|
|
[5,'年度'],
|
|
[5,'年度'],
|
|
[99,'无固定频率'],
|
|
[99,'无固定频率'],
|
|
- ]),
|
|
|
|
|
|
+ ]), */
|
|
// labelArr: this.source === 'gl' ? new Map([
|
|
// labelArr: this.source === 'gl' ? new Map([
|
|
// ['IndexName', '指标名称'],
|
|
// ['IndexName', '指标名称'],
|
|
// ['IndexCode', '指标ID'],
|
|
// ['IndexCode', '指标ID'],
|