Commit d710dc8e by 张超军

档案信息获取方式修改

parent 3a667cd2
......@@ -359,6 +359,7 @@ export default {
name: "rydaxx",
data () {
return {
barcode: '',
isShowDcfptx1: false, // 导出FPTX
arrow: 'bottom',
width1: 80,
......@@ -437,12 +438,25 @@ export default {
czrq: '2021.12.10. 23:59:59',
czsj: '编辑档案信息'
}],
rowData: []
rowData: [],
reqParam: {
caseStoreCustomSearchReq: {
ysxtAsjbh: '',// 搜索条码
searchOptions: 3,// 通用搜索
caseCheckboxQuery: [],// 条件查询
},
page: {
total: 0,
pageSize: 10,
currPage: 1
}
},
ajInfo: {}
};
},
computed: {
...mapState({
ajInfo: state => state.ajdaxx.ajInfo,
// ajInfo: state => state.ajdaxx.ajInfo,
})
},
created () {
......@@ -453,8 +467,12 @@ export default {
this.width1 = (this.width1 * w2) / w1;
// 打开侧边抽屉
this.$bus.on("openAjDaxx", (flag) => {
console.log(flag);
this.$bus.on("openAjDaxx", (obj) => {
// console.log(flag);
let flag = obj.flag
self.barcode = obj.barcode
self.reqParam.caseStoreCustomSearchReq.ysxtAsjbh = self.barcode
self.getAjinfo()
self.drawer = flag;
// 开启毛玻璃
self.$bus.emit('isBlur', true)
......@@ -462,9 +480,28 @@ export default {
// 案件档案信息
console.log(this.ajInfo);
this.initData()
// this.initData()
},
methods: {
/**
* @description:
* @param {*}
* @return {*}
*/
getAjinfo () {
let self = this
this.$axios
.post("/api/casestore/allcase", this.reqParam)
.then(response => {
if (response.data.code === 0) {
console.log(response);
self.ajInfo = response.data.ret.caseBases[0]
self.initData()
} else {
this.$message.error(response.data.message);
}
});
},
disabledDate (a) {
if (a.getTime() > new Date().getTime()) {
return true;
......
<!--
* @Author: your name
* @Date: 2021-10-22 09:42:07
* @LastEditTime: 2021-12-21 21:03:26
* @LastEditTime: 2022-01-08 14:09:16
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\ryzwbjLeft.vue
......@@ -211,7 +211,11 @@ export default {
*/
daxxChange () {
console.log(8888)
this.$bus.emit('openAjDaxx', true)
let obj = {
flag: true,
barcode: this.barcode
}
this.$bus.emit('openAjDaxx', obj)
// 降低指纹编辑按钮的优先级
$(".center").css('z-index', 9)
$(".tzdDrawing").css('z-index', 9)
......
......@@ -318,11 +318,12 @@ export default {
checkboxQuery: [] //滚动平面等筛选条件
}
},
ryInfo: {}
};
},
computed: {
...mapState({
ryInfo: state => state.rydaxx.ryInfo,
// ryInfo: state => state.rydaxx.ryInfo,
})
},
created () {
......@@ -333,11 +334,11 @@ export default {
this.width1 = (this.width1 * w2) / w1;
// 打开侧边抽屉
this.$bus.on("openRyDaxx", (flag) => {
// let flag = obj.flag
// self.barcode = obj.barcode
// self.reqParam.personStoreCustomSearch.ysxtAsjxgrybh = self.barcode
// self.getRyinfo()
this.$bus.on("openRyDaxx", (obj) => {
let flag = obj.flag
self.barcode = obj.barcode
self.reqParam.personStoreCustomSearch.ysxtAsjxgrybh = self.barcode
self.getRyinfo()
self.drawer = flag;
// 开启毛玻璃
......@@ -346,8 +347,7 @@ export default {
// 人员档案信息
//console.log(this.ryInfo);
this.initData()
// this.initData()
},
mounted () {
......@@ -359,13 +359,16 @@ export default {
* @return {*}
*/
getRyinfo () {
let self = this
this.$axios
.post("/api/personstore/person/list", this.reqParam)
.then(response => {
if (response.data.code === 0) {
console.log(response);
// console.log(response);
self.ryInfo = response.data.ret.list[0]
self.initData()
} else {
this.$message.error(response.data.message);
self.$message.error(response.data.message);
}
});
},
......
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