askbot-dragon 0.7.53 → 0.7.56

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": "0.7.53",
3
+ "version": "0.7.56",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -3,11 +3,11 @@
3
3
  <div class="asset-details">
4
4
  <section class="details-title">
5
5
  <p>您正在咨询</p>
6
- <span @click="rotateClick" :class="rotateFlag ? 'rotate' : ''">
6
+ <span v-if="!isThirdParty" @click="rotateClick" :class="rotateFlag ? 'rotate' : ''">
7
7
  <i class="arsenal_icon arsenalangle-up-solid"></i>
8
8
  </span>
9
9
  </section>
10
- <div class="details-content">
10
+ <div class="details-content" v-if="!isThirdParty">
11
11
  <img
12
12
  class="backgroundImg"
13
13
  v-if="dataDetails.product.productImgPathes && dataDetails.product.productImgPathes.length != 0"
@@ -33,7 +33,47 @@
33
33
  </section>
34
34
  </div>
35
35
  </div>
36
- <div class="details-content-hide" v-if="rotateFlag">
36
+ <div class="details-content" v-if="isThirdParty">
37
+ <img
38
+ class="backgroundImg"
39
+ v-if="dataDetails.product.productImgPathes && dataDetails.product.productImgPathes.length != 0"
40
+ :src="dataDetails.product.productImgPathes"
41
+ alt=""
42
+ />
43
+ <div class="background-null" v-else>
44
+ {{ dataDetails.name | filterName }}
45
+ </div>
46
+ <div class="content-text">
47
+ <p class="text-title">{{ dataDetails.name }}</p>
48
+ <section class="text-label">
49
+ <p class="text-type">
50
+ <i class="iconfont guoran-bumen"></i>
51
+ <span
52
+ v-if="
53
+ dataDetails.depts &&
54
+ dataDetails.depts.length != 0 &&
55
+ dataDetails.depts[0].wechatBotDTO &&
56
+ dataDetails.depts[0].wechatBotDTO.wechatType == 0 &&
57
+ dataDetails.depts[0].wechatBotDTO.bindType == 0
58
+ "
59
+ >
60
+ <ww-open-data
61
+ type="departmentName"
62
+ :openid="dataDetails.depts[0].name"
63
+ ></ww-open-data>
64
+ </span>
65
+ <span v-else>
66
+ {{ (dataDetails.depts && dataDetails.depts[0]) ? dataDetails.depts[0].name : "--" }}
67
+ </span>
68
+ </p>
69
+ <p class="text-SN">
70
+ <i class="iconfont guoran-tongyichicun-mingcheng"></i>
71
+ <span>{{ dataDetails.thirdAssetsCode ? dataDetails.thirdAssetsCode : "--" }}</span>
72
+ </p>
73
+ </section>
74
+ </div>
75
+ </div>
76
+ <div class="details-content-hide" v-if="rotateFlag && !isThirdParty">
37
77
  <p>
38
78
  <i class="iconfont guoran-miaoshu"></i>
39
79
  <section class="description">
@@ -109,7 +149,7 @@
109
149
  {{ (dataDetails.managers && dataDetails.managers[0]) ? dataDetails.managers[0].name : "--" }}
110
150
  </span>
111
151
  </p>
112
- </div>
152
+ </div>
113
153
  </div>
114
154
  </div>
115
155
  </template>
@@ -167,6 +207,9 @@ export default {
167
207
  }
168
208
  return dataDetails;
169
209
  },
210
+ isThirdParty() {
211
+ return this.data.assets.thirdAssetsCode
212
+ }
170
213
  },
171
214
  methods: {
172
215
  rotateClick() {
@@ -1142,7 +1142,7 @@ export default {
1142
1142
  this.formShow.form.formFieldRelation[i].value=value
1143
1143
  }
1144
1144
 
1145
- if(this.formShow.form.formFieldRelation[i].display===true && this.formShow.form.formFieldRelation[i].required === true&&this.formShow.form.formFieldRelation[i].fieldId!=='workorder_name'&& this.formShow.form.formFieldRelation[i].type !== 'EXPLANATION')
1145
+ if(this.formShow.form.formFieldRelation[i].display===true && this.formShow.form.formFieldRelation[i].required === true&&this.formShow.form.formFieldRelation[i].fieldId!=='workorder_name'&& this.formShow.form.formFieldRelation[i].formField.type !== 'EXPLANATION')
1146
1146
  {
1147
1147
 
1148
1148
  if(!this.formShow.form.formFieldRelation[i].value || (this.formShow.form.formFieldRelation[i].value&&this.formShow.form.formFieldRelation[i].value.length===0))