报表修改

jcbranch
fanluyan 11 months ago
parent 8e0fa97fd7
commit 6ef6ce58b9

@ -210,3 +210,14 @@ export function sendMsgApi(data) {
data, data,
}); });
} }
//查询短信
export function msglistApi(data) {
return request({
url: "/xymanager/sms/list",
method: "get",
params: data,
// headers: {
// "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
// },
});
}

@ -51,9 +51,10 @@ service.interceptors.response.use(
duration: 1500, duration: 1500,
}); });
} }
if (!res.code) { // 如果没有返回code可能是下载excel if (!res.code) {
// 如果没有返回code可能是下载excel
// return resolve(response.data, res); // return resolve(response.data, res);
return res return res;
} }
return Promise.reject(new Error(res.msg || "Error")); return Promise.reject(new Error(res.msg || "Error"));
} else { } else {

@ -1143,6 +1143,7 @@
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="senMsgVisible = false"> </el-button> <el-button @click="senMsgVisible = false"> </el-button>
<el-button type="primary" @click="handlemsgSend"> </el-button> <el-button type="primary" @click="handlemsgSend"> </el-button>
<el-button type="primary" @click="handlemsgList"></el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -1155,6 +1156,7 @@ import {
upgradeListApi, upgradeListApi,
updCommentApi, updCommentApi,
sendMsgApi, sendMsgApi,
msglistApi,
} from "@/utils/api/index"; } from "@/utils/api/index";
import rowMsgDialog from "./rowMsgDialog.vue"; import rowMsgDialog from "./rowMsgDialog.vue";
import htmlToExcel from "@/utils/htmlToExcel"; import htmlToExcel from "@/utils/htmlToExcel";
@ -2126,7 +2128,7 @@ export default {
this.$message({ this.$message({
duration: 1500, duration: 1500,
showClose: true, showClose: true,
message: item.name + "下发成功", message: "短信下发成功",
type: "success", type: "success",
}); });
@ -2157,6 +2159,18 @@ export default {
}) })
.catch((err) => {}); .catch((err) => {});
}, },
//
handlemsgList() {
msglistApi({
termId: this.idArray[0],
})
.then((res) => {
console.log(res);
if (res.code == 200) {
}
})
.catch((err) => {});
},
// //
changeIssue(params) { changeIssue(params) {
cmdSendApi(params) cmdSendApi(params)

@ -298,6 +298,7 @@ export default {
intervalId: null, // ID intervalId: null, // ID
activityIdLoc: "", activityIdLoc: "",
runCommand: [], // runCommand: [], //
scrollTop: 0, //
}; };
}, },
created() { created() {
@ -518,6 +519,7 @@ export default {
}, interval); }, interval);
}, },
fetchData() { fetchData() {
console.log(this.$refs.tableRef);
let params = { let params = {
pageindex: 1, pageindex: 1,
pagesize: 10000, pagesize: 10000,
@ -577,6 +579,7 @@ export default {
.then((res) => { .then((res) => {
console.log(res); console.log(res);
this.dataList = res.data; this.dataList = res.data;
this.getCmdList(); this.getCmdList();
this.onlineNum = this.dataList.filter( this.onlineNum = this.dataList.filter(
(item) => item.onlinestatus == 1 (item) => item.onlinestatus == 1

@ -271,7 +271,7 @@ export default {
this.leftComLoading = true; this.leftComLoading = true;
let params = { let params = {
pageNum: 1, pageNum: 1,
pageSize: 300, pageSize: 500,
}; };
console.log(this.operateL); console.log(this.operateL);
// //
@ -305,7 +305,7 @@ export default {
this.rightComLoading = true; this.rightComLoading = true;
let params = { let params = {
pageNum: 1, pageNum: 1,
pageSize: 300, pageSize: 500,
}; };
// //
if (this.operateR !== "all") { if (this.operateR !== "all") {

@ -21,7 +21,9 @@ module.exports = defineConfig({
"/api": { "/api": {
//表示拦截以/api开头的请求路径 //表示拦截以/api开头的请求路径
// target: "http://61.169.135.146:40101/", // // target: "http://61.169.135.146:40101/", //
target: "http://61.169.135.146:40085/", //dell //target: "http://61.169.135.146:40080/", //dell
target: "http://61.169.135.146:40085/", //运维
//target: "http://192.168.50.197:8093/", //java本地后端
changOrigin: true, //是否开启跨域 changOrigin: true, //是否开启跨域
pathRewrite: { pathRewrite: {
"^/api": "/api", //重写api把api变成空字符因为我们真正请求的路径是没有api的 "^/api": "/api", //重写api把api变成空字符因为我们真正请求的路径是没有api的

Loading…
Cancel
Save