导入批量启用禁用

duhanyu
吕天方 2 years ago
parent 9902e925e3
commit 19f757ffdf

@ -42,3 +42,24 @@ export function delBzhan(id) {
method: 'delete'
})
}
// B站、小红书批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/netManage/bzhan/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/netManage/bzhan/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delDy(id) {
method: 'delete'
})
}
// 抖音批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/netManage/dy/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/netManage/dy/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delJbmap(id) {
method: 'delete'
})
}
// 举报地图批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/netManage/jbmap/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/netManage/jbmap/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delQlzxxddt(id) {
method: 'delete'
})
}
// 清朗专项行动动态批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/netManage/qlzxxddt/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/netManage/qlzxxddt/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delTtsum(id) {
method: 'delete'
})
}
// 今日头条、快手批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/netManage/ttsum/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/netManage/ttsum/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delVx(id) {
method: 'delete'
})
}
// 微信批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/netManage/vx/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/netManage/vx/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delWb(id) {
method: 'delete'
})
}
// 微博批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/netManage/wb/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/netManage/wb/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delWz(id) {
method: 'delete'
})
}
// 网站批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/netManage/wz/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/netManage/wz/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delZdgzxm(id) {
method: 'delete'
})
}
// 重点工作项目批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/netManage/zdgzxm/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/netManage/zdgzxm/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delZdlyjg(id) {
method: 'delete'
})
}
// 重点领域监管批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/netManage/zdlyjg/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/netManage/zdlyjg/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delZdqyml(id) {
method: 'delete'
})
}
// 重点企业名录批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/netManage/zdqyml/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/netManage/zdqyml/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delAqg(id) {
method: 'delete'
})
}
// 网络安全官批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/networkEcology/aqg/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/networkEcology/aqg/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delFb(id) {
method: 'delete'
})
}
// 上级媒体、本地发布批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/networkEcology/fb/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/networkEcology/fb/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delWlaqzcqy(id) {
method: 'delete'
})
}
// 网络安全支持单位批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/networkEcology/wlaqzcqy/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/networkEcology/wlaqzcqy/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delWldv(id) {
method: 'delete'
})
}
// 网络大V批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/networkEcology/wldv/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/networkEcology/wldv/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delWlmqfzr(id) {
method: 'delete'
})
}
// 网络民情负责人批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/networkEcology/wlmqfzr/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/networkEcology/wlmqfzr/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delWlwmzyz(id) {
method: 'delete'
})
}
// 网络文明志愿者批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/networkEcology/wlwmzyz/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/networkEcology/wlwmzyz/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delWpwzlyqk(id) {
method: 'delete'
})
}
// 网评文章录用情况批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/networkEcology/wpwzlyqk/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/networkEcology/wpwzlyqk/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -42,3 +42,24 @@ export function delWpy(id) {
method: 'delete'
})
}
// 网评员批量启用禁用
export function updateIsStatus(query) {
return request({
url: '/tcZz/networkEcology/wpy/isStatus',
method: 'get',
params: query
})
}
// 通用导入
export function importExcel(data) {
return request({
url: '/tcZz/networkEcology/wpy/common/importExcel',
method: 'post',
data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}

@ -146,6 +146,30 @@
v-hasPermi="['tcZz/netManage:bzhan:export']"
>导出</el-button
>
<el-upload
style="display: inline-block; margin: 0 10px"
class='upload-demo'
ref="upload"
action="1"
:limit="1"
accept=".xlsx, .xls"
:show-file-list="false"
:file-list="fileList"
:http-request="exportFile"
>
<el-button type="primary" size="mini">导入</el-button>
</el-upload>
<el-button type="success" size="mini" @click="enable" :disabled="multiple"
>启用</el-button
>
<el-button
type="danger"
size="mini"
@click="banned"
autofocus
:disabled="multiple"
>禁用</el-button
>
</div>
<el-table v-loading="loading" :data="bzhanList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
@ -289,7 +313,7 @@
</template>
<script>
import { listBzhan, getBzhan, delBzhan, addBzhan, updateBzhan, exportBzhan } from "@/api/tcZz/netManage/bzhan";
import { listBzhan, getBzhan, delBzhan, addBzhan, updateBzhan, exportBzhan, updateIsStatus, importExcel } from "@/api/tcZz/netManage/bzhan";
export default {
name: "Bzhan",
//
@ -356,7 +380,8 @@
form: {},
//
rules: {
}
},
fileList:[],
};
},
created() {
@ -434,6 +459,30 @@
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();
@ -518,7 +567,28 @@
}, 'B站、小红书_'+ new Date().getTime() +'.xlsx')
this.exportLoading = false;
}).catch(() => {});
}
},
/** 导入按钮操作 */
exportFile(e) {
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("导入失败");
});
},
}
}

