baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
Executable
+49
@@ -0,0 +1,49 @@
|
||||
import dialogComponent from '@/components/opsoft-dialog/opsoft-dialog.vue'
|
||||
|
||||
export default (Vue) => {
|
||||
let dialogDom = null;
|
||||
let dialogCom = null;
|
||||
let dialogShow = true;
|
||||
|
||||
function showDialog({title, content, cancelText, confirmText, click}) {
|
||||
if (!dialogCom) {
|
||||
dialogCom = Vue.extend(dialogComponent);
|
||||
}
|
||||
if (!dialogDom) {
|
||||
dialogDom = new dialogCom();
|
||||
// dialogContentTextEllipsis: {type:Boolean, default:true},
|
||||
//dialogMaskBackground: {type:String, default:''},
|
||||
dialogDom.dialogTitle = title;
|
||||
dialogDom.dialogContent = content;
|
||||
dialogDom.dialogCancel = cancelText;
|
||||
dialogDom.dialogConfirm = confirmText;
|
||||
dialogDom.dialogShow = dialogShow;
|
||||
dialogDom.$mount();
|
||||
dialogDom.dialogClickCallback = function(res, event){
|
||||
dialogShow = false;
|
||||
dialogDom.dialogShow = dialogShow;
|
||||
click(res, event);
|
||||
};
|
||||
document.body.children[1].children[0].appendChild(dialogDom.$el);
|
||||
}
|
||||
else {
|
||||
if (dialogShow) {
|
||||
dialogShow = false;
|
||||
dialogDom.dialogShow = dialogShow;
|
||||
}
|
||||
dialogShow = true;
|
||||
dialogDom.dialogTitle = title;
|
||||
dialogDom.dialogContent = content;
|
||||
dialogDom.dialogCancel = cancelText;
|
||||
dialogDom.dialogConfirm = confirmText;
|
||||
dialogDom.dialogShow = dialogShow;
|
||||
dialogDom.dialogClickCallback = function(res, event){
|
||||
dialogShow = false;
|
||||
dialogDom.dialogShow = dialogShow;
|
||||
click(res, event);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Vue.prototype.$dialog = {showDialog};
|
||||
}
|
||||
Reference in new issue
Block a user