Ver código fonte

企业版本

wushaodong 4 anos atrás
pai
commit
8820408b5e

+ 1 - 0
apps/admin/tenant/serializers.py

@@ -10,6 +10,7 @@ from apps.upload.models import Upload
 class TenantSerializer(serializers.ModelSerializer) :
     create_time = serializers.DateTimeField(format='%Y-%m-%d %H:%M', read_only=True)
     status_text = serializers.CharField(source='get_status_display', read_only=True)
+    edition_text = serializers.CharField(source='get_edition_display', read_only=True)
     user_text = serializers.CharField(source='user.username', read_only=True)
     username = serializers.SerializerMethodField()
     image = serializers.SerializerMethodField()

+ 1 - 0
uis/tenant/company/index.html

@@ -128,6 +128,7 @@
                 {field: 'company_no', title: '企业编号', width: 100}
                 , {field: 'company_name', title: '企业名称', width: 200}
                 , {field: 'organ_code', title: '组织代码', width: 150}
+                , {field: 'edition_text', title: '版本', width: 100}
                 , {field: 'name', title: '联系人姓名', width: 120}
                 , {field: 'tel', title: '联系人电话', width: 120}
                 , {field: 'address', title: '联系人地址', width: 200}

+ 1 - 0
uis/zzlyadmin/tenant/index.html

@@ -125,6 +125,7 @@
                 {field: 'company_no', title: '企业编号', width: 100}
                 , {field: 'company_name', title: '企业名称', width: 200}
                 , {field: 'organ_code', title: '组织代码', width: 150}
+                , {field: 'edition_text', title: '版本', width: 100}
                 , {field: 'name', title: '联系人姓名', width: 120}
                 , {field: 'tel', title: '联系人电话', width: 120}
                 , {field: 'address', title: '联系人地址', width: 200}