|
@@ -87,48 +87,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
-
|
|
|
- <vxe-toolbar ref="toolbarRef" custom>
|
|
|
- <template #buttons>
|
|
|
- <vxe-button status="primary">新增</vxe-button>
|
|
|
- <vxe-button>删除</vxe-button>
|
|
|
- <vxe-button>保存</vxe-button>
|
|
|
- <el-button>测试</el-button>
|
|
|
- <el-button>测试</el-button>
|
|
|
- </template>
|
|
|
- <template #tools>
|
|
|
- <vxe-button icon="vxe-icon-upload"></vxe-button>
|
|
|
- <vxe-button icon="vxe-icon-setting"></vxe-button>
|
|
|
- <vxe-button icon="vxe-icon-ellipsis-h"></vxe-button>
|
|
|
- </template>
|
|
|
- </vxe-toolbar>
|
|
|
- <vxe-table
|
|
|
- border
|
|
|
- :loading="loading"
|
|
|
- :data="tableData"
|
|
|
- :sort-config="sortConfig"
|
|
|
- auto-resize
|
|
|
- :column-config="{ resizable: true }"
|
|
|
- :row-config="{ isCurrent: true, isHover: true }"
|
|
|
- ref="tableRef"
|
|
|
- @sort-change="sortChangeEvent"
|
|
|
- >
|
|
|
- <vxe-column type="seq" width="70"></vxe-column>
|
|
|
- <vxe-column field="name" title="Name"></vxe-column>
|
|
|
- <vxe-column field="role" title="Role" sortable></vxe-column>
|
|
|
- <vxe-column field="sex" title="Sex" sortable></vxe-column>
|
|
|
- <vxe-column field="age" title="Age" sortable></vxe-column>
|
|
|
- <vxe-column field="address" title="Address" sortable>
|
|
|
- <template #default="{ row }">
|
|
|
- <el-switch v-model="row.flag1" disabled size="small"></el-switch>
|
|
|
- </template>
|
|
|
- </vxe-column>
|
|
|
- <vxe-column field="operation" title="操作" fixed="right">
|
|
|
- <template #default="{ row }">
|
|
|
- <el-switch v-model="row.flag1" disabled size="small"></el-switch>
|
|
|
- </template>
|
|
|
- </vxe-column>
|
|
|
- </vxe-table>
|
|
|
+
|
|
|
</el-card>
|
|
|
</div>
|
|
|
</template>
|