|
@@ -66,13 +66,12 @@
|
|
<el-input v-model="item.title" :placeholder="$t('ToolBox.ForexCalendar.item_input')">
|
|
<el-input v-model="item.title" :placeholder="$t('ToolBox.ForexCalendar.item_input')">
|
|
<el-button slot="append" type="primary" @click.stop="item.isExpand = !item.isExpand">展开</el-button>
|
|
<el-button slot="append" type="primary" @click.stop="item.isExpand = !item.isExpand">展开</el-button>
|
|
</el-input>
|
|
</el-input>
|
|
- <!-- expand icon -->
|
|
|
|
- <!-- <i class="icon" :class="{'el-icon-arrow-right':item.isExpand===false,'el-icon-arrow-down':item.isExpand===true}"
|
|
|
|
- @click="item.isExpand = !item.isExpand"></i> -->
|
|
|
|
- <!-- close icon position-->
|
|
|
|
- <i class="el-icon-remove-outline icon" @click="removeEvent(index)"></i>
|
|
|
|
- <!-- edb icon position-->
|
|
|
|
- <i class="el-icon-printer icon"></i>
|
|
|
|
|
|
+ <!-- close icon -->
|
|
|
|
+ <i class="el-icon-remove-outline icon" style="color:#D54941;" @click="removeEvent(index)"></i>
|
|
|
|
+ <!-- edb icon -->
|
|
|
|
+ <img class="icon" src="~@/assets/img/icons/edb-icon.png" v-if="item.MatterType!==1" @click="toEdbDetail(item)">
|
|
|
|
+ <!-- 占位 -->
|
|
|
|
+ <span class="icon" v-else></span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<div class="event-expand-setting" v-show="item.isExpand">
|
|
<div class="event-expand-setting" v-show="item.isExpand">
|
|
<div><span>{{ $t('ToolBox.ForexCalendar.font_color') }}</span> <el-color-picker v-model="item.textColor" color-format="hex" size="mini"></el-color-picker></div>
|
|
<div><span>{{ $t('ToolBox.ForexCalendar.font_color') }}</span> <el-color-picker v-model="item.textColor" color-format="hex" size="mini"></el-color-picker></div>
|
|
@@ -211,6 +210,18 @@ export default {
|
|
removeEvent(index){
|
|
removeEvent(index){
|
|
this.eventForm.events.splice(index,1)
|
|
this.eventForm.events.splice(index,1)
|
|
},
|
|
},
|
|
|
|
+ //跳转指标库/预测指标库
|
|
|
|
+ toEdbDetail(item){
|
|
|
|
+ const { EdbUniqueCode, EdbInfoId, MatterType } = item
|
|
|
|
+ let { href } = this.$router.resolve({
|
|
|
|
+ path: MatterType === 3 ? '/predictEdb' : '/database',
|
|
|
|
+ query: {
|
|
|
|
+ code: EdbUniqueCode,
|
|
|
|
+ id:EdbInfoId,
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ window.open(href, '_blank');
|
|
|
|
+ },
|
|
async handleSaveEvents(){
|
|
async handleSaveEvents(){
|
|
if(!this.eventDay) return this.$message.warning('请选择日期')
|
|
if(!this.eventDay) return this.$message.warning('请选择日期')
|
|
try{
|
|
try{
|
|
@@ -243,6 +254,10 @@ export default {
|
|
margin-right: 0;
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ img.icon,span.icon{
|
|
|
|
+ width:16px;
|
|
|
|
+ height:16px;
|
|
|
|
+ }
|
|
.el-input{
|
|
.el-input{
|
|
flex: 1;
|
|
flex: 1;
|
|
}
|
|
}
|