|
|
@ -1,7 +1,16 @@ |
|
|
|
<script setup> |
|
|
|
<script setup> |
|
|
|
import {onBeforeMount, onMounted, onBeforeUnmount, reactive, ref, unref, computed} from 'vue'; |
|
|
|
import {onBeforeMount, onMounted, onBeforeUnmount, reactive, ref, unref, computed} from 'vue'; |
|
|
|
import {useStore, mapGetters, mapState} from "vuex"; |
|
|
|
import {useStore, mapGetters, mapState} from "vuex"; |
|
|
|
import {project_list, prd_list, prd_add, prd_get, prd_update, prd_delete, prd_history} from "@/apis/product.js"; |
|
|
|
import { |
|
|
|
|
|
|
|
project_list, |
|
|
|
|
|
|
|
prd_list, |
|
|
|
|
|
|
|
prd_add, |
|
|
|
|
|
|
|
prd_get, |
|
|
|
|
|
|
|
prd_update, |
|
|
|
|
|
|
|
prd_delete, |
|
|
|
|
|
|
|
prd_history, |
|
|
|
|
|
|
|
prd_list_ax_cloud |
|
|
|
|
|
|
|
} from "@/apis/product.js"; |
|
|
|
import {storage} from "@/storage/storage.js"; |
|
|
|
import {storage} from "@/storage/storage.js"; |
|
|
|
import {onBeforeRouteLeave} from "vue-router"; |
|
|
|
import {onBeforeRouteLeave} from "vue-router"; |
|
|
|
|
|
|
|
|
|
|
@ -164,7 +173,7 @@ async function get_table_data(page_num = currentPage.value, page_size = pageSize |
|
|
|
console.log(project_val) |
|
|
|
console.log(project_val) |
|
|
|
project_val = project_val === '全部' ? '' : project_val |
|
|
|
project_val = project_val === '全部' ? '' : project_val |
|
|
|
console.log(project_val) |
|
|
|
console.log(project_val) |
|
|
|
await prd_list(page_num, page_size, project_val).then(res => { |
|
|
|
await prd_list_ax_cloud(page_num, page_size, project_val).then(res => { |
|
|
|
total.value = res['count'] |
|
|
|
total.value = res['count'] |
|
|
|
if (Array.isArray(res['results'])) { |
|
|
|
if (Array.isArray(res['results'])) { |
|
|
|
tableData.value = [...res['results']] |
|
|
|
tableData.value = [...res['results']] |
|
|
|