瀏覽代碼

fix: 注销油卡爆粗哦

TwoKe945 1 年之前
父節點
當前提交
cc3ac36a2f
共有 5 個文件被更改,包括 99 次插入3 次删除
  1. 二進制
      clw.zip
  2. 86 0
      src/api/clw/dist/gas.dev.js
  3. 10 0
      src/api/clw/gas.js
  4. 2 2
      src/views/clw/gas/index.vue
  5. 1 1
      vue.config.js

二進制
clw.zip


+ 86 - 0
src/api/clw/dist/gas.dev.js

@@ -0,0 +1,86 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+  value: true
+});
+exports.listGas = listGas;
+exports.getGas = getGas;
+exports.addGas = addGas;
+exports.updateGas = updateGas;
+exports.delGas = delGas;
+exports.plateNumberList = plateNumberList;
+exports.importData = importData;
+exports.signOutGas = signOutGas;
+
+var _request = _interopRequireDefault(require("@/utils/request"));
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+// 查询加油卡信息列表
+function listGas(query) {
+  return (0, _request["default"])({
+    url: '/clw/gas/list',
+    method: 'get',
+    params: query
+  });
+} // 查询加油卡信息详细
+
+
+function getGas(gasId) {
+  return (0, _request["default"])({
+    url: '/clw/gas/' + gasId,
+    method: 'get'
+  });
+} // 新增加油卡信息
+
+
+function addGas(data) {
+  return (0, _request["default"])({
+    url: '/clw/gas',
+    method: 'post',
+    data: data
+  });
+} // 修改加油卡信息
+
+
+function updateGas(data) {
+  return (0, _request["default"])({
+    url: '/clw/gas',
+    method: 'put',
+    data: data
+  });
+} // 删除加油卡信息
+
+
+function delGas(gasId) {
+  return (0, _request["default"])({
+    url: '/clw/gas/' + gasId,
+    method: 'delete'
+  });
+} // 车牌接口
+
+
+function plateNumberList() {
+  return (0, _request["default"])({
+    url: '/clw/car/plateNumberList',
+    method: 'get'
+  });
+}
+
+function importData(data) {
+  return (0, _request["default"])({
+    url: '/clw/gas/importData',
+    method: 'post',
+    data: data
+  });
+}
+
+function signOutGas(data) {
+  return (0, _request["default"])({
+    url: "/clw/gas/signOut/".concat(data.gasId),
+    method: 'PUT',
+    params: {
+      logoutReason: data.logoutReason
+    }
+  });
+}

+ 10 - 0
src/api/clw/gas.js

@@ -57,3 +57,13 @@ export function importData (data) {
     data: data
   })
 }
+
+export function signOutGas (data) {
+  return request({
+    url: `/clw/gas/signOut/${data.gasId}`,
+    method: 'PUT',
+    params: {
+      logoutReason: data.logoutReason
+    }
+  })
+}

+ 2 - 2
src/views/clw/gas/index.vue

@@ -123,7 +123,7 @@
 </template>
 
 <script>
-import { listGas, delGas, updateGas } from '@/api/clw/gas'
+import { listGas, delGas, updateGas, signOutGas } from '@/api/clw/gas'
 import CreateForm from './modules/CreateForm'
 import { tableMixin } from '@/store/table-mixin'
 import singOut from './modules/singOut.vue'
@@ -339,7 +339,7 @@ export default {
       if (info.logoutReason == '') {
         return this.$message.error('请输入注销原因')
       }
-      updateGas(info).then((res) => {
+      signOutGas(info).then((res) => {
         if (res.code == 200) {
           this.$message.success('注销成功')
           this.getList()

+ 1 - 1
vue.config.js

@@ -111,7 +111,7 @@ const vueConfig = {
       [process.env.VUE_APP_BASE_API]: {
         // target: `https://ruoyi.setworld.net`,
         // target: `http://113.249.153.164:7618/api`,
-        target:`http://172.20.16.92:8081/`,
+        target:`http://172.20.16.92:8080/`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''