pull/3/head
xiaozhiyong 2 years ago
parent 29c97a4251
commit 22c8d4d6dc
  1. 1
      src/permission.js
  2. 2
      src/utils/request.js
  3. 18
      src/views/product/index.vue

@ -28,7 +28,6 @@ router.beforeEach(async (to, from, next) => {
try {
let infoRes = await serve.info();
infoRes.data.authList = [1];
store.dispatch("user/info", infoRes.data);
let routerRes = await serve.getCustomerRouters();

@ -64,7 +64,7 @@ service.interceptors.response.use(
if (res && res.code) {
if (res.code === 42011) {
Vue.prototype.$message.error(res.msg || "您的登录已失效,请重新登录");
localStorage.removeItem("removeItem");
localStorage.removeItem("customerToken");
store.dispatch("user/remove");
setTimeout(() => {
window.location.reload();

@ -72,12 +72,6 @@
>
</el-table-column>
<el-table-column prop="productType" label="产品类型"> </el-table-column>
<el-table-column
prop="productType"
label="产品类型"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="refineryName"
label="炼厂名称"
@ -109,7 +103,9 @@
<template slot-scope="{ row }">
<span class="el-dropdown-link" @click="detail(row)">详情</span>
<span class="el-dropdown-link" @click="updateCreate(row)">下单</span>
<span class="el-dropdown-link" @click="updateCreate(row)"
>下单</span
>
</template>
</el-table-column>
</el-table>
@ -248,19 +244,19 @@ export default {
},
//
createOrder(row) {
this.controlWindows.addInfo = {}
this.controlWindows.addInfo = {};
this.controlWindows.addInfo.title = "创建订单";
this.controlWindows.create = true;
console.log(this.controlWindows,'新增')
console.log(this.controlWindows, "新增");
},
//
updateCreate(row){
updateCreate(row) {
this.controlWindows.addInfo = {
title: "创建订单",
...row,
};
this.controlWindows.create = true;
console.log('修改')
console.log("修改");
},
//
detail(row) {

Loading…
Cancel
Save