askbot-dragon 1.5.77-beta → 1.5.79-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.5.77-beta",
3
+ "version": "1.5.79-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -13,7 +13,7 @@
13
13
  v-show="aiGuide.content.descriptionVisible && aiGuide.content.description !== ''"
14
14
  class="ig-types-des"
15
15
  >
16
- {{ aiGuide.content.description }}
16
+ <span v-html="aiGuide.content.description"></span>
17
17
  </div>
18
18
  <!-- 一级分类 -->
19
19
  <div v-show="aiGuide.content.typesVisible" class="ig-types-f">
@@ -239,7 +239,7 @@ export default {
239
239
  conditionList: [],
240
240
  content: {
241
241
  typesetting: "vertical", // 排版方式 vertical 竖向 horizontal 横向
242
- description: "", // 描述
242
+ description: "常见问题常<span>标签</span>见问题常见问题", // 描述
243
243
  descriptionVisible: true, // 是否展示描述
244
244
  typesVisible: true, // 是否展示分类信息
245
245
  groupVisible: true, // 是否分组展示
@@ -2080,8 +2080,10 @@ export default {
2080
2080
  let textFlag = true
2081
2081
  let imageFlag = true
2082
2082
  let attachmentFlag = true
2083
+ let imageOrAttachment = true
2083
2084
  let errorText = ''
2084
2085
  let checkDescription = {
2086
+ checkImageOrAttachment:this.workOrderDestail.checkImageOrAttachment ? this.workOrderDestail.checkImageOrAttachment : false,
2085
2087
  checkText:this.workOrderDestail.checkText ? this.workOrderDestail.checkText : false,
2086
2088
  checkImage:this.workOrderDestail.checkImage ? this.workOrderDestail.checkImage : false,
2087
2089
  checkAttachment:this.workOrderDestail.checkAttachment ? this.workOrderDestail.checkAttachment : false,
@@ -2099,6 +2101,11 @@ export default {
2099
2101
  d = null
2100
2102
  }
2101
2103
  }
2104
+ if(checkDescription.checkImageOrAttachment) {
2105
+ if(!this.workOrderDestail.value.includes('img') && this.attachments.length == 0) {
2106
+ imageOrAttachment = false
2107
+ }
2108
+ }
2102
2109
  if (checkDescription.checkImage && !this.workOrderDestail.value.includes('img')) {
2103
2110
  imageFlag = false
2104
2111
  }
@@ -2109,6 +2116,9 @@ export default {
2109
2116
  if (!textFlag) {
2110
2117
  errorText = text + '必须要有文字'
2111
2118
  }
2119
+ if(!imageOrAttachment) {
2120
+ errorText = text + '必须要有图片或附件'
2121
+ }
2112
2122
  if (!imageFlag) {
2113
2123
  errorText = text + '必须要有图片'
2114
2124
  }