52a28499 by renchao@pashanhoo.com

Merge branch 'dev'

2 parents 4a2c5e37 9bedf8a2
......@@ -2,7 +2,7 @@
/*
* @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器
* @Autor: renchao
* @LastEditTime: 2023-07-21 10:30:53
* @LastEditTime: 2023-08-16 15:16:49
*/
import axios from 'axios'
import Router from '@/router'
......@@ -54,10 +54,10 @@ service.interceptors.response.use(
*/
if (response.status == 200) {
return response.data;
}else if (response.status == 2002){
} else if (response.status == 2002) {
Message.error(response.message);
}else {
handleErrorData(response.data);
} else {
handleErrorData(response.status);
}
return response;
},
......@@ -97,26 +97,22 @@ service.interceptors.response.use(
)
//对错误信息的处理函数
function handleErrorData (errMes) {
if (errMes.message) {
Message.error(errMes.message);
} else {
switch (errMes.code) {
case 401:
Message.error("未授权,请重新登录!");
break;
case 403:
Message.error("拒绝访问");
break;
case 404:
Message.error("很抱歉,资源未找到!");
break;
case 500:
Message.error("服务器错误!");
break;
default:
Message.error("服务正在联调中,请稍后!");
break;
}
switch (errMes) {
case 401:
Message.error("未授权,请重新登录!");
break;
case 403:
Message.error("拒绝访问");
break;
case 404:
Message.error("很抱歉,资源未找到!");
break;
case 500:
Message.error("服务器错误!");
break;
default:
Message.error("服务正在联调中,请稍后!");
break;
}
}
export default service
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-15 10:57:30
* @LastEditTime: 2023-08-16 15:00:12
-->
<template>
<div class="content">
......@@ -46,7 +46,6 @@
},
methods: {
getBdcdyh (val) {
console.log(val, ';222222222222');
// this.loadData(val);
},
/**
......@@ -65,6 +64,8 @@
this.$refs.tree.setCurrentKey(this.defaultNode.id); //data[0].id为默认选中的节点
this.loadComponent(this.defaultNode.form);
})
} else {
this.$message.error(res.message);
}
})
this.currentSelectProps = {
......@@ -90,7 +91,6 @@
* @author: renchao
*/
loadComponent (form) {
console.log(form, 'form');
this.componentTag = (r) =>
require.ensure([], () => r(require("@/views/registerBook/" + form)))
}
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-16 14:08:42
* @LastEditTime: 2023-08-16 15:33:46
-->
<template>
<div>
......@@ -106,10 +106,10 @@
this.isDisabled ? <el-button
icon="el-icon-view"
type="text"
onClick={() => { this.queryViewClick(scope.$index, scope.row) }} disabled={this.isDisabled} > 查看</el-button> : <el-button
onClick={() => { this.queryViewClick(scope.$index, scope.row) }} > 查看</el-button> : <el-button
icon="el-icon-edit-outline"
type="text"
onClick={() => { this.editClick(scope.$index, scope.row) }} disabled={this.isDisabled}>编辑</el-button>
onClick={() => { this.editClick(scope.$index, scope.row) }}>编辑</el-button>
}
</div>
)
......
<!--
* @Description: 受理信息
* @Autor: renchao
* @LastEditTime: 2023-08-16 14:38:36
* @LastEditTime: 2023-08-16 15:36:07
-->
<template>
<div class="slxx">
......@@ -345,7 +345,7 @@
</el-form-item>
</el-col>
</el-row>
<qlrCommonTable @upDateQlrxxList="upDateQlrxxList" :tableData="ruleForm.qlrList" :disabled="viewEdit"
<qlrCommonTable @upDateQlrxxList="upDateQlrxxList" :tableData="ruleForm.qlrList" :disabled="!viewEdit"
:gyfs="ruleForm.qlxx.gyfs" />
<div v-if="ruleForm.ywrList && ruleForm.qlxx.djlx == '200'">
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-02 09:53:35
* @LastEditTime: 2023-08-16 14:59:46
-->
<template>
<div class="from-clues">
......@@ -239,7 +239,6 @@
* @author: miaofang
*/
openBook (row) {
console.log("的急急急急急急");
var param = {
bdcdyid: row.bdcdyid,
qllx: row.qllx,
......