소스 검색

fix: 提交

bug/0816
yinsiyu 1 개월 전
부모
커밋
bf36ec2d0b
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. +6
    -2
      src/views/dictManage/returnType/index.vue

+ 6
- 2
src/views/dictManage/returnType/index.vue 파일 보기

@@ -18,14 +18,14 @@
<vxe-form :data="formData" ref="formRef" :rules="formRules" title-colon :span="24">
<vxe-form-item title="回访类型" field="name">
<template #default="{ data }">
<vxe-input v-model="data.name" placeholder="请输入回访类型"></vxe-input>
<vxe-input v-model="data.name" placeholder="请输入回访类型" maxlength="10"></vxe-input>
</template>
</vxe-form-item>
</vxe-form>
<template #footer>
<div class="btn-footer">
<vxe-button style="margin-right: 10px" @click="onCancel">取消</vxe-button>
<vxe-button status="primary" @click="onSubmit">保存</vxe-button>
<vxe-button status="primary" @click="onSubmit" :loading="isLoading">保存</vxe-button>
</div>
</template>
</vxe-modal>
@@ -110,6 +110,7 @@ export default {
},
visible: false,
dialogTitle: "新增回访类型",
isLoading: false,
formData: {
id: undefined,
name: null,
@@ -164,13 +165,16 @@ export default {
if (isValid) {
return;
}
this.isLoading = true;
const [err, res] = await to(updateCallbackCategoryApi(this.formData));
if (!err) {
this.$message.success("操作成功");
await this.resetForm();
this.visible = false;
await this.$nextTick();
this.$refs.gridRef.commitProxy("query");
}
this.isLoading = false;
});
},
async resetForm() {


불러오는 중...
취소
저장