Commit e1748a7b authored by yyh's avatar yyh

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

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