fix:代码块类目模块页修改

This commit is contained in:
xjh 2023-06-29 22:34:38 +08:00
parent 18931aa94b
commit 7602fe6629
4 changed files with 43 additions and 89 deletions

View File

@ -112,7 +112,7 @@ async function getCustomerOptions() {
//
const dataList = ref([])
async function getList() {
await getCodeModuleCategoryList().then((res) => {
await getCodeModuleCategoryList({ all: true }).then((res) => {
if (res.code == 0) {
dataList.value = res.data
}
@ -205,12 +205,12 @@ const rules = reactive({
// --
//
const openDialog = () => {
get_global_mode()
get_library_type()
get_audit_status()
getCustomerOptions()
getList()
const openDialog = async () => {
await get_global_mode()
await get_library_type()
await get_audit_status()
await getCustomerOptions()
await getList()
};
const closeDialog = () => {

View File

@ -102,8 +102,8 @@ async function getCustomerOptions() {
}
//
const dataList = ref([])
function getList() {
getCodeModuleCategoryList().then((res) => {
async function getList() {
await getCodeModuleCategoryList({ all: true }).then((res) => {
if (res.code == 0) {
dataList.value = res.data
}
@ -135,12 +135,12 @@ watch(props, (v) => {
});
//
const openDialog = () => {
get_global_mode()
get_library_type()
get_audit_status()
getCustomerOptions()
getList()
const openDialog = async () => {
await get_global_mode()
await get_library_type()
await get_audit_status()
await getCustomerOptions()
await getList()
};
const closeDialog = () => {

View File

@ -109,8 +109,8 @@ async function getCustomerOptions() {
}
const dataList = ref([])
function getList() {
getCodeModuleCategoryList().then((res) => {
async function getList() {
await getCodeModuleCategoryList({ all: true }).then((res) => {
if (res.code == 0) {
dataList.value = res.data
}
@ -173,12 +173,12 @@ watch(props, (v) => {
});
//
const openDialog = () => {
get_global_mode()
get_library_type()
get_audit_status()
getCustomerOptions()
getList()
const openDialog = async () => {
await get_global_mode()
await get_library_type()
await get_audit_status()
await getCustomerOptions()
await getList()
};
const closeDialog = () => {

View File

@ -7,14 +7,17 @@
<!-- 搜索 -->
<el-form inline :model="params">
<el-form-item label="类目名">
<el-input v-model='params.code_module_category_name' placeholder='请输入类目名'></el-input>
<el-form-item label="类目名">
<el-input v-model='params.code_module_category_name' placeholder='请输入类目名'></el-input>
</el-form-item>
<el-form-item label="补充">
<el-input v-model='params.code_module_category_ps' placeholder='请输入补充'></el-input>
</el-form-item>
<el-form-item label="客户信息">
<el-input v-model='params.customer' placeholder='请输入客户名称/账号'></el-input>
</el-form-item>
<el-form-item label="全局模式">
<el-select v-model="params.code_module_category_global_mode" clearable placeholder="请选择">
<el-select v-model="params.code_module_category_global_mode" multiple clearable placeholder="请选择">
<el-option v-for="item in global_mode" :key="item.dictionary_guid" :label="item.dictionary_name"
:value="item.dictionary_value"></el-option>
</el-select>
@ -25,9 +28,6 @@
:value="item.dictionary_value"></el-option>
</el-select>
</el-form-item>
<el-form-item label="客户信息">
<el-input v-model='params.customer' placeholder='请输入客户名称/账号'></el-input>
</el-form-item>
<el-form-item label="审核状态">
<el-select v-model="params.code_module_category_audit" clearable placeholder="请选择">
<el-option v-for="item in audit_status" :key="item.dictionary_guid" :label="item.dictionary_name"
@ -45,8 +45,6 @@
<el-col :span="1">
<el-button type="primary" @click="addCodeModuleCategoryDialogVisible = true"> 添加 </el-button>
</el-col>
<!-- 下拉操作 -->
<el-dropdown v-if="selectionData.length">
<el-button type="primary">
@ -75,11 +73,20 @@
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="250" fixed='right'>
<el-table-column label="操作" width="200" fixed='right'>
<template #default="scope">
<el-button size="small" type="primary" @click="handleUpdate(scope.row)">编辑</el-button>
<el-button size="small" type="danger" @click="handleDelete([scope.row])">删除</el-button>
<el-button size="small" type="info" @click="handleDetail(scope.row)">查看</el-button>
<el-dropdown style="margin: 0 10px;">
<el-button size="small">
更多<el-icon class="el-icon--right"><arrow-down /></el-icon>
</el-button>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item @click="handleDetail(scope.row)">查看</el-dropdown-item>
<el-dropdown-item @click="handleDelete([scope.row])">删除</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
</template>
</el-table-column>
</el-table>
@ -126,65 +133,12 @@ const params = reactive({
code_module_category_name: "",
code_module_category_ps: "",
code_module_category_global_mode: "",
code_module_category_library_type: "",
code_module_category_library_type: "2",
customer: "",
code_module_category_audit: "",
code_module_category_audit: "2",
page: 1,
limit: 10,
});
const column = [
{
fixed: true,
type: 'selection'
},
{
prop: "code_module_category_name",
label: '类目名',
width: '150'
},
{
prop: "code_module_category_ps",
label: '补充',
width: '150'
},
{
prop: "code_module_category_parent_guid",
label: '父级guid',
width: '150'
},
{
prop: "code_module_category_sort",
label: '排序',
width: '150'
},
{
prop: "code_module_category_global_mode",
label: '全局模式',
width: '150'
},
{
prop: "code_module_category_library_type",
label: '库类型',
width: '150'
},
{
prop: "customer_guid",
label: '所属客户',
width: '150'
},
{
prop: "code_module_category_audit",
label: '审核状态',
width: '150'
},
{
label: '操作',
prop: 'chaoz',
width: '250',
fixed: 'right'
}
];
const handleCommand = ({ type, row }) => {