| | |
| | | max-height: calc(100% - 100px); |
| | | -webkit-transform: translate(-50%, 0); |
| | | transform: translate(-50%, -50%); |
| | | margin-top: 0 !important; |
| | | } |
| | | .avue-dialog .el-dialog__body{ |
| | | padding: 20px; |
| | |
| | | Vue.prototype.$message.error("仅能选择一条数据来操作"); |
| | | return false; |
| | | } |
| | | |
| | | callPreEvent(options, doBefore,function (options) { |
| | | doDelete(options, function (type) { |
| | | callPostEvent(options,doAfter , callback,type); |
| | | let msg=replaceFreeMarker(paramVOS.confirmmsg,options.dataStore,options.sourceData) || ('是否删除' + (options.dataStore.length==1?"这条":"这些") + '数据' + (paramVOS.cascade?",如果有下级数据会级联删除":"")); |
| | | Vue.prototype.$confirm(msg,'提示',{}).then(()=>{ |
| | | callPreEvent(options, doBefore,function (options) { |
| | | doDelete(options, function (type) { |
| | | callPostEvent(options,doAfter , callback,type); |
| | | }); |
| | | }); |
| | | }); |
| | | }).catch(()=>{ |
| | | |
| | | }) |
| | | |
| | | }; |
| | | |
| | | /** |