|
@@ -1295,17 +1295,34 @@ const NodeStatus = ref('1')
|
|
|
const queryNodeStatus = async () => {
|
|
|
const info = nodeDataInfo.value;
|
|
|
console.log(info,'info')
|
|
|
- const {error, code, data} = await wbsApi.queryNodeStatus({
|
|
|
- // primaryKeyId: info['contractIdRelation'] ? info['id'] : info['primaryKeyId'],
|
|
|
- primaryKeyId: authBtnTabKey.value==1 ? info['id'] : info['primaryKeyId'],
|
|
|
- classify: authBtnTabKey.value
|
|
|
- })
|
|
|
- //1 未填报,2待上报,3已上报
|
|
|
- if (!error && code === 200) {
|
|
|
- NodeStatus.value = data ?? '1'
|
|
|
- } else {
|
|
|
- NodeStatus.value = '1'
|
|
|
+ if (authBtnTabKey.value==1) {
|
|
|
+ const {error, code, data} = await wbsApi.queryNodeStatus({
|
|
|
+ primaryKeyId:info['id'],
|
|
|
+ classify: authBtnTabKey.value
|
|
|
+ })
|
|
|
+ //1 未填报,2待上报,3已上报
|
|
|
+ if (!error && code === 200) {
|
|
|
+ NodeStatus.value = data ?? '1'
|
|
|
+ } else {
|
|
|
+ NodeStatus.value = '1'
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ const {error, code, data} = await wbsApi.queryNodeStatusJl({
|
|
|
+ // primaryKeyId: info['contractIdRelation'] ? info['id'] : info['primaryKeyId'],
|
|
|
+ primaryKeyId: info['primaryKeyId'],
|
|
|
+ classify: authBtnTabKey.value
|
|
|
+ })
|
|
|
+ //1 未填报,2待上报,3已上报
|
|
|
+ if (!error && code === 200) {
|
|
|
+ NodeStatus.value = data ?? '1'
|
|
|
+ } else {
|
|
|
+ NodeStatus.value = '1'
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//批量上报
|