@ -145,6 +145,30 @@
v-hasPermi="['tcZz/netManage:dy:export']"
>导出</el-button
>
<el-upload
style="display: inline-block; margin: 0 10px"
class='upload-demo'
ref="upload"
action="1"
:limit="1"
accept=".xlsx, .xls"
:show-file-list="false"
:file-list="fileList"
:http-request="exportFile"
>
<el-button type="primary" size="mini">导入</el-button>
</el-upload>
<el-button type="success" size="mini" @click="enable" :disabled="multiple"
>启用</el-button
>
<el-button
type="danger"
size="mini"
@click="banned"
autofocus
:disabled="multiple"
>禁用</el-button
>
</div>
<el-table v-loading="loading" :data="dyList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
@ -277,7 +301,7 @@
</template>
<script>
import { listDy, getDy, delDy, addDy, updateDy, exportDy } from "@/api/tcZz/netManage/dy";
import { listDy, getDy, delDy, addDy, updateDy, exportDy, updateIsStatus, importExcel } from "@/api/tcZz/netManage/dy";
export default {
name: "Dy",
//
@ -344,7 +368,8 @@
form: {},
//
rules: {
}
},
fileList:[],
};
},
created() {
@ -422,6 +447,30 @@
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();
@ -506,7 +555,28 @@
}, '抖音_'+ new Date().getTime() +'.xlsx')
this.exportLoading = false;
}).catch(() => {});
}
},
/** 导入按钮操作 */
exportFile(e) {
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("导入失败");
});
},
}
}

@ -137,18 +137,6 @@
@click="handleDelete"
v-hasPermi="['tcZz/netManage:gzdt:remove']"
>删除</el-button>
<el-upload
class='upload-demo'
ref="upload"
action="1"
:limit="1"
accept=".xlsx, .xls"
:show-file-list="false"
:file-list="fileList"
:http-request="exportFile"
>
<el-button type="info" size="mini">导入</el-button>
</el-upload>
<el-button
type="warning"
size="mini"
@ -157,6 +145,30 @@
v-hasPermi="['tcZz/netManage:gzdt:export']"
>导出</el-button
>
<el-upload
style="display: inline-block; margin: 0 10px"
class='upload-demo'
ref="upload"
action="1"
:limit="1"
accept=".xlsx, .xls"
:show-file-list="false"
:file-list="fileList"
:http-request="exportFile"
>
<el-button type="primary" size="mini">导入</el-button>
</el-upload>
<el-button type="success" size="mini" @click="enable" :disabled="multiple"
>启用</el-button
>
<el-button
type="danger"
size="mini"
@click="banned"
autofocus
:disabled="multiple"
>禁用</el-button
>
</div>
<el-table v-loading="loading" :data="gzdtList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
@ -367,7 +379,7 @@
rules: {
},
fileNameS:[],
fileList:[]
fileList:[],
};
},
created() {
@ -447,6 +459,30 @@
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();
@ -584,11 +620,11 @@
</script>
<style lang="scss" scope>
.layui-table-tool {
display:flex;
// .layui-table-tool {
// display:flex;
.upload-demo {
margin: 0 10px;
}
}
// .upload-demo {
// margin: 0 10px;
// }
// }
</style>

@ -185,6 +185,30 @@
v-hasPermi="['tcZz/netManage:jbmap:export']"
>导出</el-button
>
<el-upload
style="display: inline-block; margin: 0 10px"
class='upload-demo'
ref="upload"
action="1"
:limit="1"
accept=".xlsx, .xls"
:show-file-list="false"
:file-list="fileList"
:http-request="exportFile"
>
<el-button type="primary" size="mini">导入</el-button>
</el-upload>
<el-button type="success" size="mini" @click="enable" :disabled="multiple"
>启用</el-button
>
<el-button
type="danger"
size="mini"
@click="banned"
autofocus
:disabled="multiple"
>禁用</el-button
>
</div>
<el-table v-loading="loading" :data="jbmapList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
@ -368,7 +392,7 @@
</template>
<script>
import { listJbmap, getJbmap, delJbmap, addJbmap, updateJbmap, exportJbmap } from "@/api/tcZz/netManage/jbmap";
import { listJbmap, getJbmap, delJbmap, addJbmap, updateJbmap, exportJbmap, updateIsStatus, importExcel } from "@/api/tcZz/netManage/jbmap";
export default {
name: "Jbmap",
//
@ -447,7 +471,8 @@
form: {},
//
rules: {
}
},
fileList:[],
};
},
created() {
@ -540,6 +565,30 @@
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();
@ -624,7 +673,28 @@
}, '举报地图_'+ new Date().getTime() +'.xlsx')
this.exportLoading = false;
}).catch(() => {});
}
},
/** 导入按钮操作 */
exportFile(e) {
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("导入失败");
});
},
}
}

