删除分类完善
This commit is contained in:
parent
912b664082
commit
022f91ba7e
|
@ -146,9 +146,10 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {getArticleCategory, listArticleCategory} from "@/api/bst/articleCategory.js";
|
||||
import {getArticleCategory, listArticleCategory,delArticleCategory,addArticleCategory} from "@/api/bst/articleCategory.js";
|
||||
import Treeselect from "@riophae/vue-treeselect";
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
import {delArea} from "@/api/bst/area";
|
||||
|
||||
export default {
|
||||
name: "ArticleCategory",
|
||||
|
@ -311,13 +312,14 @@
|
|||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
this.$modal.confirm('是否确认删除文章分类编号为"' + row.id + '"的数据项?').then(function() {
|
||||
return delArticleCategory(row.id);
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除运营区编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delArticleCategory(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue
Block a user