提交 da0f416e 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

工作流前端垃圾代码剔除

上级 7e33276e
...@@ -27,10 +27,7 @@ ...@@ -27,10 +27,7 @@
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button v-if="this.wf.clazz == 'start'" @click="start" type="primary"
v-if="this.wf.clazz == 'start'"
@click="start"
type="primary"
>启动</el-button >启动</el-button
> >
<el-button <el-button
...@@ -45,11 +42,7 @@ ...@@ -45,11 +42,7 @@
type="primary" type="primary"
>拒绝</el-button >拒绝</el-button
> >
<el-button <el-button @click="back" type="primary">返回</el-button>
@click="back"
type="primary"
>返回</el-button
>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -62,7 +55,6 @@ import { ...@@ -62,7 +55,6 @@ import {
} from "@/api/workflowProcess"; } from "@/api/workflowProcess";
import infoList from "@/mixins/infoList"; import infoList from "@/mixins/infoList";
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import Axios from 'axios';
export default { export default {
name: "ExaWfLeave", name: "ExaWfLeave",
mixins: [infoList], mixins: [infoList],
...@@ -82,12 +74,10 @@ export default { ...@@ -82,12 +74,10 @@ export default {
}, },
data() { data() {
return { return {
type: "",
formData: { formData: {
cause:"", cause:"",
startTime:new Date(), startTime:new Date(),
endTime:new Date(), endTime:new Date(),
} }
}; };
}, },
...@@ -151,7 +141,7 @@ export default { ...@@ -151,7 +141,7 @@ export default {
if(res.code == 0){ if(res.code == 0){
this.$message({ this.$message({
type:"success", type:"success",
message:"提交" message:"提交成功"
}) })
this.back() this.back()
} }
...@@ -161,12 +151,9 @@ export default { ...@@ -161,12 +151,9 @@ export default {
} }
}, },
async created() { async created() {
console.log(this.workflowMoveID) if(this.business){
// 建议通过url传参获取目标数据ID 调用 find方法进行查询数据操作 从而决定本页面是create还是update 以下为id作为url参数示例
if(this.business){
this.formData = this.business this.formData = this.business
} }
} }
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册