Browse Source

优化

master
pengjun 3 years ago
parent
commit
98079994d9
  1. 5
      src/components/customerOrg/ContactPerson.vue
  2. 6
      src/components/customerOrg/customerOrgEdit.vue
  3. 16
      src/views/customerOrg/customerOrg.vue

5
src/components/customerOrg/ContactPerson.vue

@ -232,8 +232,13 @@ export default {
// //
del() { del() {
//this.$message.success(" delContactPerson"); //this.$message.success(" delContactPerson");
if(!this.personId){
alert("请先选择要编辑的联系人")
return
}
deletapi(`/api/app/contact-person/${this.personId}`).then( deletapi(`/api/app/contact-person/${this.personId}`).then(
(res) => { (res) => {
this.personId = ''
this.getContactPersonList(this.customerOrg.customerOrgId) this.getContactPersonList(this.customerOrg.customerOrgId)
this.customerOrg.contactMethodList = [] this.customerOrg.contactMethodList = []
this.$message.success("操作成功!"); this.$message.success("操作成功!");

6
src/components/customerOrg/customerOrgEdit.vue

@ -273,7 +273,9 @@ export default {
(res) => { (res) => {
this.$message.success("创健 操作成功"); this.$message.success("创健 操作成功");
this.setData({ key: 'customerOrg.customerOrgRd', value: res}) this.setData({ key: 'customerOrg.customerOrgRd', value: res})
this.customerOrg.customerOrgId = res.id
this.getCustomerOrgTree() this.getCustomerOrgTree()
} }
); );
@ -295,7 +297,9 @@ export default {
}, },
// //
add() { add() {
this.setData({ key: 'customerOrg.customerOrgRd', value:{id:''}})
this.customerOrg.customerOrgId = ''
this.customerOrg.customerOrgRd = {id:'',isLock: 'N',
isActive: 'Y'}
}, },
// //

16
src/views/customerOrg/customerOrg.vue

@ -28,7 +28,7 @@
</div> </div>
</template> </template>
<script> <script>
import { mapState } from 'vuex'
import CustomerOrgTree from '../../components/customerOrg/customerOrgTree.vue' import CustomerOrgTree from '../../components/customerOrg/customerOrgTree.vue'
import CustomerOrgEdit from '../../components/customerOrg/customerOrgEdit.vue' import CustomerOrgEdit from '../../components/customerOrg/customerOrgEdit.vue'
import CustomerOrgRegister from '../../components/customerOrg/customerOrgRegister.vue' import CustomerOrgRegister from '../../components/customerOrg/customerOrgRegister.vue'
@ -53,14 +53,22 @@ export default {
// //
mounted() { mounted() {
}, },
computed:{
...mapState(['customerOrg']),
},
methods: { methods: {
}, },
//
// watch:{
// 'customerOrg.customerOrgId'(newVal, oldVal){
// if(newVal != oldVal && newVal != ""){
// alert(newVal)
// }
// },
// },
}; };
</script> </script>
<style scoped> <style scoped>

Loading…
Cancel
Save