askbot-dragon 0.7.98 → 0.8.12
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
|
@@ -1633,6 +1633,7 @@ export default {
|
|
|
1633
1633
|
"cascadeDown":{
|
|
1634
1634
|
"options":[
|
|
1635
1635
|
{
|
|
1636
|
+
checked:true,
|
|
1636
1637
|
"_default":false,
|
|
1637
1638
|
"optionStruct":{
|
|
1638
1639
|
"d63aeeef437e4186af4a2efcd7a6a31b":[
|
|
@@ -1662,6 +1663,7 @@ export default {
|
|
|
1662
1663
|
},
|
|
1663
1664
|
"children":[
|
|
1664
1665
|
{
|
|
1666
|
+
checked:true,
|
|
1665
1667
|
"_default":false,
|
|
1666
1668
|
"optionStruct":{
|
|
1667
1669
|
"d63aeeef437e4186af4a2efcd7a6a31b":[
|
|
@@ -1691,6 +1693,7 @@ export default {
|
|
|
1691
1693
|
},
|
|
1692
1694
|
"children":[
|
|
1693
1695
|
{
|
|
1696
|
+
checked:true,
|
|
1694
1697
|
"_default":false,
|
|
1695
1698
|
"optionStruct":{
|
|
1696
1699
|
"d63aeeef437e4186af4a2efcd7a6a31b":[
|
|
@@ -1742,6 +1745,7 @@ export default {
|
|
|
1742
1745
|
]
|
|
1743
1746
|
},
|
|
1744
1747
|
{
|
|
1748
|
+
checked:true,
|
|
1745
1749
|
"_default":false,
|
|
1746
1750
|
"optionStruct":{
|
|
1747
1751
|
"d63aeeef437e4186af4a2efcd7a6a31b":[
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
<ckeditor
|
|
56
56
|
:editor="ckeditor.editor"
|
|
57
57
|
v-model="item.value"
|
|
58
|
-
:config="ckeditor.editorConfig"
|
|
58
|
+
:config="{...ckeditor.editorConfig,placeholder:item.formField.extInfo && item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请输入'}"
|
|
59
59
|
v-else-if="item.fieldId==='workorder_description'"
|
|
60
60
|
></ckeditor>
|
|
61
61
|
<el-date-picker
|
|
@@ -210,13 +210,16 @@
|
|
|
210
210
|
@visible-change="(visible) =>{ return refTemplateVisibleChange(visible,item) }"
|
|
211
211
|
collapse-tags
|
|
212
212
|
@change="changeRefData($event,item)"
|
|
213
|
+
@focus="setOptionWidth"
|
|
213
214
|
>
|
|
214
215
|
<template v-for="(items,index) in refTemplateList[item.fieldId]">
|
|
215
216
|
<el-option
|
|
216
217
|
v-if="refTemplateList[item.fieldId]"
|
|
217
218
|
:key="index"
|
|
218
219
|
:label="items.name"
|
|
219
|
-
:value="items.id"
|
|
220
|
+
:value="items.id"
|
|
221
|
+
:style="{width:selectOptionWidth}"
|
|
222
|
+
>
|
|
220
223
|
</el-option>
|
|
221
224
|
</template>
|
|
222
225
|
<div
|
|
@@ -279,7 +282,7 @@
|
|
|
279
282
|
:editor="ckeditor.editor"
|
|
280
283
|
v-model="item.value"
|
|
281
284
|
@onReady="onReady"
|
|
282
|
-
:config="ckeditor.editorConfig"
|
|
285
|
+
:config="{...ckeditor.editorConfig,placeholder:item.formField.extInfo && item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请输入'}"
|
|
283
286
|
></ckeditor>
|
|
284
287
|
</div>
|
|
285
288
|
</div>
|
|
@@ -451,7 +454,7 @@
|
|
|
451
454
|
:required="item.required || isRequiredFn(item.formField)"
|
|
452
455
|
:disabled="disableds"
|
|
453
456
|
@click-right-icon.stop="SelectClear(item.fieldId)"
|
|
454
|
-
:right-icon="item.value
|
|
457
|
+
:right-icon="item.value && item.value.length? 'close' : 'van-icon van-icon-arrow van-cell__right-icon'"
|
|
455
458
|
/>
|
|
456
459
|
<van-popup v-model="selectPicker" position="bottom" :style="{ height: '300px' }">
|
|
457
460
|
<select-popup
|
|
@@ -473,7 +476,7 @@
|
|
|
473
476
|
<van-field
|
|
474
477
|
readonly
|
|
475
478
|
clickable
|
|
476
|
-
:value="Array.isArray(extInfoFieldValue[item.fieldId])?extInfoFieldValue[item.fieldId].join(','):extInfoFieldValue[item.fieldId]"
|
|
479
|
+
:value="Array.isArray(extInfoFieldValue[item.fieldId])?extInfoFieldValue[item.fieldId].map(v=>v.name).join(','):(extInfoFieldValue[item.fieldId] && extInfoFieldValue[item.fieldId].name?extInfoFieldValue[item.fieldId].name:'')"
|
|
477
480
|
:label="item.formField.name"
|
|
478
481
|
name="picker"
|
|
479
482
|
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
|
|
@@ -481,7 +484,7 @@
|
|
|
481
484
|
@click-right-icon.stop="SelectClear(item.fieldId)"
|
|
482
485
|
:required="item.required || isRequiredFn(item.formField)"
|
|
483
486
|
:disabled="disableds"
|
|
484
|
-
:right-icon="extInfoFieldValue[item.fieldId]? 'close' : 'van-icon van-icon-arrow van-cell__right-icon'"
|
|
487
|
+
:right-icon="extInfoFieldValue[item.fieldId] && extInfoFieldValue[item.fieldId].length? 'close' : 'van-icon van-icon-arrow van-cell__right-icon'"
|
|
485
488
|
/>
|
|
486
489
|
<van-popup v-model="refShowPicker" position="bottom" :style="{ height: '300px' }">
|
|
487
490
|
<select-popup
|
|
@@ -721,7 +724,8 @@ export default {
|
|
|
721
724
|
defaultValue:[],
|
|
722
725
|
timeDetailData:{},
|
|
723
726
|
selectDetail:{},
|
|
724
|
-
refDefaultValue:{}
|
|
727
|
+
refDefaultValue:{},
|
|
728
|
+
selectOptionWidth:null,
|
|
725
729
|
}
|
|
726
730
|
},
|
|
727
731
|
props: {
|
|
@@ -1214,7 +1218,7 @@ export default {
|
|
|
1214
1218
|
if (!this.formList.form.formFieldRelation[i].formField.extInfo.mold ||
|
|
1215
1219
|
this.formList.form.formFieldRelation[i].formField.extInfo.mold == 'TIME' ||
|
|
1216
1220
|
this.getMoldTime(this.formList.form.formFieldRelation[i].formField.formField) == 'TIME'){
|
|
1217
|
-
this.extInfoFieldValue[this.formList.form.formFieldRelation[i].fieldId]=dateTime
|
|
1221
|
+
this.extInfoFieldValue[this.formList.form.formFieldRelation[i].fieldId]= dateTime
|
|
1218
1222
|
}
|
|
1219
1223
|
else if (this.formList.form.formFieldRelation[i].formField.extInfo.mold == 'DATA_TIME' ||
|
|
1220
1224
|
this.formList.form.formFieldRelation[i].formField.extInfo.mold == 'DATE_TIME' ||
|
|
@@ -1903,7 +1907,7 @@ export default {
|
|
|
1903
1907
|
let fields = field.formField.type === 'REF' ? field.formField.extInfo.ref.field : field.formField.extInfo.ref.vars
|
|
1904
1908
|
if (visible) {
|
|
1905
1909
|
if (
|
|
1906
|
-
!this.
|
|
1910
|
+
!this.refNextPage[field.fieldId] || this.refNextPage[field.fieldId].hasNextPage
|
|
1907
1911
|
) {
|
|
1908
1912
|
this.$set(this.refTemplateList, field.fieldId, [])
|
|
1909
1913
|
!this.dataQuery[field.fieldId] && this.$set(this.dataQuery,field.fieldId, {
|
|
@@ -1954,6 +1958,9 @@ export default {
|
|
|
1954
1958
|
}
|
|
1955
1959
|
this.extInfoFieldValue[item.fieldId] = arr
|
|
1956
1960
|
},
|
|
1961
|
+
setOptionWidth(){
|
|
1962
|
+
this.selectOptionWidth = event.srcElement.offsetParent.offsetWidth + 40 + "px";
|
|
1963
|
+
},
|
|
1957
1964
|
lodeMore(item) {
|
|
1958
1965
|
this.dataQuery[item.fieldId].pageInfo.pageNo += 1
|
|
1959
1966
|
this.refTemplateVisibleChange(true,item)
|
|
@@ -2088,22 +2095,22 @@ export default {
|
|
|
2088
2095
|
},
|
|
2089
2096
|
//保存ref类型值
|
|
2090
2097
|
confirmRefSelect(option, list){
|
|
2091
|
-
console.debug('options',option,list)
|
|
2098
|
+
console.debug('options',option,list,this.selectDetail)
|
|
2092
2099
|
if (!option || !list){
|
|
2093
2100
|
this.refShowPicker = false;
|
|
2094
2101
|
return
|
|
2095
2102
|
}
|
|
2096
|
-
this.
|
|
2103
|
+
this.selectDetail.value = list;
|
|
2097
2104
|
let val = ''
|
|
2098
2105
|
if (Array.isArray(option)){
|
|
2099
2106
|
val = option.map(item=>{
|
|
2100
2107
|
return item.id
|
|
2101
2108
|
})
|
|
2102
|
-
this.extInfoFieldValue[this.
|
|
2109
|
+
this.extInfoFieldValue[this.selectDetail.fieldId] = option
|
|
2103
2110
|
}
|
|
2104
2111
|
else {
|
|
2105
2112
|
val = option.id
|
|
2106
|
-
this.extInfoFieldValue[this.
|
|
2113
|
+
this.extInfoFieldValue[this.selectDetail.fieldId] = [option]
|
|
2107
2114
|
}
|
|
2108
2115
|
this.refShowPicker = false;
|
|
2109
2116
|
},
|