feat: dppz : 铺装工匠修改
This commit is contained in:
parent
9e8e966fe2
commit
824b9f125a
|
@ -19,6 +19,9 @@
|
|||
<el-table-column align="left" label="姓名">
|
||||
<template slot-scope="scope">{{ scope.row.art_name }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="left" label="职级">
|
||||
<template slot-scope="scope">{{ scope.row.art_honor }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="left" label="类别">
|
||||
<template slot-scope="scope">{{ scope.row.art_cate }}</template>
|
||||
</el-table-column>
|
||||
|
@ -58,6 +61,9 @@
|
|||
<el-form-item label="姓名" prop="art_name" style="width: 400px;">
|
||||
<el-input v-model="userinfo.art_name " placeholder="姓名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="职级" prop="art_name" style="width: 400px;">
|
||||
<el-input v-model="userinfo.art_honor" placeholder="职级" />
|
||||
</el-form-item>
|
||||
<el-form-item label="类别" prop="art_cate" style="width: 400px;">
|
||||
<el-select v-model="userinfo.art_cate" placeholder="类别">
|
||||
<el-option
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 3.2.12 on 2025-04-29 05:17
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('cms', '0023_auto_20250423_1028'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='userpz',
|
||||
name='art_honor',
|
||||
field=models.CharField(blank=True, max_length=100, null=True, verbose_name='荣誉'),
|
||||
),
|
||||
]
|
|
@ -69,6 +69,7 @@ class Userpz(CommonModel):
|
|||
art_name = models.CharField('姓名', max_length=50)
|
||||
art_photo = models.CharField('照片', max_length=100)
|
||||
art_cate = models.CharField('类别', null=True, blank=True, max_length=50)
|
||||
art_honor = models.CharField('荣誉', null=True, blank=True, max_length=100)
|
||||
art_remark = models.TextField('备注', null=True, blank=True)
|
||||
|
||||
def __str__(self):
|
||||
|
|
|
@ -74,6 +74,7 @@ class UserpzViewSet(ModelViewSet):
|
|||
pagination_class = CommonPagination
|
||||
search_fields = ['name']
|
||||
ordering_fields = ['update_time']
|
||||
filterset_fields = ['art_cate']
|
||||
|
||||
|
||||
class ChildrenCompanyViewSet(ModelViewSet):
|
||||
|
|
|
@ -56,7 +56,7 @@ class ConsumerSerializer(serializers.ModelSerializer):
|
|||
class ConsumerImproveSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = Consumer
|
||||
fields = ['name', 'ID_number1', 'companyname', 'title']
|
||||
fields = ['name']
|
||||
|
||||
class ConsumerDetailSerializer(serializers.ModelSerializer):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue