Commit ffe42702 authored by shenyanpei's avatar shenyanpei

去除一些前端打印代码,项目信息加提示

parent 0914eb4c
...@@ -58,8 +58,6 @@ export default { ...@@ -58,8 +58,6 @@ export default {
return cur return cur
}, []) }, [])
for (const key in this.fakeList) { for (const key in this.fakeList) {
console.log(key, '1')
console.log(this.levelList[this.levelList.length - 1].path, '2')
if (key === this.levelList[this.levelList.length - 1].path) { if (key === this.levelList[this.levelList.length - 1].path) {
this.levelList.splice(1, 0, this.fakeList[key]) this.levelList.splice(1, 0, this.fakeList[key])
} }
......
...@@ -72,7 +72,6 @@ export default { ...@@ -72,7 +72,6 @@ export default {
}, },
methods: { methods: {
setName(route) { setName(route) {
console.log('路由', route)
if (route.path === '/contract/manage1/add' || route.path === '/contactsUnit/add' || route.path === '/projectInfo/addProject' || route.path === '/assetsInfo/add' || route.path === '/materialsInfo/add') { if (route.path === '/contract/manage1/add' || route.path === '/contactsUnit/add' || route.path === '/projectInfo/addProject' || route.path === '/assetsInfo/add' || route.path === '/materialsInfo/add') {
if (route.query.type === 'add') { if (route.query.type === 'add') {
return '新增' + route.title return '新增' + route.title
......
...@@ -33,14 +33,13 @@ service.interceptors.request.use(config => { ...@@ -33,14 +33,13 @@ service.interceptors.request.use(config => {
config.headers['Authorization'] = 'Bearer ' + getToken() // 让每个请求携带自定义token 请根据实际情况自行修改 config.headers['Authorization'] = 'Bearer ' + getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
} }
// 参数发出前统一进行加密 白名单内的不进行加密 // 参数发出前统一进行加密 白名单内的不进行加密
console.log(config) // console.log(config)
// if(config.data) { // if(config.data) {
// config.data = Qs.stringify(config.data, { arrayFormat: 'repeat' }) // config.data = Qs.stringify(config.data, { arrayFormat: 'repeat' })
// } // }
return config return config
}, error => { }, error => {
console.log(error)
Promise.reject(error) Promise.reject(error)
}) })
// 响应拦截器 // 响应拦截器
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="contactsUnitAdd"> <div class="contactsUnitAdd">
<div class="addTitle">{{ $route.query.type === 'add' ? '新增往来单位' <div class="addTitle">{{ $route.query.type === 'add' ? '新增往来单位'
:$route.query.type === 'update' ? '修改往来单位' :$route.query.type === 'update' ? '修改往来单位'
:$route.query.type === 'details' ? '查看往来单位': '' }}</div> :$route.query.type === 'checkDetails' ? '查看往来单位': '' }}</div>
<el-form ref="form" inline :model="form" :disabled="$route.query.type === 'details'" label-width="auto" label-position="right"> <el-form ref="form" inline :model="form" :disabled="$route.query.type === 'details'" label-width="auto" label-position="right">
<div class="step-header"> <div class="step-header">
<div class="step-label">基本信息</div> <div class="step-label">基本信息</div>
...@@ -156,12 +156,12 @@ export default { ...@@ -156,12 +156,12 @@ export default {
} }
}, },
created() { created() {
if (this.$route.query.type === 'update' || this.$route.query.type === 'details') { if (this.$route.query.type === 'update' || this.$route.query.type === 'checkDetails') {
this.getDetail() this.getDetail()
} }
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
if (this.agreeBack) { next() } else { if (this.agreeBack || this.$route.query.type === 'checkDetails') { next() } else {
if (JSON.stringify(this.form) !== JSON.stringify(this.saveForm)) { if (JSON.stringify(this.form) !== JSON.stringify(this.saveForm)) {
this.$confirm('您已经对信息进行了修改,离开后不会保存您所做的更改,是否确定离开?', '提示', { this.$confirm('您已经对信息进行了修改,离开后不会保存您所做的更改,是否确定离开?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
......
...@@ -107,7 +107,7 @@ export default { ...@@ -107,7 +107,7 @@ export default {
this.$router.push({ this.$router.push({
path: '/contactsUnit/add', path: '/contactsUnit/add',
query: { query: {
type: 'details', type: 'checkDetails',
data: row data: row
} }
}) })
......
This diff is collapsed.
...@@ -5,13 +5,13 @@ ...@@ -5,13 +5,13 @@
<div style="flex: 1"> <div style="flex: 1">
<el-form ref="projectForm" inline :model="projectForm" label-position="left"> <el-form ref="projectForm" inline :model="projectForm" label-position="left">
<el-form-item label="项目类型"> <el-form-item label="项目类型">
<el-input v-model="projectForm.ZPROJTYPE" clearable placeholder="请输入项目类型" /> <el-input v-model.trim="projectForm.ZPROJTYPE" clearable placeholder="请输入项目类型" />
</el-form-item> </el-form-item>
<el-form-item label="国家/地区"> <el-form-item label="国家/地区">
<el-input v-model="projectForm.ZPRO_ORG" clearable placeholder="请输入国家/地区" /> <el-input v-model.trim="projectForm.ZZCOUNTRY" clearable placeholder="请输入国家/地区" />
</el-form-item> </el-form-item>
<el-form-item label="中交项目业务分类值域"> <el-form-item label="中交项目业务分类值域">
<el-input v-model="projectForm.ZCPBC" clearable placeholder="请输入中交项目业务分类值域" /> <el-input v-model.trim="projectForm.ZCPBC" clearable placeholder="请输入中交项目业务分类值域" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" size="small" @click="queryProject">查询</el-button> <el-button type="primary" size="small" @click="queryProject">查询</el-button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment