Compare commits

..

No commits in common. "a93541cc15761d990d12521cd66792b5ca35c87b" and "67aa84d0b3de46c75a34584ba771f5a2081b0e5d" have entirely different histories.

2 changed files with 21 additions and 28 deletions

View File

@ -1,11 +1,6 @@
<script setup lang="ts">
import ahTable from "@/components/hTable/index.vue";
import {
ConditionalType,
intTableData,
TableColumnSearch,
TableConfig,
} from "@/components/hTable/hTable";
import { ConditionalType, TableConfig } from "@/components/hTable/hTable";
import { onMounted, ref, defineOptions } from "vue";
import { fa } from "element-plus/es/locales.mjs";
import { hTableAPI } from "@/api/hTable";
@ -17,7 +12,7 @@ defineOptions({
function searchCallback(data) {}
const table = ref<{ initTable: (config: TableConfig) => void }>(null);
const tableData: TableConfig = intTableData({
const tableData: TableConfig = {
apiUrl: ControllerName,
selectColumn: false, //
border: false, //
@ -73,42 +68,41 @@ const tableData: TableConfig = intTableData({
//
id: {
label: "编号",
search: new TableColumnSearch(true),
search: true,
add: false, //
edit: false, //
width: "150px",
},
name: {
label: "角色名称",
width: "180px",
search: new TableColumnSearch(true, ConditionalType.Like),
edit: {
add: true,
},
search: true,
searchType: ConditionalType.Like,
add: true, //
edit: true, //
},
enable: {
label: "启用",
type: "switch",
search: new TableColumnSearch(true),
edit: {
add: true,
edit: true,
valueE: true,
},
search: false,
add: true, //
edit: true, //
valueE: true, //
},
createTime: {
label: "创建时间",
type: "datetime",
search: new TableColumnSearch(true),
search: true,
add: false, //
edit: false, //
},
remark: {
label: "备注",
type: "textarea",
search: new TableColumnSearch(true),
edit: {
add: true,
edit: true,
editRows: 3,
valueE: true,
},
editRows: 3,
search: false,
add: true, //
edit: true, //
},
},
data: [],
@ -116,7 +110,7 @@ const tableData: TableConfig = intTableData({
total: 0,
},
selectRows: [],
});
};
const showTable = ref(false);
onMounted(async () => {

View File

@ -43,7 +43,6 @@ const tableData: TableConfig = intTableData({
},
{
topBtn: true, //
show: false,
label: "新增学校",
perms: "学校新增",
btnType: "custom", // add edit del custom