build : 需求征集提交

This commit is contained in:
clay
2024-05-11 21:40:49 +08:00
parent a077e38fdc
commit 44ed106775
4 changed files with 64 additions and 39 deletions

View File

@@ -71,8 +71,8 @@
<!-- </el-row>-->
</el-form>
<div class="oper-page-btn" v-if="processInstanceData.taskId">
<el-button @click="handleSubmit">驳回</el-button>
<el-button color="#DED0B2" @click="handleBack">同意</el-button>
<el-button @click="handleBack">驳回</el-button>
<el-button color="#DED0B2" @click="handleSubmit">同意</el-button>
</div>
</div>
</template>
@@ -81,8 +81,7 @@
import OperationRender from '@/views/workflow/common/OperationRender.vue'
import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue'
import {useProcessStore} from '@/stores/processStore.js';
import {getInfo} from "@/api/project-demand/index.js";
import {CircleCheckFilled, Close, Loading, MoreFilled} from "@element-plus/icons-vue";
import {getInfo, agreeTask} from "@/api/project-demand/index.js";
const route = useRoute()
const form = ref();
@@ -123,7 +122,18 @@ const tableConfig = reactive({
],
api: ''
})
const getTree = async () => {
const handleSubmit = () => {
let approve = {
taskId: processInstanceData.value.taskId,
auditOpinion : auditOpinion.value,
formData: formData.value
}
agreeTask(approve).then(res => {
console.log(res)
})
}
const init = async () => {
getInfo(route.query.id).then(res => {
let data = res.data
formData.value = data.formData;
@@ -139,7 +149,7 @@ const getTree = async () => {
})
})
}
getTree()
init()
</script>
<style lang="scss" scoped>