centaline-data-driven 1.2.90 → 1.2.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -101,6 +101,9 @@ const Router = function (source) {
|
|
|
101
101
|
get isOpenUrlInBrowse() {
|
|
102
102
|
return source.actionType === Enum.ActionType.OpenUrlInBrowse;
|
|
103
103
|
},
|
|
104
|
+
get isListenVoice() {
|
|
105
|
+
return source.actionType === Enum.ActionType.ListenVoice;
|
|
106
|
+
},
|
|
104
107
|
//打开页面(1Form,2SearchList(弹在tab),3Tab,4执行客户端脚本,5SearchList(弹出))
|
|
105
108
|
get navToNewPage() {
|
|
106
109
|
return source.navToNewPage;
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="isOperationalColumn?'subdiv_allinline':''" v-if="isShowLabel" @click="isOperationalColumn?clickHandler($event):null">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
<div v-if="router.isListenVoice">
|
|
4
|
+
<el-popover class="Stats-popover" :popper-class="'el-listenVoice'+rowindex" :placement="option.placement?option.placement:'left'"
|
|
5
|
+
v-model="visible" :trigger="option.trigger?option.trigger:''" style="margin:0px;">
|
|
6
|
+
<div class="alert fade in" role="alert" style="padding:0px;border-bottom:none;display: table-caption;">
|
|
7
|
+
<button type="button" class="close el-icon-close" style="right:0px;float:right;margin-bottom: 5px;cursor: pointer;" data-dismiss="alert" aria-label="Close" @click="clickHandler">
|
|
8
|
+
</button>
|
|
9
|
+
<video :src="rowData[router.submitFormField]" controls="true" autoplay controlslist="nodownload"
|
|
10
|
+
:height="router.dialogHeight?router.dialogHeight:'40'" :width="router.dialogWidth?router.dialogWidth:'100%'">您的浏览器不支持 video 标签。
|
|
11
|
+
</video>
|
|
12
|
+
</div>
|
|
13
|
+
<img v-if="router.imgUrl && isShowImg" slot="reference" class="ct-tablecurrencyImg ct-tablecurrencyItem" :src="router.imgUrl" :title="router.label" @click="!isOperationalColumn?clickHandler($event):null"/>
|
|
14
|
+
<a v-else slot="reference" href="javascript:void(0);" class="ct-tablecurrencyItem" @click="!isOperationalColumn?clickHandler($event):null">
|
|
15
|
+
{{label}}
|
|
16
|
+
</a>
|
|
17
|
+
</el-popover>
|
|
18
|
+
</div>
|
|
19
|
+
<div v-else>
|
|
20
|
+
<img v-if="router.imgUrl && isShowImg" class="ct-tablecurrencyImg ct-tablecurrencyItem" :src="router.imgUrl" :title="router.label" @click="!isOperationalColumn?clickHandler($event):null"/>
|
|
21
|
+
<a v-else href="javascript:void(0);" class="ct-tablecurrencyItem" @click="!isOperationalColumn?clickHandler($event):null">
|
|
22
|
+
{{label}}
|
|
23
|
+
</a>
|
|
24
|
+
</div>
|
|
7
25
|
</div>
|
|
8
26
|
</template>
|
|
9
27
|
|
|
@@ -37,11 +55,24 @@
|
|
|
37
55
|
},
|
|
38
56
|
data() {
|
|
39
57
|
return {
|
|
58
|
+
visible:false,
|
|
59
|
+
option: {
|
|
60
|
+
isHidden: true,//是否开启操作栏隐藏设置,默认开启
|
|
61
|
+
showNum: 3,//如果isHidden为true时,个数大于3就会隐藏,默认是3
|
|
62
|
+
appendId: '',//将浮动栏添加到对应id或者class节点中。或者.xxx。传空字符串是添加到body中。
|
|
63
|
+
trigger: 'manual',//触发方式,传值可查看Popper UI组件trigger属性
|
|
64
|
+
placement: 'bottom-start',//方向,传值可查看Popper UI组件placement属性
|
|
65
|
+
},
|
|
40
66
|
}
|
|
41
67
|
},
|
|
42
68
|
methods: {
|
|
43
69
|
clickHandler(ev) {
|
|
44
|
-
|
|
70
|
+
if(this.router.isListenVoice){
|
|
71
|
+
this.visible=!this.visible;
|
|
72
|
+
}
|
|
73
|
+
else{
|
|
74
|
+
this.$emit('click', this.router, this.rowData,this.rowindex);
|
|
75
|
+
}
|
|
45
76
|
}
|
|
46
77
|
}
|
|
47
78
|
}
|