97 lines
2.6 KiB
Vue
97 lines
2.6 KiB
Vue
<template>
|
||
<el-col :span="22" :offset="1">
|
||
<el-card>
|
||
<div slot="header" class="clearfix">
|
||
<span>公共配置</span>
|
||
</div>
|
||
<el-form ref="form" :model="ruleEngineCommConfig" label-width="80px">
|
||
<el-form-item label-width="配置">
|
||
<el-input v-model="ruleEngineCommConfig.packageName" disabled></el-input>
|
||
</el-form-item>
|
||
|
||
</el-form>
|
||
</el-card>
|
||
<el-col>
|
||
<el-card>
|
||
<div slot="header" class="clearfix">
|
||
<soan>作用域</soan>
|
||
</div>
|
||
<el-tabs type="border-card" v-model="codeCardStatus">
|
||
<el-tab-pane v-for="scope in scopeList" :label="scope.type" :name="scope.val">
|
||
<encoding v-if="codeCardStatus === scope.val" style="height: 800px" v-model="scope.code" :read-only="true">
|
||
</encoding>
|
||
</el-tab-pane>
|
||
</el-tabs>
|
||
</el-card>
|
||
</el-col>
|
||
</el-col>
|
||
</template>
|
||
|
||
<script>
|
||
// 这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等),
|
||
// 例如:import 《组件名称》 from '《组件路径》,
|
||
import { listCope, listCope2, selType } from '@/api/goods/cope'
|
||
import Encoding from "@/components/Encoding/index.vue";
|
||
export default {
|
||
// import引入的组件需要注入到对象中才能使用"
|
||
components: { Encoding },
|
||
props: {},
|
||
data() {
|
||
// 这里存放数据"
|
||
return {
|
||
codeCardStatus: 'taskContext',
|
||
ruleEngineCommConfig: {
|
||
packageName: "com.muyu.rule.engine"
|
||
},
|
||
scopeList: [],
|
||
scopeList2: []
|
||
}
|
||
},
|
||
// 计算属性 类似于data概念",
|
||
computed: {},
|
||
// 监控data中的数据变化",
|
||
watch: {},
|
||
// 方法集合",
|
||
methods: {
|
||
selStype(name) {
|
||
selType(name).then(res => {
|
||
console.log(res.data)
|
||
})
|
||
},
|
||
init() {
|
||
listCope2().then(res => {
|
||
this.scopeList = res.data
|
||
console.log(res.data)
|
||
})
|
||
// listCope().then(res => {
|
||
// this.scopeList = res.data
|
||
// })
|
||
}
|
||
},
|
||
// 生命周期 - 创建完成(可以访问当前this实例)",
|
||
created() {
|
||
this.init()
|
||
},
|
||
// 生命周期 - 挂载完成(可以访问DOM元素)",
|
||
mounted() {
|
||
},
|
||
beforeCreate() {
|
||
}, // 生命周期 - 创建之前",
|
||
beforeMount() {
|
||
}, // 生命周期 - 挂载之前",
|
||
beforeUpdate() {
|
||
}, // 生命周期 - 更新之前",
|
||
updated() {
|
||
}, // 生命周期 - 更新之后",
|
||
beforeDestroy() {
|
||
}, // 生命周期 - 销毁之前",
|
||
destroyed() {
|
||
}, // 生命周期 - 销毁完成",
|
||
activated() {
|
||
} // 如果页面有keep-alive缓存功能,这个函数会触发",
|
||
}
|
||
</script>
|
||
<style scoped>
|
||
|
||
</style>
|