lugang il y a 4 ans
Parent
commit
4437d924a7
3 fichiers modifiés avec 13317 ajouts et 4 suppressions
  1. 13294 0
      package-lock.json
  2. 20 1
      src/views/companyManage/basicInfo.vue
  3. 3 3
      src/views/companyManage/formManage.vue

Fichier diff supprimé car celui-ci est trop grand
+ 13294 - 0
package-lock.json


+ 20 - 1
src/views/companyManage/basicInfo.vue

@@ -32,7 +32,7 @@
             <el-form-item label="公司简介">
                 <editor-bar class="editor" v-model.trim="form.companyIntroduce"></editor-bar>
             </el-form-item>
-            <el-form-item class="button-grounp">
+            <el-form-item v-if="show" class="button-grounp">
                 <el-button type="primary" @click="determine">确认修改</el-button>
             </el-form-item>
         </el-form>
@@ -49,6 +49,7 @@ export default {
         cmpMailType: 0
       },
       info: {},
+      show: false,
       email: {},
       rules: {
         companyAddress: [{
@@ -132,6 +133,24 @@ export default {
             })
         })
     }
+  },
+  watch: {
+    'form.companyAddress' (newValue) {
+      this.show = this.info.companyAddress !== newValue
+      console.log(this.info.companyAddress)
+    },
+    'form.cmpMailAccount' (newValue) {
+      console.log(this.show)
+      this.show = this.email.cmpMailAccount !== newValue
+    },
+    'form.cmpMailPassword' (newValue) {
+      console.log(this.show)
+      this.show = this.email.cmpMailPassword !== newValue
+    },
+    'form.cmpMailType' (newValue) {
+      console.log(this.show)
+      this.show = this.email.cmpMailType !== newValue
+    }
   }
 }
 </script>

+ 3 - 3
src/views/companyManage/formManage.vue

@@ -31,9 +31,9 @@
                 <div v-else>
                     <div v-for="item in formConfigList.filter(i => form.checkList.includes(i.id))" :key="item.id">
                         <div>{{item.configName}}</div>
-                        <el-input class="p10" v-if="item.type === 0" :placeholder="'请输入' + item.configName"></el-input>
-                        <el-input class="p10" v-else-if="item.type === 1" type="textarea" :rows="4" resize="none" :placeholder="'请输入' + item.configName"></el-input>
-                        <el-select class="p10" v-else :placeholder="'请选择' + item.configName"></el-select>
+                        <el-input class="p10" disabled v-if="item.type === 0" :placeholder="'请输入' + item.configName"></el-input>
+                        <el-input class="p10" disabled v-else-if="item.type === 1" type="textarea" :rows="4" resize="none" :placeholder="'请输入' + item.configName"></el-input>
+                        <el-select class="p10" disabled v-else :placeholder="'请选择' + item.configName"></el-select>
                     </div>
                 </div>
             </el-form-item>