From 00f8e3336bb57a59f578a07b536a9a06d68917b1 Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Mon, 27 Feb 2023 16:03:25 +0800 Subject: [PATCH] =?UTF-8?q?:rocket:=20=E6=B6=88=E6=81=AF=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/push/pushThirdParty/index.vue | 3 + .../push/pushThirdParty/thirdParty.data.ts | 8 +- .../ThirdPartyManageModal.vue | 78 ---------- .../push/pushThirdPartyManage/index.vue | 135 ------------------ .../thirdPartyManage.data.ts | 126 ---------------- .../common/push/pushTodoThirdParty/index.vue | 2 +- 6 files changed, 7 insertions(+), 345 deletions(-) delete mode 100644 src/views/common/push/pushThirdPartyManage/ThirdPartyManageModal.vue delete mode 100644 src/views/common/push/pushThirdPartyManage/index.vue delete mode 100644 src/views/common/push/pushThirdPartyManage/thirdPartyManage.data.ts diff --git a/src/views/common/push/pushThirdParty/index.vue b/src/views/common/push/pushThirdParty/index.vue index f5f5a5f..7b4403c 100644 --- a/src/views/common/push/pushThirdParty/index.vue +++ b/src/views/common/push/pushThirdParty/index.vue @@ -90,6 +90,9 @@ slots: { customRender: 'action' }, fixed: false }, + searchInfo: { + status: '1' + }, handleSearchInfoFn: () => clearSelectedRowKeys() }); diff --git a/src/views/common/push/pushThirdParty/thirdParty.data.ts b/src/views/common/push/pushThirdParty/thirdParty.data.ts index 63b58d8..59a65d1 100644 --- a/src/views/common/push/pushThirdParty/thirdParty.data.ts +++ b/src/views/common/push/pushThirdParty/thirdParty.data.ts @@ -1,7 +1,5 @@ import { BasicColumn } from '/@/components/Table'; import { FormSchema } from '/@/components/Table'; -import { h } from 'vue'; -import { Tag } from 'ant-design-vue'; /** 表格列配置 */ export const columns: BasicColumn[] = [ @@ -11,7 +9,7 @@ export const columns: BasicColumn[] = [ }, { title: '企业名称', - dataIndex: 'enterpName' + dataIndex: 'entName' }, { title: '手机号', @@ -34,7 +32,7 @@ export const columns: BasicColumn[] = [ /** 搜索表单配置 */ export const searchFormSchema: FormSchema[] = [ { - field: 'enterpName', + field: 'entName', label: '企业名称', component: 'Input', componentProps: { @@ -65,7 +63,7 @@ export const formSchema: FormSchema[] = [ required: true, }, { - field: 'enterpName', + field: 'entName', label: '企业名称', component: 'Input', required: true, diff --git a/src/views/common/push/pushThirdPartyManage/ThirdPartyManageModal.vue b/src/views/common/push/pushThirdPartyManage/ThirdPartyManageModal.vue deleted file mode 100644 index bffe90f..0000000 --- a/src/views/common/push/pushThirdPartyManage/ThirdPartyManageModal.vue +++ /dev/null @@ -1,78 +0,0 @@ - - diff --git a/src/views/common/push/pushThirdPartyManage/index.vue b/src/views/common/push/pushThirdPartyManage/index.vue deleted file mode 100644 index 4474fda..0000000 --- a/src/views/common/push/pushThirdPartyManage/index.vue +++ /dev/null @@ -1,135 +0,0 @@ - - - diff --git a/src/views/common/push/pushThirdPartyManage/thirdPartyManage.data.ts b/src/views/common/push/pushThirdPartyManage/thirdPartyManage.data.ts deleted file mode 100644 index bb6af41..0000000 --- a/src/views/common/push/pushThirdPartyManage/thirdPartyManage.data.ts +++ /dev/null @@ -1,126 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; -import { FormSchema } from '/@/components/Table'; - -/** 表格列配置 */ -export const columns: BasicColumn[] = [ - { - title: '企业名称', - dataIndex: 'enterpName' - }, - { - title: '是否震动', - dataIndex: 'isVibration', - customRender: ({record}) => { - return ~~record?.isVibration === 0 ? '是' : '否'; - } - }, - { - title: '是否响铃', - dataIndex: 'isSound', - customRender: ({record}) => { - return ~~record?.isSound === 0 ? '是' : '否'; - } - }, - { - title: '自定义响铃', - dataIndex: 'customSound', - }, - { - title: '创建人', - dataIndex: 'createByName', - }, - { - title: '创建时间', - dataIndex: 'createTime', - width: 200 - } -]; - -/** 搜索表单配置 */ -export const searchFormSchema: FormSchema[] = [ - { - field: 'enterpName', - label: '企业名称', - component: 'Input', - componentProps: { - placeholder: '请输入企业名称', - }, - colProps: { span: 6 } - } -]; - -/** 表单配置 */ -export const formSchema: FormSchema[] = [ - { - field: 'id', - label: 'ID', - component: 'Input', - show: false - }, - { - field: 'enterpName', - label: '企业名称', - component: 'Input', - required: true, - colProps: { - span: 24 - } - }, - { - field: 'thirdPartyId', - label: '第三方ID', - component: 'Input', - required: true, - colProps: { - span: 12 - } - }, - { - field: 'pushTypeId', - label: '推送类型ID', - component: 'Input', - required: true, - colProps: { - span: 12 - } - }, - { - field: 'isVibration', - label: '是否震动', - component: 'RadioGroup', - defaultValue: '0', - componentProps: { - options: [ - { label: '是', value: '0' }, - { label: '否', value: '1' } - ] - }, - colProps: { - span: 12 - } - }, - { - field: 'isSound', - label: '是否响铃', - component: 'RadioGroup', - defaultValue: '0', - componentProps: { - options: [ - { label: '是', value: '0' }, - { label: '否', value: '1' } - ] - }, - colProps: { - span: 12 - } - }, - { - field: 'customSound', - label: '自定义响铃', - component: 'Input', - required: true, - colProps: { - span: 24 - } - }, -]; diff --git a/src/views/common/push/pushTodoThirdParty/index.vue b/src/views/common/push/pushTodoThirdParty/index.vue index fb90473..b54825e 100644 --- a/src/views/common/push/pushTodoThirdParty/index.vue +++ b/src/views/common/push/pushTodoThirdParty/index.vue @@ -84,7 +84,7 @@ fixed: false }, searchInfo: { - status: "0" + status: '0' }, handleSearchInfoFn: () => clearSelectedRowKeys() });