-
-
+
-
-
搜索
重置
@@ -146,7 +77,7 @@
v-hasPermi="['tcZz/netManage:ttsum:export']"
>导出
-
- 导入
-
+ > -->
+ 导入
+
启用
@@ -247,6 +178,16 @@
>
+
+
+
+
+
-
-
-
-
-
-
+
+
@@ -307,17 +239,24 @@
{{ form.remark }}
-
+
+
\ No newline at end of file
diff --git a/src/views/tcZz/netManage/zdgzxm/index.vue b/src/views/tcZz/netManage/zdgzxm/index.vue
index 8aaf07d..3e5d3cd 100644
--- a/src/views/tcZz/netManage/zdgzxm/index.vue
+++ b/src/views/tcZz/netManage/zdgzxm/index.vue
@@ -1,16 +1,7 @@
-
-
+
-
搜索
重置
@@ -154,7 +85,7 @@
v-hasPermi="['tcZz/netManage:zdgzxm:export']"
>导出
-
- 导入
-
+ > -->
+ 导入
+
启用
@@ -268,7 +199,7 @@
-
+
@@ -317,17 +248,24 @@
{{ form.remark }}
-
+
diff --git a/src/views/tcZz/networkEcology/bjsjwp/index.vue b/src/views/tcZz/networkEcology/bjsjwp/index.vue
index c337434..a311cd6 100644
--- a/src/views/tcZz/networkEcology/bjsjwp/index.vue
+++ b/src/views/tcZz/networkEcology/bjsjwp/index.vue
@@ -143,17 +143,20 @@
-
+
+
-
-
+
-
+ :label="parseInt(dict.value)"
+ >{{dict.label}}
+
@@ -241,7 +263,8 @@
-
+
+
@@ -308,11 +337,15 @@ import {
addFb,
updateFb,
exportFb,
+ updateIsStatus,
+ importExcel
} from "@/api/tcZz/networkEcology/fb";
+import importDialog from "@/views/components/importDialog/index.vue"
export default {
name: "Fb",
//注释字典
dicts: ["tc_sjbd", "tc_area", "tc_start"],
+ components: { importDialog },
data() {
return {
tableHeigth: 0,
@@ -377,7 +410,27 @@ export default {
// 表单参数
form: {},
// 表单校验
- rules: {},
+ rules: {
+ areaId:[
+ { required: true, message: '请选择区域', trigger: 'blur' },
+ ],
+ type:[
+ { required: true, message: '请选择类型', trigger: 'blur' },
+ ],
+ title:[
+ { required: true, message: '请输入标题', trigger: 'blur' },
+ ],
+ source:[
+ { required: true, message: '请输入来源', trigger: 'blur' },
+ ],
+ dateTime:[
+ { required: true, message: '请选择发布时间', trigger: 'blur' },
+ ],
+ url:[
+ { required: true, message: '请输入网址', trigger: 'blur' },
+ ],
+ },
+ fileList:[],
};
},
created() {
@@ -422,7 +475,7 @@ export default {
areaId: null,
- isStatus: null,
+ isStatus: 1,
type: null,
@@ -464,6 +517,30 @@ export default {
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
+ //批量启用
+ enable(row) {
+ this.isStatusFuc(row, 1);
+ },
+ //批量禁用
+ banned(row) {
+ this.isStatusFuc(row, 2);
+ },
+ isStatusFuc(row, e) {
+ const ids = row.id || this.ids.join(",");
+ const src = e == 1 ? "启动" : "禁用";
+ this.$confirm("是否确认" + src + '编号为"' + ids + '"的数据项?', "警告", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(function () {
+ return updateIsStatus({ ids: ids, isStatus: e });
+ })
+ .then(() => {
+ this.getList(e);
+ })
+ .catch(() => {});
+ },
/**查看按钮操作 */
handleInfo(row) {
this.reset();
@@ -547,6 +624,28 @@ export default {
})
.catch(() => {});
},
+ /** 导入按钮操作 */
+ exportFile(e) {
+ this.$refs.importdialog.open()
+ // let downloadLoadingInstance = Loading.service({
+ // text: "正在导入数据,请稍候",
+ // spinner: "el-icon-loading",
+ // background: "rgba(0, 0, 0, 0.7)",
+ // });
+ // let a = new FormData();
+ // a.append("file", e.file);
+ // importExcel(a)
+ // .then((res) => {
+ // downloadLoadingInstance.close();
+ // this.$model.msgSuccess("导入成功");
+ // this.getList();
+ // this.$refs.upload.clearFiles();
+ // })
+ // .catch(() => {
+ // downloadLoadingInstance.close();
+ // this.$model.msgError("导入失败");
+ // });
+ },
},
};
diff --git a/src/views/tcZz/networkEcology/wlaqzcqy/index.vue b/src/views/tcZz/networkEcology/wlaqzcqy/index.vue
index 0ad30a7..7df8250 100644
--- a/src/views/tcZz/networkEcology/wlaqzcqy/index.vue
+++ b/src/views/tcZz/networkEcology/wlaqzcqy/index.vue
@@ -6,7 +6,6 @@
ref="queryForm"
:inline="true"
v-show="showSearch"
- label-width="auto"
>
导出
+
+ 导入
+
+ 启用
+ 禁用
-
-
+
-
+ :label="parseInt(dict.value)"
+ >{{dict.label}}
+
@@ -219,7 +241,8 @@
-
+
+
@@ -280,11 +309,15 @@ import {
addWlaqzcqy,
updateWlaqzcqy,
exportWlaqzcqy,
+ updateIsStatus,
+ importExcel
} from "@/api/tcZz/networkEcology/wlaqzcqy";
+import importDialog from "@/views/components/importDialog/index.vue"
export default {
name: "Wlaqzcqy",
//注释字典
dicts: ["tc_area", "tc_start",],
+ components: { importDialog },
data() {
return {
tableHeigth: 0,
@@ -345,7 +378,21 @@ export default {
// 表单参数
form: {},
// 表单校验
- rules: {},
+ rules: {
+ areaId:[
+ { required: true, message: '请选择区域', trigger: 'blur' },
+ ],
+ zzUnit:[
+ { required: true, message: '请输入支撑单位', trigger: 'blur' },
+ ],
+ linkMan:[
+ { required: true, message: '请输入联系人', trigger: 'blur' },
+ ],
+ linkTel:[
+ { required: true, message: '请输入联系方式', trigger: 'blur' },
+ ],
+ },
+ fileList:[],
};
},
created() {
@@ -390,7 +437,7 @@ export default {
areaId: null,
- isStatus: null,
+ isStatus: 1,
zzUnit: null,
@@ -428,6 +475,30 @@ export default {
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
+ //批量启用
+ enable(row) {
+ this.isStatusFuc(row, 1);
+ },
+ //批量禁用
+ banned(row) {
+ this.isStatusFuc(row, 2);
+ },
+ isStatusFuc(row, e) {
+ const ids = row.id || this.ids.join(",");
+ const src = e == 1 ? "启动" : "禁用";
+ this.$confirm("是否确认" + src + '编号为"' + ids + '"的数据项?', "警告", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(function () {
+ return updateIsStatus({ ids: ids, isStatus: e });
+ })
+ .then(() => {
+ this.getList(e);
+ })
+ .catch(() => {});
+ },
/**查看按钮操作 */
handleInfo(row) {
this.reset();
@@ -511,6 +582,28 @@ export default {
})
.catch(() => {});
},
+ /** 导入按钮操作 */
+ exportFile(e) {
+ this.$refs.importdialog.open()
+ // let downloadLoadingInstance = Loading.service({
+ // text: "正在导入数据,请稍候",
+ // spinner: "el-icon-loading",
+ // background: "rgba(0, 0, 0, 0.7)",
+ // });
+ // let a = new FormData();
+ // a.append("file", e.file);
+ // importExcel(a)
+ // .then((res) => {
+ // downloadLoadingInstance.close();
+ // this.$model.msgSuccess("导入成功");
+ // this.getList();
+ // this.$refs.upload.clearFiles();
+ // })
+ // .catch(() => {
+ // downloadLoadingInstance.close();
+ // this.$model.msgError("导入失败");
+ // });
+ },
},
};
diff --git a/src/views/tcZz/networkEcology/wldv/index.vue b/src/views/tcZz/networkEcology/wldv/index.vue
index be28b58..7e5278f 100644
--- a/src/views/tcZz/networkEcology/wldv/index.vue
+++ b/src/views/tcZz/networkEcology/wldv/index.vue
@@ -1,7 +1,7 @@
-
+
导出
+
+ 导入
+
+ 启用
+ 禁用
@@ -138,14 +162,13 @@
-
-
+
-
+:label="parseInt(dict.value)"
+ >{{dict.label}}
+
@@ -156,14 +179,16 @@
-
-
-
-
+
+
+
+
+
-
+
+
diff --git a/src/views/tcZz/networkEcology/wlwmzyz/index.vue b/src/views/tcZz/networkEcology/wlwmzyz/index.vue
index 828d13f..12ee86c 100644
--- a/src/views/tcZz/networkEcology/wlwmzyz/index.vue
+++ b/src/views/tcZz/networkEcology/wlwmzyz/index.vue
@@ -6,7 +6,6 @@
ref="queryForm"
:inline="true"
v-show="showSearch"
- label-width="auto"
>
导出
+
+ 导入
+
+ 启用
+ 禁用
-
-
+ {{dict.label}}
+
+
+
+
+
@@ -216,10 +248,7 @@
-
-
-
-
+
@@ -228,20 +257,15 @@
-
+
-
-
-
-
+
+
+
-
+
+
@@ -314,11 +344,15 @@ import {
addWlwmzyz,
updateWlwmzyz,
exportWlwmzyz,
+ updateIsStatus,
+ importExcel
} from "@/api/tcZz/networkEcology/wlwmzyz";
+import importDialog from "@/views/components/importDialog/index.vue"
export default {
name: "Wlwmzyz",
//注释字典
dicts: ["tc_wlwmzyzlx", "tc_area", "tc_start"],
+ components: { importDialog },
data() {
return {
tableHeigth: 0,
@@ -387,7 +421,33 @@ export default {
// 表单参数
form: {},
// 表单校验
- rules: {},
+ rules: {
+ areaId:[
+ { required: true, message: '请选择区域', trigger: 'blur' },
+ ],
+ type:[
+ { required: true, message: '请选择志愿者类型', trigger: 'blur' },
+ ],
+ name:[
+ { required: true, message: '请输入姓名', trigger: 'blur' },
+ ],
+ age:[
+ { required: true, message: '请输入年龄', trigger: 'blur' },
+ ],
+ unit:[
+ { required: true, message: '请输入单位', trigger: 'blur' },
+ ],
+ duty:[
+ { required: true, message: '请输入职务', trigger: 'blur' },
+ ],
+ linkTel:[
+ { required: true, message: '请输入联系电话', trigger: 'blur' },
+ ],
+ activityContent:[
+ { required: true, message: '请输入活动内容', trigger: 'blur' },
+ ],
+ },
+ fileList:[],
};
},
created() {
@@ -432,7 +492,7 @@ export default {
areaId: null,
- isStatus: null,
+ isStatus: 1,
name: null,
@@ -478,6 +538,30 @@ export default {
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
+ //批量启用
+ enable(row) {
+ this.isStatusFuc(row, 1);
+ },
+ //批量禁用
+ banned(row) {
+ this.isStatusFuc(row, 2);
+ },
+ isStatusFuc(row, e) {
+ const ids = row.id || this.ids.join(",");
+ const src = e == 1 ? "启动" : "禁用";
+ this.$confirm("是否确认" + src + '编号为"' + ids + '"的数据项?', "警告", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(function () {
+ return updateIsStatus({ ids: ids, isStatus: e });
+ })
+ .then(() => {
+ this.getList(e);
+ })
+ .catch(() => {});
+ },
/**查看按钮操作 */
handleInfo(row) {
this.reset();
@@ -561,6 +645,28 @@ export default {
})
.catch(() => {});
},
+ /** 导入按钮操作 */
+ exportFile(e) {
+ this.$refs.importdialog.open()
+ // let downloadLoadingInstance = Loading.service({
+ // text: "正在导入数据,请稍候",
+ // spinner: "el-icon-loading",
+ // background: "rgba(0, 0, 0, 0.7)",
+ // });
+ // let a = new FormData();
+ // a.append("file", e.file);
+ // importExcel(a)
+ // .then((res) => {
+ // downloadLoadingInstance.close();
+ // this.$model.msgSuccess("导入成功");
+ // this.getList();
+ // this.$refs.upload.clearFiles();
+ // })
+ // .catch(() => {
+ // downloadLoadingInstance.close();
+ // this.$model.msgError("导入失败");
+ // });
+ },
},
};
diff --git a/src/views/tcZz/networkEcology/wpwzlyqk/index.vue b/src/views/tcZz/networkEcology/wpwzlyqk/index.vue
index ff9415c..16516d9 100644
--- a/src/views/tcZz/networkEcology/wpwzlyqk/index.vue
+++ b/src/views/tcZz/networkEcology/wpwzlyqk/index.vue
@@ -6,7 +6,6 @@
ref="queryForm"
:inline="true"
v-show="showSearch"
- label-width="auto"
>
-
+
+
+
导出
+
+ 导入
+
+ 启用
+ 禁用