|
@@ -20,6 +20,8 @@
|
|
|
<el-radio v-model="eventTypeRadio" :label="0">SQL模式</el-radio>
|
|
|
<el-radio v-model="eventTypeRadio" :label="1">代码模式</el-radio>
|
|
|
<el-radio v-model="eventTypeRadio" :label="2">jar包模式</el-radio>
|
|
|
+<!-- <el-radio v-model="eventTypeRadio" :label="3">API模式</el-radio>-->
|
|
|
+<!-- <el-radio v-model="eventTypeRadio" :label="4">表单赋值模式</el-radio>-->
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
@@ -29,6 +31,7 @@
|
|
|
</el-dialog>
|
|
|
<customEventExpression ref="customEventExpression" :dbLinkId="cubeId" :modelId="modeId" :dbSourceId="sourceId" @onChangeExp="eventChange" />
|
|
|
<customCodeMode ref="customCodeMode" :dbLinkId="cubeId" :modelId="modeId" :dbSourceId="sourceId" :eventTypeRadio="eventTypeRadio" @onChangeExp="eventChange" />
|
|
|
+ <customApiEvent ref="customApiEvent" :dbLinkId="cubeId" :modelId="modeId" :dbSourceId="sourceId" :eventTypeRadio="eventTypeRadio" @onChangeExp="eventChange" />
|
|
|
<div>
|
|
|
<el-table ref="multipleTable" :data="eventList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" v-if="isCompont"></el-table-column>
|
|
@@ -93,10 +96,11 @@
|
|
|
<script>
|
|
|
import { addCustomEvent, customEventList, deleteCustomEvent, getEventLog } from '@/api/onlineDev/visualDev'
|
|
|
import customEventExpression from './customEventExpression.vue'
|
|
|
+import customApiEvent from "./customApiEvent.vue";
|
|
|
import customCodeMode from './customCodeMode.vue'
|
|
|
export default {
|
|
|
props: ['cubeId', 'modelId', 'dbSourceId', 'isCompont', 'multipleSelection', 'activeName', 'isEvent'],
|
|
|
- components: { customEventExpression,customCodeMode },
|
|
|
+ components: { customEventExpression,customCodeMode,customApiEvent },
|
|
|
data() {
|
|
|
return {
|
|
|
isShow: false,
|
|
@@ -219,8 +223,10 @@ export default {
|
|
|
addFuncClickonSubmit(){
|
|
|
if(this.eventTypeRadio === 1 || this.eventTypeRadio === 2){
|
|
|
this.$refs.customCodeMode.addFuncClick()
|
|
|
- }else {
|
|
|
+ }else if(this.eventTypeRadio === 0) {
|
|
|
this.$refs.customEventExpression.addFuncClick()
|
|
|
+ }else if(this.eventTypeRadio === 3) {
|
|
|
+ this.$refs.customApiEvent.addFuncClick()
|
|
|
}
|
|
|
this.eventTypeVisible = false
|
|
|
},
|