715c8dc6 by fanguang Committed by lihua

fix

1 parent 57524185
......@@ -114,7 +114,7 @@ const tableInfo: any = ref({
fields: [
{ label: "序号", type: "index", width: 56, align: "center" },
{ label: '代码名称', field: 'codeName', width: 140 },
{ label: '代码编码', field: 'code', width: 140 },
// { label: '代码编码', field: 'code', width: 140 },
{ label: '标准号', field: 'standard', width: 140 },
{ label: '标准名称', field: 'standardName', width: 140 },
// { label: '启用状态', field: 'bizState', type: 'switch', activeText: '启用', inactiveText: '停用', activeValue: 1, inactiveValue: 0, switchWidth: 56, width: 100, align: 'center' },
......
......@@ -21,7 +21,9 @@ import router from '@/router'
import { TableColumnWidth } from '@/utils/enum';
import StandardDialog from './components/standardDialog.vue'
import StandardFieldsDialog from './components/standardFieldsDialog.vue'
function getAssetsImages(name) {
return new URL(`../../assets/images/${name}`, import.meta.url).href;
}
const { proxy } = getCurrentInstance() as any;
const route = useRoute();
......@@ -496,24 +498,31 @@ const viewGraph = () => {
</Tree>
</div>
<div class="main_wrap">
<div class="header" style="font-size:16px;font-weight:bold;margin-top:8px;color:#212121">{{ treeInfo.currentObj.standardName }}</div>
<div class="table_tool_wrap">
<div class="tools_btns">
<el-button type="primary"
@click="() => openStandardFieldsDialog('add')"
:disabled="treeInfo.currentObj.children"
v-preReClick>新建</el-button>
<el-button @click="importData" v-preReClick>导入</el-button>
<el-button @click="exportData" v-preReClick>导出</el-button>
<el-button @click="viewGraph" v-preReClick>查看</el-button>
<el-button @click="batchDelete">批量删除</el-button>
</div>
<el-input class="table_search_input" v-model.trim="tableSearchInput" placeholder="请输入关键字搜索"
:suffix-icon="Search" clearable @change="val => getFirstPageData()" />
</div>
<div class="table_panel_wrap full">
<Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tableSelectionChange="tableSelectionChange"
@tablePageChange="tablePageChange"/>
<template v-if="treeInfo.currentObj.level != 1">
<div class="header" style="font-size:16px;font-weight:bold;margin-top:8px;color:#212121">{{ treeInfo.currentObj.standardName }}</div>
<div class="table_tool_wrap">
<div class="tools_btns">
<el-button type="primary"
@click="() => openStandardFieldsDialog('add')"
:disabled="treeInfo.currentObj.children"
v-preReClick>新建</el-button>
<el-button @click="importData" v-preReClick>导入</el-button>
<el-button @click="exportData" v-preReClick>导出</el-button>
<el-button @click="viewGraph" v-preReClick>查看</el-button>
<el-button @click="batchDelete">批量删除</el-button>
</div>
<el-input class="table_search_input" v-model.trim="tableSearchInput" placeholder="请输入关键字搜索"
:suffix-icon="Search" clearable @change="val => getFirstPageData()" />
</div>
<div class="table_panel_wrap full" style="height:calc(100% - 84px)">
<Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tableSelectionChange="tableSelectionChange"
@tablePageChange="tablePageChange"/>
</div>
</template>
<div v-else class="no-content">
<img :src="getAssetsImages('no-data.png')" :style="{ width: '96px', height: '96px' }" />
<span>请选择标准表</span>
</div>
</div>
<StandardDialog
......@@ -539,6 +548,13 @@ const viewGraph = () => {
</style>
<style lang="scss" scoped>
.no-content {
height: 96%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.container_wrap {
.aside_wrap {
width: 200px;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!