|
@@ -54,7 +54,7 @@
|
|
type="primary"
|
|
type="primary"
|
|
id="chooseImport-submit"
|
|
id="chooseImport-submit"
|
|
size="large"
|
|
size="large"
|
|
- :class="loadData.length==0?'button-grey':'button-primary'"
|
|
|
|
|
|
+ :class="unLoadData.length?'button-grey':'button-primary'"
|
|
@click="handleSubmit"
|
|
@click="handleSubmit"
|
|
style="padding: 0 40px;">确认导入</a-button>
|
|
style="padding: 0 40px;">确认导入</a-button>
|
|
<a-button
|
|
<a-button
|
|
@@ -133,11 +133,10 @@ export default {
|
|
},
|
|
},
|
|
// 确认导入
|
|
// 确认导入
|
|
handleSubmit () {
|
|
handleSubmit () {
|
|
- if (this.paramsData.rightList.length == 0) {
|
|
|
|
- this.$message.warning('无可导入的产品!')
|
|
|
|
|
|
+ if (this.unLoadData.length) {
|
|
|
|
+ this.$message.warning('有错误数据不可导入,请修改正确后再试!')
|
|
} else {
|
|
} else {
|
|
const data = this.paramsData.rightList
|
|
const data = this.paramsData.rightList
|
|
-
|
|
|
|
this.$emit('ok', data)
|
|
this.$emit('ok', data)
|
|
this.isShow = false
|
|
this.isShow = false
|
|
}
|
|
}
|