对比新文件 |
| | |
| | | import request from '@/router/axios';
|
| | |
|
| | | export const getList = (params) => {
|
| | | return request({
|
| | | url: '/api/ubcs-omd/lifeCycle/page',
|
| | | method: 'get',
|
| | | params
|
| | | })
|
| | | }
|
| | | export default {
|
| | | getList
|
| | | }
|
| | |
| | | <template> |
| | | <basic-container class=""> |
| | | <avue-crud :data="data" :option="option" @refresh-change="gettableList" :table-loading="loading"> |
| | | <avue-crud :data="data" :option="option" @refresh-change="search" :table-loading="loading"> |
| | | <template slot-scope="scope" slot="menuLeft"> |
| | | <el-button |
| | | type="primary" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import API from '@/api/modeling/cycle' |
| | | import CycleFlow from "@/components/flow-cycle/flowchartEditor.vue"; |
| | | export default { |
| | | name: "cycle.vue", |
| | | components: { CycleFlow }, |
| | | data() { |
| | | return { |
| | | form: { |
| | | page: 1, |
| | | limit: 10 |
| | | }, |
| | | option: { |
| | | border: true, |
| | | align: "center", |
| | |
| | | rowData: {}, |
| | | dialogWidth: "50%", |
| | | type: "detail", |
| | | loading: false |
| | | }; |
| | | }, |
| | | created() { |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | gettableList() { |
| | | search() { |
| | | this.loading = true |
| | | API.getList(this.form).then(res => { |
| | | this.loading = false |
| | | this.data = res.data.data |
| | | }) |
| | | }, |
| | | openDialog(type, row) { |
| | | if (type === "detail") { |