update dep
This commit is contained in:
@ -188,3 +188,30 @@ export const initStatusDict = [
|
|||||||
elTagType: "success",
|
elTagType: "success",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
export const docFlagDict = [
|
||||||
|
{
|
||||||
|
label: "关",
|
||||||
|
value: "0",
|
||||||
|
elTagType: "warning",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "开",
|
||||||
|
value: "1",
|
||||||
|
elTagType: "success",
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
export const excelFlagDict = [
|
||||||
|
{
|
||||||
|
label: "关",
|
||||||
|
value: "0",
|
||||||
|
elTagType: "warning",
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{
|
||||||
|
label: "开",
|
||||||
|
value: "1",
|
||||||
|
elTagType: "success",
|
||||||
|
}
|
||||||
|
];
|
@ -59,7 +59,28 @@
|
|||||||
<el-input v-model="info.functionName" />
|
<el-input v-model="info.functionName" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="文档">
|
||||||
|
<el-switch
|
||||||
|
v-model="info.docFlag"
|
||||||
|
active-value="1"
|
||||||
|
inactive-value="0"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="Excel导出">
|
||||||
|
<el-switch
|
||||||
|
v-model="info.excelFlag"
|
||||||
|
active-value="1"
|
||||||
|
inactive-value="0"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<template #label>
|
<template #label>
|
||||||
@ -86,8 +107,12 @@
|
|||||||
value-key="menuId"
|
value-key="menuId"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -118,6 +118,31 @@
|
|||||||
prop="packageName"
|
prop="packageName"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
|
<!-- docFlag -->
|
||||||
|
<el-table-column
|
||||||
|
label="文档"
|
||||||
|
align="center"
|
||||||
|
prop="docFlag"
|
||||||
|
>
|
||||||
|
<template #default="{row}">
|
||||||
|
<dict-tag
|
||||||
|
:value="row.docFlag"
|
||||||
|
:options="docFlagDict"
|
||||||
|
></dict-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="导出Excel"
|
||||||
|
align="center"
|
||||||
|
prop="excelFlag"
|
||||||
|
>
|
||||||
|
<template #default="{row}">
|
||||||
|
<dict-tag
|
||||||
|
:value="row.excelFlag"
|
||||||
|
:options="excelFlagDict"
|
||||||
|
></dict-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
align="center"
|
align="center"
|
||||||
@ -220,6 +245,8 @@ import importTable from "./importTable";
|
|||||||
import {ElMessageBox} from "element-plus";
|
import {ElMessageBox} from "element-plus";
|
||||||
import {ref} from "vue";
|
import {ref} from "vue";
|
||||||
import useSettingsStore from "@/store/modules/settings";
|
import useSettingsStore from "@/store/modules/settings";
|
||||||
|
import DictTag from "@/components/DictTag/index.vue";
|
||||||
|
import {docFlagDict, excelFlagDict} from "@/constant/dict";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const {proxy} = getCurrentInstance();
|
const {proxy} = getCurrentInstance();
|
||||||
@ -319,7 +346,8 @@ function handlesyncTable(row) {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
proxy.$modal.msgSuccess("同步成功");
|
proxy.$modal.msgSuccess("同步成功");
|
||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 打开导入表弹窗 */
|
/** 打开导入表弹窗 */
|
||||||
@ -380,7 +408,8 @@ function handleDelete(row) {
|
|||||||
getList();
|
getList();
|
||||||
proxy.$modal.msgSuccess("删除成功");
|
proxy.$modal.msgSuccess("删除成功");
|
||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getList();
|
getList();
|
||||||
|
Reference in New Issue
Block a user