@ -124,6 +124,19 @@
v-hasPermi="['tcZz/netManage:jbsjndfltj:export']"
>导出</el-button
>
<el-upload
style="display: inline-block; margin: 0 10px"
class='upload-demo'
ref="upload"
action="1"
:limit="1"
accept=".xlsx, .xls"
:show-file-list="false"
:file-list="fileList"
:http-request="exportFile"
>
<el-button type="primary" size="mini">导入</el-button>
</el-upload>
</div>
<el-table v-loading="loading" :data="jbsjndfltjList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
@ -227,7 +240,7 @@
</template>
<script>
import { listJbsjndfltj, getJbsjndfltj, delJbsjndfltj, addJbsjndfltj, updateJbsjndfltj, exportJbsjndfltj } from "@/api/tcZz/netManage/jbsjndfltj";
import { listJbsjndfltj, getJbsjndfltj, delJbsjndfltj, addJbsjndfltj, updateJbsjndfltj, exportJbsjndfltj, importExcel } from "@/api/tcZz/netManage/jbsjndfltj";
export default {
name: "Jbsjndfltj",
//
@ -287,7 +300,8 @@
form: {},
//
rules: {
}
},
fileList:[],
};
},
created() {
@ -432,7 +446,28 @@
}, '举报事件年度分类统计_'+ new Date().getTime() +'.xlsx')
this.exportLoading = false;
}).catch(() => {});
}
},
/** 导入按钮操作 */
exportFile(e) {
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("导入失败");
});
},
}
}

@ -127,6 +127,30 @@
v-hasPermi="['tcZz/netManage:qlzxxddt:export']"
>导出</el-button
>
<el-upload
style="display: inline-block; margin: 0 10px"
class='upload-demo'
ref="upload"
action="1"
:limit="1"
accept=".xlsx, .xls"
:show-file-list="false"
:file-list="fileList"
:http-request="exportFile"
>
<el-button type="primary" size="mini">导入</el-button>
</el-upload>
<el-button type="success" size="mini" @click="enable" :disabled="multiple"
>启用</el-button
>
<el-button
type="danger"
size="mini"
@click="banned"
autofocus
:disabled="multiple"
>禁用</el-button
>
</div>
<el-table v-loading="loading" :data="qlzxxddtList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
@ -259,7 +283,7 @@
</template>
<script>
import { listQlzxxddt, getQlzxxddt, delQlzxxddt, addQlzxxddt, updateQlzxxddt, exportQlzxxddt } from "@/api/tcZz/netManage/qlzxxddt";
import { listQlzxxddt, getQlzxxddt, delQlzxxddt, addQlzxxddt, updateQlzxxddt, exportQlzxxddt, updateIsStatus, importExcel } from "@/api/tcZz/netManage/qlzxxddt";
export default {
name: "Qlzxxddt",
//
@ -326,7 +350,8 @@
form: {},
//
rules: {
}
},
fileList:[],
};
},
created() {
@ -404,6 +429,30 @@
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();
@ -488,7 +537,28 @@
}, '清朗专项行动动态_'+ new Date().getTime() +'.xlsx')
this.exportLoading = false;
}).catch(() => {});
}
},
/** 导入按钮操作 */
exportFile(e) {
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("导入失败");
});
},
}
}

