jufubao-forms 1.0.0-beta8 → 1.0.0-beta9

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": "jufubao-forms",
3
- "version": "1.0.0-beta8",
3
+ "version": "1.0.0-beta9",
4
4
  "private": false,
5
5
  "description": "聚福宝表单业务插件库",
6
6
  "main": "index.js",
@@ -78,7 +78,7 @@
78
78
  :end="item.end_time"
79
79
  :border="false"
80
80
  placeholder="请选择日期"
81
- @change="handleClearError(item)">
81
+ @change="e => handleDateTimePicker(e, item)">
82
82
  </uni-datetime-picker>
83
83
  </template>
84
84
  <!-- <xd-form-date v-if="item.field_type === 'calendar'"
@@ -600,6 +600,10 @@
600
600
  this.$set(this.form, item.field_value, value);
601
601
  this.$set(item, "error", "")
602
602
  },
603
+ handleDateTimePicker(time, item){
604
+ this.$set(this.form, item.field_value, time);
605
+ this.$set(item, "error", "")
606
+ },
603
607
  doClose(){
604
608
  this.$xdUniHelper.navigateTo({
605
609
  url: this.submitPagePath
@@ -595,6 +595,9 @@
595
595
  this.tempRange.before = this.cale.multipleStatus.before
596
596
  this.tempRange.after = this.cale.multipleStatus.after
597
597
  }
598
+ if(this.hasTime && !this.time) {
599
+ this.time = getTime(new Date(), this.hideSecond)
600
+ }
598
601
  this.change()
599
602
  },
600
603
  changeMonth(type) {
@@ -19,6 +19,18 @@ export default {
19
19
  },
20
20
  inline: false,
21
21
  },
22
+ {
23
+ label: "问卷列表跳转路径",
24
+ ele: 'xd-select-pages-path',
25
+ valueKey: 'qaListPath',
26
+ groupKey:'advanced',
27
+ placeholder: '请选择问卷详情跳转路径',
28
+ value: data['qaListPath'] || null,
29
+ setting: {
30
+ router: XdBus.getParentApi('getPagesTree'),
31
+ },
32
+ inline: false,
33
+ },
22
34
  ].filter(i=>i)
23
35
  },
24
36
  advanced: [],
@@ -81,10 +81,11 @@
81
81
  </view>
82
82
  </view>
83
83
  <view v-if="form_status === 'error'" class="form_status form_error">
84
- <xd-font-icon icon="iconshibai" color="#ff5235" :size="64"></xd-font-icon>
85
- <view class="status_tip error_tip">{{ err_msg }}</view>
86
- <view class="status_name">{{ formName }}</view>
87
- <view class="status_btn" @click="doClose" style="border-radius: 8rpx;">关闭</view>
84
+ <!-- <xd-font-icon icon="iconshibai" color="#ff5235" :size="64"></xd-font-icon> -->
85
+ <image class="empty_image" :src="emptyImage" mode="widthFix"></image>
86
+ <view class="status_tip error_tip" style="color: #333333;">{{ err_msg }}</view>
87
+ <!-- <view class="status_name">{{ formName }}</view> -->
88
+ <view class="status_btn" @click="toQaList" style="border-radius: 8rpx;margin-top: 100rpx;">返回列表</view>
88
89
  </view>
89
90
  </view>
90
91
 
@@ -103,6 +104,7 @@
103
104
  import componentsMixins from "@/mixins/componentsMixins";
104
105
  import extsMixins from "@/mixins/extsMixins";
105
106
  import Color from "color"
107
+ import getServiceUrl from '@/common/getServiceUrl'
106
108
  export default {
107
109
  name: "JfbFormsQuestionAndAnswer",
108
110
  components: {
@@ -125,7 +127,8 @@
125
127
  marketing_tool: "",
126
128
  activity_page_url: "",
127
129
  activity_id: "",
128
-
130
+ emptyImage: getServiceUrl('/common/empty/qa.png'),
131
+
129
132
  value: [],
130
133
  qaValue: "",
131
134
 
@@ -136,6 +139,7 @@
136
139
  //todo
137
140
 
138
141
  qaResultPath: "",
142
+ qaListPath: "",
139
143
  }
140
144
  },
141
145
  computed: {
@@ -263,6 +267,7 @@
263
267
  */
264
268
  init(container) {
265
269
  this.qaResultPath = getContainerPropsValue(container, 'content.qaResultPath', {value: ''}).value;
270
+ this.qaListPath = getContainerPropsValue(container, 'content.qaListPath', {value: ""}).value;
266
271
  },
267
272
  handlePrev(){
268
273
  if(this.curIndex > 0){
@@ -282,6 +287,11 @@
282
287
  window.location.href = 'about:blank';
283
288
  window.close();
284
289
  },
290
+ toQaList(){
291
+ this.$xdUniHelper.redirectTo({
292
+ url: this.qaListPath
293
+ })
294
+ },
285
295
  p_submitQaForm(){
286
296
  uni.showModal({
287
297
  title: '提示',
@@ -494,6 +504,13 @@
494
504
  flex-direction: column;
495
505
  align-items: center;
496
506
  padding-top: 100rpx;
507
+ .empty_image{
508
+ width: 500rpx;
509
+
510
+ image{
511
+ width: 100%;
512
+ }
513
+ }
497
514
  .status_tip{
498
515
  color: #06bc85;
499
516
  margin-top: 32rpx;