Commit eb4c4c9e authored by 张伯涛's avatar 张伯涛

修改

parent d551aeb8
......@@ -88,11 +88,10 @@ export function updateDept(data) {
// 修改部门
export function updateDeptStatus(data) {
const businessId = data.businessId
data = Qs.stringify(data)
console.log(data)
return request({
url: '/system/dept/update/' + businessId,
url: '/system/dept/enable/',
method: 'put',
data,
headers: {
......
......@@ -22,7 +22,7 @@ export default {
if (title) {
vnodes.push(
<div style='padding-bottom: 5px;position: relative; right: 10px' slot='title'>
<div slot='title'>
<div> {(title.split(';')[0])} </div>
<div style='padding-left: 5px;font-size: 12px;'>{(title.split(';')[1])}</div>
</div>
......
......@@ -58,7 +58,7 @@
.svg-icon {
margin-top: 15px;
margin-left: 12px;
margin-right: 17px;
margin-right: 8px;
font-size: 20px;
}
......
......@@ -448,6 +448,7 @@ export default {
}).then(function() {
return updateDeptStatus({ businessId: row.businessId, flag: row.flag })
}).then(() => {
this.getList()
this.$message({
message: text + '成功',
type: 'success'
......
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