|
|
@ -39,7 +39,7 @@ |
|
|
|
<template slot="content"> |
|
|
|
<template slot="content"> |
|
|
|
<el-select v-model="pluginDefineId" size="small" style="width: 100%" @change="changePlugin" disabled="true" v-if="item.id"> |
|
|
|
<el-select v-model="pluginDefineId" size="small" style="width: 100%" @change="changePlugin" disabled="true" v-if="item.id"> |
|
|
|
<el-option |
|
|
|
<el-option |
|
|
|
v-for="items in pulginInstance" |
|
|
|
v-for="items in pluginInstance" |
|
|
|
:key="items.id" |
|
|
|
:key="items.id" |
|
|
|
:value="items.id" |
|
|
|
:value="items.id" |
|
|
|
:label="items.pluginName"> |
|
|
|
:label="items.pluginName"> |
|
|
@ -47,7 +47,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
<el-select v-model="pluginDefineId" size="small" style="width: 100%" @change="changePlugin" v-else> |
|
|
|
<el-select v-model="pluginDefineId" size="small" style="width: 100%" @change="changePlugin" v-else> |
|
|
|
<el-option |
|
|
|
<el-option |
|
|
|
v-for="items in pulginInstance" |
|
|
|
v-for="items in pluginInstance" |
|
|
|
:key="items.id" |
|
|
|
:key="items.id" |
|
|
|
:value="items.id" |
|
|
|
:value="items.id" |
|
|
|
:label="items.pluginName"> |
|
|
|
:label="items.pluginName"> |
|
|
@ -83,7 +83,7 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
item: Object, |
|
|
|
item: Object, |
|
|
|
pulginInstance: Array |
|
|
|
pluginInstance: Array |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
_ok () { |
|
|
|
_ok () { |
|
|
@ -121,7 +121,7 @@ |
|
|
|
this.rule = JSON.parse(res.pluginParams) |
|
|
|
this.rule = JSON.parse(res.pluginParams) |
|
|
|
this.rule.forEach(item => { |
|
|
|
this.rule.forEach(item => { |
|
|
|
if (item.title.indexOf('$t') !== -1) { |
|
|
|
if (item.title.indexOf('$t') !== -1) { |
|
|
|
item.title = $t(item.field) |
|
|
|
item.title = this.$t(item.field) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}).catch(e => { |
|
|
|
}).catch(e => { |
|
|
@ -163,7 +163,7 @@ |
|
|
|
this.pluginDefineId = this.item.pluginDefineId |
|
|
|
this.pluginDefineId = this.item.pluginDefineId |
|
|
|
JSON.parse(this.item.pluginInstanceParams).forEach(item => { |
|
|
|
JSON.parse(this.item.pluginInstanceParams).forEach(item => { |
|
|
|
if (item.title.indexOf('$t') !== -1) { |
|
|
|
if (item.title.indexOf('$t') !== -1) { |
|
|
|
item.title = $t(item.field) |
|
|
|
item.title = this.$t(item.field) |
|
|
|
} |
|
|
|
} |
|
|
|
pluginInstanceParams.push(item) |
|
|
|
pluginInstanceParams.push(item) |
|
|
|
}) |
|
|
|
}) |
|
|
|