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

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

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

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

Loading…
Cancel
Save