Browse Source

增加操作

xiaowang_add
是小王呀\24601 1 year ago
parent
commit
a9498919f2
  1. 2
      src/views/modules/communityService/fuwuzhaoren/index.vue
  2. 129
      src/views/modules/communityService/fuwuzhaoren/personList.vue
  3. 3
      src/views/modules/communityService/gangweizhaoren/index.vue
  4. 132
      src/views/modules/communityService/gangweizhaoren/personList.vue
  5. 4
      src/views/modules/communityService/jinengzhaoren/index.vue
  6. 128
      src/views/modules/communityService/jinengzhaoren/personList.vue
  7. 129
      src/views/modules/communityService/policy/personList.vue
  8. 4
      src/views/modules/communityService/policy/policyList.vue
  9. 3
      src/views/modules/communityService/wennuanzhaoren/index.vue
  10. 131
      src/views/modules/communityService/wennuanzhaoren/personList.vue

2
src/views/modules/communityService/fuwuzhaoren/index.vue

@ -320,9 +320,11 @@
</detail-form>
</el-dialog>
<el-dialog v-if="showPersonList"
:modal-append-to-body="false"
:visible.sync="showPersonList"
:close-on-click-modal="false"
:close-on-press-escape="false"
:modal="false"
:title="'人员名单'"
width="1150px"
top="5vh"

129
src/views/modules/communityService/fuwuzhaoren/personList.vue