@ -128,6 +128,19 @@
v-hasPermi="['tcZz/netManage:qlzxxdsjtj:export']"
>导出</el-button
>
<el-upload
style="display: inline-block; margin: 0 10px"
class='upload-demo'
ref="upload"
action="1"
:limit="1"
accept=".xlsx, .xls"
:show-file-list="false"
:file-list="fileList"
:http-request="exportFile"
>
<el-button type="primary" size="mini">导入</el-button>
</el-upload>
</div>
<el-table v-loading="loading" :data="qlzxxdsjtjList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
@ -228,7 +241,7 @@
</template>
<script>
import { listQlzxxdsjtj, getQlzxxdsjtj, delQlzxxdsjtj, addQlzxxdsjtj, updateQlzxxdsjtj, exportQlzxxdsjtj } from "@/api/tcZz/netManage/qlzxxdsjtj";
import { listQlzxxdsjtj, getQlzxxdsjtj, delQlzxxdsjtj, addQlzxxdsjtj, updateQlzxxdsjtj, exportQlzxxdsjtj, importExcel } from "@/api/tcZz/netManage/qlzxxdsjtj";
export default {
name: "Qlzxxdsjtj",
//
@ -292,7 +305,8 @@
form: {},
//
rules: {
}
},
fileList:[],
};
},
created() {
@ -444,7 +458,28 @@
}, '清郎专项行动数据统计_'+ new Date().getTime() +'.xlsx')
this.exportLoading = false;
}).catch(() => {});
}
},
/** 导入按钮操作 */
exportFile(e) {
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("导入失败");
});
},
}
}

@ -146,6 +146,30 @@
v-hasPermi="['tcZz/netManage:ttsum:export']"
>导出</el-button
>
<el-upload
style="display: inline-block; margin: 0 10px"
class='upload-demo'
ref="upload"
action="1"
:limit="1"
accept=".xlsx, .xls"
:show-file-list="false"
:file-list="fileList"
:http-request="exportFile"
>
<el-button type="primary" size="mini">导入</el-button>
</el-upload>
<el-button type="success" size="mini" @click="enable" :disabled="multiple"
>启用</el-button
>
<el-button
type="danger"
size="mini"
@click="banned"
autofocus
:disabled="multiple"
>禁用</el-button
>
</div>
<el-table v-loading="loading" :data="ttsumList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
@ -289,7 +313,7 @@
</template>
<script>
import { listTtsum, getTtsum, delTtsum, addTtsum, updateTtsum, exportTtsum } from "@/api/tcZz/netManage/ttsum";
import { listTtsum, getTtsum, delTtsum, addTtsum, updateTtsum, exportTtsum, updateIsStatus, importExcel } from "@/api/tcZz/netManage/ttsum";
export default {
name: "Ttsum",
//
@ -356,7 +380,8 @@
form: {},
//
rules: {
}
},
fileList:[],
};
},
created() {
@ -434,6 +459,30 @@
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();
@ -518,7 +567,28 @@
}, '今日头条、快手_'+ new Date().getTime() +'.xlsx')
this.exportLoading = false;
}).catch(() => {});
}
},
/** 导入按钮操作 */
exportFile(e) {
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("导入失败");
});
},
}
}

@ -136,6 +136,30 @@
v-hasPermi="['tcZz/netManage:vx:export']"
>导出</el-button
>
<el-upload
style="display: inline-block; margin: 0 10px"
class='upload-demo'
ref="upload"
action="1"
:limit="1"
accept=".xlsx, .xls"
:show-file-list="false"
:file-list="fileList"
:http-request="exportFile"
>
<el-button type="primary" size="mini">导入</el-button>
</el-upload>
<el-button type="success" size="mini" @click="enable" :disabled="multiple"
>启用</el-button
>
<el-button
type="danger"
size="mini"
@click="banned"
autofocus
:disabled="multiple"
>禁用</el-button
>
</div>
<el-table v-loading="loading" :data="vxList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
@ -262,7 +286,7 @@
</template>
<script>
import { listVx, getVx, delVx, addVx, updateVx, exportVx } from "@/api/tcZz/netManage/vx";
import { listVx, getVx, delVx, addVx, updateVx, exportVx, updateIsStatus, importExcel } from "@/api/tcZz/netManage/vx";
export default {
name: "Vx",
//
@ -327,7 +351,8 @@
form: {},
//
rules: {
}
},
fileList:[],
};
},
created() {
@ -403,6 +428,30 @@
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();
@ -487,7 +536,28 @@
}, '微信_'+ new Date().getTime() +'.xlsx')
this.exportLoading = false;
}).catch(() => {});
}
},
/** 导入按钮操作 */
exportFile(e) {
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("导入失败");
});
},
}
}

