setting.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!--
  2. * @description: 外链
  3. * @Date: 2022-09-01 15:26:34
  4. * @Author: xingheng
  5. -->
  6. <template>
  7. <div>
  8. <el-form
  9. ref="form"
  10. label-width="100px"
  11. label-position="left"
  12. :model="config"
  13. >
  14. <SettingTitle>标题</SettingTitle>
  15. <div class="setting-wrap">
  16. <el-form-item
  17. label="标题"
  18. label-width="100px"
  19. >
  20. <el-input
  21. v-model="config.title"
  22. placeholder="请输入标题"
  23. />
  24. </el-form-item>
  25. </div>
  26. <SettingTitle>位置</SettingTitle>
  27. <div class="setting-wrap">
  28. <PosWhSetting :config="config" />
  29. </div>
  30. <SettingTitle>基础</SettingTitle>
  31. <div class="setting-wrap">
  32. <el-form-item
  33. label="链接"
  34. label-width="100px"
  35. >
  36. <el-input
  37. v-model="config.url"
  38. type="textarea"
  39. rows="4"
  40. placeholder="请输入链接"
  41. />
  42. </el-form-item>
  43. </div>
  44. </el-form>
  45. </div>
  46. </template>
  47. <script>
  48. import SettingTitle from 'packages/SettingTitle/index.vue'
  49. import PosWhSetting from 'packages/BigScreenDesign/RightSetting/PosWhSetting.vue'
  50. export default {
  51. name: 'IframeChartSetting',
  52. components: {
  53. PosWhSetting,
  54. SettingTitle
  55. },
  56. data () {
  57. return {
  58. }
  59. },
  60. computed: {
  61. config: {
  62. get () {
  63. return this.$store.state.bigScreen.activeItemConfig
  64. },
  65. set (val) {
  66. this.$store.state.bigScreen.activeItemConfig = val
  67. }
  68. }
  69. },
  70. watch: {
  71. },
  72. mounted () {},
  73. methods: {
  74. }
  75. }
  76. </script>
  77. <style lang="scss" scoped>
  78. @import "../../assets/style/settingWrap.scss";
  79. .setting-wrap{
  80. padding: 12px 16px;
  81. }
  82. </style>