w-ui-v1 1.0.91 → 1.0.93

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/index.ts CHANGED
@@ -21,6 +21,7 @@ import {menu} from './utils/apis/menu'
21
21
  import request from './utils/http'
22
22
  import nfc from './utils/nfc'
23
23
  import iData from './utils/idata-scan'
24
+ import {getPageKey,getDataTotal} from './utils/apis/pageConfig'
24
25
  const coms: any[] = [
25
26
  wTest,
26
27
  wLogin,
@@ -51,6 +52,8 @@ export const api={
51
52
  request,
52
53
  menu,
53
54
  nfc,
54
- iData
55
+ iData,
56
+ getPageKey,
57
+ getDataTotal
55
58
  }
56
59
  export default install // 这个方法以后再使用的时候可以被vue.use调用
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-ui-v1",
3
- "version": "1.0.91",
3
+ "version": "1.0.93",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
@@ -68,6 +68,13 @@ export function getPageData(queryKey: string, pageNo: number, pageSize: number)
68
68
  })
69
69
  }
70
70
 
71
+ //获取数据总数
72
+ export function getDataTotal(queryKey:string){
73
+ return request({
74
+ url: `/v3/ltmpl/query/count?queryKey=${queryKey}`,
75
+ })
76
+ }
77
+
71
78
  // 获取当前页总条数
