Commit 50740384 authored by Davve's avatar Davve

修改发帖时间

parent 8db98c73
...@@ -52,7 +52,6 @@ class CelebrityUpdateOrCreate(APIView): ...@@ -52,7 +52,6 @@ class CelebrityUpdateOrCreate(APIView):
def post(self, request): def post(self, request):
id = request.POST.get('id', '') id = request.POST.get('id', '')
print(request.POST, '----')
gender = request.POST.get('gender') gender = request.POST.get('gender')
group_ids = list(set(map(lambda x: x.split(":")[0], json.loads(request.POST.get('groups', '[]'))))) group_ids = list(set(map(lambda x: x.split(":")[0], json.loads(request.POST.get('groups', '[]')))))
updates = { updates = {
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<el-form-item label-width="75px" label="性别:" style="margin-left: 10px" prop="gender"> <el-form-item label-width="75px" label="性别:" style="margin-left: 10px" prop="gender">
<el-select v-model="postForm.gender" :placeholder="'性别:'" clearable <el-select v-model="postForm.gender" :placeholder="'性别:'" clearable
class="postInfo-container-item" class="postInfo-container-item"
style="width: 220px"> style="width: 220px" :disabled="this.isEdit">
<el-option v-for="item in GenderTypeOptions" :key="item.key" :label="item.display_name" <el-option v-for="item in GenderTypeOptions" :key="item.key" :label="item.display_name"
:value="item.key"/> :value="item.key"/>
</el-select> </el-select>
......
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
:picker-options="expireTimeOption" :picker-options="expireTimeOption"
placeholder="选择日期时间" placeholder="选择日期时间"
style="width: 230px" style="width: 230px"
:disabled="this.isEdit"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment