Jelajahi Sumber

销售项目会员状态和传值优化

yjwang 2 hari lalu
induk
melakukan
93f8c41fce
1 mengubah file dengan 9 tambahan dan 3 penghapusan
  1. 9 3
      src/views/member/list.vue

+ 9 - 3
src/views/member/list.vue

@@ -180,7 +180,7 @@
       <el-table-column label="状态" align="center">
       <el-table-column label="状态" align="center">
         <template slot-scope="scope">
         <template slot-scope="scope">
           <el-tag :type="scope.row.status === 1 ? 'success' : 'danger'">
           <el-tag :type="scope.row.status === 1 ? 'success' : 'danger'">
-            {{ scope.row.status === 1 ? '正常' : '禁止' }}
+            {{ scope.row.status === 1 ? '正常' : scope.row.status === 2?'拉黑':'小黑屋' }}
           </el-tag>
           </el-tag>
         </template>
         </template>
       </el-table-column>
       </el-table-column>
@@ -288,7 +288,8 @@
         <el-form-item label="状态">
         <el-form-item label="状态">
           <el-radio-group v-model="form.status">
           <el-radio-group v-model="form.status">
             <el-radio :label="1">正常</el-radio>
             <el-radio :label="1">正常</el-radio>
-            <el-radio :label="0">禁止</el-radio>
+            <el-radio :label="2">拉黑</el-radio>
+            <el-radio :label="0">小黑屋</el-radio>
           </el-radio-group>
           </el-radio-group>
         </el-form-item>
         </el-form-item>
       </el-form>
       </el-form>
@@ -374,7 +375,10 @@ export default {
         projectId: null,
         projectId: null,
       },
       },
       // 表单参数
       // 表单参数
-      form: {},
+      form: {
+        status: null,
+        ucuId: null,
+      },
       // 表单校验
       // 表单校验
       rules: {
       rules: {
         // nickname: [
         // nickname: [
@@ -559,6 +563,8 @@ export default {
       const userId = row.userId || this.ids[0];
       const userId = row.userId || this.ids[0];
       getUser(userId).then(response => {
       getUser(userId).then(response => {
         this.form = response.data;
         this.form = response.data;
+        this.form.status = row.status;
+        this.form.ucuId = row.ucuId;
 
 
         // 处理标签数据,将字符串转为数组
         // 处理标签数据,将字符串转为数组
         if (this.form.tagIds && typeof this.form.tagIds === 'string') {
         if (this.form.tagIds && typeof this.form.tagIds === 'string') {