vue2-client 1.12.11 → 1.12.13
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
|
@@ -45,7 +45,8 @@ export default {
|
|
|
45
45
|
prop: 'value',
|
|
46
46
|
event: 'change',
|
|
47
47
|
},
|
|
48
|
-
mounted () {
|
|
48
|
+
mounted () {
|
|
49
|
+
},
|
|
49
50
|
computed: {
|
|
50
51
|
localValue: {
|
|
51
52
|
get () {
|
|
@@ -59,7 +60,8 @@ export default {
|
|
|
59
60
|
return this.value[0]
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
|
-
} catch (e) {
|
|
63
|
+
} catch (e) {
|
|
64
|
+
}
|
|
63
65
|
return this.value
|
|
64
66
|
},
|
|
65
67
|
set (val) {
|
|
@@ -158,6 +160,14 @@ export default {
|
|
|
158
160
|
return false
|
|
159
161
|
}
|
|
160
162
|
},
|
|
163
|
+
otherattr () {
|
|
164
|
+
if (['yearRangePicker', 'monthRangePicker'].includes(this.attr.type)) {
|
|
165
|
+
return {
|
|
166
|
+
mode: this.showMode
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return {}
|
|
170
|
+
}
|
|
161
171
|
},
|
|
162
172
|
methods: {
|
|
163
173
|
moment,
|
|
@@ -249,10 +259,10 @@ export default {
|
|
|
249
259
|
"
|
|
250
260
|
:ranges="ranges"
|
|
251
261
|
style="width: 100%"
|
|
252
|
-
:mode="showMode"
|
|
253
262
|
:format="formatType"
|
|
254
263
|
@panelChange="RangePanelChange"
|
|
255
264
|
@change="RangePanelChange"
|
|
265
|
+
v-bind="otherattr"
|
|
256
266
|
/>
|
|
257
267
|
</template>
|
|
258
268
|
|
|
@@ -57,10 +57,10 @@ routerResource.example = {
|
|
|
57
57
|
// component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
|
|
58
58
|
// component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
|
59
59
|
// component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
|
60
|
-
|
|
60
|
+
component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
|
|
61
61
|
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
|
62
62
|
// component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
|
|
63
|
-
component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
63
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
64
64
|
// component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
|
|
65
65
|
// component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
|
|
66
66
|
// component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
|
package/src/utils/request.js
CHANGED
|
@@ -159,6 +159,7 @@ function loadInterceptors () {
|
|
|
159
159
|
const v4SessionKey = localStorage.getItem(V4_SESSION_KEY)
|
|
160
160
|
if (['post'].includes(config.method.toLowerCase()) && v4SessionKey &&
|
|
161
161
|
!config.url.includes('/logic/openapi/') &&
|
|
162
|
+
!config.url.includes('devApi') &&
|
|
162
163
|
!config.url.includes('auth/login')) {
|
|
163
164
|
if (config.data && !(config.data instanceof FormData)) {
|
|
164
165
|
config.data = {
|