setting.vue 1.7 KB

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