|
|
|
@ -34,16 +34,6 @@
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="码规则" align="center" prop="codeRuleFormat" >
|
|
|
|
|
<template slot-scope="{ row }">
|
|
|
|
|
<el-tooltip class="item" effect="dark" :content="row.codeRuleFormat" placement="top">
|
|
|
|
|
<div class="flex-allcenter">
|
|
|
|
|
<span class="more-width-20">{{row.codeRuleFormat}}</span>
|
|
|
|
|
<el-button type="text" icon="el-icon-copy-document" @click.stop="copyContent(row.codeRuleFormat)"></el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="所属商户" align="center" prop="belongBusinessName" />
|
|
|
|
|
<el-table-column label="生成时间" align="center" prop="createTime" >
|
|
|
|
|
<template v-slot="{ row }">
|
|
|
|
@ -113,8 +103,8 @@
|
|
|
|
|
<script>
|
|
|
|
|
import Bound from '@/components/Customer/SearchForm'
|
|
|
|
|
import EmptyBound from '@/components/EmptyTable'
|
|
|
|
|
import { createBusinessRule, updateBusinessRule, deleteBusinessRule, getBusinessRule, getBusinessRulePage, exportBusinessRuleExcel } from "@/api/identity/businessRule";
|
|
|
|
|
import { getCodeList , getCodesByBelongBusinessId , getCodesByIdentityCode , getCodePage , getCodesByGenerateRecordId } from '@/api/identity/code';
|
|
|
|
|
import { createBusinessRule, updateBusinessRule, deleteBusinessRule } from "@/api/identity/businessRule";
|
|
|
|
|
import { getCodesByIdentityCode, getCodesByGenerateRecordId } from '@/api/identity/code';
|
|
|
|
|
import { getGenerateRecordPage } from "@/api/identity/generateRecord";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -162,13 +152,6 @@ export default {
|
|
|
|
|
placeholder: '请输入',
|
|
|
|
|
onEnterKeyUp: this.handleQuery,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'codeRuleFormat', //码规则
|
|
|
|
|
itemType: 'input',
|
|
|
|
|
label: '码规则',
|
|
|
|
|
placeholder: '请输入',
|
|
|
|
|
onEnterKeyUp: this.handleQuery,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'belongBusinessName', //所属商户
|
|
|
|
|
itemType: 'input',
|
|
|
|
@ -284,24 +267,11 @@ export default {
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
},
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
handleExport() {
|
|
|
|
|
// 处理查询参数
|
|
|
|
|
let params = {...this.queryParams};
|
|
|
|
|
params.pageNo = undefined;
|
|
|
|
|
params.pageSize = undefined;
|
|
|
|
|
this.$modal.confirm('是否确认导出所有码规则数据项?').then(() => {
|
|
|
|
|
this.exportLoading = true;
|
|
|
|
|
return exportBusinessRuleExcel(params);
|
|
|
|
|
}).then(response => {
|
|
|
|
|
this.$download.excel(response, '码规则.xls');
|
|
|
|
|
this.exportLoading = false;
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
},
|
|
|
|
|
resetFormDialog(){
|
|
|
|
|
this.formDialog = {
|
|
|
|
|
identityCode: undefined,
|
|
|
|
|
};
|
|
|
|
|
this.searchFormDialog();
|
|
|
|
|
},
|
|
|
|
|
async searchFormDialog(){
|
|
|
|
|
let form = {
|
|
|
|
|