|
@@ -255,7 +255,7 @@
|
|
|
<el-button size="small" @click="onClose" class="normal-btn-width inline-16">取 消</el-button>
|
|
|
<!-- <el-button size="small" type="primary" @click="duplicateChecking" class="normal-btn-width">查 重</el-button>-->
|
|
|
<duplicateCheck ref="check" :data="form" @onSuccess="onClose"></duplicateCheck>
|
|
|
- <el-button size="small" type="primary" @click="onSave" class="normal-btn-width">确 定</el-button>
|
|
|
+ <el-button size="small" type="primary" :loading="loading" @click="onSave" class="normal-btn-width">确 定</el-button>
|
|
|
</div>
|
|
|
</el-drawer>
|
|
|
<enterprise
|
|
@@ -367,7 +367,8 @@ export default {
|
|
|
},
|
|
|
computed:{
|
|
|
...mapGetters({
|
|
|
- dataToForm:'dataToForm'
|
|
|
+ dataToForm:'dataToForm',
|
|
|
+ loading:'loading'
|
|
|
})
|
|
|
},
|
|
|
methods:{
|
|
@@ -449,7 +450,10 @@ export default {
|
|
|
this.$refs.form.validate((valid) => {
|
|
|
if (!valid) return false
|
|
|
this.$refs.check.creatShow = true
|
|
|
- this.$refs.check.queryRule()
|
|
|
+ this.$store.commit('setLoading',true)
|
|
|
+ this.$refs.check.queryRule(() => {
|
|
|
+ this.$store.commit('setLoading',false)
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
onClose () {
|