Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0694d334
authored
2023-05-16 09:22:53 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:cas配置
1 parent
1fc44ade
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
96 additions
and
94 deletions
public/index.html
src/utils/request.js
src/views/ywbl/slsqxx/jsydsyq/slxx300.vue
public/index.html
View file @
0694d33
...
...
@@ -18,6 +18,9 @@
</title>
</head>
<script>
window
.
baseUrl
=
location
.
origin
||
location
.
protocol
+
'//'
+
location
.
host
window
.
timeout
=
5000
const
authorization
=
"bearer AT-4-MxSrO29Coe7VTazx8uuixtqqgO-hvCB6"
fetch
(
'<%= BASE_URL %>config.json'
)
.
then
(
response
=>
response
.
json
())
.
then
(
config
=>
{
...
...
@@ -29,9 +32,4 @@
<div
id=
"app"
></div>
</body>
</html>
<script>
window
.
baseUrl
=
location
.
origin
||
location
.
protocol
+
'//'
+
location
.
host
window
.
timeout
=
5000
window
.
authorization
=
"bearer AT-4-MxSrO29Coe7VTazx8uuixtqqgO-hvCB6"
</script>
\ No newline at end of file
</html>
\ No newline at end of file
...
...
src/utils/request.js
View file @
0694d33
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-0
4-11 14:48:1
8
* @LastEditTime: 2023-0
5-16 09:17:2
8
*/
/**
* 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器
...
...
@@ -12,11 +12,13 @@ import { endLoadingSubCount } from './requestLoading'
// create an axios instance
const
service
=
axios
.
create
({
baseURL
:
process
.
env
.
VUE_APP_BASE_API
,
baseURL
:
process
.
env
.
NODE_ENV
==
"development"
?
process
.
env
.
VUE_APP_BASE_API
:
window
.
baseUrl
+
"/"
,
withCredentials
:
true
,
//是否允许跨域
headers
:
{
'Content-Type'
:
'application/json; charset=utf-8'
,
'Authorization'
:
'bearer AT-4-MxSrO29Coe7VTazx8uuixtqqgO-hvCB6'
'Content-Type'
:
'application/json; charset=utf-8'
},
timeout
:
15000
})
...
...
@@ -24,14 +26,18 @@ const service = axios.create({
// request interceptor
service
.
interceptors
.
request
.
use
(
config
=>
{
config
.
headers
.
Authorization
=
'bearer AT-4-MxSrO29Coe7VTazx8uuixtqqgO-hvCB6'
config
.
headers
.
Accept
=
'application/json'
return
config
// do something before request is sent
if
(
process
.
env
.
NODE_ENV
===
"production"
)
{
return
config
;
}
else
{
config
.
headers
.
Authorization
=
authorization
;
return
config
;
}
},
error
=>
{
Message
.
error
(
'请求超时!'
);
return
Promise
.
reject
(
error
)
// do something with request error
console
.
log
(
error
);
// for debug
return
Promise
.
reject
(
error
);
}
)
...
...
@@ -44,13 +50,6 @@ service.interceptors.response.use(
* 如果请求不成功,就在拦截器这里统一处理(组件的代码就不用关注错误的情况了)
*/
if
(
response
.
status
==
200
)
{
// if (response.data.code == 500) {
// Message({
// message: response.data.message,
// type: 'error',
// duration: 5 * 1000
// })
// }
return
response
.
data
;
}
else
{
handleErrorData
(
response
.
data
);
...
...
src/views/ywbl/slsqxx/jsydsyq/slxx300.vue
View file @
0694d33
...
...
@@ -182,82 +182,87 @@
</div>
</
template
>
<
script
>
import
{
mapGetters
}
from
"vuex"
;
import
qlrCommonTable
from
"@/views/workflow/components/qlrCommonTable"
;
import
{
Init
,
saveData
}
from
"@/api/workflow/jsydsyqFlow.js"
;
export
default
{
mounted
()
{
this
.
propsParam
=
this
.
$attrs
;
var
formdata
=
new
FormData
();
this
.
$startLoading
();
formdata
.
append
(
"bsmSldy"
,
this
.
propsParam
.
bsmSldy
);
formdata
.
append
(
"djlx"
,
this
.
propsParam
.
djlx
);
Init
(
formdata
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
&&
res
.
result
)
{
this
.
ruleForm
=
res
.
result
;
this
.
$endLoading
();
}
});
},
components
:
{
qlrCommonTable
},
computed
:
{
...
mapGetters
([
"dictData"
,
"flag"
])
},
data
()
{
return
{
disabled
:
true
,
czrOptions
:
[],
ruleForm
:
{},
//传递参数
propsParam
:
{},
rules
:
{},
};
},
methods
:
{
// 更新权利人信息
upDateQlrxxList
(
val
)
{
this
.
ruleForm
.
qlrList
=
_
.
cloneDeep
(
val
);
},
onSubmit
()
{
saveData
(
this
.
ruleForm
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
showClose
:
true
,
message
:
"保存成功!"
,
type
:
"success"
,
});
}
else
{
this
.
$message
({
showClose
:
true
,
message
:
res
.
message
,
type
:
"error"
,
});
import
{
mapGetters
}
from
"vuex"
;
import
qlrCommonTable
from
"@/views/workflow/components/qlrCommonTable"
;
import
{
Init
,
saveData
}
from
"@/api/workflow/jsydsyqFlow.js"
;
export
default
{
mounted
()
{
this
.
propsParam
=
this
.
$attrs
;
var
formdata
=
new
FormData
();
this
.
$startLoading
();
formdata
.
append
(
"bsmSldy"
,
this
.
propsParam
.
bsmSldy
);
formdata
.
append
(
"djlx"
,
this
.
propsParam
.
djlx
);
Init
(
formdata
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
&&
res
.
result
)
{
this
.
ruleForm
=
res
.
result
;
this
.
$endLoading
();
}
});
},
compare
()
{
this
.
$popup
({
titleStyle
:
"left"
,
title
:
"土地变化情况比对"
,
// 弹窗标题
editItem
:
"registerBook/jsydsyq"
,
// 弹窗内容
formData
:
this
.
propsParam
,
width
:
"1220px"
,
height
:
"790px"
,
// cancelText: '取消摆烂', // 右边按钮文本
// confirmText: '确定点击', //左边按钮文本
cancel
:
()
=>
{
console
.
log
(
"取消回调"
);
},
confirm
:
()
=>
{
console
.
log
(
"确认回调"
);
components
:
{
qlrCommonTable
},
computed
:
{
...
mapGetters
([
"dictData"
,
"flag"
])
},
data
()
{
return
{
disabled
:
true
,
czrOptions
:
[],
ruleForm
:
{
slywxx
:
{},
qlxx
:
{},
zdjbxx
:
{},
jsydsyq
:
{}
},
});
}
},
//传递参数
propsParam
:
{},
rules
:
{},
};
},
methods
:
{
// 更新权利人信息
upDateQlrxxList
(
val
)
{
this
.
ruleForm
.
qlrList
=
_
.
cloneDeep
(
val
);
},
onSubmit
()
{
saveData
(
this
.
ruleForm
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
showClose
:
true
,
message
:
"保存成功!"
,
type
:
"success"
,
});
}
else
{
this
.
$message
({
showClose
:
true
,
message
:
res
.
message
,
type
:
"error"
,
});
}
});
},
compare
()
{
this
.
$popup
({
titleStyle
:
"left"
,
title
:
"土地变化情况比对"
,
// 弹窗标题
editItem
:
"registerBook/jsydsyq"
,
// 弹窗内容
formData
:
this
.
propsParam
,
width
:
"1220px"
,
height
:
"790px"
,
// cancelText: '取消摆烂', // 右边按钮文本
// confirmText: '确定点击', //左边按钮文本
cancel
:
()
=>
{
console
.
log
(
"取消回调"
);
},
confirm
:
()
=>
{
console
.
log
(
"确认回调"
);
},
});
}
},
};
};
</
script
>
<
style
scoped
lang=
'scss'
>
@import
"~@/styles/public.scss"
;
@import
"~@/styles/slxx/slxx.scss"
;
@import
"~@/styles/public.scss"
;
@import
"~@/styles/slxx/slxx.scss"
;
</
style
>
...
...
Please
register
or
sign in
to post a comment