This commit is contained in:
yaosen 2024-06-28 17:37:29 +08:00
parent 00df775a27
commit a05ff35a3a
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
<el-table-column align="center" fixed label="ID" width="80" prop="id" /> <el-table-column align="center" fixed label="ID" width="80" prop="id" />
<el-table-column align="center" fixed label="城市" width="80" prop="qaCitys.city_name" /> <el-table-column align="center" fixed label="城市" width="80" prop="qaCitys.city_name" />
<el-table-column align="center" fixed label="标题" width="280" prop="title" /> <el-table-column align="center" fixed label="标题" width="280" prop="title" />
<el-table-column align="center" fixed label="内容" width="380" prop="content" /> <!-- <el-table-column align="center" fixed label="内容" width="380" prop="content" />-->
<el-table-column align="center" label="状态" width="100"> <el-table-column align="center" label="状态" width="100">
<template #default="scope"> <template #default="scope">
<el-switch v-model="scope.row.status" :active-value="1" :inactive-value="0" @change="updateStatus(scope.row)" /> <el-switch v-model="scope.row.status" :active-value="1" :inactive-value="0" @change="updateStatus(scope.row)" />
@ -264,7 +264,7 @@ export default {
}, },
onEdit(item) { onEdit(item) {
if(!item.qaQuestions.length){ if(!item.qaQuestions.length){
this.anchors = { this.anchors = {
...item, ...item,
qaQuestions:[{ qaQuestions:[{
sort:1, sort:1,