提交 978521e7 编写于 作者: haochangdi's avatar haochangdi

解决暂存,模板详情样式,完成按钮提示问题

上级 9e4f6fd3
......@@ -50,6 +50,7 @@
</div>
<el-dialog title="项目详情" :visible.sync="dialogTableVisible" class="dialog-list-wrap">
<div class="dialog-line"></div>
<div class="dialog-main">
<div class="dialog-title">{{detailObj.openTemplateName}}</div>
<div class="dialog-message">
<div class="dm-title">
......@@ -85,6 +86,7 @@
</div>
<div class="xq-main" v-html="detailObj.openTemplateDetail"></div>
</div>
</div>
</el-dialog>
......@@ -334,7 +336,7 @@ export default {
.el-dialog {
width: 800px;
max-height: 80%;
overflow: scroll;
overflow: hidden;
}
.dialog-line {
width:750px;
......@@ -342,6 +344,11 @@ export default {
background:rgba(228,231,237,1);
margin: 0 auto 12px;
}
.dialog-main {
overflow: scroll;
background: #fff;
height: 60vh;
}
.dialog-title {
margin: 0 auto;
width:752px;
......
......@@ -616,6 +616,10 @@ export default {
vm.$message.warning('项目结束时间应在有效期内');
return;
}
if(new Date(vm.formData.projectEndtime).getTime() <= new Date(vm.formData.projectBegintime).getTime()) {
vm.$message.warning('项目结束时间应大于开始时间');
return;
}
if (status) {
vm.formData.projectStatus = status;
......@@ -639,6 +643,11 @@ export default {
.then(res => {
closeLoading(vm);
if (res.code == "000000") {
// 暂存不会跳到下一页
if (status == 1) {
vm.$message.info('成功');
return;
}
// 下一步,并将项目id传递给父组件
vm.$emit('next',res.data.id);
} else if (res.code == "213061") {
......
......@@ -205,7 +205,7 @@ export default {
},
// 完成触发的接口
hidefn() {
vm.regionComplete(vm.changeStatus());
vm.regionComplete(vm.changeStatus);
},
// 选择学元范围暂存
regionComplete(fishFn) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册