72
79
  export function getPageTotal(queryKey: string) {
73
80
  return request({
@@ -1,56 +1,56 @@
1
1
  <template>
2
2
  <view v-if="!subItem.hidden" style="border-bottom: 1px solid rgb(243 242 242);">
3
3
 
4
- <wd-picker v-if="subItem.controlType === 'select'&&subItem.extControlType === 'yes-no-switch'" :readonly="subItem.disabled" :label="subItem.title"
4
+ <wd-picker v-if="subItem.controlType === 'select'&&subItem.extControlType === 'yes-no-switch'" :disabled="subItem.disabled" :label="subItem.title"
5
5
  label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue"
6
6
  :placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
7
7
  :rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" :columns="Enumcolumn[subItem.mstrucId]"
8
8
  @confirm="(e) => { change(e) }" @clear="clear" />
9
9
 
10
- <wd-picker v-else-if="subItem.controlType === 'radio'&&subItem.extControlType === 'yes-no-switch'" :readonly="subItem.disabled" :label="subItem.title"
10
+ <wd-picker v-else-if="subItem.controlType === 'radio'&&subItem.extControlType === 'yes-no-switch'" :disabled="subItem.disabled" :label="subItem.title"
11
11
  label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue"
12
12
  :placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
13
13
  :rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" :columns="['是','否']"
14
14
  @confirm="(e) => { change(e) }" @clear="clear" />
15
15
 
16
- <wd-picker v-else-if="subItem.extControlType === 'yes-no-radio'" :readonly="subItem.disabled" :label="subItem.title"
16
+ <wd-picker v-else-if="subItem.extControlType === 'yes-no-radio'" :disabled="subItem.disabled" :label="subItem.title"
17
17
  label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue"
18
18
  :placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
19
19
  :rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" :columns="['是','否']"
20
20
  @confirm="(e) => { change(e) }" @clear="clear" />
21
- <wd-picker v-else-if="subItem.extControlType === 'yes-no-switch'" :readonly="subItem.disabled" :label="subItem.title"
21
+ <wd-picker v-else-if="subItem.extControlType === 'yes-no-switch'" :disabled="subItem.disabled" :label="subItem.title"
22
22
  label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue"
23
23
  :placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
24
24
  :rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" :columns="['是','否']"
25
25
  @confirm="(e) => { change(e) }" @clear="clear" />
26
26
 
27
- <wd-select-picker v-else-if="subItem.controlType === 'select'&&subItem.extControlType === 'multiselect'" :readonly="subItem.disabled" :label="subItem.title"
27
+ <wd-select-picker v-else-if="subItem.controlType === 'select'&&subItem.extControlType === 'multiselect'" :disabled="subItem.disabled" :label="subItem.title"
28
28
  label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue"
29
29
  :placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
30
30
  :rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" :columns="Enumcolumn[subItem.mstrucId]?.map((item:any)=>({...item,label:item.title}))"
31
31
  @confirm="(e) => { change(e) }" @clear="clear" />
32
32
 
33
33
 
34
- <wd-calendar :display-format="displayFormat1" v-else-if="props.subItem.controlType==='datetime'&&props.subItem.extControlType==='datetimerange'" :readonly="subItem.disabled" :label="subItem.title"
34
+ <wd-calendar :display-format="displayFormat1" v-else-if="props.subItem.controlType==='datetime'&&props.subItem.extControlType==='datetimerange'" :disabled="subItem.disabled" :label="subItem.title"
35
35
  label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue" type="datetimerange"
36
36
  :placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
37
37
  :rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" @confirm="(e) => { change(e) }"
38
38
  @clear="clear" />
39
39
 
40
40
 
41
- <wd-calendar v-else-if="subItem.controlType === 'datetime'" :readonly="subItem.disabled" :label="subItem.title"
41
+ <wd-calendar v-else-if="subItem.controlType === 'datetime'" :disabled="subItem.disabled" :label="subItem.title"
42
42
  label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue" type="datetime"
43
43
  :placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
44
44
  :rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" @confirm="(e) => { change(e) }"
45
45
  @clear="clear" />
46
46
 
47
- <wd-calendar v-else-if="subItem.extControlType === 'datetime'" :readonly="subItem.disabled" :label="subItem.title"
47
+ <wd-calendar v-else-if="subItem.extControlType === 'datetime'" :disabled="subItem.disabled" :label="subItem.title"
48
48
  label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue" type="datetime"
49
49
  :placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
50
50
  :rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" @confirm="(e) => { change(e) }"
51
51
  @clear="clear" />
52
52
 
53
- <wd-calendar v-else-if="subItem.controlType === 'daterange'&&subItem.extControlType === 'daterange'" :readonly="subItem.disabled" :label="subItem.title"
53
+ <wd-calendar v-else-if="subItem.controlType === 'daterange'&&subItem.extControlType === 'daterange'" :disabled="subItem.disabled" :label="subItem.title"
54
54
  label-width="100px" :display-format="displayFormat2" :prop="subItem.id" clearable :modelValue="modelValue" type="daterange"
55
55
  :placeholder="subItem.disabled ? '无需输入' : `请选择${subItem.title}`"
56
56
  :rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" @confirm="(e) => { change(e) }"
@@ -59,7 +59,7 @@
59
59
  <wd-cell v-else-if="(subItem.controlType === 'textarea'&&subItem.extControlType==='relselectvalue')||subItem.extControlType === 'entity-select'" title-width="100px" :prop="subItem.id"
60
60
  :rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" :title="subItem.title">
61
61
  <view style="text-align: left">
62
- <wSelectPicker @confirm="wSelectPickerconfirm" :modelValue="modelValue" :readonly="subItem.disabled"
62
+ <wSelectPicker @confirm="wSelectPickerconfirm" :modelValue="modelValue" :disabled="subItem.disabled"
63
63
  :type="'checkbox'"
64
64
  :placeholder="subItem.disabled ? '无需输入' : `请输入${subItem.title}`" :source-id="subItem.sourceId" filterable
65
65
  @clear="clear" clearable />
@@ -68,7 +68,7 @@
68
68
  <wd-cell v-else-if="subItem.controlType === 'text'&&subItem.extControlType==='relselectvalue'" title-width="100px" :prop="subItem.id"
69
69
  :rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" :title="subItem.title">
70
70
  <view style="text-align: left">
71
- <wSelectPicker @confirm="wSelectPickerconfirm" :modelValue="modelValue" :readonly="subItem.disabled"
71
+ <wSelectPicker @confirm="wSelectPickerconfirm" :modelValue="modelValue" :disabled="subItem.disabled"
72
72
  :type="'checkbox'"
73
73
  :placeholder="subItem.disabled ? '无需输入' : `请输入${subItem.title}`" :source-id="subItem.sourceId" filterable
74
74
  @clear="clear" clearable />
@@ -77,7 +77,7 @@
77
77
  <wd-cell v-else-if="subItem.extControlType === 'relselect'" title-width="100px" :prop="subItem.id"
78
78
  :rules="[{ required: subItem.required, message: `请选择${subItem.title}` }]" :title="subItem.title">
79
79
  <view style="text-align: left">
80
- <wSelectPicker @confirm="wSelectPickerconfirm" :modelValue="modelValue" :readonly="subItem.disabled"
80
+ <wSelectPicker @confirm="wSelectPickerconfirm" :modelValue="modelValue" :disabled="subItem.disabled"
81
81
  :max="subItem.max==='1'?1:0"
82
82
  :placeholder="subItem.disabled ? '无需输入' : `请输入${subItem.title}`" :source-id="subItem.sourceId" filterable
83
83
  @clear="clear" clearable />
@@ -92,13 +92,13 @@
92
92
  :file-list="modelValue" :disabled="subItem.disabled" :action="`${baseUrl}/v3/upload`"
93
93
  @success="success"></wd-upload>
94
94
  </wd-cell>
95
- <wd-input v-else-if="subItem.controlType === 'text'" :readonly="subItem.disabled" :label="subItem.title"
95
+ <wd-input v-else-if="subItem.controlType === 'text'" :disabled="subItem.disabled" :label="subItem.title"
96
96
  label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue"
97
97
  :placeholder="subItem.disabled ? '无需输入' : `请输入${subItem.title}`"
98
98
  :rules="[{ required: subItem.required, message: `请填写${subItem.title}` }]" @input="(e) => { change(e) }"
99
99
  @clear="clear" />
100
100
  <wd-input v-else-if="subItem.controlType === 'decimal' || subItem.controlType === 'int'"
101
- :readonly="subItem.disabled" :label="subItem.title" label-width="100px" :prop="subItem.id" clearable
101
+ :disabled="subItem.disabled" :label="subItem.title" label-width="100px" :prop="subItem.id" clearable
102
102
  :modelValue="modelValue" type="number" :placeholder="subItem.disabled ? '无需输入' : `请输入${subItem.title}`"
103
103
  :rules="[{ required: subItem.required, message: `请填写${subItem.title}` }]" @input="(e) => { change(e) }"
104
104
  @clear="clear" />
@@ -107,7 +107,7 @@
107
107
 
108
108
 
109
109
 
110
- <wd-textarea auto-height v-else-if="subItem.controlType === 'textarea'" :readonly="subItem.disabled"
110
+ <wd-textarea auto-height v-else-if="subItem.controlType === 'textarea'" :disabled="subItem.disabled"
111
111
  :label="subItem.title" label-width="100px" :prop="subItem.id" clearable :modelValue="modelValue"
112
112
  :placeholder="subItem.disabled ? '无需输入' : `请输入${subItem.title}`"
113
113
  :rules="[{ required: subItem.required, message: `请填写${subItem.title}` }]" @input="(e) => { change(e) }"
@@ -121,7 +121,7 @@
121
121
  show-img-resize :read-only="false" @input="({html, text, delta}) => { change({value:html}) }">
122
122
  </editor>
123
123
  </wd-cell>
124
- <wd-input v-else :readonly="subItem.disabled" :label="subItem.title" label-width="100px" :prop="subItem.id"
124
+ <wd-input v-else :disabled="subItem.disabled" :label="subItem.title" label-width="100px" :prop="subItem.id"
125
125
  clearable :modelValue="modelValue" :placeholder="subItem.disabled ? '无需输入' : `请输入${subItem.title}`"
126
126
  :rules="[{ required: subItem.required, message: `请填写${subItem.title}` }]" @input="(e) => { change(e) }"
127
127
  @clear="clear" />