@ -167,8 +167,30 @@
prop=""
label="公众号消息推送">已推送
</el-table-column>
<el-table-column
fixed="right"
label="操作"
width="100">
<template slot-scope="scope">
<el-button @click="handelCLickShowCheckPassword(scope.row)" type="text" size="small">编辑</el-button>
<el-button type="text" @click="deleteBatch(scope.row)" size="small">删除</el-button>
</template>
</el-table-column>
</el-table>
</div>
<el-dialog width="800px" :center="true" title="密码验证" :visible.sync="showCheckPassword" :modal-append-to-body="false" :close-on-click-modal="true"
:close-on-press-escape="true">
<el-form :model="checkPasswordFrom" :rules="checkPasswordRulse" ref="checkPasswordFrom">
<el-form-item label="密码" prop="password">
<el-input v-model.trim="checkPasswordFrom.password" autocomplete="off" type="password" placeholder="请输入当前账号密码"
@keydown.native.enter="handelClickCheckPassword"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="showCheckPassword = false"> </el-button>
<el-button type="primary" @click="handelClickCheckPassword"> </el-button>
</div>
</el-dialog>
<!--分页条-->
<el-pagination
@ -236,6 +258,23 @@ export default {
children: 'subAgencyList',
checkStrictly: true
},
showCheckPassword:false,
checkPasswordFrom: {
password: "",
},
checkPasswordRulse: {
password: [
{ required: true, message: "请输入密码", trigger: "blur" },
{
min: 6,
max: 18,
message: "长度在 6 到 18 个字符",
trigger: "blur",
},
],
},
//
selectedPersonListIds: [], // id
@ -245,6 +284,96 @@ export default {
},
methods: {
//
async handelCLickShowCheckPassword(row) {
console.log(row);
const url = `/actual/base/findPersonList/deleteFindPersonByServiceId/${row.resiId}`;
const { data, code, msg } = await requestPost(url);
if(code==0){
if(data==true){
this.editUserId = row.resiId;
this.saveCheckPassword()
}
else{
this.editUserId = row.resiId;
this.showCheckPassword = true;
}
}
else{
this.$message.error(msg);
}
},
handelClickCheckPassword() {
this.$refs.checkPasswordFrom.validate((vali) => {
if (vali) {
this.saveCheckPassword(this.checkPasswordFrom.password);
} else {
return false;
}
});
},
async saveCheckPassword(password){
const url = `/actual/base/residentBaseInfo/getResiUserInfo/${this.editUserId}`;
let parm = {
password,
};
const { data, code, msg } = await requestPost(url, parm);
if (code === 0) {
this.showCheckPassword = false;
this.$router.push({
name: "edit-resi",
query: { id: this.editUserId },
params: { idNum: data.idNum, mobile: data.mobile, name: data.name, nationality: data.nationality },
});
this.checkPasswordFrom.password = "";
} else {
this.$message.error(msg);
}
},
handleAdd() {
this.$router.push({ name: "add-resi" });
},
//
deleteBatch(row) {
console.log(row);
if (this.personList.length > 0) {
this.$confirm("删除之后无法恢复,确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
console.log(row);
this.deleteresiBatch(row);
})
.catch((err) => {
if (err == "cancel") {
}
});
} else {
this.$message.warning("请先选择要删除的居民");
}
},
async deleteresiBatch(row) {
console.log(row);
let userIds = row.id;
this.$http
.post("/actual/base/findPersonList/deleteFindPersonByServiceId/"+userIds)
.then(({ data: res }) => {
console.log(res);
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
this.$message.success("删除成功");
this.handleSearch();
}
})
.catch((err) => {
return this.$message.error("网络错误");
});
},
/**
* 行选中事件
* @returns {Promise<void>}

3
src/views/modules/communityService/gangweizhaoren/index.vue

@ -341,10 +341,13 @@
</detail-form>
</el-dialog>
<el-dialog v-if="showPersonList"
:modal-append-to-body="false"
:visible.sync="showPersonList"
:close-on-click-modal="false"
:close-on-press-escape="false"
:title="'人员名单'"
close-on-press-escape="true"
:modal="false"
width="1150px"
top="5vh"
class="dialog-h"

132
src/views/modules/communityService/gangweizhaoren/personList.vue

@ -167,9 +167,30 @@
prop=""
label="公众号消息推送">已推送
</el-table-column>
</el-table>
</div>
<el-table-column
fixed="right"
label="操作"
width="100">
<template slot-scope="scope">
<el-button @click="handelCLickShowCheckPassword(scope.row)" type="text" size="small">编辑</el-button>
<el-button type="text" @click="deleteBatch(scope.row)" size="small">删除</el-button>
</template>
</el-table-column>
</el-table>
</div>
<el-dialog width="800px" :center="true" title="密码验证" :visible.sync="showCheckPassword" :modal-append-to-body="false" :close-on-click-modal="true"
:close-on-press-escape="true">
<el-form :model="checkPasswordFrom" :rules="checkPasswordRulse" ref="checkPasswordFrom">
<el-form-item label="密码" prop="password">
<el-input v-model.trim="checkPasswordFrom.password" autocomplete="off" type="password" placeholder="请输入当前账号密码"
@keydown.native.enter="handelClickCheckPassword"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="showCheckPassword = false"> </el-button>
<el-button type="primary" @click="handelClickCheckPassword"> </el-button>
</div>
</el-dialog>
<!--分页条-->
<el-pagination
@size-change="handleSizeChange"
@ -217,6 +238,22 @@ export default {
pageSize: 10,
pageNo: 1,
},
showCheckPassword:false,
checkPasswordFrom: {
password: "",
},
checkPasswordRulse: {
password: [
{ required: true, message: "请输入密码", trigger: "blur" },
{
min: 6,
max: 18,
message: "长度在 6 到 18 个字符",
trigger: "blur",
},
],
},
//
pageSizes: [10, 20, 50, 100, 200],
@ -244,7 +281,94 @@ export default {
}
},
methods: {
//
async handelCLickShowCheckPassword(row) {
console.log(row);
const url = `/actual/base/residentCategoryUpdateInfo/isUpdater/${row.resiId}`;
const { data, code, msg } = await requestPost(url);
if(code==0){
if(data==true){
this.editUserId = row.resiId;
this.saveCheckPassword()
}
else{
this.editUserId = row.resiId;
this.showCheckPassword = true;
}
}
else{
this.$message.error(msg);
}
},
handelClickCheckPassword() {
this.$refs.checkPasswordFrom.validate((vali) => {
if (vali) {
this.saveCheckPassword(this.checkPasswordFrom.password);
} else {
return false;
}
});
},
async saveCheckPassword(password){
const url = `/actual/base/residentBaseInfo/getResiUserInfo/${this.editUserId}`;
let parm = {
password,
};
const { data, code, msg } = await requestPost(url, parm);
if (code === 0) {
this.showCheckPassword = false;
this.$router.push({
name: "edit-resi",
query: { id: this.editUserId },
params: { idNum: data.idNum, mobile: data.mobile, name: data.name, nationality: data.nationality },
});
this.checkPasswordFrom.password = "";
} else {
this.$message.error(msg);
}
},
handleAdd() {
this.$router.push({ name: "add-resi" });
},
deleteBatch(row) {
console.log(row);
if (this.personList.length > 0) {
this.$confirm("删除之后无法恢复,确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
console.log(row);
this.deleteresiBatch(row);
})
.catch((err) => {
if (err == "cancel") {
}
});
} else {
this.$message.warning("请先选择要删除的居民");
}
},
async deleteresiBatch(row) {
console.log(row);
let userIds = row.id;
this.$http
.post("/actual/base/findPersonList/deleteFindPersonByServiceId/"+userIds)
.then(({ data: res }) => {
console.log(res);
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
this.$message.success("删除成功");
this.handleSearch();
}
})
.catch((err) => {
return this.$message.error("网络错误");
});
},
/**
* 行选中事件
* @returns {Promise<void>}

4
src/views/modules/communityService/jinengzhaoren/index.vue

@ -319,10 +319,12 @@
@diaDetailClose="diaDetailClose">
</detail-form>
</el-dialog>
<el-dialog v-if="showPersonList"
<el-dialog append-to-body v-if="showPersonList"
:visible.sync="showPersonList"
:close-on-click-modal="false"
:close-on-press-escape="false"
:modal="false"
:modal-append-to-body="false"
:title="'人员名单'"
width="1150px"
top="5vh"

128
src/views/modules/communityService/jinengzhaoren/personList.vue

@ -167,7 +167,29 @@
prop=""
label="公众号消息推送">已推送
</el-table-column>
<el-table-column
fixed="right"
label="操作"
width="100">
<template slot-scope="scope">
<el-button @click="handelCLickShowCheckPassword(scope.row)" type="text" size="small">编辑</el-button>
<el-button type="text" @click="deleteBatch(scope.row)" size="small">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-dialog width="800px" :center="true" title="密码验证" :visible.sync="showCheckPassword" :modal-append-to-body="false" :close-on-click-modal="true"
:close-on-press-escape="true">
<el-form :model="checkPasswordFrom" :rules="checkPasswordRulse" ref="checkPasswordFrom">
<el-form-item label="密码" prop="password">
<el-input v-model.trim="checkPasswordFrom.password" autocomplete="off" type="password" placeholder="请输入当前账号密码"
@keydown.native.enter="handelClickCheckPassword"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="showCheckPassword = false"> </el-button>
<el-button type="primary" @click="handelClickCheckPassword"> </el-button>
</div>
</el-dialog>
</div>
<!--分页条-->
@ -236,7 +258,23 @@ export default {
children: 'subAgencyList',
checkStrictly: true
},
showCheckPassword:false,
checkPasswordFrom: {
password: "",
},
checkPasswordRulse: {
password: [
{ required: true, message: "请输入密码", trigger: "blur" },
{
min: 6,
max: 18,
message: "长度在 6 到 18 个字符",
trigger: "blur",
},
],
},
//
selectedPersonListIds: [], // id
personList: [], //
@ -245,6 +283,94 @@ export default {
},
methods: {
//
async handelCLickShowCheckPassword(row) {
console.log(row);
const url = `/actual/base/residentCategoryUpdateInfo/isUpdater/${row.resiId}`;
const { data, code, msg } = await requestPost(url);
if(code==0){
if(data==true){
this.editUserId = row.resiId;
this.saveCheckPassword()
}
else{
this.editUserId = row.resiId;
this.showCheckPassword = true;
}
}
else{
this.$message.error(msg);
}
},
handelClickCheckPassword() {
this.$refs.checkPasswordFrom.validate((vali) => {
if (vali) {
this.saveCheckPassword(this.checkPasswordFrom.password);
} else {
return false;
}
});
},
async saveCheckPassword(password){
const url = `/actual/base/residentBaseInfo/getResiUserInfo/${this.editUserId}`;
let parm = {
password,
};
const { data, code, msg } = await requestPost(url, parm);
if (code === 0) {
this.showCheckPassword = false;
this.$router.push({
name: "edit-resi",
query: { id: this.editUserId },
params: { idNum: data.idNum, mobile: data.mobile, name: data.name, nationality: data.nationality },
});
this.checkPasswordFrom.password = "";
} else {
this.$message.error(msg);
}
},
handleAdd() {
this.$router.push({ name: "add-resi" });
},
deleteBatch(row) {
console.log(row);
if (this.personList.length > 0) {
this.$confirm("删除之后无法恢复,确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
console.log(row);
this.deleteresiBatch(row);
})
.catch((err) => {
if (err == "cancel") {
}
});
} else {
this.$message.warning("请先选择要删除的居民");
}
},
async deleteresiBatch(row) {
console.log(row);
let userIds = row.id;
this.$http
.post("/actual/base/findPersonList/deleteFindPersonByServiceId/"+userIds)
.then(({ data: res }) => {
console.log(res);
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
this.$message.success("删除成功");
this.handleSearch();
}
})
.catch((err) => {
return this.$message.error("网络错误");
});
},
/**
* 行选中事件
* @returns {Promise<void>}

129
src/views/modules/communityService/policy/personList.vue

@ -176,9 +176,30 @@
</el-table-column>
<el-table-column prop="" width="100" label="公众号消息推送" >已推送
</el-table-column>
<el-table-column
fixed="right"
label="操作"
width="100">
<template slot-scope="scope">
<el-button @click="handelCLickShowCheckPassword(scope.row)" type="text" size="small">编辑</el-button>
<el-button type="text" @click="deleteBatch(scope.row)" size="small">删除</el-button>
</template>
</el-table-column>
</el-table>
</div>
<el-dialog width="800px" :center="true" title="密码验证" :visible.sync="showCheckPassword" :modal-append-to-body="false" :close-on-click-modal="true"
:close-on-press-escape="true">
<el-form :model="checkPasswordFrom" :rules="checkPasswordRulse" ref="checkPasswordFrom">
<el-form-item label="密码" prop="password">
<el-input v-model.trim="checkPasswordFrom.password" autocomplete="off" type="password" placeholder="请输入当前账号密码"
@keydown.native.enter="handelClickCheckPassword"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="showCheckPassword = false"> </el-button>
<el-button type="primary" @click="handelClickCheckPassword"> </el-button>
</div>
</el-dialog>
<!--分页条-->
<el-pagination
@size-change="handleSizeChange"
@ -242,6 +263,22 @@ export default {
children: "subAgencyList",
checkStrictly: true,
},
showCheckPassword:false,
checkPasswordFrom: {
password: "",
},
checkPasswordRulse: {
password: [
{ required: true, message: "请输入密码", trigger: "blur" },
{
min: 6,
max: 18,
message: "长度在 6 到 18 个字符",
trigger: "blur",
},
],
},
//
selectedPersonListIds: [], // id
@ -249,6 +286,96 @@ export default {
};
},
methods: {
//
async handelCLickShowCheckPassword(row) {
console.log(row);
const url = `/actual/base/residentCategoryUpdateInfo/isUpdater/${row.resiId}`;
const { data, code, msg } = await requestPost(url);
if(code==0){
if(data==true){
this.editUserId = row.resiId;
this.saveCheckPassword()
}
else{
this.editUserId = row.resiId;
this.showCheckPassword = true;
}
}
else{
this.$message.error(msg);
}
},
handelClickCheckPassword() {
this.$refs.checkPasswordFrom.validate((vali) => {
if (vali) {
this.saveCheckPassword(this.checkPasswordFrom.password);
} else {
return false;
}
});
},
async saveCheckPassword(password){
const url = `/actual/base/residentBaseInfo/getResiUserInfo/${this.editUserId}`;
let parm = {
password,
};
const { data, code, msg } = await requestPost(url, parm);
if (code === 0) {
this.showCheckPassword = false;
this.$router.push({
name: "edit-resi",
query: { id: this.editUserId },
params: { idNum: data.idNum, mobile: data.mobile, name: data.name, nationality: data.nationality },
});
this.checkPasswordFrom.password = "";
} else {
this.$message.error(msg);
}
},
handleAdd() {
this.$router.push({ name: "add-resi" });
},
//
deleteBatch(row) {
console.log(row);
if (this.personList.length > 0) {
this.$confirm("删除之后无法恢复,确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
console.log(row);
this.deleteresiBatch(row);
})
.catch((err) => {
if (err == "cancel") {
}
});
} else {
this.$message.warning("请先选择要删除的居民");
}
},
async deleteresiBatch(row) {
console.log(row);
let userIds = row.id;
this.$http
.post("/actual/base/findPersonList/deleteFindPersonByPolicyId/"+userIds)
.then(({ data: res }) => {
console.log(res);
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
this.$message.success("删除成功");
this.handleSearch();
}
})
.catch((err) => {
return this.$message.error("网络错误");
});
},
/**
* 行选中事件
* @returns {Promise<void>}

4
src/views/modules/communityService/policy/policyList.vue

@ -286,7 +286,9 @@
v-if="showPersonList"
:visible.sync="showPersonList"
:close-on-click-modal="false"
:close-on-press-escape="false"
:close-on-press-escape="false"
:modal="false"
:modal-append-to-body="false"
:title="'符合政策人员名单'"
width="1600px"
height="1100px"

3
src/views/modules/communityService/wennuanzhaoren/index.vue

@ -328,6 +328,7 @@
:close-on-press-escape="false"
:title="detailDiaTitle"
:modal-append-to-body="false"
:modal="false"
width="850px"
top="5vh"
class="dialog-h"
@ -340,7 +341,7 @@
@diaDetailClose="diaDetailClose">
</detail-form>
</el-dialog>
<el-dialog v-if="showPersonList"
<el-dialog modal="false" v-if="showPersonList"
:visible.sync="showPersonList"
:close-on-click-modal="false"
:close-on-press-escape="false"

131
src/views/modules/communityService/wennuanzhaoren/personList.vue

@ -95,6 +95,7 @@
</el-option>
</el-select>
</el-form-item>
</el-form>
</div>
@ -171,9 +172,32 @@
prop=""
label="公众号消息推送">已推送
</el-table-column>
<el-table-column
fixed="right"
label="操作"
width="100">
<template slot-scope="scope">
<el-button @click="handelCLickShowCheckPassword(scope.row)" type="text" size="small">编辑</el-button>
<el-button type="text" @click="deleteBatch(scope.row)" size="small">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-dialog width="800px" :center="true" title="密码验证" :visible.sync="showCheckPassword" :modal-append-to-body="false" :close-on-click-modal="true"
:close-on-press-escape="true">
<el-form :model="checkPasswordFrom" :rules="checkPasswordRulse" ref="checkPasswordFrom">
<el-form-item label="密码" prop="password">
<el-input v-model.trim="checkPasswordFrom.password" autocomplete="off" type="password" placeholder="请输入当前账号密码"
@keydown.native.enter="handelClickCheckPassword"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="showCheckPassword = false"> </el-button>
<el-button type="primary" @click="handelClickCheckPassword"> </el-button>
</div>
</el-dialog>
</div>
<!--分页条-->
<el-pagination
@size-change="handleSizeChange"
@ -185,6 +209,7 @@
background
:total="total">
</el-pagination>
</div>
</template>
@ -220,6 +245,22 @@ export default {
homeId: null,
pageSize: 10,
pageNo: 1,
},
showCheckPassword:false,
checkPasswordFrom: {
password: "",
},
checkPasswordRulse: {
password: [
{ required: true, message: "请输入密码", trigger: "blur" },
{
min: 6,
max: 18,
message: "长度在 6 到 18 个字符",
trigger: "blur",
},
],
},
//
@ -248,6 +289,96 @@ export default {
}
},
methods: {
//
async handelCLickShowCheckPassword(row) {
console.log(row);
const url = `/actual/base/residentCategoryUpdateInfo/isUpdater/${row.resiId}`;
const { data, code, msg } = await requestPost(url);
if(code==0){
if(data==true){
this.editUserId = row.resiId;
this.saveCheckPassword()
}
else{
this.editUserId = row.resiId;
this.showCheckPassword = true;
}
}
else{
this.$message.error(msg);
}
},
handelClickCheckPassword() {
this.$refs.checkPasswordFrom.validate((vali) => {
if (vali) {
this.saveCheckPassword(this.checkPasswordFrom.password);
} else {
return false;
}
});
},
async saveCheckPassword(password){
const url = `/actual/base/residentBaseInfo/getResiUserInfo/${this.editUserId}`;
let parm = {
password,
};
const { data, code, msg } = await requestPost(url, parm);
if (code === 0) {
this.showCheckPassword = false;
this.$router.push({
name: "edit-resi",
query: { id: this.editUserId },
params: { idNum: data.idNum, mobile: data.mobile, name: data.name, nationality: data.nationality },
});
this.checkPasswordFrom.password = "";
} else {
this.$message.error(msg);
}
},
handleAdd() {
this.$router.push({ name: "add-resi" });
},
//
deleteBatch(row) {
console.log(row);
if (this.personList.length > 0) {
this.$confirm("删除之后无法恢复,确认删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
console.log(row);
this.deleteresiBatch(row);
})
.catch((err) => {
if (err == "cancel") {
}
});
} else {
this.$message.warning("请先选择要删除的居民");
}
},
async deleteresiBatch(row) {
console.log(row);
let userIds = row.id;
this.$http
.post("/actual/base/findPersonList/deleteFindPersonByServiceId/"+userIds)
.then(({ data: res }) => {
console.log(res);
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
this.$message.success("删除成功");
this.handleSearch();
}
})
.catch((err) => {
return this.$message.error("网络错误");
});
},
/**
* 行选中事件

Loading…
Cancel
Save