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;
......
......@@ -51,34 +51,45 @@ export default {
* @description: 比中
* @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);
});
},
......@@ -135,16 +138,19 @@ export default {
* @description: 切换指位选择
* @param {*}
* @return {*}
*/
switchOptions() {
*/
switchOptions () {
this.isShowOptions = !this.isShowOptions
},
/**
* @description: 筛选指位为右手平面小指
* @param {*}
* @return {*}
*/
changeRightPX() {
*/
changeRightPX () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 15
})
// 对勾
this.rightRoll = false
this.rightPain = true
......@@ -177,8 +183,11 @@ export default {
* @description: 筛选指位为右手平面环指
* @param {*}
* @return {*}
*/
changeRightPH() {
*/
changeRightPH () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 14
})
// 对勾
this.rightRoll = false
this.rightPain = true
......@@ -211,8 +220,11 @@ export default {
* @description: 筛选指位为右手平面中指
* @param {*}
* @return {*}
*/
changeRightPZ() {
*/
changeRightPZ () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 13
})
// 对勾
this.rightRoll = false
this.rightPain = true
......@@ -245,8 +257,11 @@ export default {
* @description: 筛选指位为右手平面食指
* @param {*}
* @return {*}
*/
changeRightPS() {
*/
changeRightPS () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 12
})
// 对勾
this.rightRoll = false
this.rightPain = true
......@@ -279,8 +294,11 @@ export default {
* @description: 筛选指位为右手平面拇指
* @param {*}
* @return {*}
*/
changeRightPM() {
*/
changeRightPM () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 11
})
// 对勾
this.rightRoll = false
this.rightPain = true
......@@ -313,8 +331,11 @@ export default {
* @description: 筛选指位为右手滚动小指
* @param {*}
* @return {*}
*/
changeRightRX() {
*/
changeRightRX () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 5
})
// 对勾
this.rightRoll = true
this.rightPain = false
......@@ -347,8 +368,11 @@ export default {
* @description: 筛选指位为右手滚动环指
* @param {*}
* @return {*}
*/
changeRightRH() {
*/
changeRightRH () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 4
})
// 对勾
this.rightRoll = true
this.rightPain = false
......@@ -381,8 +405,11 @@ export default {
* @description: 筛选指位为右手滚动中指
* @param {*}
* @return {*}
*/
changeRightRZ() {
*/
changeRightRZ () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 3
})
// 对勾
this.rightRoll = true
this.rightPain = false
......@@ -415,8 +442,11 @@ export default {
* @description: 筛选指位为右手滚动食指
* @param {*}
* @return {*}
*/
changeRightRS() {
*/
changeRightRS () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 2
})
// 对勾
this.rightRoll = true
this.rightPain = false
......@@ -449,8 +479,11 @@ export default {
* @description: 筛选指位为右手滚动拇指
* @param {*}
* @return {*}
*/
changeRightRM() {
*/
changeRightRM () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 1
})
// 对勾
this.rightRoll = true
this.rightPain = false
......@@ -483,8 +516,11 @@ export default {
* @description: 筛选指位为左手平面小指
* @param {*}
* @return {*}
*/
changeLeftPX() {
*/
changeLeftPX () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 20
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -517,8 +553,11 @@ export default {
* @description: 筛选指位为左手平面环指
* @param {*}
* @return {*}
*/
changeLeftPH() {
*/
changeLeftPH () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 19
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -551,8 +590,11 @@ export default {
* @description: 筛选指位为左手平面中指
* @param {*}
* @return {*}
*/
changeLeftPZ() {
*/
changeLeftPZ () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 18
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -585,8 +627,11 @@ export default {
* @description: 筛选指位为左手平面食指
* @param {*}
* @return {*}
*/
changeLeftPS() {
*/
changeLeftPS () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 17
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -619,8 +664,11 @@ export default {
* @description: 筛选指位为左手平面拇指
* @param {*}
* @return {*}
*/
changeLeftPM() {
*/
changeLeftPM () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 16
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -653,8 +701,11 @@ export default {
* @description: 筛选指位为左手滚动小指
* @param {*}
* @return {*}
*/
changeLeftRX() {
*/
changeLeftRX () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 10
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -687,8 +738,11 @@ export default {
* @description: 筛选指位为左手滚动环指
* @param {*}
* @return {*}
*/
changeLeftRH() {
*/
changeLeftRH () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 9
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -721,8 +775,11 @@ export default {
* @description: 筛选指位为左手滚动中指
* @param {*}
* @return {*}
*/
changeLeftRZ() {
*/
changeLeftRZ () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 8
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -755,8 +812,11 @@ export default {
* @description: 筛选指位为左手滚动食指
* @param {*}
* @return {*}
*/
changeLeftRS() {
*/
changeLeftRS () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 7
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -789,8 +849,11 @@ export default {
* @description: 筛选指位为左手滚动拇指
* @param {*}
* @return {*}
*/
changeLeftRM() {
*/
changeLeftRM () {
this.tableData = this.sourceTableData.filter(item => {
return item.destid == 6
})
// 对勾
this.rightRoll = false
this.rightPain = false
......@@ -824,7 +887,7 @@ export default {
* @param {*} h
* @param {*} column
* @return {*}
*/
*/
icons (h, { column }) {
return h(
'div', [
......@@ -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