From 1fdb81a91f5f4092e927d2d9a7cc9ff4d231fca4 Mon Sep 17 00:00:00 2001
From: 819527061@qq.com <123456>
Date: 星期二, 07 一月 2025 16:43:41 +0800
Subject: [PATCH] 月付页面细节
---
src/components/page/user/index.vue | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/components/page/user/index.vue b/src/components/page/user/index.vue
index 55bbea8..459ee48 100644
--- a/src/components/page/user/index.vue
+++ b/src/components/page/user/index.vue
@@ -21,6 +21,8 @@
<template slot-scope="scope">
<p v-if="scope.row.type==0">鍋滆溅鍦虹鐞嗗憳</p>
<p v-if="scope.row.type==1">鎵ф硶浜哄憳</p>
+ <p v-if="scope.row.type==2">绯荤粺绠$悊鍛�</p>
+ <p v-if="scope.row.type==3">鎵嬫寔缁堢绠$悊鍛�</p>
</template>
</el-table-column>
<el-table-column label="鎿嶄綔" fixed="right" width="150" align="center">
@@ -38,6 +40,9 @@
<el-form-item label="鐧诲綍鍚�" prop="loginName" :rules="[{required: true, message: '璇疯緭鍏ョ櫥褰曞悕', trigger: 'blur'}]">
<el-input v-model="formData.loginName" auto-complete="off"></el-input>
</el-form-item>
+ <el-form-item label="瀵嗙爜" prop="password" :rules="[{required: true, message: '璇疯緭鍏ュ瘑鐮�', trigger: 'blur'}]">
+ <el-input v-model="formData.password" auto-complete="off"></el-input>
+ </el-form-item>
<el-form-item label="濮撳悕" prop="name" :rules="[{required: true, message: '璇疯緭鍏ュ鍚�', trigger: 'blur'}]">
<el-input v-model="formData.name" auto-complete="off"></el-input>
</el-form-item>
@@ -46,8 +51,10 @@
</el-form-item>
<el-form-item label="浜哄憳绫诲瀷" prop="type" :rules="[{required: true, message: '璇烽�夋嫨浜哄憳绫诲瀷', trigger: 'change'}]">
<el-select v-model="formData.type">
- <el-option label="鍋滆溅鍦虹鐞嗗憳" :value=0></el-option>
+ <el-option label="鍋滆溅鍦哄悗鍙扮鐞嗗憳" :value=0></el-option>
<el-option label="鎵ф硶浜哄憳" :value=1></el-option>
+ <el-option label="绯荤粺绠$悊鍛�" :value=2></el-option>
+ <el-option label="鎵嬫寔缁堢绠$悊鍛�" :value=3></el-option>
</el-select>
</el-form-item>
<el-form-item label="绠$悊鍋滆溅鍦�" prop="parkIds">
@@ -99,7 +106,7 @@
this.formData.parkIds = this.parkIds.toString()
this.$refs['formData'].validate((valid) => {
if (valid) {
- this.$byutil.postData(this, this.$systemconfig.basePath + '/user/save', this.formData, res => {
+ this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/user/save', this.formData, res => {
this.$refs['formData'].resetFields();
this.flag=false;
this.$message({message: '淇濆瓨鎴愬姛', type: 'success'});
@@ -111,11 +118,11 @@
});
},
loadData() {
- this.$byutil.loadPageData(this, this.$systemconfig.basePath + '/user/findPage', this.searchForm);
+ this.$byutil.loadPageData(this, this.$systemconfig.basePath + '/ffzf/user/findPage', this.searchForm);
},
getParkList(){
- this.$byutil.postData(this, this.$systemconfig.basePath + '/park/findAll',null,res => {
- this.parkList = res.data.data
+ this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/park/findAll',null,res => {
+ this.parkList = res.data
});
},
onSearch() {
@@ -151,7 +158,7 @@
console.log(this.parkIds)
},
onDelete(index, row) {
- this.$byutil.deleteData(this,this.$systemconfig.basePath+"/user/delete",{id:row.id}, res => {
+ this.$byutil.deleteData(this,this.$systemconfig.basePath+"/ffzf/user/delete",{id:row.id}, res => {
this.$message({message: '鍒犻櫎鎴愬姛', type: 'success'});
this.loadData();
})
--
Gitblit v1.9.1