lilei 3 gadi atpakaļ
vecāks
revīzija
0bf2b672bb

+ 1 - 0
src/components/custom.less

@@ -5,6 +5,7 @@ body{
   span,td,label,.ant-btn-sm{
     font-size: 13px!important;
   }
+  color: #000!important;
 }
 // 查询条件样式
 .table-page-search-wrapper {

+ 5 - 9
src/views/salesManagement/salesman/editModal.vue

@@ -10,7 +10,7 @@
     :width="800">
     <a-spin :spinning="spinning" tip="Loading...">
       <!-- 表单 -->
-      <div v-if="isEdit">
+      <div v-if="!isView">
         <a-form-model
           id="supplierInfoEdit-form"
           ref="ruleForm"
@@ -78,7 +78,7 @@
         </div>
       </div>
       <!-- 详情 -->
-      <a-descriptions size="small" :column="2" v-if="!isEdit">
+      <a-descriptions size="small" :column="2" v-if="isView">
         <a-descriptions-item label="姓名">{{ this.form.name || '--' }}</a-descriptions-item>
         <a-descriptions-item label="身份证号">{{ this.form.idCard || '--' }}</a-descriptions-item>
         <a-descriptions-item label="联系电话">{{ this.form.mobile || '--' || '--' }}</a-descriptions-item>
@@ -121,7 +121,7 @@ export default {
         labelCol: { span: 6 },
         wrapperCol: { span: 16 }
       },
-      isEdit: false, // 是否为编辑
+      isView: false, // 是否查看详情
       form: {
         name: '', // 姓名
         mobile: '', //  联系电话
@@ -224,26 +224,22 @@ export default {
     isShow (newValue, oldValue) {
       if (!newValue) {
         this.$emit('close')
-        this.isEdit = false
         this.$refs.ruleForm.resetFields()
       }
     },
     itemId (newValue, oldValue) {
-      console.log(newValue, 'newValuenewValue')
       if (this.isShow && newValue) {
-        console.log(this.isShow)
         this.getDetail()
       } else {
-        this.isEdit = false
         this.$refs.ruleForm.resetFields()
       }
     },
     modalTitle (newValue, oldValue) {
       if (this.isShow && newValue) {
         if (newValue == '编辑' || newValue == '新增') {
-          this.isEdit = true
+          this.isView = false
         } else {
-          this.isEdit = false
+          this.isView = true
         }
       }
     }