Commit 23d22340 by 米嘉伟

质量检查,检查详情页,“一键合格”按钮现在可以无限点击

parent c843b15e
......@@ -18,13 +18,13 @@
<div class="headRight">
<el-button
:class="[
rowClick
yjhgClick
? 'hg zh'
: 'hg ',
]"
@click="yjhg"
v-if="roleArr.includes('D-1-9')"
:disabled="rowClick"
:disabled="yjhgClick"
>{{$t('Zljc.all_qualified')}}</el-button>
<el-button
:class="[
......@@ -299,6 +299,7 @@ export default {
this.rowData.id = this.$route.params.id;
// console.log(this.$route);
this.rowClick = this.$route.params.type == 1 ? true : false;
this.yjhgClick = this.$route.params.type == 1 ? true : false;
this.hqyhxx();
},
computed: {
......@@ -319,6 +320,7 @@ export default {
palmStatus: null, // 掌纹检查结果
faceStatus: null, // 人像检查结果
rowClick: false, //是否禁用选择
yjhgClick: false, //是否禁用一键合格
};
},
methods: {
......@@ -334,10 +336,25 @@ export default {
}).then((response) => {
// console.log(response)
this.personStatus = response.data.ret.personStatus;
if (this.personStatus == 0) {
this.yjhgClick = false;
}
this.leftStatus = response.data.ret.leftStatus;
if (this.leftStatus == 0) {
this.yjhgClick = false;
}
this.rightStatus = response.data.ret.rightStatus;
if (this.rightStatus == 0) {
this.yjhgClick = false;
}
this.palmStatus = response.data.ret.palmStatus;
if (this.palmStatus == 0) {
this.yjhgClick = false;
}
this.faceStatus = response.data.ret.faceStatus;
if (this.faceStatus == 0) {
this.yjhgClick = false;
}
});
},
// 人员信息提交
......@@ -348,9 +365,13 @@ export default {
tjRyxx0 () {
if (this.rowClick) return;
this.$refs.ryxx.saveRyxx(0);
this.yjhgClick = false;
},
changePersonStatus (data) {
this.personStatus = data;
if (data == 0) {
this.yjhgClick = false;
}
},
// 左手指纹信息提交
tjZsNyzw1 () {
......@@ -360,9 +381,13 @@ export default {
tjZsNyzw0 () {
if (this.rowClick) return;
this.$refs.zsnyzw.saveZsNyAll(0);
this.yjhgClick = false;
},
changeLeftStatus (data) {
this.leftStatus = data;
if (data == 0) {
this.yjhgClick = false;
}
},
// 右手指纹信息提交
tjYsNyzw1 () {
......@@ -372,9 +397,13 @@ export default {
tjYsNyzw0 () {
if (this.rowClick) return;
this.$refs.ysnyzw.saveYsNyAll(0);
this.yjhgClick = false;
},
changeRightStatus (data) {
this.rightStatus = data;
if (data == 0) {
this.yjhgClick = false;
}
},
// 掌纹信息提交
tjZw1 () {
......@@ -384,9 +413,13 @@ export default {
tjZw0 () {
if (this.rowClick) return;
this.$refs.zw.saveZw(0);
this.yjhgClick = false;
},
changePalmStatus (data) {
this.palmStatus = data;
if (data == 0) {
this.yjhgClick = false;
}
},
// 人像信息提交
tjRx1 () {
......@@ -396,9 +429,13 @@ export default {
tjRx0 () {
if (this.rowClick) return;
this.$refs.rx.saveRx(0);
this.yjhgClick = false;
},
changeFaceStatus (data) {
this.faceStatus = data;
if (data == 0) {
this.yjhgClick = false;
}
},
// 一键合格
yjhg () {
......@@ -442,6 +479,7 @@ export default {
reqParam.personId = this.rowData.id;
this.$axios.post("/api/zljc/result/save", reqParam).then((response) => {
console.log(response);
this.yjhgClick = true
this.personStatus = response.data.ret.personStatus;
this.leftStatus = response.data.ret.leftStatus;
this.rightStatus = response.data.ret.rightStatus;
......
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