diff --git a/src/views/modules/communityService/sqzzz/index.vue b/src/views/modules/communityService/sqzzz/index.vue
index e0f09f0d9..c6e74ee50 100644
--- a/src/views/modules/communityService/sqzzz/index.vue
+++ b/src/views/modules/communityService/sqzzz/index.vue
@@ -2,170 +2,182 @@
-
-
+
+
组织名称
-
-
+
创建时间
-
+
+
+ 查询
+
-
-
- 查询
-
-
- 新增
-
- {{
+ 新增
+
+ {{
importBtnTitle
}}
- excel导出
+ excel导出
-
-
-
+
+
+
+
+
-
+
+
-
-
-
-
+
+
-
+
-
+
- 查看
- 积分记录
-
- 编辑
-
-
- 删除
+ 查看
+ 积分记录
+
+ 编辑
+
+
+ 删除
-
+
-
-
+
+
-
-
+
+
@@ -176,11 +188,11 @@ import nextTick from "dai-js/tools/nextTick";
import { mapGetters } from "vuex";
import editForm from "./cpts/edit";
import axios from "axios";
-import scoreRecord from '../../../components/scoreRecord.vue'
+import scoreRecord from "../../../components/scoreRecord.vue";
export default {
components: { editForm, scoreRecord },
- data () {
+ data() {
return {
openSearch: false,
@@ -204,12 +216,12 @@ export default {
importLoading: false,
//积分记录
- scoreDiaTitle: '积分记录',
+ scoreDiaTitle: "积分记录",
scoreDiaShow: false,
};
},
computed: {
- maxTableHeight () {
+ maxTableHeight() {
return this.clientHeight - 410;
},
...mapGetters(["clientHeight"]),
@@ -225,23 +237,23 @@ export default {
}
},
},
- mounted () {
+ mounted() {
this.getTableData();
},
methods: {
// 上传大图标成功
- handleExcelSuccess (res, file) {
+ handleExcelSuccess(res, file) {
if (res.code === 0 && res.msg === "success") {
console.log("resss---ppp", res);
} else {
this.$message.error(res.msg);
}
},
- handleProgress (event, file, fileList) {
+ handleProgress(event, file, fileList) {
console.log("percentage", file.percentage);
},
- beforeExcelUpload (file) {
+ beforeExcelUpload(file) {
console.log("file", file);
const isType = file.type === "application/vnd.ms-excel";
const isTypeComputer =
@@ -258,7 +270,7 @@ export default {
}
return fileType && isLt1M;
},
- uploadHttpRequest (file) {
+ uploadHttpRequest(file) {
this.importLoading = true;
this.importBtnTitle = "正在上传中...";
const formData = new FormData(); //FormData对象,添加参数只能通过append('key', value)的形式添加
@@ -278,7 +290,7 @@ export default {
this.getTableData();
if (res.data.code == 0) {
- return this.$message.success(res.data.data || '导入成功');
+ return this.$message.success(res.data.data || "导入成功");
} else {
return this.$message.error(res.data.msg);
}
@@ -289,35 +301,35 @@ export default {
this.$refs.upload.clearFiles();
},
- handleSizeChange (val) {
+ handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.pageSize = val;
window.localStorage.setItem("pageSize", val);
this.getTableData();
},
- handleCurrentChange (val) {
+ handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.pageNo = val;
this.getTableData();
},
- handleClose () {
+ handleClose() {
this.formShow = false;
},
- handleSearch (val) {
+ handleSearch(val) {
console.log(this.fmData);
this.pageNo = 1;
this.getTableData();
},
- async handleAdd () {
+ async handleAdd() {
this.formShow = true;
await nextTick();
console.log(this.$refs);
this.$refs.eleEditForm.initForm("add");
},
- async handleChu () {
+ async handleChu() {
const url =
"/heart/iccommunityselforganization/exportcommunityselforganization";
const { pageSize, pageNo, fmData } = this;
@@ -353,23 +365,23 @@ export default {
});
},
- async handleWatch (rowIndex) {
+ async handleWatch(rowIndex) {
this.formShow = true;
await nextTick();
this.$refs.eleEditForm.initForm("detail", this.tableData[rowIndex]);
},
- async handleEdit (rowIndex) {
+ async handleEdit(rowIndex) {
this.formShow = true;
await nextTick();
this.$refs.eleEditForm.initForm("edit", this.tableData[rowIndex]);
},
- handleEditSuccess () {
+ handleEditSuccess() {
this.handleClose();
this.getTableData();
},
- async handleDel (rowData, rowIndex) {
+ async handleDel(rowData, rowIndex) {
console.log(rowData, rowIndex);
const url =
"/heart/iccommunityselforganization/delcommunityselforganization";
@@ -387,7 +399,7 @@ export default {
}
},
- async getTableData () {
+ async getTableData() {
const url =
"/heart/iccommunityselforganization/communityselforganizationlist";
const { pageSize, pageNo, fmData } = this;
@@ -401,24 +413,23 @@ export default {
this.total = data.total || 0;
this.tableData = data.list
? data.list.map((item) => {
- return item;
- })
+ return item;
+ })
: [];
} else {
}
},
//积分记录
- handleScore (row) {
- this.scoreDiaShow = true
+ handleScore(row) {
+ this.scoreDiaShow = true;
this.$nextTick(() => {
- this.$refs.ref_score.initForm(row.orgId)
- })
+ this.$refs.ref_score.initForm(row.orgId);
+ });
},
- diaClose () {
-
- this.scoreDiaShow = false
+ diaClose() {
+ this.scoreDiaShow = false;
},
},
};