解决button提交表单问题

This commit is contained in:
wuhongjian 2022-12-09 10:27:05 +08:00
parent dd30c22954
commit 3a99111ad8
2 changed files with 17 additions and 4 deletions

View File

@ -83,6 +83,7 @@ const router = new Router({
}) })
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
debugger
// 判断是否有token // 判断是否有token
// const token = Cookies.get('token') // const token = Cookies.get('token')
// 添加动态(菜单)路由 // 添加动态(菜单)路由

View File

@ -59,8 +59,8 @@
></el-input> ></el-input>
</el-tooltip> </el-tooltip>
</el-form-item> </el-form-item>
<el-form-item v-if="dataForm.enclosure" label="申请附件" prop="enclosure"> <el-form-item v-show="dataForm.enclosure" label="申请附件">
<button <!-- <button
style=" style="
width: 100px; width: 100px;
height: 30px; height: 30px;
@ -77,8 +77,20 @@
@click="downloadFile(dataForm.enclosure, '申请附件')" @click="downloadFile(dataForm.enclosure, '申请附件')"
> >
附件下载 附件下载
</button> </button> -->
<!-- <el-button class="DownloadAttachment" @click="downloadFile(dataForm.enclosure, '申请附件')">附件下载</el-button> --> <el-button style="
width: 100px;
height: 30px;
margin-right: 10px;
background: rgb(237, 244, 252);
color: rgb(0, 135, 255);
font-size: 14px;
border-radius: 6px;
border: 1px solid rgb(187, 211, 239);
padding: 0px;
text-align: center;
cursor: pointer;
" @click="downloadFile(dataForm.enclosure, '申请附件')">附件下载</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- 流程综合组件 --> <!-- 流程综合组件 -->