no message
This commit is contained in:
parent
8c989e84b2
commit
aa65b8165d
5 changed files with 58 additions and 24 deletions
|
|
@ -5,6 +5,7 @@ import axios from "axios";
|
|||
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { useDataStore } from "@/stores/data";
|
||||
|
||||
import DialogHeader from "@/components/DialogHeader.vue";
|
||||
|
||||
|
|
@ -16,6 +17,7 @@ import { useCounterMixin } from "@/stores/mixin";
|
|||
*/
|
||||
const $q = useQuasar();
|
||||
const store = useRequestEditStore();
|
||||
const dataStore = useDataStore();
|
||||
const { dialogConfirm, showLoader, hideLoader, messageError, success } =
|
||||
useCounterMixin();
|
||||
|
||||
|
|
@ -53,10 +55,12 @@ function onSubmit() {
|
|||
async () => {
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.requestsEdit, {
|
||||
.post(config.API.requestsEditByType(dataStore.officerLink), {
|
||||
topic: formData.topic,
|
||||
detail: formData.detail,
|
||||
profileId: profileId.value,
|
||||
[dataStore.officerType === "OFFICER"
|
||||
? "profileId"
|
||||
: "profileEmployeeId"]: profileId.value,
|
||||
})
|
||||
.then(async (res) => {
|
||||
if (formData.document) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue