Browse Source

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

feature
mk 2 years ago
parent
commit
90af45b4fe
  1. 4
      src/views/main-content.vue
  2. 9
      src/views/main-sidebar.vue
  3. 10
      src/views/modules/base/huji/immigration/index.vue
  4. 606
      src/views/modules/communityService/commonDemand/index.vue
  5. 13
      src/views/modules/communityService/fuwuzhaoren/index.vue
  6. 35
      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

4
src/views/main-content.vue

@ -28,7 +28,7 @@
: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;
}, },
}, },
}; };

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

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

606
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"]),

35
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,10 +328,10 @@ export default {
}, },
], ],
endPickerOptions: { endPickerOptions: {
disabledDate: endDisabledDate disabledDate: endDisabledDate,
}, },
startPickerOptions: { startPickerOptions: {
disabledDate: startDisabledDate disabledDate: startDisabledDate,
}, },
selection: [], selection: [],
selAllFlag: false, selAllFlag: false,
@ -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",
@ -423,7 +424,7 @@ export default {
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";

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