|
@@ -169,18 +169,17 @@ export default {
|
|
|
obj.index = this.curQue.option.push(obj);
|
|
|
},
|
|
|
deleteGroup(index, sIndex) {
|
|
|
- this.$confirm("确定要删除吗?", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- if (this.curQue.option[index].length == 1) {
|
|
|
- this.$message.warning("至少剩余1个,不能全部删除");
|
|
|
- return;
|
|
|
- }
|
|
|
- this.curQue.option[index].splice(sIndex, 1);
|
|
|
- })
|
|
|
+ this.$confirm("确定要删除吗?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }).then(() => {
|
|
|
+ if (this.curQue.option[index].length == 1) {
|
|
|
+ this.$message.warning("至少剩余1个,不能全部删除");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.curQue.option[index].splice(sIndex, 1);
|
|
|
+ });
|
|
|
},
|
|
|
saddoption(item) {
|
|
|
let con = {
|
|
@@ -194,14 +193,13 @@ export default {
|
|
|
item.push(con);
|
|
|
},
|
|
|
delsItem(index) {
|
|
|
- this.$confirm("确定要删除吗?", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.curQue.option.splice(index, 1);
|
|
|
- })
|
|
|
+ this.$confirm("确定要删除吗?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }).then(() => {
|
|
|
+ this.curQue.option.splice(index, 1);
|
|
|
+ });
|
|
|
},
|
|
|
changeMp3(fileList) {
|
|
|
const articleImgList = JSON.parse(JSON.stringify(fileList));
|