25c30d22 by yzj

no message

1 parent f76fb432
...@@ -44,11 +44,11 @@ ...@@ -44,11 +44,11 @@
44 <el-table-column :label="$t('course.blockName')" prop="buildingBlockName" /> 44 <el-table-column :label="$t('course.blockName')" prop="buildingBlockName" />
45 <el-table-column :label="$t('course.buildName')" prop="type" /> 45 <el-table-column :label="$t('course.buildName')" prop="type" />
46 <el-table-column :label="$t('course.caseName')" prop="caseName" /> 46 <el-table-column :label="$t('course.caseName')" prop="caseName" />
47 <el-table-column :label="$t('course.packName')" prop="packId"> 47 <el-table-column :label="$t('course.packName')" prop="canPack">
48 <template #default="{ row }"> 48 <template #default="{ row }">
49 <dict-tag 49 <dict-tag
50 :options="constrain_status" 50 :options="constrain_status"
51 :value="row.packId" 51 :value="row.canPack"
52 ></dict-tag> 52 ></dict-tag>
53 </template> 53 </template>
54 </el-table-column> 54 </el-table-column>
...@@ -90,9 +90,9 @@ ...@@ -90,9 +90,9 @@
90 style="width: 180px;" 90 style="width: 180px;"
91 /> 91 />
92 </el-form-item> 92 </el-form-item>
93 <el-form-item :label="$t('course.dialogPack')" prop="packId" label-width="80"> 93 <el-form-item :label="$t('course.dialogPack')" prop="canPack" label-width="80">
94 <el-select 94 <el-select
95 v-model="showForm.form.packId" 95 v-model="showForm.form.canPack"
96 placeholder="请选择是否打包" 96 placeholder="请选择是否打包"
97 closeabled 97 closeabled
98 style="width: 180px;" 98 style="width: 180px;"
...@@ -256,7 +256,7 @@ function handleEdit (row) { ...@@ -256,7 +256,7 @@ function handleEdit (row) {
256 form: { 256 form: {
257 ...row, 257 ...row,
258 type: row.type.split('、'), 258 type: row.type.split('、'),
259 packId: row.packId || '0' // 确保packId有值,如果为null或undefined则默认为'0' 259 canPack: row.canPack || 0 // 确保canPack有值,如果为null或undefined则默认为'0'
260 } 260 }
261 } 261 }
262 console.log('编辑表单数据:', showForm.value.form) // 添加日志查看数据 262 console.log('编辑表单数据:', showForm.value.form) // 添加日志查看数据
...@@ -269,7 +269,7 @@ function btn_add () { ...@@ -269,7 +269,7 @@ function btn_add () {
269 ...showForm.value, 269 ...showForm.value,
270 open: true, 270 open: true,
271 form: { 271 form: {
272 packId: '0' // 设置默认值 272 canPack: 0 // 设置默认值
273 } 273 }
274 } 274 }
275 } 275 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!