Merge branch 'feature/入司优化' into dev

This commit is contained in:
mengxiaolong
2020-10-29 11:30:56 +08:00

View File

@@ -21,7 +21,7 @@
</template>
<script>
import { Popup, Dialog } from 'vant'
import { Popup, Dialog, Toast } from 'vant'
import AddPractisingCertificate from './AddPractisingCertificate.vue'
import { saveCertificateInfo } from '@/api/ebiz/agentEenter/agentEenter'
export default {
@@ -29,6 +29,7 @@ export default {
components: {
[Popup.name]: Popup,
[Dialog.name]: Dialog,
[Toast.name]: Toast,
AddPractisingCertificate
},
data() {
@@ -52,27 +53,28 @@ export default {
item.certificate_type = item.certificate_type === '执业证' ? '1' : '2'
item.flag = item.flag === '是' ? 'Y' : 'N'
}
console.dir(list)
const params = {
id: Number(this.id),
certificate: list
}
const result = await saveCertificateInfo(params)
if (result.result === '0') {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/agentEenter/approve/ApproveList',
needRefresh: '1'
},
routerInfo: {
path: '/agentEenter/approve/ApproveList'
}
})
Toast.success('添加成功')
setTimeout(() => {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/agentEenter/approve/ApproveList',
needRefresh: '1'
},
routerInfo: {
path: '/agentEenter/approve/ApproveList'
}
})
}, 500)
} else {
this.$toast(result.resultMessage)
}
console.dir(result)
},
async deleteCertificate(index) {
try {