File tree Expand file tree Collapse file tree 5 files changed +41417
-11
lines changed
resources/js/components/form Expand file tree Collapse file tree 5 files changed +41417
-11
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
1
{
2
- "/app.js" : " /app.js?id=5f7d23d3c659492560b2 " ,
2
+ "/app.js" : " /app.js?id=ba2dae2a5507cab7b802 " ,
3
3
"/manifest.js" : " /manifest.js?id=d9708e48a6c10ccee4bb" ,
4
4
"/vendor.js" : " /vendor.js?id=736997e66e11f6db997a"
5
5
}
Original file line number Diff line number Diff line change 2
2
<div class =" form-page" >
3
3
<el-card shadow =" never" class =" form-card" v-loading =" loading" >
4
4
<el-form
5
-
6
5
v-if =" formData"
7
6
ref =" ruleForm"
8
7
:model =" formData"
@@ -125,7 +124,7 @@ export default {
125
124
};
126
125
},
127
126
mounted () {
128
- this .formData = this .attrs .defaultValues ;
127
+ this .formData = this ._ . cloneDeep ( this . attrs .defaultValues ) ;
129
128
this .isEdit && this .getEditData ();
130
129
},
131
130
methods: {
@@ -159,7 +158,10 @@ export default {
159
158
this .$http
160
159
.put (this .attrs .action , this .formData )
161
160
.then (({ data, code, message }) => {
162
- code == 200 && this .$router .go (- 1 );
161
+ if (code == 200 ) {
162
+ this .formData = this ._ .cloneDeep (this .attrs .defaultValues );
163
+ this .$router .go (- 1 );
164
+ }
163
165
})
164
166
.finally (() => {
165
167
this .loading = false ;
Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ class TimePicker extends Component
17
17
protected $ startPlaceholder ;
18
18
protected $ endPlaceholder ;
19
19
protected $ isRange = false ;
20
- protected $ arrowControl = true ;
20
+ protected $ arrowControl = false ;
21
21
protected $ align = "left " ;
22
22
protected $ popperClass ;
23
23
protected $ pickerOptions ;
24
24
protected $ rangeSeparator = '- ' ;
25
- protected $ valueFormat ;
25
+ protected $ valueFormat = " HH:mm:ss " ;
26
26
protected $ defaultValue ;
27
27
protected $ name ;
28
28
protected $ prefixIcon ;
Original file line number Diff line number Diff line change @@ -24,16 +24,12 @@ public function index(Content $content)
24
24
25
25
public function create (Content $ content )
26
26
{
27
-
28
-
29
27
$ content ->body ($ this ->form ())->className ("m-10 " );
30
28
return $ this ->isGetData () ? $ this ->form () : $ content ;
31
29
}
32
30
33
31
public function edit ($ id , Content $ content )
34
32
{
35
-
36
-
37
33
$ content ->body ($ this ->form (true )->edit ($ id ))->className ("m-10 " );
38
34
return $ this ->isGetData () ? $ this ->form (true )->edit ($ id ) : $ content ;
39
35
}
You can’t perform that action at this time.
0 commit comments