Commit b7f2cddf authored by zhangyanni's avatar zhangyanni

confirm

parent fa079cf1
......@@ -499,11 +499,14 @@
return false;
}
if (data.requirementStatus == "RA03" || data.requirementStatus == "RA04") {
this.$confirm(title, '', {
this.$confirm(title,{
confirmButtonText: type == 1 ? '上架' : '下架',
cancelButtonText: '取消',
type: 'warning',
center: true
center: true,
closeOnClickModal:false,
closeOnPressEscape:false,
type: '',
customClass: 'deleteConfirm'
}).then(() => {
that.fullscreenLoading = true;
api.soldAxios(params).then((res) => {
......
......@@ -422,11 +422,14 @@
return false;
}
if(this.detailInfo.requirementStatus=="RA03"||this.detailInfo.requirementStatus=="RA04"){
this.$confirm(title,'', {
this.$confirm(title, {
confirmButtonText: type==1?'上架':'下架',
cancelButtonText: '取消',
type: 'warning',
center: true
center: true,
closeOnClickModal:false,
closeOnPressEscape:false,
type: '',
customClass: 'deleteConfirm'
}).then(() => {
that.fullscreenLoading = true;
api.soldAxios(params).then((res)=>{
......
......@@ -1268,12 +1268,15 @@
});
return false;
}
this.$confirm('您的需求已更改,点击确认该需求会重新提交审核,通过后会更新为最新修改结果,确认将修改的内容提交审核吗?', '提示', {
this.$confirm('您的需求已更改,点击确认该需求会重新提交审核,通过后会更新为最新修改结果,确认将修改的内容提交审核吗?', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning'
closeOnClickModal:false,
closeOnPressEscape:false,
type: '',
customClass: 'deleteConfirm'
}).then(() => {
// this.submitDataFunc();
this.submitDataFunc();
}).catch(() => {
that.$message({
type: 'info',
......@@ -1320,10 +1323,14 @@
//取消
handleCancel() {
//
this.$confirm('您修改的内容尚未保存,如果返回将保留原需求内容不做更改,确认要返回吗?', '提示', {
this.$confirm('您修改的内容尚未保存,如果返回将保留原需求内容不做更改,确认要返回吗?', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning'
closeOnClickModal:false,
closeOnPressEscape:false,
type: '',
customClass: 'deleteConfirm'
}).then(() => {
this.$router.push({path:"/require/detail",query:{id:this.detailInfo.detailId}});
}).catch(() => {
......
......@@ -191,10 +191,13 @@
//接受或者忽略意向
sendRequireStatus(data){
var id = this.$route.query.id;
this.$confirm(data?"确认接受该意向?":"确认忽略该意向?", '提示', {
this.$confirm(data?"确认接受该意向?":"确认忽略该意向?", {
cancelButtonText: '取消',
confirmButtonText: '确定',
type: 'warning'
closeOnClickModal:false,
closeOnPressEscape:false,
type: '',
customClass: 'deleteConfirm'
}).then(() => {
this.fullscreenLoading = true;
let url = data?api.confirmAxios(id):api.ignoreAxios(id);
......
......@@ -155,10 +155,13 @@
//接受/忽略意向
handleIntention(type,data){
this.$confirm(type?"确认接受该意向?":"确认忽略该意向?", '提示', {
this.$confirm(type?"确认接受该意向?":"确认忽略该意向?", {
cancelButtonText: '取消',
confirmButtonText: '确定',
type: 'warning'
closeOnClickModal:false,
closeOnPressEscape:false,
type: '',
customClass: 'deleteConfirm'
}).then(() => {
let url = type?api.confirmAxios(data):api.ignoreAxios(data);
this.fullscreenLoading = true;
......
......@@ -439,10 +439,13 @@
sendRequireStatus(data){
var id = this.$route.query.id;
if(this.$route.query.type==0){
this.$confirm("确认接受该合作意向?", '提示', {
this.$confirm("确认接受该合作意向?", {
cancelButtonText: '取消',
confirmButtonText: '确定',
type: 'warning'
closeOnClickModal:false,
closeOnPressEscape:false,
type: '',
customClass: 'deleteConfirm'
}).then(() => {
let url = data?api.confirmAxios(id):api.ignoreAxios(id);
url.then((res)=>{
......@@ -465,7 +468,10 @@
this.$confirm("确认接受该合作意向?", '提示', {
cancelButtonText: '取消',
confirmButtonText: '确定',
type: 'warning'
closeOnClickModal:false,
closeOnPressEscape:false,
type: '',
customClass: 'deleteConfirm'
}).then(() => {
let url = data?api.confirmIntentionAxios(id):api.ignoreIntentionAxios(id);
url.then((res)=>{
......
......@@ -1362,10 +1362,13 @@
return false;
}
if (!this.ruleForm.companyLogoUrl) return false;
this.$confirm('您的需求已更改,点击确认该需求会重新提交审核,通过后会更新为最新修改结果,确认将修改的内容提交审核吗?', '提示', {
this.$confirm('您的需求已更改,点击确认该需求会重新提交审核,通过后会更新为最新修改结果,确认将修改的内容提交审核吗?', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning'
closeOnClickModal:false,
closeOnPressEscape:false,
type: '',
customClass: 'deleteConfirm'
}).then(() => {
this.submitDataFunc();
}).catch(() => {
......
......@@ -381,11 +381,14 @@
return false;
}
if(this.detailInfo.requirementStatus=="RA03"||this.detailInfo.requirementStatus=="RA04"){
this.$confirm(title,'', {
this.$confirm(title, {
confirmButtonText: type==1?'上架':'下架',
cancelButtonText: '取消',
type: 'warning',
center: true
center: true,
closeOnClickModal:false,
closeOnPressEscape:false,
type: '',
customClass: 'deleteConfirm'
}).then(() => {
that.fullscreenLoading = true;
api.soldAxios(params).then((res)=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment