wuhongyu vor 5 Jahren
Ursprung
Commit
b0d2e730d6

+ 18 - 3
src/layout/enterprise/contextfabu.vue

@@ -14,14 +14,14 @@
                 <span v-if="totaltype == 0">
                   <el-form-item label="选择不显示的信息">
                     <el-select v-model="is_display" multiple placeholder="请选择" style="width:100%">
-                      <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
+                      <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" :disabled="item.disabled"> </el-option>
                     </el-select>
                   </el-form-item>
                 </span>
                 <span v-if="totaltype == 1">
                   <el-form-item label="选择不显示的信息">
                     <el-select v-model="demandForm.is_display" multiple placeholder="请选择" style="width:100%">
-                      <el-option v-for="item in option2" :key="item.value" :label="item.label" :value="item.value"> </el-option>
+                      <el-option v-for="item in option2" :key="item.value" :label="item.label" :value="item.value" :disabled="item.disabled"> </el-option>
                     </el-select>
                   </el-form-item>
                 </span>
@@ -29,7 +29,7 @@
                 <span v-if="totaltype == 2">
                   <el-form-item label="选择不显示的信息">
                     <el-select v-model="demandForm.is_display" multiple placeholder="请选择" style="width:100%">
-                      <el-option v-for="item in option3" :key="item.value" :label="item.label" :value="item.value"> </el-option>
+                      <el-option v-for="item in option3" :key="item.value" :label="item.label" :value="item.value" :disabled="item.disabled"> </el-option>
                     </el-select>
                   </el-form-item>
                 </span>
@@ -181,19 +181,23 @@ export default {
       {
         value: 'totaltype',
         label: '产品类型',
+        disabled: true,
       },
       {
         value: 'name',
         label: '产品名称',
+        disabled: true,
       },
       {
         value: 'contact_user',
         label: '联系人',
+        disabled: true,
       },
 
       {
         value: 'contact_tel',
         label: '联系人电话',
+        disabled: true,
       },
 
       {
@@ -211,6 +215,7 @@ export default {
       {
         value: 'introduction',
         label: '产品简介',
+        disabled: true,
       },
 
       {
@@ -267,19 +272,23 @@ export default {
       {
         value: 'totaltype',
         label: '产品类型',
+        disabled: true,
       },
       {
         value: 'name',
         label: '产品名称',
+        disabled: true,
       },
       {
         value: 'contact_user',
         label: '联系人',
+        disabled: true,
       },
 
       {
         value: 'contact_tel',
         label: '联系人电话',
+        disabled: true,
       },
 
       {
@@ -294,6 +303,7 @@ export default {
       {
         value: 'introduction',
         label: '产品简介',
+        disabled: true,
       },
 
       {
@@ -342,19 +352,23 @@ export default {
       {
         value: 'totaltype',
         label: '产品类型',
+        disabled: true,
       },
       {
         value: 'name',
         label: '产品名称',
+        disabled: true,
       },
       {
         value: 'contact_user',
         label: '联系人',
+        disabled: true,
       },
 
       {
         value: 'contact_tel',
         label: '联系人电话',
+        disabled: true,
       },
 
       {
@@ -369,6 +383,7 @@ export default {
       {
         value: 'introduction',
         label: '产品简介',
+        disabled: true,
       },
 
       {

+ 13 - 1
src/views/enterprise/enterprisedg.vue

@@ -22,6 +22,7 @@ import enterprisedgDetail from '@/components/enterprise/enterpisedg.vue';
 import { createNamespacedHelpers, mapGetters } from 'vuex';
 
 const { mapActions: transaction } = createNamespacedHelpers('transaction');
+const { mapActions: login } = createNamespacedHelpers('login');
 export default {
   name: 'adviserList',
   props: {},
@@ -54,6 +55,7 @@ export default {
   computed: {},
   methods: {
     ...transaction({ transactionList: 'query', transactiondtetle: 'delete' }),
+    ...login({ logout: 'logout', transactiondtetle: 'delete' }),
     // 查询
     async jiaoyi1({ skip = 0, limit = 3, ...info } = {}) {
       let status = 1;
@@ -119,9 +121,19 @@ export default {
       } else if (id === '修改密码') {
         this.$router.push({ path: '/enterprise/xiugai' });
       } else if (id === '返回首页') {
-        this.$router.push({ path: '/home.html' });
+        this.$router.push({ path: '/' });
+      } else if (id === '注销账号') {
+        this.logout();
+        this.$message({
+          message: '注销成功',
+          type: 'success',
+        });
+        this.toLogin();
       }
     },
+    async toLogin() {
+      this.$router.push({ path: '/' });
+    },
   },
 };
 </script>

+ 12 - 2
src/views/enterprise/enterprisefabu.vue

@@ -243,14 +243,24 @@ export default {
         this.$router.push({ path: '/enterprise/enterprisefabu' });
       } else if (id === '事项管理') {
         console.log('bbb');
-        
+
         this.$router.push({ path: '/enterprise/enterprisedg' });
       } else if (id === '修改密码') {
         this.$router.push({ path: '/enterprise/xiugai' });
       } else if (id === '返回首页') {
-        this.$router.push({ path: '/home.html' });
+        this.$router.push({ path: '/' });
+      } else if (id === '注销账号') {
+        this.logout();
+        this.$message({
+          message: '注销成功',
+          type: 'success',
+        });
+        this.toLogin();
       }
     },
+    async toLogin() {
+      this.$router.push({ path: '/' });
+    },
   },
 };
 </script>

+ 11 - 1
src/views/enterprise/enterprisejb.vue

@@ -56,9 +56,19 @@ export default {
       } else if (id === '修改密码') {
         this.$router.push({ path: '/enterprise/xiugai' });
       } else if (id === '返回首页') {
-        this.$router.push({ path: '/home.html' });
+ this.$router.push({ path: '/' });
+      } else if (id === '注销账号') {
+        this.logout();
+        this.$message({
+          message: '注销成功',
+          type: 'success',
+        });
+        this.toLogin();
       }
     },
+      async toLogin() {
+      this.$router.push({ path: '/' });
+    },
   },
 };
 </script>

+ 13 - 2
src/views/enterprise/enterprisexuqiu.vue

@@ -95,7 +95,7 @@ export default {
     },
     // 栏目跳转
     async onsaveClick({ id }) {
-    if (id === '基本信息') {
+      if (id === '基本信息') {
         this.$router.push({ path: '/enterprise/enterprisejb' });
       } else if (id === '消息管理') {
         this.$router.push({ path: '/enterprise/enterprisexx' });
@@ -106,9 +106,20 @@ export default {
       } else if (id === '修改密码') {
         this.$router.push({ path: '/enterprise/xiugai' });
       } else if (id === '返回首页') {
-        this.$router.push({ path: '/home.html' });
+        this.$router.push({ path: '/' });
+      } else if (id === '注销账号') {
+        this.logout();
+        this.$message({
+          message: '注销成功',
+          type: 'success',
+        });
+        this.toLogin();
       }
     },
+
+    async toLogin() {
+      this.$router.push({ path: '/' });
+    },
     changeType(item) {
       console.log(item);
       this.$set(this, `totaltype`, item);

+ 11 - 1
src/views/enterprise/enterprisexx.vue

@@ -42,9 +42,19 @@ export default {
       } else if (id === '修改密码') {
         this.$router.push({ path: '/enterprise/xiugai' });
       } else if (id === '返回首页') {
-        this.$router.push({ path: '/s' });
+        this.$router.push({ path: '/' });
+      } else if (id === '注销账号') {
+        this.logout();
+        this.$message({
+          message: '注销成功',
+          type: 'success',
+        });
+        this.toLogin();
       }
     },
+    async toLogin() {
+      this.$router.push({ path: '/' });
+    },
   },
 };
 </script>

+ 11 - 2
src/views/enterprise/xiugai.vue

@@ -47,10 +47,19 @@ export default {
       } else if (id === '修改密码') {
         this.$router.push({ path: '/enterprise/xiugai' });
       } else if (id === '返回首页') {
-        this.$router.push({ path: '/home.html' });
+        this.$router.push({ path: '/home' });
+      } else if (id === '注销账号') {
+        this.logout();
+        this.$message({
+          message: '注销成功',
+          type: 'success',
+        });
+        this.toLogin();
       }
     },
-
+    async toLogin() {
+      this.$router.push({ path: '/' });
+    },
     async submit({ data }) {
       data.id = this.user.uid;
       let res = await this.userUpdate(data);