|
|
@@ -0,0 +1,68 @@
|
|
|
+<template>
|
|
|
+ <!-- 删除客户资料-->
|
|
|
+ <a-modal class="commonModal recover-custom"
|
|
|
+ title="删除客户资料"
|
|
|
+ @cancel="cancel"
|
|
|
+ centered
|
|
|
+ width="890px">
|
|
|
+ <template #footer>
|
|
|
+ <a-button key="submit"
|
|
|
+ type="primary"
|
|
|
+ :loading="loading"
|
|
|
+ @click="submit">删除客户资料
|
|
|
+ </a-button>
|
|
|
+ </template>
|
|
|
+ <Detail :selectedRow="selectedRow" />
|
|
|
+ </a-modal>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script lang="ts">
|
|
|
+import { defineComponent, PropType, ref } from 'vue';
|
|
|
+import { DeleteUserReq, QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
|
|
|
+import { Modal } from 'ant-design-vue';
|
|
|
+import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
+import { QueryDeleteUserInfoApply } from '@/services/go/ermcp/customInfo';
|
|
|
+import Detail from '@/views/information/custom/compoments/common-detail/index.vue';
|
|
|
+
|
|
|
+export default defineComponent({
|
|
|
+ name: 'recover-custom',
|
|
|
+ components: { Detail },
|
|
|
+ props: {
|
|
|
+ selectedRow: {
|
|
|
+ type: Object as PropType<QueryCustomInfoType>,
|
|
|
+ default: {},
|
|
|
+ },
|
|
|
+ },
|
|
|
+ setup(props, context) {
|
|
|
+ const loading = ref<boolean>(false);
|
|
|
+
|
|
|
+ function submit() {
|
|
|
+ Modal.confirm({
|
|
|
+ title: '是否确认删除客户资料',
|
|
|
+ okText: '确认删除',
|
|
|
+ cancelText: '取消',
|
|
|
+ onOk() {
|
|
|
+ let reqParams: DeleteUserReq = {
|
|
|
+ userID: props.selectedRow.userid,
|
|
|
+ };
|
|
|
+ requestResultLoadingAndInfo(QueryDeleteUserInfoApply, reqParams, loading, ['删除成功', '删除失败:']).then(() => {
|
|
|
+ context.emit('refresh');
|
|
|
+ });
|
|
|
+ },
|
|
|
+ onCancel() {},
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ return {
|
|
|
+ submit,
|
|
|
+ loading,
|
|
|
+ };
|
|
|
+ },
|
|
|
+});
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less">
|
|
|
+.recover-custom {
|
|
|
+}
|
|
|
+</style
|
|
|
+>;
|