|
@@ -125,9 +125,17 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
onTypesDelOpeation (row) {
|
|
onTypesDelOpeation (row) {
|
|
- categoryUpSetDel({ id: row.id }).then(res => {
|
|
|
|
- this.messageTips('删除', res)
|
|
|
|
- })
|
|
|
|
|
|
+
|
|
|
|
+ this.$confirm("您确定删除该分类?", "提示", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ type: "warning"
|
|
|
|
+ }).then(() => {
|
|
|
|
+ categoryUpSetDel({ id: row.id }).then(res => {
|
|
|
|
+ this.messageTips('删除', res)
|
|
|
|
+ })
|
|
|
|
+ });
|
|
|
|
+
|
|
},
|
|
},
|
|
onTypesSubmit (formName) { // 添加数据
|
|
onTypesSubmit (formName) { // 添加数据
|
|
this.$refs[formName].validate((valid) => {
|
|
this.$refs[formName].validate((valid) => {
|