|
@@ -32,19 +32,15 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-import { defineComponent, onUnmounted, Ref, ref, watchEffect } from 'vue';
|
|
|
|
|
-
|
|
|
|
|
|
|
+import { defineComponent } from 'vue';
|
|
|
import { initData } from '@/common/methods/index';
|
|
import { initData } from '@/common/methods/index';
|
|
|
import filterCustomTable from '@/views/information/custom/compoments/filterTable/index.vue';
|
|
import filterCustomTable from '@/views/information/custom/compoments/filterTable/index.vue';
|
|
|
-import { MenuItem } from '@/common/components/contextMenu/interface';
|
|
|
|
|
import contextMenu from '@/common/components/contextMenu/index.vue';
|
|
import contextMenu from '@/common/components/contextMenu/index.vue';
|
|
|
import { getCustomList } from '../setup';
|
|
import { getCustomList } from '../setup';
|
|
|
-import { openModal } from '@/common/setup/modal/index';
|
|
|
|
|
import CustomDetail from '@/views/information/custom/compoments/detail/index.vue';
|
|
import CustomDetail from '@/views/information/custom/compoments/detail/index.vue';
|
|
|
import ModifyCustom from '@/views/information/custom/compoments/modify/index.vue';
|
|
import ModifyCustom from '@/views/information/custom/compoments/modify/index.vue';
|
|
|
import DisableCustom from '@/views/information/custom/compoments/disable/index.vue';
|
|
import DisableCustom from '@/views/information/custom/compoments/disable/index.vue';
|
|
|
import AddCustom from '@/views/information/custom/compoments/add/index.vue';
|
|
import AddCustom from '@/views/information/custom/compoments/add/index.vue';
|
|
|
-import { detailButton, permissionButton, handlePermission } from '@/common/setup/buttonPermission/index';
|
|
|
|
|
import { getBtnList } from '@/common/setup/contextMenu/index';
|
|
import { getBtnList } from '@/common/setup/contextMenu/index';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
@@ -59,16 +55,13 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
setup() {
|
|
setup() {
|
|
|
const { customList, actionQuery, columns, getColumns, search, loading } = getCustomList();
|
|
const { customList, actionQuery, columns, getColumns, search, loading } = getCustomList();
|
|
|
- const { hasPermission } = handlePermission('custom_info_normal');
|
|
|
|
|
const { commonBtn, forDataBtn } = getBtnList('custom_info_normal');
|
|
const { commonBtn, forDataBtn } = getBtnList('custom_info_normal');
|
|
|
|
|
|
|
|
- // const { openAction: addAction } = openModal('custom_info_btn_add');
|
|
|
|
|
-
|
|
|
|
|
initData(() => {
|
|
initData(() => {
|
|
|
actionQuery(3);
|
|
actionQuery(3);
|
|
|
getColumns();
|
|
getColumns();
|
|
|
});
|
|
});
|
|
|
- return { customList, columns, search, loading, commonBtn, forDataBtn, hasPermission };
|
|
|
|
|
|
|
+ return { customList, columns, search, loading, commonBtn, forDataBtn };
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|