增加苹果开发者备注显示信息

qrnn
youngS 3 years ago
parent f04c4411c7
commit e559267de3
  1. 61
      fir_client/src/components/user/FirSuperSignBase.vue
  2. 24
      fir_ser/api/utils/serializer.py

@ -527,6 +527,15 @@
label="开发者ID" label="开发者ID"
prop="developer_id" prop="developer_id"
width="200"> width="200">
<template slot-scope="scope">
<el-popover placement="top" trigger="hover">
<p>开发者ID: {{ scope.row.developer_id }}</p>
<p>开发者备注: {{ scope.row.developer_description }}</p>
<div slot="reference" class="name-wrapper">
<span>{{ scope.row.developer_id }}</span>
</div>
</el-popover>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -589,9 +598,18 @@
label="开发者ID" label="开发者ID"
prop="developer_id" prop="developer_id"
width="200"> width="200">
<template slot-scope="scope">
<el-popover placement="top" trigger="hover">
<p>开发者ID: {{ scope.row.developer_id }}</p>
<p>开发者备注: {{ scope.row.developer_description }}</p>
<div slot="reference" class="name-wrapper">
<span>{{ scope.row.developer_id }}</span>
</div>
</el-popover>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
v-if="$store.state.userinfo&&$store.state.userinfo.role == 3" v-if="$store.state.userinfo&&$store.state.userinfo.role === 3"
align="center" align="center"
label="被使用户uid" label="被使用户uid"
prop="other_uid"> prop="other_uid">
@ -612,12 +630,17 @@
v-model="udidsearch" v-model="udidsearch"
clearable clearable
placeholder="输入UDID" placeholder="输入UDID"
style="width: 30%;margin-right: 30px;margin-bottom: 10px"/> style="width: 27%;margin-right: 10px;margin-bottom: 10px"/>
<el-input <el-input
v-model="Bundleidsearch" v-model="Bundleidsearch"
clearable clearable
placeholder="输入BundleID" placeholder="输入BundleID"
style="width: 30%;margin-right: 30px;margin-bottom: 10px"/> style="width: 27%;margin-right: 10px;margin-bottom: 10px"/>
<el-input
v-model="appidseach"
clearable
placeholder="输入开发者ID"
style="width: 27%;margin-right: 10px;margin-bottom: 10px"/>
<el-button icon="el-icon-search" type="primary" @click="handleCurrentChange(1)"> <el-button icon="el-icon-search" type="primary" @click="handleCurrentChange(1)">
搜索 搜索
</el-button> </el-button>
@ -641,6 +664,7 @@
<p>Bundle_ID: {{ scope.row.bundle_id }}</p> <p>Bundle_ID: {{ scope.row.bundle_id }}</p>
<p>应用名称: {{ scope.row.bundle_name }}</p> <p>应用名称: {{ scope.row.bundle_name }}</p>
<p>UDID: {{ scope.row.udid }}</p> <p>UDID: {{ scope.row.udid }}</p>
<p>开发者ID: {{ scope.row.issuer_id }}</p>
<div slot="reference" class="name-wrapper"> <div slot="reference" class="name-wrapper">
<el-tag size="medium">{{ scope.row.udid }}</el-tag> <el-tag size="medium">{{ scope.row.udid }}</el-tag>
</div> </div>
@ -651,7 +675,7 @@
align="center" align="center"
label="imei" label="imei"
prop="imei" prop="imei"
width="160"> width="100">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -665,15 +689,34 @@
label="设备型号" label="设备型号"
prop="version" prop="version"
width="100"> width="100">
<template slot-scope="scope">
<el-popover placement="top" trigger="hover">
<p>设备型号: {{ scope.row.version }}</p>
<p>设备序列号: {{ scope.row.serial }}</p>
<div slot="reference" class="name-wrapper">
<span>{{ scope.row.version }}</span>
</div>
</el-popover>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"
label="设备序列号" label="开发者ID"
prop="serial" prop="issuer_id">
width="140"> <template slot-scope="scope">
<el-popover placement="top" trigger="hover">
<p>开发者ID: {{ scope.row.issuer_id }}</p>
<p>开发者备注: {{ scope.row.developer_description }}</p>
<div slot="reference" class="name-wrapper">
<span>{{ scope.row.issuer_id }}</span>
</div>
</el-popover>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
v-if="$store.state.userinfo&&$store.state.userinfo.role == 3" v-if="$store.state.userinfo&&$store.state.userinfo.role === 3"
align="center" align="center"
label="被使用户uid" label="被使用户uid"
prop="other_uid"> prop="other_uid">
@ -689,7 +732,7 @@
align="center" align="center"
fixed="right" fixed="right"
label="操作" label="操作"
width="110"> width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-if="scope.row.is_mine" v-if="scope.row.is_mine"

