7150b0af by renchao@pashanhoo.com

style:证书领取

1 parent 5caa32a1
......@@ -25,7 +25,7 @@
</el-table>
<el-table v-else ref="elTable" id="heightNumSetting" class="table-fixed" :row-style="{ height: '50px' }"
:border='border' :row-class-name="tableRowClassName" :show-header='showHeader' v-bind="$attrs"
:border='border' :row-class-name="tableRowClassName" :show-header='showHeader' @row-dblclick="singleElection" v-bind="$attrs"
:max-height="maxHeight" :height="tableHeight" v-on="$listeners" :data="data" style="width: 100%"
:span-method="this.merge ? this.mergeMethod : this.spanMethod">
......
......@@ -18,7 +18,9 @@
</el-col>
</el-row>
<lb-table :column="tableData.columns" :data="tableData.data" :pagination="false" :calcHeight="300">
<lb-table :column="tableData.columns" @row-dblclick="handleRowClick" ref="table" @selection-change="handleSelectionChange" :data="tableData.data"
:pagination="false"
:calcHeight="300">
</lb-table>
<el-row>
<el-col :span="6">
......@@ -58,7 +60,6 @@
import table from "@/utils/mixin/table";
import { getUnclaimedBdcqz, issueCertificate } from "@/api/bdcqz.js";
import { datas } from "../../javascript/fzxxdata";
import { log } from 'bpmn-js-token-simulation';
export default {
props: {
formData: {
......@@ -117,18 +118,22 @@
this.ruleForm.fzrmc = res.result.fzrmc
this.ruleForm.fzsj = res.result.fzsj
this.ruleForm.fzsl = res.result.fzsl
}
})
},
handleSelectionChange (val) {
this.ruleForm.bdcqzList = val
},
handleRowClick (row) {
this.$refs.table.toggleRowSelection(row)
},
handleSubmit () {
this.$refs.ruleForm.validate(valid => {
if (valid) {
issueCertificate(this.ruleForm).then(res => {
if (res.code == 200) {
this.$message.success('保存成功');
this.$parent.queryClick();
this.$emit("input", false);
this.$message.success('保存成功')
this.$popupCacel()
} else {
this.$message.error(res.message)
}
......@@ -145,3 +150,4 @@
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
</style>
......
......@@ -72,6 +72,9 @@ class data extends filter {
//领证证列表
lzgrid: [
{
type: 'selection'
},
{
label: '序号',
type: 'index',
width: '50'
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-04-18 10:51:37
* @LastEditTime: 2023-05-05 09:45:31
*/
import Router from '@/router'
export default {
methods: {
//点击行选中或取消复选框
handleRowClick (row, column, event) {
row.djblzt != 1 && (this.$refs.table.toggleRowSelection(row))
(this.$refs.table.toggleRowSelection(row))
},
jump (data, type) {
const { href } = Router.resolve(
......