diff --git a/src/api/crmApi.ts b/src/api/crmApi.ts index 7be3130..de53b28 100644 --- a/src/api/crmApi.ts +++ b/src/api/crmApi.ts @@ -26,7 +26,7 @@ export class CrmService { } //删除客户 static getcustomerdelete(params: any) { - return request.get({ + return request.get({ url: '/crm/customer/delete', params }) diff --git a/src/api/workApi.ts b/src/api/workApi.ts index 2abd077..5bd7469 100644 --- a/src/api/workApi.ts +++ b/src/api/workApi.ts @@ -39,13 +39,14 @@ export class WorkService { // showErrorMessage: false // 不显示错误消息 }) } - //工单状态下拉选择框 - static getStatus() { + //工单状态下拉选择框 + static getStatus(params: any) { return request.get({ - url: '/ticket/ticket/getStatus' + url: '/ticket/ticket/getStatus', + params }) } - //工单沟通记录 + //工单沟通记录 static getconversationList(params: any) { return request.get({ url: '/ticket/conversation/list', @@ -53,7 +54,7 @@ export class WorkService { }) } //添加工单记录 ticket/conversation/add - static conversationAdd(params:any) { + static conversationAdd(params: any) { return request.post({ url: '/ticket/conversation/add', params diff --git a/src/components/core/layouts/art-header-bar/index.vue b/src/components/core/layouts/art-header-bar/index.vue index 9809942..085a988 100644 --- a/src/components/core/layouts/art-header-bar/index.vue +++ b/src/components/core/layouts/art-header-bar/index.vue @@ -79,7 +79,7 @@ --> -
+ -
    +
    • {{ $t('topBar.user.userCenter') }}
    • -
    • +
    • + + 我的工单 +
    • + -
    • +
      {{ $t('topBar.user.logout') }} @@ -215,7 +222,7 @@ const settingStore = useSettingStore() const userStore = useUserStore() const router = useRouter() - + const { getUserInfo } = useUserStore() const { showMenuButton, showRefreshButton, @@ -229,7 +236,7 @@ tabStyle } = storeToRefs(settingStore) - const { language, getUserInfo: userInfo } = storeToRefs(userStore) + const { language } = storeToRefs(userStore) const { menuList } = storeToRefs(useMenuStore()) diff --git a/src/components/core/layouts/art-screen-lock/index.vue b/src/components/core/layouts/art-screen-lock/index.vue index f727352..adcc412 100644 --- a/src/components/core/layouts/art-screen-lock/index.vue +++ b/src/components/core/layouts/art-screen-lock/index.vue @@ -3,7 +3,10 @@
      - +
      {{ userInfo.userName }}
      @@ -32,7 +35,10 @@
      - +
      {{ userInfo.userName }}
      - + + + + + + @@ -16,7 +21,7 @@ - + @@ -39,7 +44,7 @@ - +
      - + @@ -197,11 +206,11 @@ // 处理表格分页变化 const handleSizeChange = (newPageSize: number) => { pagination.pageSize = newPageSize - // getWorkList() + gettableList() } const handleCurrentChange = (newCurrentPage: number) => { pagination.currentPage = newCurrentPage - // getWorkList() + gettableList() } function statusClass(status: any) { if (status === 0) return 'status-following' @@ -235,6 +244,23 @@ pagination.currentPage = 1 gettableList() } + //删除 + const delectfn = (row: any) => { + ElMessageBox.confirm('确定要删除此用户吗?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }) + .then(async () => { + const res = await CrmService.getcustomerdelete({ id: row.id }) + ElMessage.success(res?.message || '提交成功!') + gettableList() + // 你可以在这里调用接口或做后续处理 + }) + .catch(() => { + // 用户点击了取消 + }) + } \ No newline at end of file + diff --git a/src/views/work/order/index.vue b/src/views/work/order/index.vue index 8e6e55c..764cc1b 100644 --- a/src/views/work/order/index.vue +++ b/src/views/work/order/index.vue @@ -50,7 +50,7 @@ - + @@ -62,16 +62,20 @@ - + multiple + :limit="3" + :on-exceed="handleExceed" + > 上传 + +
      @@ -113,8 +117,17 @@
      -
      - +
      +
      发送 @@ -224,7 +243,7 @@ const statusList = ref() const getstatusList = async () => { try { // 这里调用获取品牌列表的接口 - const response = await WorkService.getStatus() + const response = await WorkService.getStatus({}) statusList.value = response || [] } catch (error) { } } @@ -381,7 +400,9 @@ const delCodeTrim = (content: string): string => { return content.replace(/(\s*)<\/code>/g, '') } //添加工单 - +const handleExceed = () => { + ElMessage.warning('最多上传3个文件') +} const uploadedFiles = ref([]) const handleUploadSuccess = (response: any, uploadFile: any, uploadFiles: any[]) => { // 只处理上传成功的文件