报表修改

jcbranch
fanluyan 11 months ago
parent 8e0fa97fd7
commit 6ef6ce58b9

@ -210,3 +210,14 @@ export function sendMsgApi(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,
});
}
if (!res.code) { // 如果没有返回code可能是下载excel
if (!res.code) {
// 如果没有返回code可能是下载excel
// return resolve(response.data, res);
return res
return res;
}
return Promise.reject(new Error(res.msg || "Error"));
} else {

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

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

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

@ -21,7 +21,9 @@ module.exports = defineConfig({
"/api": {
//表示拦截以/api开头的请求路径
// 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, //是否开启跨域
pathRewrite: {
"^/api": "/api", //重写api把api变成空字符因为我们真正请求的路径是没有api的

Loading…
Cancel
Save