sunlupeng hace 7 meses
padre
commit
e4eda62b06
Se han modificado 3 ficheros con 5 adiciones y 5 borrados
  1. 1 1
      index.html
  2. 3 3
      src/views/goodsManage/goodsList.vue
  3. 1 1
      src/views/goodsManage/goodsTypeList.vue

+ 1 - 1
index.html

@@ -7,7 +7,7 @@
 		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
 		<title>叶盏进销存</title>
 	</head>
-	<script src=<%= htmlWebpackPlugin.options.path %>/tinymce4.7.11/tinymce.min.js></script>
+	<script src=<%= htmlWebpackPlugin.options.path %></script>
 	<body>
 		<div id="app"></div>
 		<!-- built files will be auto injected -->

+ 3 - 3
src/views/goodsManage/goodsList.vue

@@ -55,7 +55,7 @@
             <el-table-column align="center" label="操作" width="240px" class-name="small-padding fixed-width">
                 <template slot-scope="scope">
                     <el-button type="primary" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
-                    <el-button type="danger" size="small" @click="handleDelete(scope.row.productCode)">删除</el-button>
+                    <el-button type="danger" size="small" @click="handleDelete(scope.row.id)">删除</el-button>
                 </template>
             </el-table-column>
         </el-table>
@@ -570,13 +570,13 @@ export default {
 
             })
         },
-        handleDelete(productCode) {
+        handleDelete(id) {
             this.$confirm('确认删除吗?', '提示', {
                 confirmButtonText: '确定',
                 cancelButtonText: '取消',
                 type: 'warning'
             }).then(() => {
-                removeItem({ productCode: productCode }).then(response => {
+                removeItem({ id: id }).then(response => {
                     this.$notify({
                         title: '成功',
                         message: '删除成功',

+ 1 - 1
src/views/goodsManage/goodsTypeList.vue

@@ -159,7 +159,7 @@
         this.form.categoryParentCode = node.categoryCode;
       },
       handleDownLoad(){
-            window.location.href = process.env.BASE_API + '/product-category/export/category?categoryCode=' + this.listQuery.categoryCode + '&categoryName=' + this.listQuery.categoryCode;
+            window.location.href = process.env.BASE_API + '/product-category/export/category';
         },
       /** 查询类别列表 */
       getList() {