askbot-dragon 0.7.43 → 0.7.46
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
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div class="details-content">
|
|
11
11
|
<img
|
|
12
12
|
class="backgroundImg"
|
|
13
|
-
v-if="dataDetails.product.productImgPathes.length != 0"
|
|
13
|
+
v-if="dataDetails.product.productImgPathes && dataDetails.product.productImgPathes.length != 0"
|
|
14
14
|
:src="dataDetails.product.productImgPathes"
|
|
15
15
|
alt=""
|
|
16
16
|
/>
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
<i class="iconfont guoran-geren"></i>
|
|
56
56
|
<span
|
|
57
57
|
v-if="
|
|
58
|
+
dataDetails.users &&
|
|
58
59
|
dataDetails.users.length != 0 &&
|
|
59
60
|
dataDetails.users.type == 0 &&
|
|
60
61
|
dataDetails.users.bindType == 0
|
|
@@ -66,13 +67,14 @@
|
|
|
66
67
|
></ww-open-data>
|
|
67
68
|
</span>
|
|
68
69
|
<span v-else>
|
|
69
|
-
{{ dataDetails.users[0] ? dataDetails.users[0].name : "--" }}
|
|
70
|
+
{{ (dataDetails.users && dataDetails.users[0]) ? dataDetails.users[0].name : "--" }}
|
|
70
71
|
</span>
|
|
71
72
|
</p>
|
|
72
73
|
<p>
|
|
73
74
|
<i class="iconfont guoran-bumen"></i>
|
|
74
75
|
<span
|
|
75
76
|
v-if="
|
|
77
|
+
dataDetails.depts &&
|
|
76
78
|
dataDetails.depts.length != 0 &&
|
|
77
79
|
dataDetails.depts[0].wechatBotDTO &&
|
|
78
80
|
dataDetails.depts[0].wechatBotDTO.wechatType == 0 &&
|
|
@@ -85,13 +87,14 @@
|
|
|
85
87
|
></ww-open-data>
|
|
86
88
|
</span>
|
|
87
89
|
<span v-else>
|
|
88
|
-
{{ dataDetails.depts[0] ? dataDetails.depts[0].name : "--" }}
|
|
90
|
+
{{ (dataDetails.depts && dataDetails.depts[0]) ? dataDetails.depts[0].name : "--" }}
|
|
89
91
|
</span>
|
|
90
92
|
</p>
|
|
91
93
|
<p>
|
|
92
94
|
<i class="iconfont guoran-guanlizhe"></i>
|
|
93
95
|
<span
|
|
94
96
|
v-if="
|
|
97
|
+
dataDetails.managers &&
|
|
95
98
|
dataDetails.managers.length != 0 &&
|
|
96
99
|
dataDetails.managers.type == 0 &&
|
|
97
100
|
dataDetails.managers.bindType == 0
|
|
@@ -103,7 +106,7 @@
|
|
|
103
106
|
></ww-open-data>
|
|
104
107
|
</span>
|
|
105
108
|
<span>
|
|
106
|
-
{{ dataDetails.managers[0] ? dataDetails.managers[0].name : "--" }}
|
|
109
|
+
{{ (dataDetails.managers && dataDetails.managers[0]) ? dataDetails.managers[0].name : "--" }}
|
|
107
110
|
</span>
|
|
108
111
|
</p>
|
|
109
112
|
</div>
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
>{{items.label}}</el-checkbox>
|
|
111
111
|
</el-checkbox-group>
|
|
112
112
|
</div>
|
|
113
|
-
<div v-if="item.formField.type==='SELECT'">
|
|
113
|
+
<div v-if="item.formField.type==='SELECT' || item.formField.type==='OPTION'" >
|
|
114
114
|
<el-select
|
|
115
115
|
v-model=item.value
|
|
116
116
|
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
|
|
@@ -751,7 +751,7 @@ export default {
|
|
|
751
751
|
defaultClick() {
|
|
752
752
|
for (let i = 0; i < this.formList.form.formFieldRelation.length; i++)
|
|
753
753
|
{
|
|
754
|
-
if(this.formList.form.formFieldRelation[i].formField.type ==='SELECT'||this.formList.form.formFieldRelation[i].formField.type ==='CHECKBOX' ||this.formList.form.formFieldRelation[i].formField.type==='RADIO')
|
|
754
|
+
if(this.formList.form.formFieldRelation[i].formField.type ==='SELECT'||this.formList.form.formFieldRelation[i].formField.type ==='CHECKBOX' ||this.formList.form.formFieldRelation[i].formField.type==='RADIO' ||this.formList.form.formFieldRelation[i].formField.type==='OPTION')
|
|
755
755
|
{
|
|
756
756
|
if(!this.formList.form.formFieldRelation[i].formField.extInfo.option)
|
|
757
757
|
{
|
|
@@ -1192,7 +1192,7 @@ export default {
|
|
|
1192
1192
|
let selectOption
|
|
1193
1193
|
this.selectValue=[]
|
|
1194
1194
|
for (let i = 0; i < this.formShow.form.formFieldRelation.length; i++) {
|
|
1195
|
-
if(this.formShow.form.formFieldRelation[i].formField.type==='SELECT')
|
|
1195
|
+
if(this.formShow.form.formFieldRelation[i].formField.type==='SELECT' || this.formShow.form.formFieldRelation[i].formField.type==='OPTION')
|
|
1196
1196
|
{
|
|
1197
1197
|
if (this.formShow.form.formFieldRelation[i].fieldId === id) {
|
|
1198
1198
|
selectOption = this.formShow.form.formFieldRelation[i].formField.extInfo.option?this.formShow.form.formFieldRelation[i].formField.extInfo.option:this.formShow.form.formFieldRelation[i].formField.extInfo.options?this.formShow.form.formFieldRelation[i].formField.extInfo.options:[]
|