|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="full-container-p24">
|
|
|
<div class="df jcfe pb20">
|
|
|
- <el-button size="medium" type="primary" @click="modalVisable = true">
|
|
|
+ <el-button type="primary" @click="modalVisable = true">
|
|
|
新增项目
|
|
|
</el-button>
|
|
|
</div>
|
|
|
@@ -25,7 +25,8 @@
|
|
|
<el-button
|
|
|
@click="edit(item, index, item.type)"
|
|
|
size="small"
|
|
|
- type="text"
|
|
|
+ link
|
|
|
+ type="primary"
|
|
|
>
|
|
|
修改
|
|
|
</el-button>
|
|
|
@@ -34,7 +35,7 @@
|
|
|
@confirm="deleteItem(item._id, index, item.type)"
|
|
|
>
|
|
|
<template #reference>
|
|
|
- <el-button type="text" size="small">删除</el-button>
|
|
|
+ <el-button link type="primary" size="small">删除</el-button>
|
|
|
</template>
|
|
|
</el-popconfirm>
|
|
|
</div>
|
|
|
@@ -42,7 +43,7 @@
|
|
|
</template>
|
|
|
<div class="mb10 df jscb card-line aic" v-if="item.master_url">
|
|
|
<div class="s-title">正式版:</div>
|
|
|
- <el-button size="medium" type="text" @click="goTo(item.master_url)">
|
|
|
+ <el-button link type="primary" @click="goTo(item.master_url)">
|
|
|
去访问
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
@@ -55,7 +56,7 @@
|
|
|
</div>
|
|
|
<div class="mb10 df jscb card-line aic" v-if="item.dev_url">
|
|
|
<div class="s-title">测试版:</div>
|
|
|
- <el-button size="medium" type="text" @click="goTo(item.dev_url)">
|
|
|
+ <el-button link type="primary" @click="goTo(item.dev_url)">
|
|
|
去访问
|
|
|
</el-button>
|
|
|
<el-button size="small" type="primary" @click="copy2(item.dev_url)">
|
|
|
@@ -65,8 +66,8 @@
|
|
|
<div class="mb10 df jscb card-line aic" v-if="item.master_api">
|
|
|
<div class="s-title">正式接口:</div>
|
|
|
<el-button
|
|
|
- size="medium"
|
|
|
- type="text"
|
|
|
+ link
|
|
|
+ type="primary"
|
|
|
@click="goTo(item.master_api + 'swagger-ui.html#/')"
|
|
|
>
|
|
|
访问文档
|
|
|
@@ -82,8 +83,8 @@
|
|
|
<div class="mb10 df jscb card-line aic" v-if="item.dev_api">
|
|
|
<div class="s-title">测试接口:</div>
|
|
|
<el-button
|
|
|
- size="medium"
|
|
|
- type="text"
|
|
|
+ link
|
|
|
+ type="primary"
|
|
|
@click="goTo(item.dev_api + 'swagger-ui.html#/')"
|
|
|
>
|
|
|
访问文档
|
|
|
@@ -123,7 +124,8 @@
|
|
|
<el-button
|
|
|
@click="edit(item, index, item.type)"
|
|
|
size="small"
|
|
|
- type="text"
|
|
|
+ link
|
|
|
+ type="primary"
|
|
|
>
|
|
|
修改
|
|
|
</el-button>
|
|
|
@@ -132,7 +134,7 @@
|
|
|
@confirm="deleteItem(item._id, index, item.type)"
|
|
|
>
|
|
|
<template #reference>
|
|
|
- <el-button type="text" size="small">删除</el-button>
|
|
|
+ <el-button link type="primary" size="small">删除</el-button>
|
|
|
</template>
|
|
|
</el-popconfirm>
|
|
|
</div>
|
|
|
@@ -191,8 +193,8 @@
|
|
|
<div class="mb10 df jscb card-line aic" v-if="item.master_api">
|
|
|
<div class="s-title">正式接口:</div>
|
|
|
<el-button
|
|
|
- size="medium"
|
|
|
- type="text"
|
|
|
+ link
|
|
|
+ type="primary"
|
|
|
@click="goTo(item.master_api + 'swagger-ui.html#/')"
|
|
|
>
|
|
|
访问文档
|
|
|
@@ -208,8 +210,8 @@
|
|
|
<div class="mb10 df jscb card-line aic" v-if="item.dev_api">
|
|
|
<div class="s-title">测试接口:</div>
|
|
|
<el-button
|
|
|
- size="medium"
|
|
|
- type="text"
|
|
|
+ link
|
|
|
+ type="primary"
|
|
|
@click="goTo(item.dev_api + 'swagger-ui.html#/')"
|
|
|
>
|
|
|
访问文档
|
|
|
@@ -292,12 +294,7 @@
|
|
|
@click="upload('master_url')"
|
|
|
style="width: 100px"
|
|
|
></el-image>
|
|
|
- <el-button
|
|
|
- size="medium"
|
|
|
- type="primary"
|
|
|
- v-else
|
|
|
- @click="upload('master_url')"
|
|
|
- >
|
|
|
+ <el-button type="primary" v-else @click="upload('master_url')">
|
|
|
上传
|
|
|
</el-button>
|
|
|
</el-form-item>
|
|
|
@@ -312,12 +309,7 @@
|
|
|
@click="upload('dev_url')"
|
|
|
style="width: 100px"
|
|
|
></el-image>
|
|
|
- <el-button
|
|
|
- size="medium"
|
|
|
- type="primary"
|
|
|
- v-else
|
|
|
- @click="upload('dev_url')"
|
|
|
- >
|
|
|
+ <el-button type="primary" v-else @click="upload('dev_url')">
|
|
|
上传
|
|
|
</el-button>
|
|
|
</el-form-item>
|
|
|
@@ -344,36 +336,20 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<div class="df jcfe">
|
|
|
- <el-button
|
|
|
- size="medium"
|
|
|
- type="primary"
|
|
|
- @click="cancel()"
|
|
|
- v-if="currentItemId"
|
|
|
- >
|
|
|
+ <el-button type="primary" @click="cancel()" v-if="currentItemId">
|
|
|
取消
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- size="medium"
|
|
|
- type="primary"
|
|
|
- @click="resetForm(ruleFormRef)"
|
|
|
- v-else
|
|
|
- >
|
|
|
+ <el-button type="primary" @click="resetForm(ruleFormRef)" v-else>
|
|
|
重置
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
- size="medium"
|
|
|
type="primary"
|
|
|
@click="update(ruleFormRef)"
|
|
|
v-if="currentItemId"
|
|
|
>
|
|
|
提交修改
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- size="medium"
|
|
|
- type="primary"
|
|
|
- @click="submitForm(ruleFormRef)"
|
|
|
- v-else
|
|
|
- >
|
|
|
+ <el-button type="primary" @click="submitForm(ruleFormRef)" v-else>
|
|
|
创建项目
|
|
|
</el-button>
|
|
|
</div>
|