File tree Expand file tree Collapse file tree 17 files changed +27
-19
lines changed
Expand file tree Collapse file tree 17 files changed +27
-19
lines changed Original file line number Diff line number Diff line change 33 .filter-item {
44 display : inline-block ;
55 vertical-align : middle ;
6- margin : 0 2 px 10px 0 ;
6+ margin : 0 3 px 10px 0 ;
77 input {
88 height : 30.5px ;
99 line-height : 30.5px ;
1010 }
1111 }
12+ .el-button +.el-button {
13+ margin-left : 0 !important ;
14+ }
1215 .el-select__caret.el-input__icon.el-icon-arrow-up {
1316 line-height : 30.5px ;
1417 }
1720 vertical-align : middle ;
1821 margin-bottom : 10px ;
1922 height : 30.5px ;
20- width : 223px ;
23+ width : 223px !important ;
2124 }
2225}
2326.el-avatar {
Original file line number Diff line number Diff line change 11<template >
22 <div >
3- <el-button v-permission =" permission.edit" :disabled =" disabledEdit" size =" mini" type =" primary" icon =" el-icon-edit" @click =" crud.toEdit(data)" />
3+ <el-button v-permission =" permission.edit" :loading = " crud.status.cu === 2 " : disabled =" disabledEdit" size =" mini" type =" primary" icon =" el-icon-edit" @click =" crud.toEdit(data)" />
44 <el-popover v-model =" pop" v-permission =" permission.del" placement =" top" width =" 180" trigger =" manual" @show =" onPopoverShow" @hide =" onPopoverHide" >
55 <p >{{ msg }}</p >
66 <div style =" text-align : right ; margin : 0 " >
Original file line number Diff line number Diff line change @@ -244,13 +244,15 @@ function CRUD(options) {
244244 if ( ! callVmHook ( crud , CRUD . HOOK . beforeSubmit ) ) {
245245 return
246246 }
247+ crud . status . add = CRUD . STATUS . PROCESSING
247248 crud . crudMethod . add ( crud . form ) . then ( ( ) => {
248249 crud . status . add = CRUD . STATUS . NORMAL
249250 crud . resetForm ( )
250251 crud . addSuccessNotify ( )
251252 callVmHook ( crud , CRUD . HOOK . afterSubmit )
252253 crud . toQuery ( )
253254 } ) . catch ( ( ) => {
255+ crud . status . add = CRUD . STATUS . PREPARED
254256 callVmHook ( crud , CRUD . HOOK . afterAddError )
255257 } )
256258 } ,
@@ -261,6 +263,7 @@ function CRUD(options) {
261263 if ( ! callVmHook ( crud , CRUD . HOOK . beforeSubmit ) ) {
262264 return
263265 }
266+ crud . status . edit = CRUD . STATUS . PROCESSING
264267 crud . crudMethod . edit ( crud . form ) . then ( ( ) => {
265268 crud . status . edit = CRUD . STATUS . NORMAL
266269 crud . getDataStatus ( crud . form . id ) . edit = CRUD . STATUS . NORMAL
@@ -269,6 +272,7 @@ function CRUD(options) {
269272 callVmHook ( crud , CRUD . HOOK . afterSubmit )
270273 crud . refresh ( )
271274 } ) . catch ( ( ) => {
275+ crud . status . edit = CRUD . STATUS . PREPARED
272276 callVmHook ( crud , CRUD . HOOK . afterEditError )
273277 } )
274278 } ,
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ export default {
3535 if (typeof val !== ' string' ) return
3636 const themeCluster = this .getThemeCluster (val .replace (' #' , ' ' ))
3737 const originalCluster = this .getThemeCluster (oldVal .replace (' #' , ' ' ))
38- console .log (themeCluster, originalCluster)
3938
4039 const $message = this .$message ({
4140 message: ' Compiling the theme' ,
Original file line number Diff line number Diff line change 5858 </el-form >
5959 <div slot =" footer" class =" dialog-footer" >
6060 <el-button type =" text" @click =" crud.cancelCU" >取消</el-button >
61- <el-button :loading =" crud.cu === 2" type =" primary" @click =" crud.submitCU" >确认</el-button >
61+ <el-button :loading =" crud.status. cu === 2" type =" primary" @click =" crud.submitCU" >确认</el-button >
6262 </div >
6363 </el-dialog >
6464 <!-- 表格渲染-->
Original file line number Diff line number Diff line change 5252 </el-form >
5353 <div slot =" footer" class =" dialog-footer" >
5454 <el-button type =" text" @click =" crud.cancelCU" >取消</el-button >
55- <el-button :loading =" crud.cu === 2" type =" primary" @click =" crud.submitCU" >确认</el-button >
55+ <el-button :loading =" crud.status. cu === 2" type =" primary" @click =" crud.submitCU" >确认</el-button >
5656 </div >
5757 </el-dialog >
5858 <!-- 表格渲染-->
Original file line number Diff line number Diff line change 8989 </el-form >
9090 <div slot =" footer" class =" dialog-footer" >
9191 <el-button type =" text" @click =" crud.cancelCU" >取消</el-button >
92- <el-button :loading =" crud.cu === 2" type =" primary" @click =" crud.submitCU" >确认</el-button >
92+ <el-button :loading =" crud.status. cu === 2" type =" primary" @click =" crud.submitCU" >确认</el-button >
9393 </div >
9494 </el-dialog >
9595 <!-- 统还原组件-->
Original file line number Diff line number Diff line change 4242 </el-form >
4343 <div slot =" footer" class =" dialog-footer" >
4444 <el-button type =" text" @click =" crud.cancelCU" >取消</el-button >
45- <el-button :loading =" crud.cu === 2" type =" primary" @click =" crud.submitCU" >确认</el-button >
45+ <el-button :loading =" crud.status. cu === 2" type =" primary" @click =" crud.submitCU" >确认</el-button >
4646 </div >
4747 </el-dialog >
4848 <!-- 表格渲染-->
Original file line number Diff line number Diff line change 2727 </el-form >
2828 <div slot =" footer" class =" dialog-footer" >
2929 <el-button type =" text" @click =" crud.cancelCU" >取消</el-button >
30- <el-button :loading =" crud.cu === 2" type =" primary" @click =" crud.submitCU" >确认</el-button >
30+ <el-button :loading =" crud.status. cu === 2" type =" primary" @click =" crud.submitCU" >确认</el-button >
3131 </div >
3232 </el-dialog >
3333 <!-- 表格渲染-->
Original file line number Diff line number Diff line change 3838 </el-form >
3939 <div slot =" footer" class =" dialog-footer" >
4040 <el-button type =" text" @click =" crud.cancelCU" >取消</el-button >
41- <el-button :loading =" crud.cu === 2" type =" primary" @click =" crud.submitCU" >确认</el-button >
41+ <el-button :loading =" crud.status. cu === 2" type =" primary" @click =" crud.submitCU" >确认</el-button >
4242 </div >
4343 </el-dialog >
4444 <!-- 表格渲染-->
You can’t perform that action at this time.
0 commit comments