提交被覆盖的前端代码,流程模板、流程阶段、流程审批页面
| | |
| | | <template> |
| | | <avue-crud ref="crud" :table-loading="loading" :data="data" v-model="form" :option="option" :page.sync="page" :permission="permissionList" |
| | | <avue-crud ref="crud" :table-loading="loading" :data="data" v-model="form" :option="option" :page.sync="page" |
| | | :search.sync="search" @on-load="getDataList" @row-save="handleSave" @row-del="handleDelete" |
| | | @row-update="handleEdit" @refresh-change="handleRefresh" @size-change="handleSizePage" |
| | | @current-change="handleCurrentPage"> |
| | |
| | | |
| | | <script> |
| | | import { getFlowpathList, getStartList, flowpathSave, flowpathDelete } from '@/api/template/flowpath.js' |
| | | import {mapGetters} from "vuex"; |
| | | export default { |
| | | name: 'FlowPath', |
| | | props: { |
| | | code: { |
| | | typeof: String, |
| | | required: true, |
| | | default: "" |
| | | }, |
| | | crudLCStatus: { |
| | | type: String, |
| | | default: 'Editing' |
| | | } |
| | | code: { |
| | | typeof: String, |
| | | required: true, |
| | | default: "" |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | created() { |
| | | this.getStart() |
| | | }, |
| | | computed:{ |
| | | ...mapGetters([ "permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.crudLCStatus=='Editing', |
| | | viewBtn: false, |
| | | delBtn: this.crudLCStatus=='Editing', |
| | | editBtn: this.crudLCStatus=='Editing' |
| | | }; |
| | | }, |
| | | }, |
| | | methods: { |
| | | async getStart() { |
| | | const response = await getStartList() |
| | |
| | | visible(n) { |
| | | this.dialogVisible = n; |
| | | if (n) { |
| | | this.saveParam=this.setSaveParam(); |
| | | this.apiInit() |
| | | this.apiDict() |
| | | } |
| | |
| | | }, |
| | | |
| | | mounted() { |
| | | console.log('---',this.parameter) |
| | | }, |
| | | created() { |
| | | created() { |
| | | console.log('parameter',this.parameter) |
| | | }, |
| | | methods: { |
| | | setSaveParam() { |
| | |
| | | this.templateId=res.data.variables.templateId; |
| | | this.modelKey=res.data.variables.modelKey; |
| | | this.codeClassifyOid=res.data.variables.codeClassifyOid; |
| | | this.taskId=res.data.variables.taskId; |
| | | //this.taskId=res.data.variables.taskId; |
| | | if (res.success) { |
| | | console.log(res) |
| | | this.btnList = res.data.toTasks; |