This commit is contained in:
yuan 2021-07-07 17:29:06 +08:00
parent 4f9c70f3cb
commit c0792b7f2f
2 changed files with 17 additions and 1 deletions

View File

@ -60,6 +60,14 @@ export function deleteModelDraft(id) {
})
}
/** 查询模型数据 */
export function getModelList() {
return request({
url: `/api/model2d/list`,
method: 'get',
})
}

View File

@ -2,11 +2,12 @@
<div class="container">
<QueryListPage :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
<create-model-draft-dialog ref="createDialog" @close="closeCreate" />
<el-button @click="getList">query</el-button>
</div>
</template>
<script>
import { getModelDraftList, publishModelDraft, deleteModelDraft } from "@/api/management/model";
import { getModelDraftList, publishModelDraft, deleteModelDraft, getModelList } from "@/api/management/model";
import createModelDraftDialog from "./components/create";
export default {
@ -88,6 +89,13 @@ export default {
};
},
methods: {
getList(){
getModelList().then(res=>{
console.log(res.data)
})
},
queryModelDraftList(params) {
return getModelDraftList(params);
},