Commit d5cd15d8 by crushh

Merge branch 'feature/act-code' into dev

parents ee12510f 0299fc03
<template> <template>
<el-dialog :visible.sync="show" v-if="show" title="选择成员" width="1030px" append-to-body @close="onCancel"> <div>
<el-dialog :visible="visible" v-if="visible" title="选择成员" width="1030px" append-to-body @close="onCancel">
<div class="select-clerk" v-loading="loading"> <div class="select-clerk" v-loading="loading">
<!-- 选择导购 --> <!-- 选择导购 -->
<div class="clerk-list"> <div class="clerk-list">
...@@ -82,10 +83,11 @@ ...@@ -82,10 +83,11 @@
</div> </div>
</div> </div>
<template slot="footer"> <template slot="footer">
<el-button @click="show = false">取消</el-button> <el-button @click="onCancel">取消</el-button>
<el-button type="primary" @click="onSave">确定</el-button> <el-button type="primary" @click="onSave">确定</el-button>
</template> </template>
</el-dialog> </el-dialog>
</div>
</template> </template>
<script> <script>
...@@ -95,7 +97,10 @@ export default { ...@@ -95,7 +97,10 @@ export default {
name: 'SelectClerk', name: 'SelectClerk',
components: { GicSelectGroup }, components: { GicSelectGroup },
props: { props: {
visible: Boolean, visible: {
type: Boolean,
default: false
},
data: { data: {
type: Array, type: Array,
default: () => [] default: () => []
...@@ -118,7 +123,6 @@ export default { ...@@ -118,7 +123,6 @@ export default {
watch: { watch: {
visible(flag) { visible(flag) {
if (flag) { if (flag) {
this.show = true;
this.selected = JSON.parse(JSON.stringify(this.data)); this.selected = JSON.parse(JSON.stringify(this.data));
this.getStoreClerkList(); this.getStoreClerkList();
} }
...@@ -126,7 +130,6 @@ export default { ...@@ -126,7 +130,6 @@ export default {
}, },
data() { data() {
return { return {
show: false,
params: { params: {
storeGroup: [], storeGroup: [],
storeGroupId: '', // 分组ID storeGroupId: '', // 分组ID
...@@ -356,7 +359,7 @@ export default { ...@@ -356,7 +359,7 @@ export default {
}, },
onSave() { onSave() {
this.$emit('save', JSON.parse(JSON.stringify(this.selected))); this.$emit('save', JSON.parse(JSON.stringify(this.selected)));
this.show = false; this.$emit('update:visible', false);
} }
} }
}; };
......
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