浏览代码

始宁农业后台:产品管理-产品编辑

panyong 2 年之前
父节点
当前提交
cb27c5ae57

+ 2 - 2
htmldev/shiningManage/src/views/productManage/products/details.vue

@@ -285,7 +285,7 @@ export default {
         'product_brand_id': 1,
         'product_brand_name': '大众', // 品牌名称
         'product_spec': 'xl', // 规格
-        'product_unit': '个', // 单位 TODO 获取单位列表
+        'product_unit': '个', // 单位
         'product_all_price': 10000, // 批发价
         'product_price': 9000, // 零售价
         'product_count': 1000, // 库存
@@ -345,7 +345,7 @@ export default {
       }
     },
     handleSubmit() {
-      const url = this.exData.id ? '' : ''
+      const url = this.exData.id ? '/api/admin/product/modify' : ''
       this.$refs.form.validate(async valid => {
         if (valid) {
           const formData = JSON.parse(JSON.stringify(this.form))

+ 1 - 1
htmldev/shiningManage/src/views/productManage/products/index.vue

@@ -92,8 +92,8 @@
       <!-- todo 缺编辑接口 -->
       <el-table-column label="操作" width="120">
         <template slot-scope="scope">
-          <el-button type="text" @click="del(scope.row)">推荐</el-button>
           <el-button type="text" @click="edit(scope.row)">操作</el-button>
+          <el-button type="text" @click="del(scope.row)">推荐</el-button>
         </template>
       </el-table-column>
     </el-table>