Commit ddd34f3c85e426ff19dcbab4daa4fa3d40e998c0
1 parent
3cf1f3f5
修改答案去掉删除按钮
Showing
1 changed file
with
10 additions
and
36 deletions
src/views/examinationPaper/edit.vue
... | ... | @@ -137,8 +137,8 @@ |
137 | 137 | </template> |
138 | 138 | </p> |
139 | 139 | </div> |
140 | - <div class="qs-set"> | |
141 | - <!-- <el-tooltip effect="dark" content="上传提干" placement="top"> | |
140 | + <!-- <div class="qs-set"> | |
141 | + <el-tooltip effect="dark" content="上传提干" placement="top"> | |
142 | 142 | <el-button |
143 | 143 | type="primary" |
144 | 144 | circle |
... | ... | @@ -168,21 +168,8 @@ |
168 | 168 | icon="el-icon-upload" |
169 | 169 | @click="openStem(subQuestions, 2, index, indexs)" |
170 | 170 | ></el-button> |
171 | - </el-tooltip> --> | |
172 | - <el-popconfirm | |
173 | - title="确定删除这道题吗?" | |
174 | - @confirm="delTabData(indexs, index)" | |
175 | - > | |
176 | - <el-button | |
177 | - slot="reference" | |
178 | - class="delete" | |
179 | - type="danger" | |
180 | - size="mini" | |
181 | - circle | |
182 | - icon="el-icon-delete" | |
183 | - ></el-button> | |
184 | - </el-popconfirm> | |
185 | - </div> | |
171 | + </el-tooltip> | |
172 | + </div> --> | |
186 | 173 | </div> |
187 | 174 | </li> |
188 | 175 | </ul> |
... | ... | @@ -283,8 +270,8 @@ |
283 | 270 | </template> |
284 | 271 | </p> |
285 | 272 | </div> |
286 | - <div class="qs-set"> | |
287 | - <!-- <el-tooltip effect="dark" content="上传提干" placement="top"> | |
273 | + <!-- <div class="qs-set"> | |
274 | + <el-tooltip effect="dark" content="上传提干" placement="top"> | |
288 | 275 | <el-button |
289 | 276 | type="primary" |
290 | 277 | circle |
... | ... | @@ -310,21 +297,8 @@ |
310 | 297 | icon="el-icon-upload" |
311 | 298 | @click="openStem(subQuestions, 2, indexs)" |
312 | 299 | ></el-button> |
313 | - </el-tooltip> --> | |
314 | - <el-popconfirm | |
315 | - title="确定删除这道题吗?" | |
316 | - @confirm="delTabData(indexs, index)" | |
317 | - > | |
318 | - <el-button | |
319 | - slot="reference" | |
320 | - class="delete" | |
321 | - type="danger" | |
322 | - size="mini" | |
323 | - circle | |
324 | - icon="el-icon-delete" | |
325 | - ></el-button> | |
326 | - </el-popconfirm> | |
327 | - </div> | |
300 | + </el-tooltip> | |
301 | + </div> --> | |
328 | 302 | </div> |
329 | 303 | </li> |
330 | 304 | </ul> |
... | ... | @@ -577,13 +551,13 @@ export default { |
577 | 551 | this.dialogStem = true; |
578 | 552 | }, |
579 | 553 | openTag(obj, type, index, indexs) { |
580 | - console.log(obj) | |
554 | + console.log(obj); | |
581 | 555 | //难度,知识点 |
582 | 556 | this.stem = { ...this.stem, obj }; |
583 | 557 | this.stem.type = type; |
584 | 558 | this.stem.index = index; |
585 | 559 | this.stem.indexs = indexs; |
586 | - this.stem.knowledge = obj.knowledge&&obj.knowledge.split(",") || []; | |
560 | + this.stem.knowledge = (obj.knowledge && obj.knowledge.split(",")) || []; | |
587 | 561 | this.stem.difficultyFactor = obj.difficultyFactor || ""; |
588 | 562 | this.dialogTag = true; |
589 | 563 | }, | ... | ... |