hebinlong vor 4 Jahren
Ursprung
Commit
0a78d04a37
2 geänderte Dateien mit 25 neuen und 0 gelöschten Zeilen
  1. 6 0
      src/views/userList/account.vue
  2. 19 0
      src/views/userList/index.vue

+ 6 - 0
src/views/userList/account.vue

@@ -7,6 +7,12 @@
         <el-button class="classitem" style="marginRight:50px" type="primary" plain icon="el-icon-plus" @click="handlerAdd">新增</el-button>
       </div>
       <el-table v-loading="loading" :data="tableData" border style="width: 100%">
+        <!-- 字段信息:客户名称、、账号余额、授信额度、可用额度、操作 -->
+        <el-table-column label="创建时间" width="200" align="center" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <span>{{ scope.row.createTime }}</span>
+        </template>
+      </el-table-column>
 
       </el-table>
   </div>

+ 19 - 0
src/views/userList/index.vue

@@ -71,6 +71,7 @@
         <template slot-scope="scope">
           <el-button v-if="scope.row.status === 1" size="small" icon="el-icon-close" type="warning" @click="ModifyStatus(scope.row,2)">暂停</el-button>
           <el-button v-if="scope.row.status === 2" size="small" icon="el-icon-check"  @click="ModifyStatus(scope.row,1)">有效</el-button>
+          <el-button size="small" icon="el-icon-edit" type="primary" @click="product(scope.row)">产品</el-button>
           <el-button size="small" icon="el-icon-edit" type="warning" @click="ModifyEdit(scope.row)">编辑</el-button>
           <el-button size="small" icon="el-icon-delete" type="danger" @click="ModifyDelete(scope.row)">删除</el-button>
         </template>
@@ -196,6 +197,14 @@
           </div>
         </el-dialog>
 
+        <el-dialog :title="productData.customerName+' 产品'" width="85%" :visible.sync="productShow" center>
+          test
+          <div slot="footer" class="dialog-footer">
+            <el-button @click="productShow = false">取 消</el-button>
+            <el-button type="primary" @click="productSubmit">确 定</el-button>
+          </div>
+        </el-dialog>
+
     <!-- 分页 -->
     <div class="pagination">
       <el-pagination
@@ -238,6 +247,8 @@ export default {
       dataForm:{
           userId:4,
       },
+      productShow:false,
+      productData:{}, // 产品查看时的基本数据的数据
       rules2:{
         shorterName: [{ required: true, message: '请输入客户简称', trigger: 'blur' }],
         customerName: [{ required: true, message: '请输入客户名称', trigger: 'blur' }],
@@ -304,6 +315,14 @@ export default {
         this.total = res.data.data.total
       })
     },
+
+    product(row){
+      this.productShow = true
+      this.productData = row
+    },
+    productSubmit(){
+      productShow = false
+    },
     //新增或修改API
     submitForm(){
         this.$refs['dataForm'].validate((valid) => {