<template>
  <el-col :span="22" :offset="1">
    <el-card>
      <div slot="header" class="clearfix">
        <span>公共配置</span>
      </div>
      <el-form ref="form" :model="ruleEngineCommonConfig" label-width="120px">
        <el-row>
          <el-col :span="12">
            <el-form-item label="规则基础目录">
              <el-input v-model="ruleEngineCommonConfig.packageName" disabled></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">

          </el-col>
        </el-row>
      </el-form>
    </el-card>
    <el-col>
      <el-card>
        <div slot="header" class="clearfix">
          <span>作用域</span>
        </div>
        <el-tabs type="border-card">
          <el-tab-pane v-for="scope in scopeList" :label="scope.type" :name="scope.value">
            {{scope.type}}
          </el-tab-pane>
        </el-tabs>
      </el-card>
    </el-col>
  </el-col>

</template>

<script>

export default {
  name: "EngineConfig",
  data() {
    return {
      code: "",
      ruleEngineCommonConfig: {
        packageName: "com.muyu.rule.engine",
      },
      scopeList: [
        { type: "任务1", value: "taskContext", },
        { type: "资产集", value: "recordContext", },
        { type: "资产记录", value: "dataSetContext", },
        { type: "资产模型", value: "dataModelContext", }
      ]
    }
  },
  created() {
  },
  methods: {}
}
</script>

<style>
.el-col {
  margin-top: 20px;
}
</style>
