middleground_code_v2/src/views/applicationList/apiList/apiInfo.vue

134 lines
2.7 KiB
Vue
Raw Normal View History

2024-03-26 11:18:19 +08:00
<template>
<div>
<baseNewForm
refName="stepZeroform"
ref="stepZeroform"
:spanNumber="24"
:formRow="stepZeroformRow"
:ruleForm="stepZeroForm"
:newFlag="true"
:isFunBtn="false"
@onSubmit="onSubmitHandle"
></baseNewForm>
</div>
</template>
<script>
import baseNewForm from "./compoments/baseNewForm.vue";
export default {
data() {
return {
stepZeroformRow: [
{
elCol: [
{
type: "input",
title: "API名称",
id: "apiname",
row: 24,
required: true,
editDisable: true,
},
],
},
{
elCol: [
{
type: "input",
title: "中文名称",
id: "chinesename",
row: 24,
required: true,
},
],
},
{
elCol: [
{
type: "textrea",
title: "API功能描述",
id: "apitextrea",
row: 24,
required: true,
},
],
},
{
elCol: [
{
type: "select",
title: "API从属系统",
id: "apisystem",
row: 24,
required: true,
editDisable: true,
options: [
{
label: "oa系统",
id: "1",
},
],
},
],
},
{
elCol: [
{
type: "checkbox",
title: "允许访问入口",
id: "allowent",
row: 24,
required: true,
options: [
{
label: "APP",
id: "1",
},
{
label: "H5",
id: "2",
},
],
},
],
},
{
elCol: [
{
type: "radio",
title: "API是否需要登录",
id: "apilogin",
row: 24,
required: true,
options: [
{
label: "是",
id: "1",
},
{
label: "否",
id: "2",
},
],
},
],
},
],
stepZeroForm: {
allowent: [],
},
};
},
components: {
baseNewForm,
},
methods: {
onSubmitHandle(){
}
},
};
</script>
<style>
</style>