@ -136,6 +136,30 @@
v-hasPermi="['tcZz/netManage:wb:export']"
>导出</el-button
>
<el-upload
style="display: inline-block; margin: 0 10px"
class='upload-demo'
ref="upload"
action="1"
:limit="1"
accept=".xlsx, .xls"
:show-file-list="false"
:file-list="fileList"
:http-request="exportFile"
>
<el-button type="primary" size="mini">导入</el-button>
</el-upload>
<el-button type="success" size="mini" @click="enable" :disabled="multiple"
>启用</el-button
>
<el-button
type="danger"
size="mini"
@click="banned"
autofocus
:disabled="multiple"
>禁用</el-button
>
</div>
<el-table v-loading="loading" :data="wbList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
@ -262,7 +286,7 @@
</template>
<script>
import { listWb, getWb, delWb, addWb, updateWb, exportWb } from "@/api/tcZz/netManage/wb";
import { listWb, getWb, delWb, addWb, updateWb, exportWb, updateIsStatus, importExcel } from "@/api/tcZz/netManage/wb";
export default {
name: "Wb",
//
@ -327,7 +351,8 @@
form: {},
//
rules: {
}
},
fileList:[],
};
},
created() {
@ -403,6 +428,30 @@
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();
@ -487,7 +536,28 @@
}, '微博_'+ new Date().getTime() +'.xlsx')
this.exportLoading = false;
}).catch(() => {});
}
},
/** 导入按钮操作 */
exportFile(e) {
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("导入失败");
});
},
}
}

@ -154,6 +154,30 @@
v-hasPermi="['tcZz/netManage:wz:export']"
>导出</el-button
>
<el-upload
style="display: inline-block; margin: 0 10px"
class='upload-demo'
ref="upload"
action="1"
:limit="1"
accept=".xlsx, .xls"
:show-file-list="false"
:file-list="fileList"
:http-request="exportFile"
>
<el-button type="primary" size="mini">导入</el-button>
</el-upload>
<el-button type="success" size="mini" @click="enable" :disabled="multiple"
>启用</el-button
>
<el-button
type="danger"
size="mini"
@click="banned"
autofocus
:disabled="multiple"
>禁用</el-button
>
</div>
<el-table v-loading="loading" :data="wzList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
@ -292,7 +316,7 @@
</template>
<script>
import { listWz, getWz, delWz, addWz, updateWz, exportWz } from "@/api/tcZz/netManage/wz";
import { listWz, getWz, delWz, addWz, updateWz, exportWz, updateIsStatus, importExcel } from "@/api/tcZz/netManage/wz";
export default {
name: "Wz",
//
@ -361,7 +385,8 @@
form: {},
//
rules: {
}
},
fileList:[],
};
},
created() {
@ -441,6 +466,30 @@
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();
@ -525,7 +574,28 @@
}, '网站_'+ new Date().getTime() +'.xlsx')
this.exportLoading = false;
}).catch(() => {});
}
},
/** 导入按钮操作 */
exportFile(e) {
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("导入失败");
});
},
}
}

@ -116,6 +116,19 @@
v-hasPermi="['tcZz/netManage:ytlc:export']"
>导出</el-button
>
<el-upload
style="display: inline-block; margin: 0 10px"
class='upload-demo'
ref="upload"
action="1"
:limit="1"
accept=".xlsx, .xls"
:show-file-list="false"
:file-list="fileList"
:http-request="exportFile"
>
<el-button type="primary" size="mini">导入</el-button>
</el-upload>
</div>
<el-table v-loading="loading" :data="ytlcList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
@ -270,7 +283,8 @@
//
rules: {
},
fileNameS:[]
fileNameS:[],
fileList:[],
};
},
created() {
@ -444,7 +458,28 @@
}, '约谈流程_'+ new Date().getTime() +'.xlsx')
this.exportLoading = false;
}).catch(() => {});
}
},
/** 导入按钮操作 */
exportFile(e) {
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("导入失败");
});
},
}
}

