赵殿龙 1 год назад
Родитель
Сommit
7227a94ed2
2 измененных файлов с 11 добавлено и 2 удалено
  1. 9 0
      src/api/rule/config.js
  2. 2 2
      src/views/rule/config/components/TableBox.vue

+ 9 - 0
src/api/rule/config.js

@@ -35,3 +35,12 @@ export function add_rule(data) {
     data: data
   })
 }
+
+// 规则模板-删除
+export function del_rule(data) {
+  return request({
+    url: '/quality_rule/del_rule',
+    method: 'post',
+    data: data
+  })
+}

+ 2 - 2
src/views/rule/config/components/TableBox.vue

@@ -154,7 +154,7 @@
 
 <script>
 import CreateDialog from './CreateDialog.vue'
-import { del_word_map } from '@/api/dict'
+import { del_rule } from '@/api/rule/config'
 
 export default {
   components: {
@@ -230,7 +230,7 @@ export default {
         cancelButtonText: '取消',
         type: 'warning'
       }).then(() => {
-        del_word_map({ id: row.id }).then((res) => {
+        del_rule({ id: row.id }).then((res) => {
           this.$message.success(res.m || '操作成功')
           this.$emit('refresh')
         })