Commit ca7e3c97 authored by 张冬's avatar 张冬

更新

parent 888ba114
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</el-form> </el-form>
</div> </div>
<div class="bottomButton flex-center"> <div class="bottomButton flex-center">
<el-button>返回</el-button> <el-button @click="back">返回</el-button>
<el-button type="primary" @click="submitData">提交审批</el-button> <el-button type="primary" @click="submitData">提交审批</el-button>
</div> </div>
</div> </div>
...@@ -128,6 +128,9 @@ ...@@ -128,6 +128,9 @@
} }
}, },
methods: { methods: {
back(){
this.$router.go(-1)
},
getfile(val) { getfile(val) {
this.ruleForm.accessoryPOList = val this.ruleForm.accessoryPOList = val
}, },
...@@ -160,7 +163,7 @@ ...@@ -160,7 +163,7 @@
code, code,
msg msg
} = await createwin(ruleForm) } = await createwin(ruleForm)
if (code === 200) { if (code == 200) {
this.$message({ this.$message({
message: msg, message: msg,
type: 'success', type: 'success',
...@@ -169,6 +172,8 @@ ...@@ -169,6 +172,8 @@
setTimeout(() => { setTimeout(() => {
this.$router.go(-1) this.$router.go(-1)
}, 1500) }, 1500)
}else{
this.$message.error(msg)
} }
} }
} catch (e) { } catch (e) {
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</el-form> </el-form>
</div> </div>
<div class="bottomButton flex-center"> <div class="bottomButton flex-center">
<el-button>返回</el-button> <el-button @click="back">返回</el-button>
<el-button type="primary" @click="submitData">提交审批</el-button> <el-button type="primary" @click="submitData">提交审批</el-button>
</div> </div>
</div> </div>
...@@ -94,6 +94,9 @@ ...@@ -94,6 +94,9 @@
} }
}, },
methods: { methods: {
back() {
this.$router.go(-1)
},
getfile(val) { getfile(val) {
this.file = val this.file = val
}, },
......
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
}, },
data() { data() {
return { return {
activeIdx: 1, activeIdx: 0,
allForm: {} allForm: {}
} }
}, },
......
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