Browse Source

bug#416,#417,#380,#422,共性需求,服务找人,公共服务中批量删除按钮布局

feature
mk 2 years ago
parent
commit
90af45b4fe
  1. 6
      src/views/main-content.vue
  2. 9
      src/views/main-sidebar.vue
  3. 18
      src/views/modules/base/huji/immigration/index.vue
  4. 1548
      src/views/modules/communityService/commonDemand/index.vue
  5. 13
      src/views/modules/communityService/fuwuzhaoren/index.vue
  6. 111
      src/views/modules/communityService/gxxq/index.vue
  7. 2
      src/views/modules/plugins/change/changedeath.vue
  8. 2
      src/views/modules/plugins/change/changerelocation.vue

6
src/views/main-content.vue

@ -22,13 +22,13 @@
@tab-click="tabSelectedHandle" @tab-click="tabSelectedHandle"
@tab-remove="tabRemoveHandle" @tab-remove="tabRemoveHandle"
> >
<!-- item.name !== 'indexWork', --> <!-- item.name !== 'indexWork', -->
<el-tab-pane <el-tab-pane
v-for="item in $store.state.contentTabs" v-for="item in $store.state.contentTabs"
:key="item.name" :key="item.name"
:name="item.name" :name="item.name"
:label="item.title" :label="item.title"
:closable=" item.name !== 'home'" :closable="item.name !== 'home'"
:class="{ 'is-iframe': tabIsIframe(item.iframeURL) }" :class="{ 'is-iframe': tabIsIframe(item.iframeURL) }"
> >
<template v-if="tabIsIframe(item.iframeURL)"> <template v-if="tabIsIframe(item.iframeURL)">
@ -183,6 +183,8 @@ export default {
tab = this.$store.state.contentTabs.filter( tab = this.$store.state.contentTabs.filter(
(item) => item.name === tab.name (item) => item.name === tab.name
)[0]; )[0];
this.$store.state.LevelTowMenuActiveName = tab.menuId || "";
if (tab) { if (tab) {
this.$router.push({ this.$router.push({
name: tab.name, name: tab.name,

9
src/views/main-sidebar.vue

@ -126,7 +126,6 @@ export default {
}, },
methods: { methods: {
toIndexPage() { toIndexPage() {
// this.$store.state.LevelOneMenuActiveName = "";
this.$router.push({ name: "home" }); this.$router.push({ name: "home" });
// this.$router.replace("/index"); // this.$router.replace("/index");
}, },
@ -143,10 +142,12 @@ export default {
this.$router.push({ name: route.name }); this.$router.push({ name: route.name });
} }
} }
this.$store.state.LevelOneMenuActiveName = menuId;
this.$store.state.sidebarActiveSubMenuList =
this.$store.state.sidebarMenuList[idx].children || []; this.$store.state.sidebarMenuList[idx].children || [];
this.$store.state.LevelTowMenuActiveName = ""; const { sidebarMenuList } = this.$store.state;
const firstChild = sidebarMenuList[idx].children[0];
const id = firstChild.children.length === 0 ? firstChild.id : firstChild.children[0].id;
this.$store.state.LevelTowMenuActiveName = id;
}, },
}, },
}; };

18
src/views/modules/base/huji/immigration/index.vue

@ -423,15 +423,15 @@
<div> <div>
<el-pagination <el-pagination
@size-change="handleSizeChange" :current-page="pageNo"
@current-change="handleCurrentChange" :page-sizes="[10, 20, 50, 100]"
:current-page.sync="pageNo" :page-size="pageSize"
:page-sizes="[20, 50, 100, 200]" :total="total"
:page-size="parseInt(pageSize)" layout="total, sizes, prev, pager, next"
layout="sizes, prev, pager, next, total" @size-change="handleSizeChange"
:total="total" @current-change="handleCurrentChange"
> >
</el-pagination> </el-pagination>
</div> </div>
</div> </div>
</div> </div>

