diff --git a/src/views/product/goodsImg/goodsImgs.vue b/src/views/product/goodsImg/goodsImgs.vue index db2ca0c..6990231 100644 --- a/src/views/product/goodsImg/goodsImgs.vue +++ b/src/views/product/goodsImg/goodsImgs.vue @@ -32,6 +32,14 @@ 批量编辑 + + 新增图库 +
+
@@ -155,11 +164,13 @@ import GoodsToolApi from '@/api/goodsTool' import batchEditBarcode from './batchEditBarcode.vue' import imgEdit from './imgEdit.vue' +import imgAdd from './imgAdd.vue' export default { components: { batchEditBarcode, - imgEdit + imgEdit, + imgAdd, }, data() { return { @@ -315,6 +326,10 @@ export default { handleEdit(row) { this.$refs.imgEditRef?.open(row); }, + + handleAdd() { + this.$refs.imgAddRef.init(); + }, }, } diff --git a/src/views/product/goodsImg/imgAdd.vue b/src/views/product/goodsImg/imgAdd.vue new file mode 100644 index 0000000..a4962bf --- /dev/null +++ b/src/views/product/goodsImg/imgAdd.vue @@ -0,0 +1,193 @@ + + +