|
@@ -32,7 +32,6 @@
|
|
|
import { reactive, ref } from 'vue';
|
|
|
import { ElMessage, FormInstance } from 'element-plus';
|
|
|
import { throttle } from '/@/utils/tools';
|
|
|
-import { businessTagAdd, businessTagList } from '/@/api/auxiliary/businessTag';
|
|
|
import {queryUser} from "/@/api/system/workflow";
|
|
|
import {removeDuplicate} from "/@/utils/arrayOperation";
|
|
|
|
|
@@ -89,26 +88,7 @@ const onSubmit = throttle(async (formEl: FormInstance | undefined) => {
|
|
|
await formEl.validate((valid: boolean) => {
|
|
|
if (!valid) return;
|
|
|
loading.value = true;
|
|
|
- const request = [state.ruleForm];
|
|
|
- businessTagAdd(request)
|
|
|
- .then(() => {
|
|
|
- ElMessage({
|
|
|
- message: '操作成功',
|
|
|
- type: 'success',
|
|
|
- });
|
|
|
- emit('updateList');
|
|
|
- })
|
|
|
- .catch((error) => {
|
|
|
- // 新增失败
|
|
|
- ElMessage({
|
|
|
- message: `操作失败: ${error.message}`,
|
|
|
- type: 'error',
|
|
|
- });
|
|
|
- })
|
|
|
- .finally(() => {
|
|
|
- loading.value = false;
|
|
|
- closeDialog();
|
|
|
- });
|
|
|
+
|
|
|
});
|
|
|
}, 300);
|
|
|
// 暴露变量
|