vue2-client 1.20.76 → 1.20.77

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": "vue2-client",
3
- "version": "1.20.76",
3
+ "version": "1.20.77",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -19,6 +19,7 @@
19
19
  >
20
20
  <a-input
21
21
  v-model="form[attr.model]"
22
+ autocomplete="off"
22
23
  :read-only="readOnly"
23
24
  :disabled="disabled && !readOnly"
24
25
  :whitespace="true"
@@ -57,6 +58,7 @@
57
58
  <a-input-number
58
59
  v-else-if="attr.numberInput && !readOnly"
59
60
  v-model="form[attr.model]"
61
+ autocomplete="off"
60
62
  :whitespace="true"
61
63
  @change="attr.dataChangeFunc && debouncedDataChangeFunc()"
62
64
  :disabled="disabled && !readOnly"
@@ -71,6 +73,7 @@
71
73
  <a-input
72
74
  v-else
73
75
  v-model="form[attr.model]"
76
+ autocomplete="off"
74
77
  :whitespace="true"
75
78
  :read-only="readOnly"
76
79
  :disabled="disabled && !readOnly"
@@ -370,6 +373,7 @@
370
373
  >
371
374
  <a-textarea
372
375
  v-model="form[attr.model]"
376
+ autocomplete="off"
373
377
  style="width: 100%"
374
378
  :readOnly="readOnly"
375
379
  :disabled="disabled"
@@ -551,6 +555,7 @@
551
555
  </template>
552
556
  <a-input
553
557
  v-model="form[attr.model]"
558
+ autocomplete="off"
554
559
  :placeholder="attr.placeholder ? attr.placeholder : '请输入' + attr.name.replace(/\s*/g, '')"
555
560
  @change="searchRowChooseData"
556
561
  @focus="showCloseRowChooseInput"
@@ -620,6 +625,7 @@
620
625
  <a-input
621
626
  v-if="mode === '查询'"
622
627
  v-model="form[attr.model]"
628
+ autocomplete="off"
623
629
  :whitespace="true"
624
630
  :read-only="readOnly"
625
631
  :disabled="disabled && !readOnly"
@@ -13,6 +13,7 @@
13
13
  serviceName="af-revenue"
14
14
  ref="xFormTable"
15
15
  :reserveSpaceForButtons="true"
16
+ @tableBaseEnter="tableBaseEnter"
16
17
  @addFormSubmit="addFormSubmit"
17
18
  ></x-form-table>
18
19
  </a-card>
@@ -29,7 +30,7 @@ export default {
29
30
  data() {
30
31
  return {
31
32
  // 查询配置文件名
32
- queryParamsName: 'MachineHandCRUD',
33
+ queryParamsName: 'MachineHandCRUD_Simple',
33
34
  // 查询配置左侧tree
34
35
  xTreeConfigName: 'addressType',
35
36
  // 新增表单固定值
@@ -48,6 +49,21 @@ export default {
48
49
  },
49
50
 
50
51
  methods: {
52
+ tableBaseEnter(...args) {
53
+ const [attr, value, currentRecord, currentIndex, nextRecord, nextIndex] = args
54
+ console.log('====>', attr, value, currentRecord, currentIndex, nextRecord, nextIndex)
55
+
56
+ console.log('当前行:', currentIndex, '下一行:', nextIndex)
57
+ if (!nextIndex) {
58
+ this.$message.warning('没有下一行')
59
+ return
60
+ }
61
+ // 跳转到下一行的同一列
62
+ this.$refs.xFormTable.$refs.xTable.focusInput(nextIndex, attr.model)
63
+ setTimeout(() => {
64
+ this.$refs.xFormTable.$refs.xTable.focusInput(nextIndex, attr.model)
65
+ }, 10)
66
+ },
51
67
  handleCustomQuery() {
52
68
  this.$refs.xFormTable.queryTable({
53
69
  uf_f_alias: 'XianFeng',
@@ -131,7 +131,7 @@
131
131
  <template v-if="item.actionArr && item.actionArr.length > 0">
132
132
  <a-dropdown
133
133
  :key="'action-' + c_index"
134
- trigger="click"
134
+ :trigger="['click']"
135
135
  placement="bottomRight"
136
136
  overlayClassName="x-table-action-dropdown"
137
137
  :getPopupContainer="getPopupContainer"