vue2-client 1.4.39 → 1.4.40

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/CHANGELOG.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.4.37 - 1.4.39 -2022-10-18 @苗艳强**
4
+ **1.4.37 - 1.4.40 -2022-10-28 @苗艳强**
5
5
  - 功能修改:
6
6
  - 新增文件列表展示组件
7
7
  - 新增图片列表展示组件
@@ -9,6 +9,8 @@
9
9
  - 图片列表展示组件新增宽度设置
10
10
  - 售后工单详情可查看问题描述、图片、附件
11
11
  - XFormTable可指定id进行修改操作
12
+ - 查询表单日期改为区间
13
+ - 日期选择器可设置时分秒
12
14
 
13
15
  **1.4.36 -2022-10-18 @江超**
14
16
  - 功能修改:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.4.39",
3
+ "version": "1.4.40",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -202,7 +202,14 @@
202
202
  :xl="xl"
203
203
  :xxl="xxl">
204
204
  <a-form-model-item :ref="attr.model" :label="attr.name" :prop="attr.model">
205
- <a-date-picker v-model="form[attr.model]" :disabled="disabled" :show-time="true" valueFormat="YYYY-MM-DD"/>
205
+ <a-range-picker
206
+ v-if="mode === '查询'"
207
+ v-model="form[attr.model]"
208
+ :disabled="disabled"
209
+ :show-time="{ defaultValue: [moment('00:00:00', 'HH:mm:ss'), moment('23:59:59', 'HH:mm:ss')] }"
210
+ format="YYYY-MM-DD"
211
+ valueFormat="YYYY-MM-DD HH:mm:ss" />
212
+ <a-date-picker v-else v-model="form[attr.model]" :disabled="disabled" :show-time="{ defaultValue: moment('00:00:00', 'HH:mm:ss') }" valueFormat="YYYY-MM-DD HH:mm:ss"/>
206
213
  </a-form-model-item>
207
214
  </x-form-col>
208
215
  <!-- 级联选择器 -->
@@ -292,6 +299,7 @@ import CitySelect from '@vue2-client/base-client/components/common/CitySelect'
292
299
  import PersonSetting from '@vue2-client/base-client/components/common/PersonSetting'
293
300
  import AddressSearchCombobox from '@vue2-client/base-client/components/common/AddressSearchCombobox'
294
301
  import Upload from '@vue2-client/base-client/components/common/Upload'
302
+ import moment from 'moment'
295
303
 
296
304
  export default {
297
305
  name: 'XFormItem',
@@ -312,7 +320,9 @@ export default {
312
320
  lastFetchId: 0,
313
321
  // 检索中
314
322
  searching: false,
315
- searchResult: ''
323
+ searchResult: '',
324
+ // moment
325
+ moment
316
326
  }
317
327
  },
318
328
  props: {
@@ -161,12 +161,12 @@ module.exports = {
161
161
  {
162
162
  label: '日期格式化',
163
163
  key: 'date',
164
- match: ['rangePicker']
164
+ match: ['rangePicker', 'datePicker']
165
165
  },
166
166
  {
167
167
  label: '日期时间格式化',
168
168
  key: 'dateTime',
169
- match: ['rangePicker']
169
+ match: ['rangePicker', 'datePicker']
170
170
  },
171
171
  {
172
172
  label: '操作列',
@@ -181,7 +181,7 @@ module.exports = {
181
181
  {
182
182
  label: '相等[=]',
183
183
  key: '=',
184
- match: ['input', 'select', 'radio', 'monthPicker', 'datePicker', 'selects', 'addressSearch', 'citySelect']
184
+ match: ['input', 'select', 'radio', 'monthPicker', 'selects', 'addressSearch', 'citySelect']
185
185
  },
186
186
  {
187
187
  label: '不相等[!=]',
@@ -206,22 +206,22 @@ module.exports = {
206
206
  {
207
207
  label: '大于[>]',
208
208
  key: '>',
209
- match: ['input', 'radio', 'monthPicker', 'datePicker']
209
+ match: ['input', 'radio', 'monthPicker']
210
210
  },
211
211
  {
212
212
  label: '大于等于[>=]',
213
213
  key: '>=',
214
- match: ['input', 'radio', 'monthPicker', 'datePicker']
214
+ match: ['input', 'radio', 'monthPicker']
215
215
  },
216
216
  {
217
217
  label: '小于[<]',
218
218
  key: '<',
219
- match: ['input', 'radio', 'monthPicker', 'datePicker']
219
+ match: ['input', 'radio', 'monthPicker']
220
220
  },
221
221
  {
222
222
  label: '小于等于[<=]',
223
223
  key: '<=',
224
- match: ['input', 'radio', 'monthPicker', 'datePicker']
224
+ match: ['input', 'radio', 'monthPicker']
225
225
  },
226
226
  {
227
227
  label: '包含[in]',
@@ -236,7 +236,7 @@ module.exports = {
236
236
  {
237
237
  label: '之间[between]',
238
238
  key: 'BETWEEN',
239
- match: ['rangePicker']
239
+ match: ['rangePicker', 'datePicker']
240
240
  }
241
241
  ],
242
242
  // 新增/修改场景类型