Merge branch 'develop' of http://117.78.60.236:8000/csbr-daop/fe-data-asset-management into develop
Showing
4 changed files
with
41 additions
and
14 deletions
| ... | @@ -339,7 +339,7 @@ onMounted(() => { | ... | @@ -339,7 +339,7 @@ onMounted(() => { |
| 339 | </template> | 339 | </template> |
| 340 | <template #default="scope" v-else-if="item.type == 'text_btn'"> | 340 | <template #default="scope" v-else-if="item.type == 'text_btn'"> |
| 341 | <span v-if="scope.row[item.field] != null" :class="[ | 341 | <span v-if="scope.row[item.field] != null" :class="[ |
| 342 | (item.getName(scope) === '--' || item.getName(scope) === null) ? '' : 'text_btn', | 342 | (item.getName?.(scope) === '--' || item.getName?.(scope) === null) ? '' : 'text_btn', |
| 343 | item.class, | 343 | item.class, |
| 344 | scope.row.cellClass, | 344 | scope.row.cellClass, |
| 345 | ]" | 345 | ]" | ... | ... |
| ... | @@ -52,20 +52,21 @@ onMounted(() => { | ... | @@ -52,20 +52,21 @@ onMounted(() => { |
| 52 | </div> --> | 52 | </div> --> |
| 53 | <el-dropdown class="user-container" size="default" @command="userCommand"> | 53 | <el-dropdown class="user-container" size="default" @command="userCommand"> |
| 54 | <div class="user-wrapper"> | 54 | <div class="user-wrapper"> |
| 55 | |||
| 56 | <div class="v-uerinfo"> | ||
| 57 | <div class="v-top">{{ userStore.userName }}</div> | ||
| 58 | <div class="v-top"> {{ JSON.parse(loaclStorageInfo).abbreviation }}</div> | ||
| 59 | </div> | ||
| 55 | <el-avatar size="small"> | 60 | <el-avatar size="small"> |
| 56 | <el-icon> | 61 | <el-icon> |
| 57 | <svg-icon name="ep:user-filled" /> | 62 | <svg-icon name="ep:user-filled" /> |
| 58 | </el-icon> | 63 | </el-icon> |
| 59 | </el-avatar> | 64 | </el-avatar> |
| 60 | <div class="v-uerinfo"> | 65 | <!-- <div> |
| 61 | <div class="v-top">{{ userStore.userName }}</div> | ||
| 62 | <div class="v-top"> {{ JSON.parse(loaclStorageInfo).abbreviation }}</div> | ||
| 63 | </div> | ||
| 64 | <div> | ||
| 65 | <el-icon> | 66 | <el-icon> |
| 66 | <svg-icon name="ep:caret-bottom" /> | 67 | <svg-icon name="ep:caret-bottom" /> |
| 67 | </el-icon> | 68 | </el-icon> |
| 68 | </div> | 69 | </div> --> |
| 69 | </div> | 70 | </div> |
| 70 | <template #dropdown> | 71 | <template #dropdown> |
| 71 | <el-dropdown-menu class="user-dropdown"> | 72 | <el-dropdown-menu class="user-dropdown"> |
| ... | @@ -87,8 +88,20 @@ onMounted(() => { | ... | @@ -87,8 +88,20 @@ onMounted(() => { |
| 87 | .tools { | 88 | .tools { |
| 88 | display: flex; | 89 | display: flex; |
| 89 | align-items: center; | 90 | align-items: center; |
| 90 | padding: 0 20px; | 91 | padding: 0 10px !important; |
| 91 | white-space: nowrap; | 92 | white-space: nowrap; |
| 93 | position: relative; | ||
| 94 | margin-left: 16px; | ||
| 95 | |||
| 96 | &::before { | ||
| 97 | content: ''; | ||
| 98 | height: 35px; | ||
| 99 | border-left: 1px solid #fff; | ||
| 100 | position: absolute; | ||
| 101 | top: 50%; | ||
| 102 | left: -1px; | ||
| 103 | transform: translateY(-50%); | ||
| 104 | } | ||
| 92 | 105 | ||
| 93 | .buttons { | 106 | .buttons { |
| 94 | margin-right: 20px; | 107 | margin-right: 20px; |
| ... | @@ -160,10 +173,14 @@ onMounted(() => { | ... | @@ -160,10 +173,14 @@ onMounted(() => { |
| 160 | display: flex; | 173 | display: flex; |
| 161 | flex-direction: column; | 174 | flex-direction: column; |
| 162 | font-size: 12px; | 175 | font-size: 12px; |
| 176 | margin-right: 6px; | ||
| 177 | |||
| 163 | 178 | ||
| 164 | .v-top { | 179 | .v-top { |
| 165 | height: 18px; | 180 | height: 18px; |
| 166 | line-height: 18px; | 181 | line-height: 18px; |
| 182 | text-align: right; | ||
| 183 | max-width: 120px; | ||
| 167 | } | 184 | } |
| 168 | } | 185 | } |
| 169 | 186 | ... | ... |
| ... | @@ -188,6 +188,7 @@ const tableInfo = ref({ | ... | @@ -188,6 +188,7 @@ const tableInfo = ref({ |
| 188 | 188 | ||
| 189 | const getTableData = () => { | 189 | const getTableData = () => { |
| 190 | tableInfo.value.loading = true; | 190 | tableInfo.value.loading = true; |
| 191 | // flowDetailLoading.value = true; | ||
| 191 | getListingList( | 192 | getListingList( |
| 192 | Object.assign({}, searchItemValue.value, { | 193 | Object.assign({}, searchItemValue.value, { |
| 193 | pageIndex: page.value.curr, | 194 | pageIndex: page.value.curr, |
| ... | @@ -196,6 +197,7 @@ const getTableData = () => { | ... | @@ -196,6 +197,7 @@ const getTableData = () => { |
| 196 | ) | 197 | ) |
| 197 | .then((res: any) => { | 198 | .then((res: any) => { |
| 198 | tableInfo.value.loading = false; | 199 | tableInfo.value.loading = false; |
| 200 | // flowDetailLoading.value = false; | ||
| 199 | tableInfo.value.data = res.data.records || []; | 201 | tableInfo.value.data = res.data.records || []; |
| 200 | tableInfo.value.page.curr = res.data.pageIndex; | 202 | tableInfo.value.page.curr = res.data.pageIndex; |
| 201 | tableInfo.value.page.limit = res.data.pageSize; | 203 | tableInfo.value.page.limit = res.data.pageSize; |
| ... | @@ -203,6 +205,7 @@ const getTableData = () => { | ... | @@ -203,6 +205,7 @@ const getTableData = () => { |
| 203 | }) | 205 | }) |
| 204 | .catch((res) => { | 206 | .catch((res) => { |
| 205 | tableInfo.value.loading = false; | 207 | tableInfo.value.loading = false; |
| 208 | // flowDetailLoading.value = false; | ||
| 206 | }); | 209 | }); |
| 207 | }; | 210 | }; |
| 208 | 211 | ||
| ... | @@ -271,10 +274,12 @@ const tableSwitchChange = (val, scope, field) => { | ... | @@ -271,10 +274,12 @@ const tableSwitchChange = (val, scope, field) => { |
| 271 | message: res.msg, | 274 | message: res.msg, |
| 272 | }); | 275 | }); |
| 273 | getTableData(); | 276 | getTableData(); |
| 277 | getListingCountData(); | ||
| 274 | reject(false) | 278 | reject(false) |
| 275 | } | 279 | } |
| 276 | }).catch(() => { | 280 | }).catch(() => { |
| 277 | getTableData(); | 281 | getTableData(); |
| 282 | getListingCountData(); | ||
| 278 | reject(false) | 283 | reject(false) |
| 279 | }) | 284 | }) |
| 280 | }) | 285 | }) |
| ... | @@ -334,6 +339,7 @@ const tableBtnClick = (scope, btn) => { | ... | @@ -334,6 +339,7 @@ const tableBtnClick = (scope, btn) => { |
| 334 | if (res.code == '00000') { | 339 | if (res.code == '00000') { |
| 335 | ElMessage.success('删除成功') | 340 | ElMessage.success('删除成功') |
| 336 | getTableData(); | 341 | getTableData(); |
| 342 | getListingCountData(); | ||
| 337 | } else { | 343 | } else { |
| 338 | ElMessage.error(res.msg) | 344 | ElMessage.error(res.msg) |
| 339 | } | 345 | } |
| ... | @@ -356,6 +362,7 @@ const tableBtnClick = (scope, btn) => { | ... | @@ -356,6 +362,7 @@ const tableBtnClick = (scope, btn) => { |
| 356 | if (res.code == '00000') { | 362 | if (res.code == '00000') { |
| 357 | ElMessage.success('撤销成功!') | 363 | ElMessage.success('撤销成功!') |
| 358 | getTableData(); | 364 | getTableData(); |
| 365 | getListingCountData(); | ||
| 359 | } else { | 366 | } else { |
| 360 | ElMessage.error(res.msg) | 367 | ElMessage.error(res.msg) |
| 361 | } | 368 | } |
| ... | @@ -554,6 +561,7 @@ const passSubmit = () => { | ... | @@ -554,6 +561,7 @@ const passSubmit = () => { |
| 554 | ElMessage.success('审批通过!') | 561 | ElMessage.success('审批通过!') |
| 555 | dialogVisible.value = false; | 562 | dialogVisible.value = false; |
| 556 | getTableData(); | 563 | getTableData(); |
| 564 | getListingCountData(); | ||
| 557 | } else { | 565 | } else { |
| 558 | ElMessage.error(res.msg) | 566 | ElMessage.error(res.msg) |
| 559 | } | 567 | } |
| ... | @@ -605,6 +613,7 @@ const rejectSubmit = async () => { | ... | @@ -605,6 +613,7 @@ const rejectSubmit = async () => { |
| 605 | ElMessage.success('驳回成功!') | 613 | ElMessage.success('驳回成功!') |
| 606 | dialogVisible.value = false; | 614 | dialogVisible.value = false; |
| 607 | getTableData(); | 615 | getTableData(); |
| 616 | getListingCountData(); | ||
| 608 | } else { | 617 | } else { |
| 609 | ElMessage.error(res.msg) | 618 | ElMessage.error(res.msg) |
| 610 | } | 619 | } |
| ... | @@ -902,12 +911,13 @@ const formInfo = ref<any>({ | ... | @@ -902,12 +911,13 @@ const formInfo = ref<any>({ |
| 902 | <el-button type="primary" @click="toPatn1('add', 'add1')" v-preReClick>新建</el-button> | 911 | <el-button type="primary" @click="toPatn1('add', 'add1')" v-preReClick>新建</el-button> |
| 903 | </div> --> | 912 | </div> --> |
| 904 | </div> | 913 | </div> |
| 905 | <div class="list-content" v-if="demandListData.length > 0" v-loading="flowDetailLoading"> | 914 | <div v-loading="flowDetailLoading"> |
| 915 | <div class="list-content" v-if="demandListData.length > 0"> | ||
| 906 | <div class="card-content" v-for="item in demandListData" :key="item.guid"> | 916 | <div class="card-content" v-for="item in demandListData" :key="item.guid"> |
| 907 | <div class="header"> | 917 | <div class="header"> |
| 908 | <div class="header-top"> | 918 | <div class="header-top"> |
| 909 | <img class="left-img" :src="(item.picUrl && typeof item.picUrl == 'string') ? item.picUrl : defaultItemLogo" | 919 | <img class="left-img" |
| 910 | alt="" /> | 920 | :src="(item.picUrl && typeof item.picUrl == 'string') ? item.picUrl : defaultItemLogo" alt="" /> |
| 911 | <div class="title">{{ item.exchangeName ?? '--' }}</div> | 921 | <div class="title">{{ item.exchangeName ?? '--' }}</div> |
| 912 | </div> | 922 | </div> |
| 913 | <div class="right-main"> | 923 | <div class="right-main"> |
| ... | @@ -934,7 +944,7 @@ const formInfo = ref<any>({ | ... | @@ -934,7 +944,7 @@ const formInfo = ref<any>({ |
| 934 | <div class="tip-des"> | 944 | <div class="tip-des"> |
| 935 | 在各数交所上架时,会同时在门户、专区和主平台门户进行展示;在门户上架则只会在门户上架,不会在数交所、专区及主平台门户上架。 | 945 | 在各数交所上架时,会同时在门户、专区和主平台门户进行展示;在门户上架则只会在门户上架,不会在数交所、专区及主平台门户上架。 |
| 936 | </div> | 946 | </div> |
| 937 | 947 | </div> | |
| 938 | </div> | 948 | </div> |
| 939 | <div class="table_panel_wrap" :style="{ | 949 | <div class="table_panel_wrap" :style="{ |
| 940 | height: demandListData.length > 0 ? 'calc(100% - 230px)' : 'calc(100% - 54px)' | 950 | height: demandListData.length > 0 ? 'calc(100% - 230px)' : 'calc(100% - 54px)' |
| ... | @@ -981,7 +991,7 @@ const formInfo = ref<any>({ | ... | @@ -981,7 +991,7 @@ const formInfo = ref<any>({ |
| 981 | 991 | ||
| 982 | .list-content { | 992 | .list-content { |
| 983 | display: flex; | 993 | display: flex; |
| 984 | justify-content: flex-start; | 994 | |
| 985 | flex-wrap: wrap; | 995 | flex-wrap: wrap; |
| 986 | padding: 0 8px; | 996 | padding: 0 8px; |
| 987 | 997 | ... | ... |
| ... | @@ -41,7 +41,7 @@ const tableInfo = ref({ | ... | @@ -41,7 +41,7 @@ const tableInfo = ref({ |
| 41 | }, | 41 | }, |
| 42 | { label: "数据类型", field: "damTypeName", width: 90 }, | 42 | { label: "数据类型", field: "damTypeName", width: 90 }, |
| 43 | { | 43 | { |
| 44 | label: '权力主体', field: 'rightMainName', width: 140, | 44 | label: '权利主体', field: 'rightMainName', width: 200, |
| 45 | }, | 45 | }, |
| 46 | { | 46 | { |
| 47 | label: "是否公共数据", field: "isPublicData", width: 120, getName: (scope) => { | 47 | label: "是否公共数据", field: "isPublicData", width: 120, getName: (scope) => { | ... | ... |
-
Please register or sign in to post a comment