jobsys-explore 4.6.1 → 4.6.2

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.
@@ -0,0 +1,5 @@
1
+ ---
2
+ "jobsys-explore": patch
3
+ ---
4
+
5
+ Adjust vue version
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # jobsys-explore
2
2
 
3
+ ## 4.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Add useFindOptionByValue
8
+ - Upgrade
9
+ - Adjust vue version
10
+ - Downgrade vue
11
+ - Add fieldNames support for options
12
+
3
13
  ## 4.5.5
4
14
 
5
15
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jobsys-explore",
3
- "version": "4.6.1",
3
+ "version": "4.6.2",
4
4
  "description": "Enhanced component based on vant",
5
5
  "type": "module",
6
6
  "main": "./dist/jobsys-explore.cjs",
@@ -43,7 +43,7 @@
43
43
  "dayjs": "^1.11.9",
44
44
  "lodash-es": "^4.17.21",
45
45
  "vant": "^4.6.6",
46
- "vue": "3.3.4"
46
+ "vue": "~3.4.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@changesets/cli": "^2.26.2",
@@ -4,11 +4,13 @@
4
4
  <ExForm
5
5
  label-width="100%"
6
6
  ref="form"
7
- :form="getForm()"
7
+ :form="getTestForm()"
8
8
  title="测试表单"
9
9
  submit-url="/api/test/submit"
10
10
  :data="formData"
11
11
  closable
12
+ readonly
13
+ fetch-url="api/worker/maintenance/2"
12
14
  :divider-props="{ contentPosition: 'left' }"
13
15
  :before-submit="onBeforeSubmit"
14
16
  :after-fetched="onAfterFetched"
@@ -37,8 +39,7 @@ const checked = ref(false)
37
39
  const form = ref(null)
38
40
 
39
41
  const formData = ref({
40
- cascade: "xihu",
41
- cascade_cn: "醢在",
42
+ "test-input": 123123,
42
43
  })
43
44
 
44
45
  const reset = () => {
@@ -57,11 +58,51 @@ const onBeforeSubmit = ({ formatForm }) => {
57
58
  }
58
59
 
59
60
  const onAfterFetched = (res) => {
60
- return res.result.job
61
+ return res.result
62
+ }
63
+
64
+ const getTestForm = () => {
65
+ return [
66
+ {
67
+ key: "apply_sn",
68
+ title: "工单编号",
69
+ },
70
+ {
71
+ key: "contact",
72
+ title: "联系人",
73
+ required: true,
74
+ },
75
+ {
76
+ key: "phone",
77
+ title: "联系电话",
78
+ required: true,
79
+ rules: [{ message: "手机号码格式不正确", pattern: /^1[3456789]\d{9}$/ }],
80
+ defaultSlots: {
81
+ button: () => {
82
+ return h(Button, { type: "primary", size: "small", icon: "phone", onClick: () => onCall() })
83
+ },
84
+ },
85
+ },
86
+ {
87
+ key: "appointment_at",
88
+ title: "预约日期",
89
+ type: "date",
90
+ init({ value }) {
91
+ return value ? new Date(value) : null
92
+ },
93
+ },
94
+
95
+ {
96
+ key: "client_remark",
97
+ title: "报修说明",
98
+ type: "textarea",
99
+ },
100
+ ]
61
101
  }
62
102
 
63
103
  const getForm = () => [
64
- {
104
+ { key: "test-input", title: "测试" },
105
+ /*{
65
106
  key: "uploader1",
66
107
  title: "上传文件",
67
108
  type: "uploader",
@@ -70,7 +111,7 @@ const getForm = () => [
70
111
  type: "text",
71
112
  maxNum: 2,
72
113
  },
73
- },
114
+ },*/
74
115
  /*{
75
116
  key: "matrix-radio",
76
117
  type: "matrix-radio",
@@ -100,7 +141,6 @@ const getForm = () => [
100
141
  //required: true,
101
142
  //defaultValue: { 质量: ["很好", "一般"] },
102
143
  },*/
103
-
104
144
  /* {
105
145
  key: "select",
106
146
  title: "选择 Select",
package/vite.config.js CHANGED
@@ -45,8 +45,8 @@ export default defineConfig({
45
45
  host: true,
46
46
  port: 3000,
47
47
  proxy: {
48
- "/index.php": {
49
- target: "http://localhost/jobsys/",
48
+ "/api": {
49
+ target: "http://logistics.test",
50
50
  changeOrigin: true,
51
51
  },
52
52
  },