修复cidlog日志输出问题,删除不用域名

This commit is contained in:
lijun 2025-09-12 20:06:08 +08:00
parent 7ebe4a0952
commit 318ecc2578
3 changed files with 22 additions and 23 deletions

View File

@ -38,7 +38,8 @@ export default {
token: localStorage.getItem("token"), token: localStorage.getItem("token"),
}, },
server_list: [ server_list: [
{ label: "gep.ljsea.xyz", value: "gep.ljsea.xyz" }, { label: "gep.ljsea.top", value: "gep.ljsea.top" },
{ label: "gst.ljsea.top", value: "gst.ljsea.top" },
{ label: "tx.ljsea.top", value: "tx.ljsea.top" }, { label: "tx.ljsea.top", value: "tx.ljsea.top" },
{ label: "js.ljsea.top", value: "js.ljsea.top" }, { label: "js.ljsea.top", value: "js.ljsea.top" },
{label: "as.ljsea.top", value: "as.ljsea.top"}, {label: "as.ljsea.top", value: "as.ljsea.top"},
@ -400,7 +401,7 @@ export default {
</el-form> </el-form>
<!-- 表格 :row-style="this.tableRowClassName"--> <!-- 表格 :row-style="this.tableRowClassName"-->
<el-table :data="tableData" width="100%" border v-loading="tableLoading"> <el-table :data="tableData" width="100%" v-loading="tableLoading">
:row-style="this.tableRowClassName" :row-style="this.tableRowClassName"
<el-table-column prop="ID" label="id" width="80"></el-table-column> <el-table-column prop="ID" label="id" width="80"></el-table-column>
<el-table-column <el-table-column

View File

@ -14,6 +14,7 @@ export default {
return { return {
ip: "", ip: "",
tableData: [], tableData: [],
currentPageData: [],
ConfigFileCurrentPageData: [], ConfigFileCurrentPageData: [],
loading: false, loading: false,
pageSize: 10, pageSize: 10,
@ -72,7 +73,7 @@ export default {
this.tableData[i].CreatedAt = this.formattedTime(this.tableData[i].CreatedAt) this.tableData[i].CreatedAt = this.formattedTime(this.tableData[i].CreatedAt)
//console.log('this.ConfigFileList:',this.ConfigFileList); //console.log('this.ConfigFileList:',this.ConfigFileList);
} }
this.currentPageData(); this.handleCurrentChange(1);
}, },
formattedTime(isoTime) { formattedTime(isoTime) {
const date = new Date(isoTime); const date = new Date(isoTime);
@ -90,11 +91,13 @@ export default {
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.pageSize = val; this.pageSize = val;
this.currentPageData();
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.currentPage = val; this.currentPage = val;
this.currentPageData(); this.currentPageData = this.tableData.slice(
(this.currentPage - 1) * this.pageSize,
this.currentPage * this.pageSize
);
}, },
// //
@ -139,12 +142,18 @@ export default {
}, },
async updateButtonLogCID(index) { async updateButtonLogCID(index) {
this.updateDialogVisible = true; this.updateDialogVisible = true;
var id = this.tableData[index].ID; // var id = this.tableData[index].ID;
this.updateForm.create_time = this.tableData[index].CreatedAt; // this.updateForm.create_time = this.tableData[index].CreatedAt;
this.updateForm.script = this.tableData[index].Script; // this.updateForm.script = this.tableData[index].Script;
this.updateForm.end = this.tableData[index].Log; // this.updateForm.end = this.tableData[index].Log;
this.updateForm.error = this.tableData[index].Error; // this.updateForm.error = this.tableData[index].Error;
this.updateForm.RunTime = this.tableData[index].RunTime; // this.updateForm.RunTime = this.tableData[index].RunTime;
var id = this.currentPageData[index].ID;
this.updateForm.create_time = this.currentPageData[index].CreatedAt;
this.updateForm.script = this.currentPageData[index].Script;
this.updateForm.end = this.currentPageData[index].Log;
this.updateForm.error = this.currentPageData[index].Error;
this.updateForm.RunTime = this.currentPageData[index].RunTime;
}, },
async getIpClient() { async getIpClient() {
try { try {
@ -267,7 +276,7 @@ export default {
<!-- 表格 :row-style="this.tableRowClassName"--> <!-- 表格 :row-style="this.tableRowClassName"-->
<el-table <el-table
:data="ConfigFileCurrentPageData" :data="currentPageData"
width="100%" width="100%"
v-loading="loading" v-loading="loading"
element-loading-text="数据加载中..." element-loading-text="数据加载中..."

View File

@ -32,17 +32,6 @@ export default {
}, },
loading: false, // loading: false, //
server_list: [ server_list: [
// <el-option label="gep.ljsea.top" value="gep.ljsea.top"
// >gep.ljsea.xyz</el-option
// >
// <el-option label="tx.ljsea.top" value="tx.ljsea.top"
// >tx.ljsea.top</el-option
// >
// <el-option label="js.ljsea.top" value="js.ljsea.top"
// >js.ljsea.top</el-option
// >
// <el-option label="as.ljsea.top" value="as.ljsea.top"
// >as.ljsea.top</el-option>
{ label: "js.ljsea.top", value: "js.ljsea.top" }, { label: "js.ljsea.top", value: "js.ljsea.top" },
{ label: "tx.ljsea.top", value: "tx.ljsea.top" }, { label: "tx.ljsea.top", value: "tx.ljsea.top" },
{ label: "gep.ljsea.top", value: "gep.ljsea.top" }, { label: "gep.ljsea.top", value: "gep.ljsea.top" },