|
@@ -2,7 +2,7 @@
|
|
<div>
|
|
<div>
|
|
<BasicTable @register="registerTable">
|
|
<BasicTable @register="registerTable">
|
|
<template #toolbar>
|
|
<template #toolbar>
|
|
- <a-button type="primary" @click="handleEdit" v-if="getCheckPerm('invoice-export')">
|
|
|
|
|
|
+ <a-button type="primary" @click="handleEdit" v-if="getCheckPerm('parameter-add')">
|
|
新增设备类型</a-button
|
|
新增设备类型</a-button
|
|
>
|
|
>
|
|
</template>
|
|
</template>
|
|
@@ -12,13 +12,13 @@
|
|
:actions="[
|
|
:actions="[
|
|
{
|
|
{
|
|
label: '编辑',
|
|
label: '编辑',
|
|
- //ifShow: getCheckPerm('account-equityEdit'),
|
|
|
|
|
|
+ ifShow: getCheckPerm('parameter-updata'),
|
|
onClick: handleEdit.bind(null, record),
|
|
onClick: handleEdit.bind(null, record),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: '删除',
|
|
label: '删除',
|
|
color: 'error',
|
|
color: 'error',
|
|
- //ifShow: getCheckPerm('account-equityDelete'),
|
|
|
|
|
|
+ ifShow: getCheckPerm('parameter-delet'),
|
|
onClick: handleDelete.bind(null, record),
|
|
onClick: handleDelete.bind(null, record),
|
|
},
|
|
},
|
|
]"
|
|
]"
|
|
@@ -29,34 +29,22 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
- import { defineComponent, h, reactive } from 'vue';
|
|
|
|
- import { BasicTable, useTable, TableAction, TableImg } from '/@/components/Table';
|
|
|
|
- import { PageWrapper } from '/@/components/Page';
|
|
|
|
|
|
+ import { defineComponent, h } from 'vue';
|
|
|
|
+ import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
|
import { useModal } from '/@/components/Modal';
|
|
import { useModal } from '/@/components/Modal';
|
|
import { Descriptions } from 'ant-design-vue';
|
|
import { Descriptions } from 'ant-design-vue';
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
- import { InvoiceList, InvoiceExport } from '/@/api/order';
|
|
|
|
- import { downloadByData } from '/@/utils/file/download';
|
|
|
|
|
|
+ import { modelingConfigList, modelingConfigDelete } from '/@/api/parameter';
|
|
import { searchForm, columns } from './data';
|
|
import { searchForm, columns } from './data';
|
|
import EditModal from './EditModal.vue';
|
|
import EditModal from './EditModal.vue';
|
|
import { usePermissionStore } from '/@/store/modules/permission';
|
|
import { usePermissionStore } from '/@/store/modules/permission';
|
|
- interface apiDataParam {
|
|
|
|
- orderSn?: string;
|
|
|
|
- payTimeStart?: string;
|
|
|
|
- payTimeEnd?: string;
|
|
|
|
- invoiceTimeStart?: string;
|
|
|
|
- invoiceTimeEnd?: string;
|
|
|
|
- orderBy?: string;
|
|
|
|
- sortBy?: string;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
components: {
|
|
components: {
|
|
EditModal,
|
|
EditModal,
|
|
BasicTable,
|
|
BasicTable,
|
|
TableAction,
|
|
TableAction,
|
|
- PageWrapper,
|
|
|
|
- TableImg,
|
|
|
|
[Descriptions.name]: Descriptions,
|
|
[Descriptions.name]: Descriptions,
|
|
[Descriptions.Item.name]: Descriptions.Item,
|
|
[Descriptions.Item.name]: Descriptions.Item,
|
|
},
|
|
},
|
|
@@ -64,19 +52,10 @@
|
|
const { t } = useI18n();
|
|
const { t } = useI18n();
|
|
const permissionStore = usePermissionStore();
|
|
const permissionStore = usePermissionStore();
|
|
const { getCheckPerm } = permissionStore;
|
|
const { getCheckPerm } = permissionStore;
|
|
- const apiData = reactive<apiDataParam>({
|
|
|
|
- orderSn: '',
|
|
|
|
- payTimeStart: '',
|
|
|
|
- payTimeEnd: '',
|
|
|
|
- invoiceTimeStart: '',
|
|
|
|
- invoiceTimeEnd: '',
|
|
|
|
- orderBy: '',
|
|
|
|
- sortBy: '',
|
|
|
|
- });
|
|
|
|
const { createMessage, createConfirm } = useMessage();
|
|
const { createMessage, createConfirm } = useMessage();
|
|
const [registerEditModal, { openModal: openEditModal }] = useModal();
|
|
const [registerEditModal, { openModal: openEditModal }] = useModal();
|
|
const [registerTable, { reload }] = useTable({
|
|
const [registerTable, { reload }] = useTable({
|
|
- api: InvoiceList,
|
|
|
|
|
|
+ api: modelingConfigList,
|
|
columns: columns,
|
|
columns: columns,
|
|
useSearchForm: true,
|
|
useSearchForm: true,
|
|
formConfig: searchForm,
|
|
formConfig: searchForm,
|
|
@@ -104,7 +83,7 @@
|
|
title: () => h('span', '温馨提示'),
|
|
title: () => h('span', '温馨提示'),
|
|
content: () => h('span', '确定要删除授权吗?'),
|
|
content: () => h('span', '确定要删除授权吗?'),
|
|
onOk: async () => {
|
|
onOk: async () => {
|
|
- await authorizeInstalldelete({ id: record.id });
|
|
|
|
|
|
+ await modelingConfigDelete({ id: record.id });
|
|
reload();
|
|
reload();
|
|
createMessage.success(t('common.optSuccess'));
|
|
createMessage.success(t('common.optSuccess'));
|
|
},
|
|
},
|