Commit 8cc7dd6ce1e2b86e6dd0f9adbaa9b9455e3320ca

Authored by fengwotao
1 parent 15132e56

feat:新增大屏设计器页面

... ... @@ -13,7 +13,7 @@
13 13 <script lang="ts">
14 14 import { defineComponent, ref, computed, unref } from 'vue';
15 15 import { BasicForm, useForm } from '/@/components/Form';
16   - import { formSchema, PC_DEFAULT_CONTENT, PHONE_DEFAULT_CONTENT, Platform } from './config';
  16 + import { formSchema, Platform } from './config';
17 17 import { BasicDrawer, useDrawerInner } from '/@/components/Drawer';
18 18 import { useMessage } from '/@/hooks/web/useMessage';
19 19 import { saveOrUpdateBigScreenCenter } from '/@/api/bigscreen/center/bigscreenCenter';
... ... @@ -21,7 +21,7 @@
21 21 import { buildUUID } from '/@/utils/uuid';
22 22
23 23 export default defineComponent({
24   - name: 'ConfigurationDrawer',
  24 + name: 'BigScreenDrawer',
25 25 components: { BasicDrawer, BasicForm },
26 26 emits: ['success', 'register'],
27 27 setup(_, { emit }) {
... ... @@ -56,9 +56,7 @@
56 56
57 57 const getDefaultContent = (platform: Platform) => {
58 58 if (platform === Platform.PC) {
59   - return PC_DEFAULT_CONTENT;
60 59 }
61   - return PHONE_DEFAULT_CONTENT;
62 60 };
63 61
64 62 async function handleSubmit() {
... ...
1   -import { BasicColumn, FormSchema } from '/@/components/Table';
  1 +import { FormSchema } from '/@/components/Table';
2 2 import { getOrganizationList } from '/@/api/system/system';
3 3 import { copyTransFun } from '/@/utils/fnUtils';
4 4 import { FileItem } from '/@/components/Form/src/components/ApiUpload.vue';
... ... @@ -17,53 +17,6 @@ export enum ConfigurationPermission {
17 17 PREVIEW = 'api:yt:dataview:center:get_configuration_info:preview',
18 18 }
19 19
20   -export const PC_DEFAULT_CONTENT =
21   - '<mxfile><diagram>dZHBDsIgDIafhvuEzOh5Tr142sEzGXWQsHVhmKFP7xbAidMT5fv/UtoSVrTuZHgvLyhAE5oJR9iBUMrybT4dM3l4stnTzJPGKBHYAir1hACj7a4EDInRImqr+hTW2HVQ24RxY3BMbTfUadWeN7ACVc31ml6VsPK7jVk4g2pkLJ3tgtLy6A5gkFzg+IFYSVhhEK2PWleAnscXB+Pzjn/U988MdPZHwhQsb0+XZEesfAE=</diagram></mxfile>';
22   -
23   -export const PHONE_DEFAULT_CONTENT =
24   - '<mxfile><diagram>dZHBEoIgEEC/hru6lXU2q0snD50Z2YQZdB2k0fr6dMCMsU4sb9+ysDDI6uFseCuvJFCzJBIDgyNLkjjdw7hM5OnIYRc5UBklvLSAQr3Qw1l7KIFdIFoibVUbwpKaBksbMG4M9aF2Jx12bXmFK1CUXK/pTQkrHd3E24VfUFXSd04hdYmaz65/SCe5oP4LQc4gM0TWRfWQoZ5mN4/F1Z3+ZD/3MtjYHwVjsJw9boIPgvwN</diagram></mxfile>';
25   -// 表格列数据
26   -export const columns: BasicColumn[] = [
27   - {
28   - title: '组态名称',
29   - dataIndex: 'name',
30   - width: 120,
31   - },
32   - {
33   - title: '所属组织',
34   - dataIndex: 'organizationDTO.name',
35   - width: 160,
36   - },
37   - {
38   - title: '平台',
39   - dataIndex: 'platform',
40   - width: 100,
41   - slots: { customRender: 'platform' },
42   - },
43   - {
44   - title: '备注',
45   - dataIndex: 'remark',
46   - width: 200,
47   - },
48   - {
49   - title: '创建时间',
50   - dataIndex: 'createTime',
51   - width: 120,
52   - },
53   - {
54   - title: '更新时间',
55   - dataIndex: 'updateTime',
56   - width: 120,
57   - },
58   - {
59   - title: '操作',
60   - dataIndex: 'action',
61   - flag: 'ACTION',
62   - width: 260,
63   - slots: { customRender: 'action' },
64   - },
65   -];
66   -
67 20 // 查询字段
68 21 export const searchFormSchema: FormSchema[] = [
69 22 {
... ...