PageConfig.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <div class="flex flex-col page-config-content">
  3. <el-card shadow="never">
  4. <div style="display: flex; justify-content: space-between">
  5. <el-input v-model="searchCom" class="search-btn w-50" placeholder="搜索公司主页">
  6. <template #suffix>
  7. <el-icon @click="searchPageConfig" @keyup.enter="searchPageConfig"><Search /></el-icon>
  8. </template>
  9. </el-input>
  10. <el-button
  11. style="width: 102px; background-color: rgb(24, 144, 255); border: none"
  12. type="primary"
  13. @click="broadcast"
  14. >
  15. 主页发布
  16. </el-button>
  17. </div>
  18. </el-card>
  19. <el-card shadow="never" class="flex-1" style="margin-top: 8px; overflow: auto">
  20. <PageMain />
  21. </el-card>
  22. </div>
  23. </template>
  24. <script lang="ts" setup>
  25. import { ref } from 'vue';
  26. import { ElMessage } from 'element-plus';
  27. import { Search } from '@element-plus/icons-vue';
  28. import PageMain from './component/PageMain.vue';
  29. const searchCom = ref('');
  30. const searchPageConfig = () => {};
  31. const broadcast = () => {
  32. ElMessage({
  33. message: '发布已勾选的主页',
  34. type: 'success',
  35. });
  36. };
  37. </script>
  38. <style lang="scss" sctep>
  39. .page-config-content {
  40. width: 100%;
  41. height: calc(100vh - 64px - 12px);
  42. }
  43. </style>