Commit bc4ab89c by huangqy

111

parents 62817a7a 8ca3e40e
...@@ -177,9 +177,9 @@ ...@@ -177,9 +177,9 @@
> >
<div class="drawer_box"> <div class="drawer_box">
<div class="drawer_body"> <div class="drawer_body">
<a-input placeholder="搜索库房" v-model="seleName" @pressEnter="seleRome()"> <!-- <a-input placeholder="搜索库房" v-model="seleName" @pressEnter="seleRome()">
<a-icon slot="prefix" type="search" /> <a-icon slot="prefix" type="search" />
</a-input> </a-input>-->
<!-- 库房选择 --> <!-- 库房选择 -->
<div class="checkbox"> <div class="checkbox">
...@@ -188,8 +188,8 @@ ...@@ -188,8 +188,8 @@
</a-checkbox> </a-checkbox>
<!-- 库房列表 --> <!-- 库房列表 -->
<a-checkbox-group v-model="checkRoomKey" @change="allChange" class="checkbox_box"> <a-checkbox-group v-model="checkRoomKey" @change="allChange" class="checkbox_box">
<a-checkbox class="checkbox_child" v-for="(item, index) in roomData" :key="index" :value="item.code"> <a-checkbox class="checkbox_child" v-for="(item, index) in roomData" :key="index" :value="item.storeCode">
{{ item.name }} {{ item.storeName }}
</a-checkbox> </a-checkbox>
</a-checkbox-group> </a-checkbox-group>
</div> </div>
...@@ -390,6 +390,7 @@ export default { ...@@ -390,6 +390,7 @@ export default {
this.draFlag = false this.draFlag = false
}, },
async showDr (row) { async showDr (row) {
this.getRoom()
this.activeUser = row this.activeUser = row
this.draFlag = true this.draFlag = true
const { data: res } = await this.$axios.get(window._CONFIG['publicURL'] + '/store/getStoreByUser', { const { data: res } = await this.$axios.get(window._CONFIG['publicURL'] + '/store/getStoreByUser', {
...@@ -399,7 +400,7 @@ export default { ...@@ -399,7 +400,7 @@ export default {
}) })
if (res.code !== 99200) return this.$message.error(res.message) if (res.code !== 99200) return this.$message.error(res.message)
this.checkRoomKey = res.data this.checkRoomKey = res.data
console.log(this.activeUser) console.log('打印:',res.data)
}, },
// 确认按钮 // 确认按钮
async putUser () { async putUser () {
...@@ -416,7 +417,7 @@ export default { ...@@ -416,7 +417,7 @@ export default {
allClick (e) { allClick (e) {
var keys = [] var keys = []
this.roomData.forEach(item => { this.roomData.forEach(item => {
keys.push(item.code) keys.push(item.storeCode)
}) })
this.checkRoomKey = e.target.checked ? keys : [] this.checkRoomKey = e.target.checked ? keys : []
this.checkAll = e.target.checked this.checkAll = e.target.checked
...@@ -437,7 +438,7 @@ export default { ...@@ -437,7 +438,7 @@ export default {
this.getRoom() this.getRoom()
}, },
async getRoom () { async getRoom () {
const { data: res } = await this.$axios.post(window._CONFIG['publicURL'] + '/store/list', { isSuperAdmin: true }) const { data: res } = await this.$axios.get(window._CONFIG['domianURL'] + '/store/list')
if (res.code !== 99200) return this.$message.error(res.message) if (res.code !== 99200) return this.$message.error(res.message)
this.roomData = res.data this.roomData = res.data
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论