@ -154,6 +154,30 @@
v-hasPermi="['tcZz/netManage:zdgzxm:export']"
>导出</el-button
>
<el-upload
style="display: inline-block; margin: 0 10px"
class='upload-demo'
ref="upload"
action="1"
:limit="1"
accept=".xlsx, .xls"
:show-file-list="false"
:file-list="fileList"
:http-request="exportFile"
>
<el-button type="primary" size="mini">导入</el-button>
</el-upload>
<el-button type="success" size="mini" @click="enable" :disabled="multiple"
>启用</el-button
>
<el-button
type="danger"
size="mini"
@click="banned"
autofocus
:disabled="multiple"
>禁用</el-button
>
</div>
<el-table v-loading="loading" :data="zdgzxmList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
@ -299,7 +323,7 @@
</template>
<script>
import { listZdgzxm, getZdgzxm, delZdgzxm, addZdgzxm, updateZdgzxm, exportZdgzxm } from "@/api/tcZz/netManage/zdgzxm";
import { listZdgzxm, getZdgzxm, delZdgzxm, addZdgzxm, updateZdgzxm, exportZdgzxm, updateIsStatus, importExcel } from "@/api/tcZz/netManage/zdgzxm";
export default {
name: "Zdgzxm",
//
@ -370,7 +394,8 @@
form: {},
//
rules: {
}
},
fileList:[],
};
},
created() {
@ -452,6 +477,30 @@
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();
@ -536,13 +585,31 @@
}, '重点工作项目_'+ new Date().getTime() +'.xlsx')
this.exportLoading = false;
}).catch(() => {});
}
},
/** 导入按钮操作 */
exportFile(e) {
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("导入失败");
});
},
}
}
</script>
<style lang="scss" scope>
::v-deep .el-textarea {
}
</style>

@ -163,6 +163,30 @@
v-hasPermi="['tcZz/netManage:zdlyjg:export']"
>导出</el-button
>
<el-upload
style="display: inline-block; margin: 0 10px"
class='upload-demo'
ref="upload"
action="1"
:limit="1"
accept=".xlsx, .xls"
:show-file-list="false"
:file-list="fileList"
:http-request="exportFile"
>
<el-button type="primary" size="mini">导入</el-button>
</el-upload>
<el-button type="success" size="mini" @click="enable" :disabled="multiple"
>启用</el-button
>
<el-button
type="danger"
size="mini"
@click="banned"
autofocus
:disabled="multiple"
>禁用</el-button
>
</div>
<el-table v-loading="loading" :data="zdlyjgList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
@ -307,7 +331,7 @@
</template>
<script>
import { listZdlyjg, getZdlyjg, delZdlyjg, addZdlyjg, updateZdlyjg, exportZdlyjg } from "@/api/tcZz/netManage/zdlyjg";
import { listZdlyjg, getZdlyjg, delZdlyjg, addZdlyjg, updateZdlyjg, exportZdlyjg, updateIsStatus, importExcel } from "@/api/tcZz/netManage/zdlyjg";
export default {
name: "Zdlyjg",
//
@ -378,7 +402,8 @@
form: {},
//
rules: {
}
},
fileList:[],
};
},
created() {
@ -460,6 +485,30 @@
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();
@ -544,7 +593,28 @@
}, '重点领域监管_'+ new Date().getTime() +'.xlsx')
this.exportLoading = false;
}).catch(() => {});
}
},
/** 导入按钮操作 */
exportFile(e) {
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("导入失败");
});
},
}
}

@ -199,6 +199,30 @@
v-hasPermi="['tcZz/netManage:zdqyml:export']"
>导出</el-button
>
<el-upload
style="display: inline-block; margin: 0 10px"
class='upload-demo'
ref="upload"
action="1"
:limit="1"
accept=".xlsx, .xls"
:show-file-list="false"
:file-list="fileList"
:http-request="exportFile"
>
<el-button type="primary" size="mini">导入</el-button>
</el-upload>
<el-button type="success" size="mini" @click="enable" :disabled="multiple"
>启用</el-button
>
<el-button
type="danger"
size="mini"
@click="banned"
autofocus
:disabled="multiple"
>禁用</el-button
>
</div>
<el-table v-loading="loading" :data="zdqymlList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
@ -367,7 +391,7 @@
</template>
<script>
import { listZdqyml, getZdqyml, delZdqyml, addZdqyml, updateZdqyml, exportZdqyml } from "@/api/tcZz/netManage/zdqyml";
import { listZdqyml, getZdqyml, delZdqyml, addZdqyml, updateZdqyml, exportZdqyml, updateIsStatus, importExcel } from "@/api/tcZz/netManage/zdqyml";
export default {
name: "Zdqyml",
//
@ -446,7 +470,8 @@
form: {},
//
rules: {
}
},
fileList:[],
};
},
created() {
@ -536,6 +561,30 @@
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();
@ -620,7 +669,28 @@
}, '重点企业名录_'+ new Date().getTime() +'.xlsx')
this.exportLoading = false;
}).catch(() => {});
}
},
/** 导入按钮操作 */
exportFile(e) {
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("导入失败");
});
},
}
}

Loading…
Cancel
Save