hejiahui 2 years ago
parent
commit
9502e0b8e4
1 changed files with 1 additions and 9 deletions
  1. 1 9
      src/views/RMS/components/oilPrice.vue

+ 1 - 9
src/views/RMS/components/oilPrice.vue

@@ -32,14 +32,6 @@
             >
               启用
             </el-button>
-            <el-button
-              type="text"
-              size="small"
-              @click="onDeactivate(scope)"
-              v-else
-            >
-              停用
-            </el-button>
             <el-button
               type="text"
               size="mini"
@@ -121,7 +113,7 @@ export default {
         cancelButtonText: '取消',
         type: 'warning'
       }).then(() => {
-        this.axios.post("/api/v1/rms/updateOilPrice/"+scope.row.priceId).then((res) => {
+        this.axios.post("/api/v1/rms/updateOilPrice",{"priceId":scope.row.priceId}).then((res) => {
           if (res.data.code == "200") {
             this.$message({ type: "success", message: "启用成功!",});
             this.options.requestUrl = "/api/v1/rms/getOilPriceResultList?apiId=380&i="+ new Date();