@ -532,7 +532,7 @@ class AdminDeveloperSerializer(DeveloperSerializer):
class SuperSignUsedSerializer(serializers.ModelSerializer): class SuperSignUsedSerializer(serializers.ModelSerializer):
class Meta: class Meta:
model = models.APPSuperSignUsedInfo model = models.APPSuperSignUsedInfo
fields = ["created_time", "device_udid", "device_name", "developer_id", "bundle_id", "bundle_name", "other_uid"] fields = ["created_time", "device_udid", "device_name", "developer_id", "bundle_id", "bundle_name", "other_uid", "developer_description"]
device_udid = serializers.CharField(source="udid.udid.udid") device_udid = serializers.CharField(source="udid.udid.udid")
device_name = serializers.CharField(source="udid.product") device_name = serializers.CharField(source="udid.product")
@ -540,6 +540,7 @@ class SuperSignUsedSerializer(serializers.ModelSerializer):
bundle_name = serializers.CharField(source="app_id.name") bundle_name = serializers.CharField(source="app_id.name")
other_uid = serializers.SerializerMethodField() other_uid = serializers.SerializerMethodField()
developer_id = serializers.SerializerMethodField() developer_id = serializers.SerializerMethodField()
developer_description = serializers.SerializerMethodField()
def get_developer_id(self, obj): def get_developer_id(self, obj):
if self.context.get('mine'): if self.context.get('mine'):
@ -547,6 +548,12 @@ class SuperSignUsedSerializer(serializers.ModelSerializer):
else: else:
return '公共账号池' return '公共账号池'
def get_developer_description(self, obj):
if self.context.get('mine'):
return obj.developerid.description
else:
return '公共账号池'
def get_other_uid(self, obj): def get_other_uid(self, obj):
user_obj = self.context.get('user_obj') user_obj = self.context.get('user_obj')
role = 0 role = 0
@ -578,6 +585,7 @@ class DeveloperDeviceSerializer(serializers.ModelSerializer):
exclude = ["id", "developerid"] exclude = ["id", "developerid"]
developer_id = serializers.CharField(source="developerid.issuer_id") developer_id = serializers.CharField(source="developerid.issuer_id")
developer_description = serializers.CharField(source="developerid.description")
class DeviceUDIDSerializer(serializers.ModelSerializer): class DeviceUDIDSerializer(serializers.ModelSerializer):
@ -588,10 +596,24 @@ class DeviceUDIDSerializer(serializers.ModelSerializer):
bundle_name = serializers.CharField(source="app_id.name") bundle_name = serializers.CharField(source="app_id.name")
bundle_id = serializers.CharField(source="app_id.bundle_id") bundle_id = serializers.CharField(source="app_id.bundle_id")
issuer_id = serializers.SerializerMethodField()
developer_description = serializers.SerializerMethodField()
udid = serializers.CharField(source="udid.udid") udid = serializers.CharField(source="udid.udid")
is_mine = serializers.SerializerMethodField() is_mine = serializers.SerializerMethodField()
other_uid = serializers.SerializerMethodField() other_uid = serializers.SerializerMethodField()
def get_issuer_id(self, obj):
if self.context.get('mine'):
return obj.udid.developerid.issuer_id
else:
return '公共账号池'
def get_developer_description(self, obj):
if self.context.get('mine'):
return obj.udid.developerid.description
else:
return '公共账号池'
def get_other_uid(self, obj): def get_other_uid(self, obj):
user_obj = self.context.get('user_obj') user_obj = self.context.get('user_obj')
role = 0 role = 0

Loading…
Cancel
Save