From 37f7c50a49bd7c830595d5fab3f3230d34556d6d Mon Sep 17 00:00:00 2001
From: baizonghao <1719256278@qq.com>
Date: 星期一, 22 五月 2023 16:31:29 +0800
Subject: [PATCH] 修改
---
src/views/manager/Police.vue | 35 ++++++++++++++++++++++-------------
1 files changed, 22 insertions(+), 13 deletions(-)
diff --git a/src/views/manager/Police.vue b/src/views/manager/Police.vue
index c8d285b..d05e0e7 100644
--- a/src/views/manager/Police.vue
+++ b/src/views/manager/Police.vue
@@ -80,14 +80,14 @@
label-width="100px">
<el-col :span="12">
<el-form-item label="濮撳悕" prop="realName">
- <el-input v-model="detailsRow.realName"
+ <el-input v-model="detailsRow.realName"
:style="{ width: '100%' }">
</el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="鎵嬫満鍙�" prop="phoneNumber">
- <el-input v-model="detailsRow.userMobile"
+ <el-input v-model="detailsRow.userMobile"
:style="{ width: '100%' }">
</el-input>
</el-form-item>
@@ -99,7 +99,7 @@
</el-input>
</el-form-item>
</el-col>
-
+
</el-form>
</el-row>
<span slot="footer" class="dialog-footer">
@@ -150,7 +150,7 @@
//璇︾粏鍐呭寮规
detailsVisible: false,
//璇︾粏鍐呭
- detailsRow:
+ detailsRow:
{
}
,
@@ -204,11 +204,18 @@
//鍒犻櫎
remove(val) {
this.$http.delete('/api/user/manager', { params: { id: val } }).then(res => {
- this.$message({
- message: '鍒犻櫎鎴愬姛',
- type: 'success'
- })
-
+ console.log(res)
+ if (res.data.code==200){
+ this.$message({
+ message: '鍒犻櫎鎴愬姛',
+ type: 'success'
+ })
+ }else {
+ this.$message({
+ message: res.data.msg,
+ type: 'error'
+ })
+ }
this.search();
})
},
@@ -242,11 +249,12 @@
this.detailsVisible = true;
this.detailsRow = Object.assign({}, val);
},
+ // 鏇存柊
update(){
this.detailsRow.phoneNumber=this.detailsRow.userMobile
this.$http.put('/api/user/manager',this.detailsRow).then(res => {this.$message({
message: '缂栬緫鎴愬姛',
- type: 'success'}
+ type: 'success'}
)
this.search();}
);
@@ -265,13 +273,13 @@
this.$refs.addPublicityForm.validate(async (vaild) => {
if (!vaild) return this.$message.error('杈撳叆鏈夎')
let param = null;
- param = this.addPublicityForm;
+ param = this.addPublicityForm;
addPublicityList(param).then(res => {
this.$message({
message: '鎿嶄綔鎴愬姛',
type: 'success'
});
- this.addPublicityForm={};
+ this.addPublicityForm={};
this.init();
}
)
@@ -306,6 +314,7 @@
let param = {}
param.realName = this.queryInfo.realName
param.userMobile = this.queryInfo.userMobile
+ param.current = this.queryInfo.current
param.size = this.queryInfo.size
getPublicityList(param).then(res => {
this.publicityList = res.records;
@@ -322,4 +331,4 @@
::v-deep(.el-table thead) {
color: #000000;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.8.0