This commit is contained in:
jiask 2025-11-24 09:16:16 +08:00
parent f547257758
commit 96a971c168
3 changed files with 49 additions and 30 deletions

View File

@ -120,7 +120,7 @@
<el-table-column label="签发日期" align="center" width="120" prop="issueDay" :show-overflow-tooltip="true"/> <el-table-column label="签发日期" align="center" width="120" prop="issueDay" :show-overflow-tooltip="true"/>
<el-table-column label="有效期至" align="center" width="120" prop="issueLifespan" :show-overflow-tooltip="true"/> <el-table-column label="有效期至" align="center" width="120" prop="issueLifespan" :show-overflow-tooltip="true"/>
<el-table-column label="设备编号" align="center" prop="deviceNo" :show-overflow-tooltip="true"/> <el-table-column label="设备编号" align="center" prop="deviceNo" :show-overflow-tooltip="true"/>
<el-table-column label="槽位编号" align="center" prop="soltNo" :show-overflow-tooltip="true"/> <el-table-column label="槽位编号" align="center" prop="slotNo" :show-overflow-tooltip="true"/>
<el-table-column label="当前状态" align="center" prop="stateName" :show-overflow-tooltip="true"> <el-table-column label="当前状态" align="center" prop="stateName" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <dict-tag :options="dict.type.dev_status" :value="scope.row.deviceState"/> --> <!-- <dict-tag :options="dict.type.dev_status" :value="scope.row.deviceState"/> -->

View File

