1515 style =" width : 120px "
1616 @change =" search_type_change"
1717 >
18- <el-option :label =" $t('common.creator')" value =" create_user" />
18+ <el-option :label =" $t('common.creator')" value =" create_user" />
1919
20- <el-option :label =" $t('common.name')" value =" name" />
20+ <el-option :label =" $t('common.name')" value =" name" />
2121 </el-select >
2222 <el-input
2323 v-if =" search_type === 'name'"
3535 filterable
3636 style =" width : 220px "
3737 >
38- <el-option v-for =" u in user_options" :key =" u.id" :value =" u.id" :label =" u.nick_name" />
38+ <el-option v-for =" u in user_options" :key =" u.id" :value =" u.id" :label =" u.nick_name" />
3939 </el-select >
4040 </div >
4141 </div >
5858 style =" background : none "
5959 class =" mr-8"
6060 >
61- <img :src =" resetUrl(scope.row?.icon)" alt =" " />
61+ <img :src =" resetUrl(scope.row?.icon)" alt =" " />
6262 </el-avatar >
6363 <el-avatar v-else class =" avatar-green" shape =" square" :size =" 24" >
64- <img src =" @/assets/node/icon_tool.svg" style =" width : 58% " alt =" " />
64+ <img src =" @/assets/node/icon_tool.svg" style =" width : 58% " alt =" " />
6565 </el-avatar >
6666 </el-icon >
6767 {{ scope.row.name }}
101101 @click =" statusVisible = !statusVisible"
102102 >
103103 <el-icon >
104- <Filter />
104+ <Filter />
105105 </el-icon >
106106 </el-button >
107107 </template >
126126 </div >
127127 <div class =" text-right" >
128128 <el-button size =" small" @click =" filterStatusChange('clear')"
129- >{{ $t('common.clear') }}
129+ >{{ $t('common.clear') }}
130130 </el-button >
131131 <el-button type =" primary" @click =" filterStatusChange" size =" small"
132- >{{ $t('common.confirm') }}
132+ >{{ $t('common.confirm') }}
133133 </el-button >
134134 </div >
135135 </el-popover >
138138 <template #default =" scope " >
139139 <div v-if =" scope.row.is_publish" class =" flex align-center" >
140140 <el-icon class =" color-success mr-8" style =" font-size : 16px " >
141- <SuccessFilled />
141+ <SuccessFilled />
142142 </el-icon >
143143 <span class =" color-secondary" >
144- {{ $t('views.application.status.published') }}
145- </span >
144+ {{ $t('views.application.status.published') }}
145+ </span >
146146 </div >
147147 <div v-else class =" flex align-center" >
148148 <AppIcon iconName =" app-disabled" class =" color-secondary mr-8" ></AppIcon >
149149 <span class =" color-secondary" >
150- {{ $t('views.application.status.unpublished') }}
151- </span >
150+ {{ $t('views.application.status.unpublished') }}
151+ </span >
152152 </div >
153153 </template >
154154 </el-table-column >
171171 @click =" workspaceVisible = !workspaceVisible"
172172 >
173173 <el-icon >
174- <Filter />
174+ <Filter />
175175 </el-icon >
176176 </el-button >
177177 </template >
196196 </div >
197197 <div class =" text-right" >
198198 <el-button size =" small" @click =" filterWorkspaceChange('clear')"
199- >{{ $t('common.clear') }}
199+ >{{ $t('common.clear') }}
200200 </el-button >
201201 <el-button type =" primary" @click =" filterWorkspaceChange" size =" small"
202- >{{ $t('common.confirm') }}
202+ >{{ $t('common.confirm') }}
203203 </el-button >
204204 </div >
205205 </el-popover >
206206 </div >
207207 </template >
208208 </el-table-column >
209209
210- <el-table-column prop =" nick_name" :label =" $t('common.creator')" show-overflow-tooltip
211- width =" 120" />
212- <el-table-column :label =" $t('views.application.publishTime')" width =" 120" >
210+ <el-table-column
211+ prop =" nick_name"
212+ :label =" $t('common.creator')"
213+ show-overflow-tooltip
214+ />
215+ <el-table-column :label =" $t('views.application.publishTime')" width =" 180" >
213216 <template #default =" { row } " >
214217 {{ datetimeFormat(row.update_time) }}
215218 </template >
216219 </el-table-column >
217- <el-table-column :label =" $t('views.document.table.updateTime')" width =" 120 " >
220+ <el-table-column :label =" $t('views.document.table.updateTime')" width =" 180 " >
218221 <template #default =" { row } " >
219222 {{ datetimeFormat(row.update_time) }}
220223 </template >
221224 </el-table-column >
222- <el-table-column :label =" $t('common.createTime')" width =" 120 " >
225+ <el-table-column :label =" $t('common.createTime')" width =" 180 " >
223226 <template #default =" { row } " >
224227 {{ datetimeFormat(row.create_time) }}
225228 </template >
230233</template >
231234
232235<script lang="ts" setup>
233- import {onMounted , ref , reactive , computed } from ' vue'
236+ import { onMounted , ref , reactive , computed } from ' vue'
234237import ApplicationResourceApi from ' @/api/system-resource-management/application'
235- import {t } from ' @/locales'
236- import {isAppIcon , resetUrl } from ' @/utils/common'
238+ import { t } from ' @/locales'
239+ import { isAppIcon , resetUrl } from ' @/utils/common'
237240import useStore from ' @/stores'
238- import {datetimeFormat } from ' @/utils/time'
239- import {loadPermissionApi } from " @/utils/dynamics-api/permission-api.ts" ;
240- import {isWorkFlow } from " @/utils/application.ts" ;
241- import UserApi from " @/api/user/user.ts" ;
241+ import { datetimeFormat } from ' @/utils/time'
242+ import { loadPermissionApi } from ' @/utils/dynamics-api/permission-api.ts'
243+ import { isWorkFlow } from ' @/utils/application.ts'
244+ import UserApi from ' @/api/user/user.ts'
242245
243- const {user} = useStore ()
246+ const { user } = useStore ()
244247
245248const search_type = ref (' name' )
246249const search_form = ref <any >({
@@ -262,13 +265,16 @@ const workspaceVisible = ref(false)
262265const workspaceArr = ref <any []>([])
263266const statusVisible = ref (false )
264267const statusArr = ref <any []>([])
265- const statusOptions = ref <any []>([{
266- label: t (' views.application.status.published' ),
267- value: true ,
268- }, {
269- label: t (' views.application.status.unpublished' ),
270- value: false ,
271- }])
268+ const statusOptions = ref <any []>([
269+ {
270+ label: t (' views.application.status.published' ),
271+ value: true ,
272+ },
273+ {
274+ label: t (' views.application.status.unpublished' ),
275+ value: false ,
276+ },
277+ ])
272278
273279function filterWorkspaceChange(val : string ) {
274280 if (val === ' clear' ) {
@@ -297,7 +303,7 @@ async function getWorkspaceList() {
297303}
298304
299305const search_type_change = () => {
300- search_form .value = {name: ' ' , create_user: ' ' }
306+ search_form .value = { name: ' ' , create_user: ' ' }
301307}
302308
303309function getList() {
@@ -309,7 +315,7 @@ function getList() {
309315 params [' workspace_ids' ] = JSON .stringify (workspaceArr .value )
310316 }
311317 if (statusArr .value .length > 0 ) {
312- params [' status' ] = JSON .stringify (statusArr .value )
318+ params [' status' ] = JSON .stringify (statusArr .value )
313319 }
314320 ApplicationResourceApi .getApplication (paginationConfig , params , loading ).then ((res : any ) => {
315321 paginationConfig .total = res .data ?.total
0 commit comments