增加域名绑定功能

dependabot/npm_and_yarn/fir_admin/dns-packet-1.3.4
youngS 4 years ago
parent 710de8432d
commit 50d877f2f3
  1. 3
      fir_client/src/components/FirBase.vue
  2. 2
      fir_client/src/components/apps/FirAppInfossecurity.vue
  3. 4
      fir_client/src/components/base/BindDomain.vue
  4. 2
      fir_client/src/components/user/FirUserProfileInfo.vue
  5. 5
      fir_ser/api/utils/serializer.py

@ -17,7 +17,8 @@
:closable="false"
effect="dark">
<div slot="title">
<span :underline="false" class="domian-tip-bar">应用分发请绑定您自己的域名平台分发域名可能因不可违因素更换将导致您的应用无法访问</span>
<span :underline="false"
class="domian-tip-bar">应用分发请绑定您自己的域名平台分发域名可能因不可违因素更换将导致您的应用无法访问</span>
<el-button size="medium" @click="bind_domain_sure=true">立即绑定</el-button>
</div>
</el-alert>

@ -49,7 +49,7 @@
</el-form-item>
<el-form-item label-width="200px" label="应用专属域名">
<el-input v-model="currentapp.domain_name" clearable
<el-input :value="currentapp.domain_name" clearable
style="width: 60%;margin-right: 10px" prefix-icon="el-icon-download"
:placeholder="defualt_dtitle"/>
<el-button @click="bind_domain_sure=true">保存</el-button>

@ -121,7 +121,8 @@
</div>
<div v-if="active!==3" style="margin:40px 20px 0;text-align: right">
<el-button @click="last"
:disabled="bind_status|| active===1 ">上一步</el-button>
:disabled="bind_status|| active===1 ">上一步
</el-button>
<el-button @click="next">下一步</el-button>
</div>
@ -131,6 +132,7 @@
<script>
import {domainFun} from "@/restful";
export default {
name: 'BindDomain',
props: {

@ -160,7 +160,7 @@
<el-form-item label="下载域名">
<el-row :gutter="36">
<el-col :span="16">
<el-input v-model="userinfo.domain_name" :readonly="true" ref="domain_name"
<el-input :value="userinfo.domain_name" :readonly="true" ref="domain_name"
prefix-icon="el-icon-download"
placeholder="下载页域名" clearable/>
</el-col>

@ -137,6 +137,11 @@ class AppsSerializer(serializers.ModelSerializer):
def get_preview_url(self, obj):
return get_redirect_server_domain(None, obj.user_id, get_app_domain_name(obj))
domain_name = serializers.SerializerMethodField()
def get_domain_name(self, obj):
return get_app_domain_name(obj)
sign_type_choice = serializers.SerializerMethodField()
def get_sign_type_choice(self, obj):

Loading…
Cancel
Save