diff --git a/.env.production b/.env.production index fb56031..ff44957 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ NODE_ENV = 'production' -VITE_NOW_TYPE = 'build' +VITE_NOW_TYPE = 'build/admin' # Base API VITE_APP_BASE_URL='https://erp.lihaink.cn' # VITE_APP_BASE_URL='' \ No newline at end of file diff --git a/build/打包须知.md b/build/打包须知.md new file mode 100644 index 0000000..e94d87e --- /dev/null +++ b/build/打包须知.md @@ -0,0 +1,3 @@ +## 注意注意! + +# 需要将打包后的文件移入admin/目录下, 否则无法正常访问 \ No newline at end of file diff --git a/src/views/goods/goodsclass/edit.vue b/src/views/goods/goodsclass/edit.vue index 2c32b6b..48ba9a7 100644 --- a/src/views/goods/goodsclass/edit.vue +++ b/src/views/goods/goodsclass/edit.vue @@ -1,130 +1,179 @@ diff --git a/src/views/goods/goodsclass/index.vue b/src/views/goods/goodsclass/index.vue index c4ff1d4..57c872c 100644 --- a/src/views/goods/goodsclass/index.vue +++ b/src/views/goods/goodsclass/index.vue @@ -1,147 +1,191 @@ - diff --git a/src/views/opurchase/opurchaseclass/detail.vue b/src/views/opurchase/opurchaseclass/detail.vue new file mode 100644 index 0000000..67e961f --- /dev/null +++ b/src/views/opurchase/opurchaseclass/detail.vue @@ -0,0 +1,69 @@ + + + diff --git a/src/views/opurchase/opurchaseclass/details.vue b/src/views/opurchase/opurchaseclass/details.vue deleted file mode 100644 index 43dcda5..0000000 --- a/src/views/opurchase/opurchaseclass/details.vue +++ /dev/null @@ -1,81 +0,0 @@ - - - diff --git a/src/views/opurchase/opurchaseclass/index.vue b/src/views/opurchase/opurchaseclass/index.vue index 7f903ae..45d9e47 100644 --- a/src/views/opurchase/opurchaseclass/index.vue +++ b/src/views/opurchase/opurchaseclass/index.vue @@ -22,7 +22,7 @@ - +
- + - + @@ -50,7 +50,14 @@ @@ -85,6 +92,9 @@ import { apiOpurchaseclassLists, apiOpurchaseclassDelete } from '@/api/opurchase import { timeFormat } from '@/utils/util' import feedback from '@/utils/feedback' import EditPopup from './edit.vue' +import { useRouter } from 'vue-router' + +const router = useRouter() const editRef = shallowRef>() // 是否显示编辑框 @@ -122,6 +132,17 @@ const handleAdd = async () => { editRef.value?.open('add') } +// 详情 +const handleDetail = async (data: any) => { + console.log(data); + router.push({ + path: 'detail', + query:{ + id: data.id + } + }) +} + // 编辑 const handleEdit = async (data: any) => { showEdit.value = true