Commit e1748a7b authored by yyh's avatar yyh

创建存证时候,选择模板取消必选,未选择模板,进入自定义模板页面

parent a1be223b
...@@ -130,6 +130,10 @@ export default class Index extends Vue { ...@@ -130,6 +130,10 @@ export default class Index extends Vue {
private preProof: any = ''; private preProof: any = '';
private isZengliang: boolean = false; private isZengliang: boolean = false;
private async addProofHandler() { private async addProofHandler() {
const { name } = this.templateInfo;
if (!name) {
return this.$router.push({path: 'addTemplate'})
}
let query: any = { let query: any = {
templateId: this.templateInfo.id, templateId: this.templateInfo.id,
proofName: this.proofName, proofName: this.proofName,
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<header> <header>
<common-svg name="shanchu5" @click.native="cancle"></common-svg> <common-svg name="shanchu5" @click.native="cancle"></common-svg>
<div>创建存证</div> <div>创建存证</div>
<div style="color:#B6B5BA;font-size:16px;" @click="next" :style="(proofName && templateInfo.name) ? {color: '#3F79FE'} : {}">下一步</div> <div style="color:#B6B5BA;font-size:16px;" @click="next" :style="proofName ? {color: '#3F79FE'} : {}">下一步</div>
</header> </header>
<van-field :value="proofName" placeholder="填写存证名称" @input="change"></van-field> <van-field :value="proofName" placeholder="填写存证名称" @input="change"></van-field>
<div style=""> <div style="">
...@@ -60,10 +60,10 @@ export default class AddBaseinfo extends Vue { ...@@ -60,10 +60,10 @@ export default class AddBaseinfo extends Vue {
} }
private next() { private next() {
const { proofName, templateInfo: { name }} = this; const { proofName, templateInfo: { name }} = this;
if (!name) { // if (!name) {
this.$toast('请选择模板'); // this.$toast('请选择模板');
return; // return;
} // }
if (!proofName) { if (!proofName) {
this.$toast('请填写存证名称'); this.$toast('请填写存证名称');
return; return;
......
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