Commit 4cc5240d authored by 沈翠玲's avatar 沈翠玲

推广公司

parent 28075edd
...@@ -80,6 +80,7 @@ ...@@ -80,6 +80,7 @@
name: '', name: '',
code: '', code: '',
adminUser: '', adminUser: '',
'tenantType':'mediate',
province: '', province: '',
phone: '', phone: '',
status: 'enable', status: 'enable',
...@@ -125,6 +126,7 @@ ...@@ -125,6 +126,7 @@
form.value = { form.value = {
name: '', name: '',
province: '', province: '',
'tenantType':'mediate',
code: '', code: '',
adminUser: '', adminUser: '',
phone: '', phone: '',
......
<template> <template>
<div class="table-box"> <div class="table-box">
<ProTable ref="proTable" :config="config" :api="getTenantPage"> <ProTable ref="proTable" :config="config" :api="getTenantPage" :paramCallback="paramCallback">
<template #left_buttons> <template #left_buttons>
<el-button type="primary" :icon="Plus" @click="tenatModalRef?.openModal()">新增</el-button> <el-button type="primary" :icon="Plus" @click="tenatModalRef?.openModal()">新增</el-button>
<el-button type="danger" :icon="Delete" @click="onDelete">删除</el-button> <el-button type="danger" :icon="Delete" @click="onDelete">删除</el-button>
...@@ -24,6 +24,11 @@ ...@@ -24,6 +24,11 @@
const proTable = ref(null); const proTable = ref(null);
const tenatModalRef = ref(null); const tenatModalRef = ref(null);
const allocationUserModalRef = ref(null); const allocationUserModalRef = ref(null);
const paramCallback = (param) => {
const obj = JSON.parse(JSON.stringify(param));
obj['tenantType'] = 'mediate'
return obj;
};
const config = reactive({ const config = reactive({
columns: [ columns: [
{ type: 'checkbox', width: 60, fixed: 'left' }, { type: 'checkbox', width: 60, fixed: 'left' },
......
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