fastGptKeyWordDetails.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <div style="background-color: #f0f2f5; padding-bottom: 20px; min-height: 100%; " >
  3. <div style="padding: 20px; background-color: #fff;">
  4. 营销指令内容
  5. </div>
  6. <!-- 使用 el-form 包裹表单项 -->
  7. <el-form label-width="120px" style="padding: 20px;">
  8. <!-- 发送文字内容 -->
  9. <el-form-item label="发送文字内容" >
  10. <div class="el-form-item__content readonly-field" style="line-height: 28px;">
  11. {{ form.content || '-' }}
  12. </div>
  13. </el-form-item>
  14. <!-- 图片访问地址 -->
  15. <el-form-item label="图片访问地址">
  16. <div class="el-form-item__content readonly-field">
  17. <div v-if="form.contentType !== 0 && form.imgUrl && form.imgUrl.trim()">
  18. <el-image
  19. v-for="(url, index) in form.imgUrl.split(',')"
  20. :key="index"
  21. :src="url" style="width: 100px; height: 100px; margin-right: 10px;"
  22. fit="cover"
  23. >
  24. <div slot="error" class="image-slot">
  25. <i class="el-icon-picture-outline"></i>
  26. </div>
  27. </el-image>
  28. </div>
  29. <div v-else class="el-form-item__content" style="line-height: 28px;">-</div>
  30. </div>
  31. </el-form-item>
  32. </el-form>
  33. </div>
  34. </template>
  35. <script>
  36. import {getFastGptKeywordSend} from "@/api/fastGpt/fastGptKeywordSend";
  37. export default {
  38. name: "fastGptChatMsgDetails",
  39. data() {
  40. return {
  41. open:false,
  42. logsOpen:false,
  43. roles:[],
  44. msgList:[],
  45. item:null,
  46. form: {
  47. content: '',
  48. imgUrl: ''
  49. },
  50. queryParams: {
  51. pageNum: 1,
  52. pageSize: 10,
  53. keyword: null,
  54. content: null,
  55. contentType: null,
  56. imgUrl: null,
  57. status: null,
  58. roleId: null,
  59. createTime: null,
  60. }
  61. }
  62. },
  63. methods: {
  64. getDetails(id) {
  65. getFastGptKeywordSend(id).then(response => {
  66. console.log(response);
  67. this.form = response.data;
  68. });
  69. },
  70. cancel(){
  71. this.open = false;
  72. }
  73. }
  74. }
  75. </script>
  76. <style>
  77. .readonly-field {
  78. background-color: #fafafa;
  79. padding: 10px;
  80. border-radius: 4px;
  81. }
  82. .contentx{
  83. height: 100%;
  84. background-color: #fff;
  85. padding: 0px 20px 20px;
  86. margin: 20px;
  87. }
  88. .el-descriptions-item__label.is-bordered-label{
  89. font-weight: normal;
  90. }
  91. .el-descriptions-item__content {
  92. max-width: 150px;
  93. min-width: 100px;
  94. }
  95. .desct{
  96. padding-top: 20px;
  97. padding-bottom: 20px;
  98. color: #524b4a;
  99. font-weight: bold;
  100. }
  101. .padding-a{
  102. padding-right: 10px;
  103. }
  104. </style>