You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

162 lines
4.8 KiB

10 months ago
<template>
<show-modal ref="modal"></show-modal>
<!-- <showModal2 ref="modal2"></showModal2> -->
<!-- <u-show-modal ref="modal2"></u-show-modal> -->
<!-- <comMessage></comMessage> -->
<u-button @click="open">
打开模态框1
</u-button>
<u-button @click="open2">
打开模态框2
</u-button>
<u-button @click="open3">
打开模态框3
</u-button>
<u-button @click="open4">
打开模态框4
</u-button>
<!-- <el-button type="text" @click="open">点击打开 message Box</el-button> -->
</template>
<script>
// import utils from '@/common/utils.js';
// import invite from '@/common/invite.js'
// import comMessage from '@/mycomponents/common/comMessage.vue'
// import uShowModal from "@/mycomponents/show-modal/uShowModal.vue"
export default {
// components: {
// uShowModal
// comMessage,
// showModal2,
// },
onShow() {
},
data() {
return {}
},
onHide() {
},
// components:{
// showModal
// },
methods: {
open() {
// this.show = true;
// this.$refs.modal.showModal({
// iconType: "消息",
// content: "需求信息被修改,将要清空推荐信息及扫描信息,并为您重新推荐发料数据,是否确定?",
// showCancelButton: false,
// showConfirmCountdown: false,
// success: function(res) {
// if (res.confirm == true) {
// console.log('用户点击确定')
// } else {
// console.log('用户点击取消')
// }
// }
// });
// this.$refs.modal.showConfirmModal("需求信息被修改");
this.$refs.modal.showConfirmFailModal(
'bad SQL grammar [select count(1) from select *from win_job_purchasereturn_main where 1 = 1 and masterID = ?nested exception is java.sql.SQLSyntaxErrorException : Unknown columnat Row: 1~8, Col: 11~198qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq66666666^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ '
);
// this.$refs.modal.showConfirmModal("成功","需求信息被修改");
// this.$refs.modal.showConfirmModal("成功","需求信息被修改",res=> {
// if (res) {
// console.log('用户点击确定');
// } else {
// console.log('用户点击取消');
// }
// });
// this.$utils.showCloseMsg('库位:',res=>{
// });
// this.$utils.showConfirmModal("需求信息被修改");
// this.$refs.modal.open();
//
// this.invite.$openInvite()
// this.modal.showModal({
// iconType:'icon',
// title: '',
// content: '内容',
// cancelText:"取消",//传入空值表示只显示确认按钮,此代码不能省略
// confirmText:"确认",
// success(res) {
// if (res.confirm) {
// console.log('用户点击确定')
// } else if (res.cancel) {
// console.log('用户点击取消')
// }
// }
// })
// utils.showSureMsg("11",res=>{
// })
// setup();
},
open2() {
this.$refs.modal.showSelectSuccessModal("需求信息被修改",
res => {
if (res) {
console.log('用户点击确定2');
} else {
console.log('用户点击取消2');
}
});
},
open3() {
this.$refs.modal.showConfirmCountdownFailModal("需求信息被修改",
res => {
if (res) {
console.log('用户点击确定2');
} else {
console.log('用户点击取消2');
}
});
},
open4() {
this.$refs.modal.showSelectCountdownWarningModal("需求信息被修改",
res => {
if (res) {
console.log('用户点击确定2');
} else {
console.log('用户点击取消2');
}
});
},
modalClose() {
this.$.refs.modal.popupClose();
},
cancle() {
console.log("取消")
}
},
setup() {
const showDialog = () => {
mountDialog({
title: '自定义标题',
content: '自定义内容'
})
}
return {
showDialog
}
}
}
</script>
<style>
</style>