|
@@ -15,7 +15,7 @@
|
|
|
<el-form-item label="名称" size="normal">
|
|
|
<el-input v-model="queryParams.taskName"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="开始时间" size="normal">
|
|
|
+ <!-- <el-form-item label="开始时间" size="normal">
|
|
|
<el-date-picker
|
|
|
v-model="queryParams.startDate"
|
|
|
type="date"
|
|
@@ -23,20 +23,31 @@
|
|
|
placeholder="选择日期时间"
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
|
|
|
<el-form-item>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
size="medium"
|
|
|
- @click="() => {}"
|
|
|
+ @click="getList"
|
|
|
icon="el-icon-search"
|
|
|
>搜索</el-button
|
|
|
>
|
|
|
- <el-button size="medium" icon="el-icon-refresh">重置</el-button>
|
|
|
- <el-button type="info" size="medium" @click="toDetail"
|
|
|
+ <el-button size="medium" @click="resetQuery" icon="el-icon-refresh"
|
|
|
+ >重置</el-button
|
|
|
+ >
|
|
|
+ <!-- <el-button type="info" size="medium" @click="toDetail"
|
|
|
>详情</el-button
|
|
|
+ > -->
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-radio-group
|
|
|
+ v-model="queryParams.taskProcessState"
|
|
|
+ @change="getList"
|
|
|
>
|
|
|
+ <el-radio-button label="3">已完成</el-radio-button>
|
|
|
+ <el-radio-button label="0">进行中</el-radio-button>
|
|
|
+ </el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -418,6 +429,23 @@ export default {
|
|
|
}
|
|
|
let result = await processNodeExecutionApproval(subformData);
|
|
|
console.log(result);
|
|
|
+ if (result.code == 200) {
|
|
|
+ this.$message.success("审批成功");
|
|
|
+ this.show = false;
|
|
|
+ this.getList();
|
|
|
+ } else {
|
|
|
+ this.$message.error("审批失败");
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //重置查询参数
|
|
|
+ resetQuery() {
|
|
|
+ this.queryParams = {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ taskName: "",
|
|
|
+ taskProcessState: "1",
|
|
|
+ };
|
|
|
+ this.getList();
|
|
|
},
|
|
|
},
|
|
|
};
|