Commit c5eec1fd by 张超军

修改 /api

parent 194909c5
......@@ -411,7 +411,7 @@ export default {
search () {
console.info("请求===>", this.reqParam);
this.$axios
.post("/api/api/personstore/allperson", this.reqParam)
.post("/api/personstore/allperson", this.reqParam)
.then(response => {
if (response.data.code === 0) {
this.tableDate = response.data.ret.list;
......@@ -604,7 +604,7 @@ export default {
})
.then(() => {
this.$axios
.post("/api/api/personstore/delete", { psns: psns })
.post("/api/personstore/delete", { psns: psns })
.then(response => {
if (response.data.code === 0) {
this.$message.success("删除成功");
......
......@@ -91,7 +91,7 @@ export default {
})
.then(() => {
this.$axios
.put("/api/api/personstore/update", this.reqParam)
.put("/api/personstore/update", this.reqParam)
.then(response => {
if (response.data.code === 0) {
this.$message.success("更改成功");
......
......@@ -126,7 +126,7 @@ export default {
})
.then(() => {
this.$axios
.post("/api/api/mypsn/add", this.reqParam)
.post("/api/mypsn/add", this.reqParam)
.then(response => {
if (response.data.code === 0) {
this.$message.success("关注成功");
......
......@@ -237,7 +237,7 @@ export default {
search() {
console.info("案件请求===>", this.reqParam);
this.$axios
.post("/api/api/casestore/allcase", this.reqParam)
.post("/api/casestore/allcase", this.reqParam)
.then(response => {
if (response.data.code === 0) {
this.list = response.data.ret.list;
......
......@@ -52,33 +52,44 @@ export default {
* @param {*}
* @return {*}
*/
Bz() {
Bz () {
let self = this
console.log('比中');
},
/**
* @description: 认定完成
* @param {*}
* @return {*}
*/
Rdwc() {
console.log('认定完成');
let affirmState = '认定完成'
let affirmState = '比中'
let srcseqno = sessionStorage.getItem('srcseqno') || ''
let destseqno = sessionStorage.getItem('destseqno') || ''
let srcbarcode = sessionStorage.getItem('srcbarcode') || ''
let destbarcode = sessionStorage.getItem('destbarcode') || ''
this.$axios.post('/api/api/matchcand/affirm/hit',
{
MatchcandReqTo: {
let qqid = sessionStorage.getItem('qqid') || ''
let qid = sessionStorage.getItem('qid') || ''
let querytype = 1
this.$axios({
method: 'post',
url: '/api/matchcand/affirm/hit',
data: {
affirmState,
srcseqno,
destseqno,
srcbarcode,
destbarcode
destbarcode,
qqid,
qid,
querytype
}
}).then(response => {
// 跟新列表数据
self.$bus.emit('updateFinderSource')
console.log(response);
})
},
/**
* @description: 认定完成
* @param {*}
* @return {*}
*/
Rdwc () {
console.log('认定完成');
}
},
};
......
......@@ -382,7 +382,7 @@ export default {
console.info("请求===>", this.reqParam);
// this.$axios
// .post("/api/api/queryque/standardQid", this.reqParam)
// .post("/api/queryque/standardQid", this.reqParam)
// .then(response => {
// if (response.data.code === 0) {
// this.list = response.data.ret.list;
......@@ -512,7 +512,7 @@ export default {
})
.then(() => {
this.$axios
.post("/api/api/queryque/delete", { qqid: qqid })
.post("/api/queryque/delete", { qqid: qqid })
.then(response => {
if (response.data.code === 0) {
this.$message.success("删除成功");
......
......@@ -87,6 +87,8 @@ export default {
return {
checked: true,
tableData: null,
// 不做处理的数据
sourceTableData: null,
input: "",
select: 1,
input3: "",
......@@ -127,6 +129,7 @@ export default {
self.$bus.on('initCandidate', (tableData) => {
self.tableData = tableData
self.total = self.tableData.length
self.sourceTableData = tableData
// console.log(tableData);
});
},
......@@ -136,7 +139,7 @@ export default {
* @param {*}
* @return {*}
*/
switchOptions() {
switchOptions () {
this.isShowOptions = !this.isShowOptions
},
/**
......@@ -144,7 +147,10 @@ export default {
* @param {*}
* @return {*}
*/
changeRightPX() {
changeRightPX () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 15
})
// 对勾
this.rightRoll = false
this.rightPain = true
......@@ -178,7 +184,10 @@ export default {
* @param {*}
* @return {*}
*/
changeRightPH() {
changeRightPH () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 14
})
// 对勾
this.rightRoll = false
this.rightPain = true
......@@ -212,7 +221,10 @@ export default {
* @param {*}
* @return {*}
*/
changeRightPZ() {
changeRightPZ () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 13
})
// 对勾
this.rightRoll = false
this.rightPain = true
......@@ -246,7 +258,10 @@ export default {
* @param {*}
* @return {*}
*/
changeRightPS() {
changeRightPS () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 12
})
// 对勾
this.rightRoll = false
this.rightPain = true
......@@ -280,7 +295,10 @@ export default {
* @param {*}
* @return {*}
*/
changeRightPM() {
changeRightPM () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 11
})
// 对勾
this.rightRoll = false
this.rightPain = true
......@@ -314,7 +332,10 @@ export default {
* @param {*}
* @return {*}
*/
changeRightRX() {
changeRightRX () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 5
})
// 对勾
this.rightRoll = true
this.rightPain = false
......@@ -348,7 +369,10 @@ export default {
* @param {*}
* @return {*}
*/
changeRightRH() {
changeRightRH () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 4
})
// 对勾
this.rightRoll = true
this.rightPain = false
......@@ -382,7 +406,10 @@ export default {
* @param {*}
* @return {*}
*/
changeRightRZ() {
changeRightRZ () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 3
})
// 对勾
this.rightRoll = true
this.rightPain = false
......@@ -416,7 +443,10 @@ export default {
* @param {*}
* @return {*}
*/
changeRightRS() {
changeRightRS () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 2
})
// 对勾
this.rightRoll = true
this.rightPain = false
......@@ -450,7 +480,10 @@ export default {
* @param {*}
* @return {*}
*/
changeRightRM() {
changeRightRM () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 1
})
// 对勾
this.rightRoll = true
this.rightPain = false
......@@ -484,7 +517,10 @@ export default {
* @param {*}
* @return {*}
*/
changeLeftPX() {
changeLeftPX () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 20
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -518,7 +554,10 @@ export default {
* @param {*}
* @return {*}
*/
changeLeftPH() {
changeLeftPH () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 19
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -552,7 +591,10 @@ export default {
* @param {*}
* @return {*}
*/
changeLeftPZ() {
changeLeftPZ () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 18
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -586,7 +628,10 @@ export default {
* @param {*}
* @return {*}
*/
changeLeftPS() {
changeLeftPS () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 17
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -620,7 +665,10 @@ export default {
* @param {*}
* @return {*}
*/
changeLeftPM() {
changeLeftPM () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 16
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -654,7 +702,10 @@ export default {
* @param {*}
* @return {*}
*/
changeLeftRX() {
changeLeftRX () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 10
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -688,7 +739,10 @@ export default {
* @param {*}
* @return {*}
*/
changeLeftRH() {
changeLeftRH () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 9
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -722,7 +776,10 @@ export default {
* @param {*}
* @return {*}
*/
changeLeftRZ() {
changeLeftRZ () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 8
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -756,7 +813,10 @@ export default {
* @param {*}
* @return {*}
*/
changeLeftRS() {
changeLeftRS () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 7
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -790,7 +850,10 @@ export default {
* @param {*}
* @return {*}
*/
changeLeftRM() {
changeLeftRM () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 6
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -839,8 +902,21 @@ export default {
]
)
},
/**
* @description: 筛选按钮
* @param {*}
* @return {*}
*/
search () {
let self = this
console.info(this.select);
if (self.input3 != '') {
this.tableData = this.sourceTableData.filter(item => {
return item.destbarcode == self.input3
})
} else {
this.tableData = this.sourceTableData
}
},
/**
* @description: 选中切换方法
......@@ -856,7 +932,7 @@ export default {
// 存储目的数据序号
sessionStorage.setItem('destseqno', val.destid)
// this.$axios.get(`/api/api/org/plainByBarcode/R1100002487002018050034/1/`)
this.$axios.get(`/api/api/org/plainByBarcode/${val.destbarcode}/${val.destid}/`)
this.$axios.get(`/api/org/plainByBarcode/${val.destbarcode}/${val.destid}/`)
.then(response => {
console.log(response);
self.$bus.emit('changImageEditTarget', response.data.ret.image)
......
......@@ -80,12 +80,16 @@ export default {
console.log(val);
let self = this
self.qqid = val.qqid
self.qid = val.qid
// 保存qqid和qid
sessionStorage.setItem('qqid', self.qqid)
sessionStorage.setItem('qid', self.qid)
let barcode = val.barcode
// 存储原条码号
sessionStorage.setItem('srcbarcode', barcode)
console.log(barcode);
this.$axios
.get(`/api/api/png/caseBybarcode/${barcode}`)
.get(`/api/png/caseBybarcode/${barcode}`)
.then(response => {
console.log(response);
self.enumerate = response.data.ret
......@@ -103,7 +107,7 @@ export default {
getDetailData () {
let self = this
this.$axios
.post("/api/api/queryque/standardAll", {})
.post("/api/queryque/standardAll", {})
.then(response => {
console.log(response);
self.dataList = response.data.ret
......@@ -121,7 +125,7 @@ export default {
// let barcode = row.barcode
// console.log(barcode);
// this.$axios
// .get(`/api/api/png/caseBybarcode/${barcode}`)
// .get(`/api/png/caseBybarcode/${barcode}`)
// .then(response => {
// console.log(response);
// self.enumerate = response.data.ret
......@@ -137,11 +141,10 @@ export default {
// 存储源数据序号
sessionStorage.setItem('srcseqno', imageInfo.seq)
this.$bus.emit('changImageEdit', imageInfo.image)
this.$axios.post(`/api/api/query/matchcand/dest/${self.qqid}/${imageInfo.seq}`, {})
this.$axios.post(`/api/query/matchcand/dest/${self.qqid}/${imageInfo.seq}`, {})
.then(response => {
console.log(response);
self.$bus.emit('initCandidate', response.data.ret)
})
},
/**
......@@ -161,9 +164,14 @@ export default {
}
},
mounted () {
let self = this
// 初始状态下 展示当前任务的第一条指纹信息(指纹个数)
// this.enumerate = datas[0].enumerate;
this.getDetailData()
// 更新列表数据
this.$bus.on('updateFinderSource', () => {
self.getDetailData()
})
}
};
// 某任务下查询的所有信息
......
/*
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-09-22 10:08:37
* @LastEditors: your name
* @LastEditTime: 2021-09-24 11:23:06
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\vue.config.js
*/
......@@ -63,9 +63,18 @@ module.exports = {
ws: true,
changeOrigin: true,
pathRewrite: {
'^/api': '/'
}
'^/api': '/api'
}
},
// 阿里
// "/api": {
// target: "http://47.92.225.109:9101/", // 张 认定
// ws: true,
// changeOrigin: true,
// pathRewrite: {
// '^/api': '/api'
// }
// }
},
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment