@@ -1202,7 +1202,7 @@ export function findWeekMonth(data) { | |||||
// | // | ||||
export function deleteById(data) { | export function deleteById(data) { | ||||
return request({ | return request({ | ||||
url: '/autoSR/api/zkMessage/deleteById', | |||||
url: '/autoSR/zkhouse/deleteWeek', | |||||
method: 'get', | method: 'get', | ||||
params: data | params: data | ||||
}) | }) | ||||
@@ -413,6 +413,7 @@ export default { | |||||
this.namelist = []; | this.namelist = []; | ||||
this.numlist = []; | this.numlist = []; | ||||
this.objlist = []; | this.objlist = []; | ||||
this.alllist = []; | |||||
var dateType = ""; | var dateType = ""; | ||||
if (this.TimetoAhoose == 7) { | if (this.TimetoAhoose == 7) { | ||||
dateType = ""; | dateType = ""; | ||||
@@ -91,25 +91,27 @@ export default { | |||||
}, | }, | ||||
async mounted() { | async mounted() { | ||||
if (this.$route.query.id) { | if (this.$route.query.id) { | ||||
this.getParamsObj.id = this.$route.query.id | |||||
this.getParamsObj.id = this.$route.query.id; | |||||
} | } | ||||
if (this.$route.query.week) { | if (this.$route.query.week) { | ||||
this.getParamsObj.week = this.$route.query.week | |||||
this.getParamsObj.week = this.$route.query.week; | |||||
} | } | ||||
if (this.$route.query.pid) { | if (this.$route.query.pid) { | ||||
this.getParamsObj.pid = this.$route.query.pid | |||||
this.getParamsObj.pid = this.$route.query.pid; | |||||
} | } | ||||
if (this.$route.query.type) { | if (this.$route.query.type) { | ||||
this.getParamsObj.type = this.$route.query.type | |||||
this.getParamsObj.type = this.$route.query.type; | |||||
} | } | ||||
if (this.getParamsObj.id != "" && this.getParamsObj.id != undefined) { | if (this.getParamsObj.id != "" && this.getParamsObj.id != undefined) { | ||||
let res = await this.$api.api.weekFindById({ id: this.getParamsObj.id }); | let res = await this.$api.api.weekFindById({ id: this.getParamsObj.id }); | ||||
console.log(res, 'sadjkasljdklas') | |||||
console.log(res, "sadjkasljdklas"); | |||||
this.ruleForm.suggest = res.data.suggest; | this.ruleForm.suggest = res.data.suggest; | ||||
this.id = res.data.id; | this.id = res.data.id; | ||||
this.defaultMSG = this.ruleForm.suggest; | this.defaultMSG = this.ruleForm.suggest; | ||||
this.week = res.data.weekDate; | |||||
if (res.data.weekDate) { | |||||
this.week = res.data.weekDate; | |||||
} | |||||
this.pid = this.getParamsObj.pid; | this.pid = this.getParamsObj.pid; | ||||
this.type = this.getParamsObj.type; | this.type = this.getParamsObj.type; | ||||
} else { | } else { | ||||
@@ -117,8 +119,8 @@ export default { | |||||
weekDate: this.week, | weekDate: this.week, | ||||
projectId: this.getParamsObj.pid, | projectId: this.getParamsObj.pid, | ||||
}); | }); | ||||
console.log(res, 'sadjkasljdklas') | |||||
console.log(res, "sadjkasljdklas"); | |||||
if (res.data != null) { | if (res.data != null) { | ||||
this.ruleForm.suggest = res.data.suggest; | this.ruleForm.suggest = res.data.suggest; | ||||
this.defaultMSG = this.ruleForm.suggest; | this.defaultMSG = this.ruleForm.suggest; | ||||
@@ -153,7 +155,7 @@ export default { | |||||
this.$api.api.insertSelective(this.ruleForm).then((res) => { | this.$api.api.insertSelective(this.ruleForm).then((res) => { | ||||
if (res.code == 10000) { | if (res.code == 10000) { | ||||
this.$message.success("操作成功"); | this.$message.success("操作成功"); | ||||
this.$router.go(-1) | |||||
this.$router.go(-1); | |||||
} | } | ||||
}); | }); | ||||
} else { | } else { | ||||
@@ -153,13 +153,14 @@ export default { | |||||
remove(id) { | remove(id) { | ||||
this.$api.api.deleteById({ id: id }).then((res) => { | this.$api.api.deleteById({ id: id }).then((res) => { | ||||
console.log(res); | console.log(res); | ||||
if (res.data.code == 10000) { | |||||
if (res.code == 10000) { | |||||
let data = { | let data = { | ||||
num: 1, | num: 1, | ||||
size: this.size, | size: this.size, | ||||
messageType: this.selValue, | messageType: this.selValue, | ||||
projectId: this.id, | projectId: this.id, | ||||
}; | }; | ||||
this.tableData = [] | |||||
this.filefindByPage(data); | this.filefindByPage(data); | ||||
this.$message.success("删除成功"); | this.$message.success("删除成功"); | ||||
} | } | ||||
@@ -6,10 +6,10 @@ | |||||
// const url = 'http://192.168.31.152:9999' // 泽明 | // const url = 'http://192.168.31.152:9999' // 泽明 | ||||
// const url = 'http://62.234.122.43:9999' //正式 | // const url = 'http://62.234.122.43:9999' //正式 | ||||
// const url = 'http://81.70.55.170:9999' // 新测试服务器IP | // const url = 'http://81.70.55.170:9999' // 新测试服务器IP | ||||
// const url = 'http://192.168.31.86:9999' // 胜浩 | |||||
const url = 'http://192.168.31.101:9999' // 胜浩 | |||||
// const url = 'https://zanyong.hfju.com' // 正式域名 | // const url = 'https://zanyong.hfju.com' // 正式域名 | ||||
// const url = 'http://127.0.0.1:9999' // 本地 | // const url = 'http://127.0.0.1:9999' // 本地 | ||||
const url = 'http://81.70.55.170:9999' // 新测试 | |||||
// const url = 'http://81.70.55.170:9999' // 新测试 | |||||
// const url = 'http://82.156.35.22:9999' // 新正式ip | // const url = 'http://82.156.35.22:9999' // 新正式ip | ||||
const CompressionWebpackPlugin = require('compression-webpack-plugin') | const CompressionWebpackPlugin = require('compression-webpack-plugin') | ||||
const productionGzipExtensions = ['js', 'css'] | const productionGzipExtensions = ['js', 'css'] | ||||