Browse Source

优化

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

7
src/components/customerOrg/ContactPerson.vue

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

6
src/components/customerOrg/customerOrgEdit.vue

@ -273,7 +273,9 @@ export default {
(res) => {
this.$message.success("创健 操作成功");
this.setData({ key: 'customerOrg.customerOrgRd', value: res})
this.customerOrg.customerOrgId = res.id
this.getCustomerOrgTree()
}
);
@ -295,7 +297,9 @@ export default {
},
//
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>
</template>
<script>
import { mapState } from 'vuex'
import CustomerOrgTree from '../../components/customerOrg/customerOrgTree.vue'
import CustomerOrgEdit from '../../components/customerOrg/customerOrgEdit.vue'
import CustomerOrgRegister from '../../components/customerOrg/customerOrgRegister.vue'
@ -53,14 +53,22 @@ export default {
//
mounted() {
},
computed:{
...mapState(['customerOrg']),
},
methods: {
},
//
// watch:{
// 'customerOrg.customerOrgId'(newVal, oldVal){
// if(newVal != oldVal && newVal != ""){
// alert(newVal)
// }
// },
// },
};
</script>
<style scoped>

Loading…
Cancel
Save