Commit c5eec1fd by 张超军

修改 /api

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