@ -105,7 +105,7 @@
/> />
<!-- 添加或修改参数配置对话框 --> <!-- 添加或修改参数配置对话框 -->
<el-dialog :title="title+''" :visible.sync="open" width="700px" append-to-body> <el-dialog :title="title+''" :visible.sync="open" width="700px" append-to-body>
<el-form ref="baseForm" :model="baseForm" :rules="baseFormRules" label-width="80px"> <el-form ref="baseForm" :model="baseForm" :rules="baseFormRules" label-width="80px">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
@ -148,7 +148,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
@ -184,7 +184,7 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm2"> </el-button> <el-button type="primary" @click="submitFormset"> </el-button>
<el-button @click="cancel2"> </el-button> <el-button @click="cancel2"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
@ -359,6 +359,8 @@
issueAddr:"", issueAddr:"",
issueDay:"", issueDay:"",
issueLifespan:"", issueLifespan:"",
exitTime:"",
entryTime:"",
isEle:"0" isEle:"0"
}; };
this.resetForm("baseForm"); this.resetForm("baseForm");
@ -415,20 +417,22 @@
this.title2 = titled; this.title2 = titled;
} }
}, },
submitForm2: function() { submitFormset: function() {
const param={"certificateNos":this.selectCertificateNos,"type":this.selectType,"exitTime":this.baseForm.exitTime,"entryTime":this.baseForm.entryTime}; const params={"certificateNos":this.selectCertificateNos,"type":this.selectType,"exitTime":this.baseForm.exitTime,"entryTime":this.baseForm.entryTime};
console.log("param",param); console.log("params",params);
getCertificateTakeAddPageApi(param).then(response => { getCertificateTakeAddPageApi(params).then(response => {
console.log("response",response); console.log("getCertificateTakeAddPageApi response",response)
if(response.code==200){ if(response.code==200){
this.getList(); this.getList();
this.open2 = false; this.open2 = false;
this.reset(); this.reset();
this.$modal.msgSuccess("操作成功"); this.$modal.msgSuccess("操作成功");
}else{ }else{
this.$modal.msgError(response.msg); this.$modal.msgError(response.msg);
} }
}); }).catch(error => {
console.error(error);
});
}, },
// //
cancel2() { cancel2() {

View File

@ -51,7 +51,7 @@
plain plain
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -68,11 +68,11 @@
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<div style="width: 98%;margin: 10px;display: flex;flex-direction: column;align-items: flex-end;"> <div style="width: 98%;margin: 10px;display: flex;flex-direction: column;align-items: flex-end;">
<div style="font-weight: bold;">存证任务数/已完成数235/130</div> <div style="font-weight: bold;">存证任务数/已完成数{{saveNum}}/{{saveNumd}}</div>
<div style="font-weight: bold;">取证任务数/已完成数235/230</div> <div style="font-weight: bold;">取证任务数/已完成数{{takeNum}}/{{takeNumd}}</div>
</div> </div>
<el-table v-loading="loading" :data="tableListData" @selection-change="handleSelectionChange" height="800"> <el-table v-loading="loading" :data="tableListData" @selection-change="handleSelectionChange" height="800">
<el-table-column type="selection" width="60" align="center" fixed="left"/> <el-table-column type="selection" width="60" align="center" fixed="left"/>
<el-table-column label="序号" align="center" width="80" type="index" fixed="left"> <el-table-column label="序号" align="center" width="80" type="index" fixed="left">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span> <span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
@ -100,7 +100,7 @@
<span @click="checkCode(scope.row)" style="color:blue">查看</span> <span @click="checkCode(scope.row)" style="color:blue">查看</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建时间" align="center" prop="createTime" :show-overflow-tooltip="true" width="150"/> <el-table-column label="创建时间" align="center" prop="createTime" :show-overflow-tooltip="true" width="150"/>
<el-table-column label="操作类型" align="center" prop="typeName" width="120" :show-overflow-tooltip="true"/> <el-table-column label="操作类型" align="center" prop="typeName" width="120" :show-overflow-tooltip="true"/>
<el-table-column label="操作截至日期" align="center" prop="processDate" width="120" :show-overflow-tooltip="true"/> <el-table-column label="操作截至日期" align="center" prop="processDate" width="120" :show-overflow-tooltip="true"/>
<el-table-column label="处理结果" align="center" prop="processStateName" :show-overflow-tooltip="true"> <el-table-column label="处理结果" align="center" prop="processStateName" :show-overflow-tooltip="true">
@ -169,7 +169,7 @@
listDeptExcludeChild, listDeptExcludeChild,
} from '@/api/system/dept' } from '@/api/system/dept'
import { getCertificateTaskListPageApi,addCertificateInfoApi, updateCertificateInfoApi, deleteCertificateInfoApi, import { getCertificateTaskListPageApi,addCertificateInfoApi, updateCertificateInfoApi, deleteCertificateInfoApi,
getCertificateTakeReturnPageApi,addCertificateCheckApi } from "@/api/certificateManage/index"; getCertificateTakeReturnPageApi,addCertificateCheckApi,getCertificateTaskNumApi } from "@/api/certificateManage/index";
import base64 from 'base-64'; import base64 from 'base-64';
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import Treeselect from '@riophae/vue-treeselect' import Treeselect from '@riophae/vue-treeselect'
@ -216,6 +216,10 @@
}, },
activeName:"baseSetting", activeName:"baseSetting",
deviceData:{}, deviceData:{},
saveNum:0,
saveNumd:0,
takeNum:0,
takeNumd:0,
// //
baseForm: { baseForm: {
deptId:null, deptId:null,
@ -307,10 +311,11 @@
}; };
}, },
mounted(){ mounted(){
this.getList(); this.getList();
this.getNum();
}, },
methods: { methods: {
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
@ -321,6 +326,16 @@
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.handleQuery();
}, },
getNum(){
let param = {}
getCertificateTaskNumApi(param).then(response => {
console.log("response",response)
this.saveNum = response.data.saveNum;
this.saveNumd = response.data.saveNumd;
this.takeNum = response.data.takeNum;
this.takeNumd = response.data.takeNumd;
});
},
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
this.loading = true; this.loading = true;
@ -424,7 +439,7 @@
}); });
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
this.$modal.confirm('是否确认删除数据项?').then(function() { this.$modal.confirm('是否确认删除数据项?').then(function() {
return deleteCertificateInfoApi({deviceId:row.deviceId}); return deleteCertificateInfoApi({deviceId:row.deviceId});
}).then(() => { }).then(() => {
@ -481,12 +496,12 @@
this.$modal.msgSuccess("撤回成功"); this.$modal.msgSuccess("撤回成功");
}); });
}).catch(() => {}); }).catch(() => {});
} }
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.chosenList = selection; this.chosenList = selection;
this.single = selection.length!=1 this.single = selection.length!=1
this.multiple = !selection.length this.multiple = !selection.length
}, },