Commit aeea39f0 authored by 刘帅阳's avatar 刘帅阳

修改bug

parent c6e099a2
...@@ -52,7 +52,7 @@ export function updateSysUnit(data) { ...@@ -52,7 +52,7 @@ export function updateSysUnit(data) {
// 5. 逻辑删除单位管理 // 5. 逻辑删除单位管理
export function delSysUnit(businessId) { export function delSysUnit(businessId) {
return request({ return request({
url: '/sysunit/delete/' + businessId, url: '/sysunit/deleteLogical/' + businessId,
method: 'delete' method: 'delete'
}) })
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="search" style="border-bottom: 14px solid #f4f4f4"> <div class="search" style="border-bottom: 14px solid #f4f4f4">
<el-form v-show="showSearch" ref="queryForm" style="padding: 0 0 0 10px" class="formClass" :model="queryParams" :inline="true" label-width="auto"> <el-form v-show="showSearch" ref="queryForm" style="padding: 0 0 0 10px" class="formClass" :model="queryParams" :inline="true" label-width="auto">
<el-form-item label="所属商家:" prop="deptId"> <el-form-item label="所属商家:" prop="deptId">
<el-select v-model="queryParams.deptId" filterable placeholder="请选择所属商家" style="width: 100%"> <el-select v-model="queryParams.deptId" filterable placeholder="请选择所属商家" style="width: 100%">
<el-option <el-option
v-for="(item,index) in deptList" v-for="(item,index) in deptList"
:key="index" :key="index"
...@@ -665,7 +665,7 @@ export default { ...@@ -665,7 +665,7 @@ export default {
if (this.roles[0].roleKey !== 'admin') { if (this.roles[0].roleKey !== 'admin') {
console.log('this.roles', this.roles) console.log('this.roles', this.roles)
this.queryShop = false this.queryShop = false
this.queryParams.deptId = this.deptId // this.queryParams.deptId = this.deptId
this.upload.deptId = this.deptId this.upload.deptId = this.deptId
this.form.deptId = this.deptId this.form.deptId = this.deptId
} else { } else {
...@@ -687,6 +687,11 @@ export default { ...@@ -687,6 +687,11 @@ export default {
listAllShop().then(res => { listAllShop().then(res => {
if (res.code === 200) { if (res.code === 200) {
this.deptList = res.data this.deptList = res.data
if (res.data && res.data.length > 0) {
this.queryParams.deptId = res.data[0].businessId
} else {
this.queryParams.deptId = ''
}
} }
}) })
}, },
......
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