4f47f3ae by fanguang

fix

1 parent 1ce63a67
...@@ -114,7 +114,7 @@ const tableInfo: any = ref({ ...@@ -114,7 +114,7 @@ const tableInfo: any = ref({
114 fields: [ 114 fields: [
115 { label: "序号", type: "index", width: 56, align: "center" }, 115 { label: "序号", type: "index", width: 56, align: "center" },
116 { label: '代码名称', field: 'codeName', width: 140 }, 116 { label: '代码名称', field: 'codeName', width: 140 },
117 { label: '代码编码', field: 'code', width: 140 }, 117 // { label: '代码编码', field: 'code', width: 140 },
118 { label: '标准号', field: 'standard', width: 140 }, 118 { label: '标准号', field: 'standard', width: 140 },
119 { label: '标准名称', field: 'standardName', width: 140 }, 119 { label: '标准名称', field: 'standardName', width: 140 },
120 // { label: '启用状态', field: 'bizState', type: 'switch', activeText: '启用', inactiveText: '停用', activeValue: 1, inactiveValue: 0, switchWidth: 56, width: 100, align: 'center' }, 120 // { 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' ...@@ -21,7 +21,9 @@ import router from '@/router'
21 import { TableColumnWidth } from '@/utils/enum'; 21 import { TableColumnWidth } from '@/utils/enum';
22 import StandardDialog from './components/standardDialog.vue' 22 import StandardDialog from './components/standardDialog.vue'
23 import StandardFieldsDialog from './components/standardFieldsDialog.vue' 23 import StandardFieldsDialog from './components/standardFieldsDialog.vue'
24 24 function getAssetsImages(name) {
25 return new URL(`../../assets/images/${name}`, import.meta.url).href;
26 }
25 const { proxy } = getCurrentInstance() as any; 27 const { proxy } = getCurrentInstance() as any;
26 28
27 const route = useRoute(); 29 const route = useRoute();
...@@ -496,24 +498,31 @@ const viewGraph = () => { ...@@ -496,24 +498,31 @@ const viewGraph = () => {
496 </Tree> 498 </Tree>
497 </div> 499 </div>
498 <div class="main_wrap"> 500 <div class="main_wrap">
499 <div class="header" style="font-size:16px;font-weight:bold;margin-top:8px;color:#212121">{{ treeInfo.currentObj.standardName }}</div> 501 <template v-if="treeInfo.currentObj.level != 1">
500 <div class="table_tool_wrap"> 502 <div class="header" style="font-size:16px;font-weight:bold;margin-top:8px;color:#212121">{{ treeInfo.currentObj.standardName }}</div>
501 <div class="tools_btns"> 503 <div class="table_tool_wrap">
502 <el-button type="primary" 504 <div class="tools_btns">
503 @click="() => openStandardFieldsDialog('add')" 505 <el-button type="primary"
504 :disabled="treeInfo.currentObj.children" 506 @click="() => openStandardFieldsDialog('add')"
505 v-preReClick>新建</el-button> 507 :disabled="treeInfo.currentObj.children"
506 <el-button @click="importData" v-preReClick>导入</el-button> 508 v-preReClick>新建</el-button>
507 <el-button @click="exportData" v-preReClick>导出</el-button> 509 <el-button @click="importData" v-preReClick>导入</el-button>
508 <el-button @click="viewGraph" v-preReClick>查看</el-button> 510 <el-button @click="exportData" v-preReClick>导出</el-button>
509 <el-button @click="batchDelete">批量删除</el-button> 511 <el-button @click="viewGraph" v-preReClick>查看</el-button>
510 </div> 512 <el-button @click="batchDelete">批量删除</el-button>
511 <el-input class="table_search_input" v-model.trim="tableSearchInput" placeholder="请输入关键字搜索" 513 </div>
512 :suffix-icon="Search" clearable @change="val => getFirstPageData()" /> 514 <el-input class="table_search_input" v-model.trim="tableSearchInput" placeholder="请输入关键字搜索"
513 </div> 515 :suffix-icon="Search" clearable @change="val => getFirstPageData()" />
514 <div class="table_panel_wrap full"> 516 </div>
515 <Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tableSelectionChange="tableSelectionChange" 517 <div class="table_panel_wrap full" style="height:calc(100% - 84px)">
516 @tablePageChange="tablePageChange"/> 518 <Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tableSelectionChange="tableSelectionChange"
519 @tablePageChange="tablePageChange"/>
520 </div>
521 </template>
522
523 <div v-else class="no-content">
524 <img :src="getAssetsImages('no-data.png')" :style="{ width: '96px', height: '96px' }" />
525 <span>请选择标准表</span>
517 </div> 526 </div>
518 </div> 527 </div>
519 <StandardDialog 528 <StandardDialog
...@@ -539,6 +548,13 @@ const viewGraph = () => { ...@@ -539,6 +548,13 @@ const viewGraph = () => {
539 548
540 </style> 549 </style>
541 <style lang="scss" scoped> 550 <style lang="scss" scoped>
551 .no-content {
552 height: 96%;
553 display: flex;
554 flex-direction: column;
555 justify-content: center;
556 align-items: center;
557 }
542 .container_wrap { 558 .container_wrap {
543 .aside_wrap { 559 .aside_wrap {
544 width: 200px; 560 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!