1548
src/views/modules/communityService/commonDemand/index.vue

File diff suppressed because it is too large

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

@ -164,6 +164,9 @@
size="small" size="small"
class="diy-button--white el-button--default" class="diy-button--white el-button--default"
>导出</el-button> >导出</el-button>
<el-button type="primary" @click="onDeleteBatch" size="small">
批量删除
</el-button>
</div> </div>
<el-table :data="tableData" <el-table :data="tableData"
@ -284,9 +287,7 @@
</el-table> </el-table>
<div> <div>
<el-button @click="onDeleteBatch" size="small" style="margin-top: 15px;">
批量删除
</el-button>
<el-pagination @size-change="handleSizeChange" <el-pagination @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page.sync="pageNo" :current-page.sync="pageNo"
@ -416,7 +417,7 @@ export default {
tableLoading: false, tableLoading: false,
user: {}, user: {},
agencyId: '', agencyId: '',
searchH:170, searchH:0,
tableData: [], tableData: [],
statusArray: [ statusArray: [
@ -493,8 +494,8 @@ export default {
computed: { computed: {
maxTableHeight () { maxTableHeight () {
const h = const h =
this.clientHeight - this.searchH - 275 + this.iframeHeight; this.clientHeight - this.searchH - 450 + this.iframeHeight;
const _h = this.clientHeight - 275 - this.searchH; const _h = this.clientHeight - 450 - this.searchH;
return this.$store.state.inIframe ? h : _h; return this.$store.state.inIframe ? h : _h;
}, },
...mapGetters(["clientHeight", "iframeHeight"]), ...mapGetters(["clientHeight", "iframeHeight"]),

111
src/views/modules/communityService/gxxq/index.vue

@ -138,6 +138,9 @@
> >
导出</el-button 导出</el-button
> >
<el-button @click="deleteBatch" type="primary" size="small">
批量删除
</el-button>
</div> </div>
<el-table <el-table
ref="gxxq_table" ref="gxxq_table"
@ -211,11 +214,8 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="div-flex"> <div>
<div class="m-page"> <div class="m-page">
<el-button @click="deleteBatch" size="small" style="margin-top: 15px;">
批量删除
</el-button>
<el-pagination <el-pagination
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
@ -296,10 +296,11 @@ export default {
return time.getTime() > nowData; return time.getTime() > nowData;
} }
}; };
let startDisabledDate = (time) => {//datareturn let startDisabledDate = (time) => {
let nowData = Date.now() //datareturn
return time.getTime() > nowData let nowData = Date.now();
} return time.getTime() > nowData;
};
return { return {
// //
serviceTypesLevel1: [], serviceTypesLevel1: [],
@ -327,11 +328,11 @@ export default {
}, },
], ],
endPickerOptions: { endPickerOptions: {
disabledDate: endDisabledDate disabledDate: endDisabledDate,
}, },
startPickerOptions: { startPickerOptions: {
disabledDate: startDisabledDate disabledDate: startDisabledDate,
}, },
selection: [], selection: [],
selAllFlag: false, selAllFlag: false,
tableData: [], tableData: [],
@ -366,14 +367,14 @@ export default {
}, },
addFormCancle() { addFormCancle() {
this.formShow = false; this.formShow = false;
this.formEditShow = false this.formEditShow = false;
}, },
handelSelection(row){ handelSelection(row) {
this.selection = row this.selection = row;
}, },
addFormOk() { addFormOk() {
this.formShow = false; this.formShow = false;
this.formEditShow = false this.formEditShow = false;
this.getCommonDemandList(); this.getCommonDemandList();
}, },
selectAll(selection) { selectAll(selection) {
@ -402,12 +403,12 @@ export default {
handleEdit(row) { handleEdit(row) {
this.gxxqId = row.id; this.gxxqId = row.id;
this.commonServiceTypeName = row.commonServiceTypeName; this.commonServiceTypeName = row.commonServiceTypeName;
this.serviceTypesLevel1 = this.serviceTypesLevel1 this.serviceTypesLevel1 = this.serviceTypesLevel1;
this.formEditShow = true; this.formEditShow = true;
}, },
async handleChu() { async handleChu() {
const url = "/governance/commonDemand/export"; const url = "/governance/commonDemand/export";
const {pageSize, pageNo, formData} = this; const { pageSize, pageNo, formData } = this;
axios({ axios({
url: window.SITE_CONFIG["apiURL"] + url, url: window.SITE_CONFIG["apiURL"] + url,
method: "post", method: "post",
@ -418,26 +419,26 @@ export default {
}, },
responseType: "blob", responseType: "blob",
}) })
.then((res) => { .then((res) => {
let fileName = window.decodeURI( let fileName = window.decodeURI(
res.headers["content-disposition"].split(";")[1].split("=")[1] res.headers["content-disposition"].split(";")[1].split("=")[1]
); );
console.log("filename", fileName); console.log("filename", fileName);
let blob = new Blob([res.data], {type: "application/vnd.ms-excel"}); let blob = new Blob([res.data], { type: "application/vnd.ms-excel" });
var url = window.URL.createObjectURL(blob); var url = window.URL.createObjectURL(blob);
var aLink = document.createElement("a"); var aLink = document.createElement("a");
aLink.style.display = "none"; aLink.style.display = "none";
aLink.href = url; aLink.href = url;
aLink.setAttribute("download", fileName); aLink.setAttribute("download", fileName);
document.body.appendChild(aLink); document.body.appendChild(aLink);
aLink.click(); aLink.click();
document.body.removeChild(aLink); // document.body.removeChild(aLink); //
window.URL.revokeObjectURL(url); //blob window.URL.revokeObjectURL(url); //blob
}) })
.catch((err) => { .catch((err) => {
console.log("获取导出情失败", err); console.log("获取导出情失败", err);
return this.$message.error("网络错误"); return this.$message.error("网络错误");
}); });
}, },
handleSizeChange(val) { handleSizeChange(val) {
console.log(`每页 ${val}`); console.log(`每页 ${val}`);
@ -502,23 +503,23 @@ export default {
}); });
}, },
deleteBatch() { deleteBatch() {
if (this.selection.length > 0) { if (this.selection.length > 0) {
this.$confirm("删除之后无法恢复,确认删除?", "提示", { this.$confirm("删除之后无法恢复,确认删除?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
this.deleteresiBatch(); this.deleteresiBatch();
}) })
.catch((err) => { .catch((err) => {
if (err == "cancel") { if (err == "cancel") {
}
});
} else {
this.$message.warning("请先选择要删除的需求");
} }
}, });
} else {
this.$message.warning("请先选择要删除的需求");
}
},
// //
async getDictOptions() { async getDictOptions() {
this.$http this.$http

2
src/views/modules/plugins/change/changedeath.vue

@ -218,7 +218,7 @@
:page-sizes="[10, 20, 50, 100]" :page-sizes="[10, 20, 50, 100]"
:page-size="pageSize" :page-size="pageSize"
:total="total" :total="total"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next"
@size-change="pageSizeChangeHandle" @size-change="pageSizeChangeHandle"
@current-change="pageCurrentChangeHandle" @current-change="pageCurrentChangeHandle"
> >

2
src/views/modules/plugins/change/changerelocation.vue

@ -333,7 +333,7 @@
:page-sizes="[10, 20, 50, 100]" :page-sizes="[10, 20, 50, 100]"
:page-size="pageSize" :page-size="pageSize"
:total="total" :total="total"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next"
@size-change="pageSizeChangeHandle" @size-change="pageSizeChangeHandle"
@current-change="pageCurrentChangeHandle" @current-change="pageCurrentChangeHandle"
> >

Loading…
Cancel
Save