Commit a305147b by lijinqi

api应用,新增’试用链接‘字段

parent 5d2e7a33
...@@ -20,6 +20,7 @@ export interface Api { ...@@ -20,6 +20,7 @@ export interface Api {
doc: string; // 接口文档内容 doc: string; // 接口文档内容
status: number; // 状态:1=上架,0=下架 status: number; // 状态:1=上架,0=下架
remark: string; // 备注 remark: string; // 备注
trialUrl: string; // APP试用地址
apiPackages: ApiPackage[]; // API 套餐列表 apiPackages: ApiPackage[]; // API 套餐列表
} }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<li class="list-group-item"> <li class="list-group-item">
<Icon class="mr-5px" icon="ep:user" /> <Icon class="mr-5px" icon="ep:user" />
{{ t('profile.user.username') }} {{ t('profile.user.username') }}
<div class="pull-right">{{ userInfo?.username }}</div> <div class="pull-right">{{ userInfo?.nickname }}</div>
</li> </li>
<li class="list-group-item"> <li class="list-group-item">
<Icon class="mr-5px" icon="ep:phone" /> <Icon class="mr-5px" icon="ep:phone" />
......
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
<el-form-item label="应用名称" prop="name"> <el-form-item label="应用名称" prop="name">
<el-input v-model="formData.name" placeholder="应用名称" /> <el-input v-model="formData.name" placeholder="应用名称" />
</el-form-item> </el-form-item>
<el-form-item label="试用地址" prop="trialUrl">
<el-input v-model="formData.trialUrl" placeholder="试用地址" />
</el-form-item>
<!-- 分类选择 --> <!-- 分类选择 -->
<el-form-item label="分类" prop="categoryId"> <el-form-item label="分类" prop="categoryId">
<el-select v-model="formData.categoryId" placeholder="请选择分类" style="width: 100%;"> <el-select v-model="formData.categoryId" placeholder="请选择分类" style="width: 100%;">
...@@ -224,6 +227,7 @@ const formType = ref('') // 表单的类型:create - 新增;update - 修改 ...@@ -224,6 +227,7 @@ const formType = ref('') // 表单的类型:create - 新增;update - 修改
const formData = ref({ const formData = ref({
id: undefined, id: undefined,
name: '', name: '',
trialUrl: '',
categoryId: undefined, // 新增:分类id categoryId: undefined, // 新增:分类id
vendor: undefined, vendor: undefined,
vendorContact: undefined, vendorContact: undefined,
...@@ -383,6 +387,7 @@ const resetForm = () => { ...@@ -383,6 +387,7 @@ const resetForm = () => {
priceInfo:'', priceInfo:'',
coverImage: undefined, coverImage: undefined,
name: '', name: '',
trialUrl: '',
description: '', description: '',
detail: '', detail: '',
doc: '', doc: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment