|
|
@ -2,6 +2,8 @@ |
|
|
|
import {onBeforeMount, onMounted, reactive, ref, unref, computed} from 'vue'; |
|
|
|
import {onBeforeMount, onMounted, 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} from "@/apis/product.js"; |
|
|
|
import {project_list, prd_list, prd_add, prd_get, prd_update, prd_delete} from "@/apis/product.js"; |
|
|
|
|
|
|
|
import CinemaUpdate from "@/components/update/CinemaUpdate.vue"; |
|
|
|
|
|
|
|
import ProductHistory from "@/components/product/ProductHistory.vue"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 注册vuex |
|
|
|
// 注册vuex |
|
|
@ -27,6 +29,8 @@ const pageSize = ref(20) |
|
|
|
|
|
|
|
|
|
|
|
const total = ref(0) |
|
|
|
const total = ref(0) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const history_dialog_id = ref(1) |
|
|
|
|
|
|
|
|
|
|
|
// 处理翻页 |
|
|
|
// 处理翻页 |
|
|
|
const handleCurrentChange = (newPage) => { |
|
|
|
const handleCurrentChange = (newPage) => { |
|
|
|
currentPage.value = newPage |
|
|
|
currentPage.value = newPage |
|
|
@ -38,6 +42,14 @@ const handleSizeChange = (newPageSize) => { |
|
|
|
get_table_data(currentPage.value, pageSize.value, fromData.project) |
|
|
|
get_table_data(currentPage.value, pageSize.value, fromData.project) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 处理历史记录对话框 |
|
|
|
|
|
|
|
const changeDialogStatus = (id) => { |
|
|
|
|
|
|
|
history_dialog_id.value = id |
|
|
|
|
|
|
|
console.log('changeDialogStatus', id) |
|
|
|
|
|
|
|
store.state.updateModule.update_dialog_show = true |
|
|
|
|
|
|
|
console.log(store.state.updateModule.update_dialog_show) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 数据提交 点击搜索按键提交数据 |
|
|
|
// 数据提交 点击搜索按键提交数据 |
|
|
|
const submitSearch = async () => { |
|
|
|
const submitSearch = async () => { |
|
|
@ -148,6 +160,11 @@ onMounted( |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="update_at" label="最后更新时间" min-width="180"></el-table-column> |
|
|
|
<el-table-column prop="update_at" label="最后更新时间" min-width="180"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="id" label="历史文档" min-width="120"> |
|
|
|
|
|
|
|
<template v-slot="scope"> |
|
|
|
|
|
|
|
<el-button type="primary" size="small" @click="changeDialogStatus(scope.row.id)">查看</el-button> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
<div class="pagination-container"> |
|
|
|
<div class="pagination-container"> |
|
|
|
<el-pagination |
|
|
|
<el-pagination |
|
|
@ -162,6 +179,7 @@ onMounted( |
|
|
|
> |
|
|
|
> |
|
|
|
</el-pagination> |
|
|
|
</el-pagination> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<ProductHistory :id="history_dialog_id"></ProductHistory> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|