Browse Source

完成公共服务、共性需求、服务找人、政策找人的导出

feature
wxz 2 years ago
parent
commit
e730cdbced
  1. 10
      src/views/modules/communityService/commonDemand/addForm.vue
  2. 9
      src/views/modules/communityService/commonDemand/index.vue
  3. 4
      src/views/modules/communityService/fuwuzhaoren/index.vue
  4. 11
      src/views/modules/communityService/policy/policyList.vue

10
src/views/modules/communityService/commonDemand/addForm.vue

@ -198,7 +198,7 @@
<el-form-item label="指派服务" label-width="150px"> <el-form-item label="指派服务" label-width="150px">
<el-switch <el-switch
v-model="formData.assignSwitch" v-model="formData.assignFlag"
@change="handelDisabledRules" @change="handelDisabledRules"
> >
</el-switch> </el-switch>
@ -210,7 +210,7 @@
:class="{ 'form-item': source === 'visiual' }" :class="{ 'form-item': source === 'visiual' }"
label-width="150px" label-width="150px"
style="display: block" style="display: block"
v-if="formData.assignSwitch" v-if="formData.assignFlag"
> >
<input <input
type="text" type="text"
@ -618,7 +618,7 @@ export default {
serviceTypeLevel1Id: "", // id serviceTypeLevel1Id: "", // id
serviceTypeLevel2Id: "", // id serviceTypeLevel2Id: "", // id
serviceCategoryKey: "", serviceCategoryKey: "",
assignSwitch: false, assignFlag: false,
resiSearchTagId: "", // resiSearchTagId: "", //
resiSearchTagName: "", // resiSearchTagName: "", //
serviceName: "", // serviceName: "", //
@ -1076,10 +1076,10 @@ export default {
} else { } else {
this.formData.feedback = null; this.formData.feedback = null;
} }
this.formData.resiSearchTagId = this.assignSwitch this.formData.resiSearchTagId = this.assignFlag
? this.formData.resiSearchTagId ? this.formData.resiSearchTagId
: ""; : "";
this.formData.resiSearchTagName = this.assignSwitch this.formData.resiSearchTagName = this.assignFlag
? this.formData.resiSearchTagName ? this.formData.resiSearchTagName
: ""; : "";
console.log(this.formData); console.log(this.formData);

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

@ -145,10 +145,7 @@
@click="handleExport" @click="handleExport"
type="primary" type="primary"
size="small" size="small"
class="diy-button--white el-button--default" class="diy-button--white el-button--default">导出</el-button>
>
导出</el-button
>
</div> </div>
<el-table :data="tableData" <el-table :data="tableData"
@ -744,7 +741,7 @@
async handleExport () { async handleExport () {
//- //-
// const url = "/gov/project/icEvent/export"; const url = "/governance/icServiceRecordV2/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,
@ -761,7 +758,7 @@
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.openxmlformats-officedocument.spreadsheetml.sheet" });
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";

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

@ -733,7 +733,7 @@ export default {
async handleExport () { async handleExport () {
//-'' //-''
const url = "/gov/project/icEvent/export"; const url = "/governance/icServiceRecordV2/searchExport";
const { pageSize, pageNo, formData } = this; const { pageSize, pageNo, formData } = this;
axios({ axios({
url: window.SITE_CONFIG["apiURL"] + url, url: window.SITE_CONFIG["apiURL"] + url,
@ -750,7 +750,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.openxmlformats-officedocument.spreadsheetml.sheet" });
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";

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

@ -140,6 +140,13 @@
width="50" width="50"
> >
</el-table-column> </el-table-column>
<el-table-column
prop="policyCategoryName"
align="center"
min-width="150"
label="政策类型"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column <el-table-column
prop="title" prop="title"
align="center" align="center"
@ -445,7 +452,7 @@ export default {
}, },
async handleChu() { async handleChu() {
//- //-
// const url = "/governance/commonDemand/export"; const url = "/governance/policy/policyExport";
const {pageSize, pageNo, formData} = this; const {pageSize, pageNo, formData} = this;
axios({ axios({
url: window.SITE_CONFIG["apiURL"] + url, url: window.SITE_CONFIG["apiURL"] + url,
@ -462,7 +469,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.openxmlformats-officedocument.spreadsheetml.sheet"});
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";

Loading…
Cancel
Save