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

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

@ -145,10 +145,7 @@
@click="handleExport"
type="primary"
size="small"
class="diy-button--white el-button--default"
>
导出</el-button
>
class="diy-button--white el-button--default">导出</el-button>
</div>
<el-table :data="tableData"
@ -744,7 +741,7 @@
async handleExport () {
//-
// const url = "/gov/project/icEvent/export";
const url = "/governance/icServiceRecordV2/export";
const { pageSize, pageNo, formData } = this;
axios({
url: window.SITE_CONFIG["apiURL"] + url,
@ -761,7 +758,7 @@
res.headers["content-disposition"].split(";")[1].split("=")[1]
);
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 aLink = document.createElement("a");
aLink.style.display = "none";

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

@ -733,7 +733,7 @@ export default {
async handleExport () {
//-''
const url = "/gov/project/icEvent/export";
const url = "/governance/icServiceRecordV2/searchExport";
const { pageSize, pageNo, formData } = this;
axios({
url: window.SITE_CONFIG["apiURL"] + url,
@ -750,7 +750,7 @@ export default {
res.headers["content-disposition"].split(";")[1].split("=")[1]
);
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 aLink = document.createElement("a");
aLink.style.display = "none";

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

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

Loading…
Cancel
Save