6060 link
6161 type =" primary"
6262 class =" ml-16"
63- :disabled =" !is_permisstion"
6463 @click.stop =" cancelDownload"
6564 >{{ $t('views.model.download.cancelDownload') }}
6665 </el-button >
7978 <el-dropdown-item
8079 v-if =" permissionPrecise.modify()"
8180 icon =" EditPen"
82- :disabled =" !is_permisstion"
8381 text
8482 @click.stop =" openEditModel"
8583 >
10098 currentModel.model_type === 'TTI' ||
10199 permissionPrecise.paramSetting()
102100 "
103- :disabled =" !is_permisstion"
104101 icon =" Setting"
105102 @click.stop =" openParamSetting"
106103 >
109106 <el-dropdown-item
110107 divided
111108 icon =" Delete"
112- :disabled =" !is_permisstion"
113109 text
114110 @click.stop =" deleteModel"
115111 v-if =" permissionPrecise.delete()"
@@ -161,9 +157,7 @@ const permissionPrecise = computed(() => {
161157
162158const downModel = ref <Model >()
163159
164- const is_permisstion = computed (() => {
165- return user .userInfo ?.id == props .model .user_id
166- })
160+
167161const currentModel = computed (() => {
168162 if (downModel .value ) {
169163 return downModel .value
@@ -204,7 +198,7 @@ const deleteModel = () => {
204198}
205199
206200const cancelDownload = () => {
207- loadSharedApi ({ type: ' model' , systemType: apiType . value })
201+ loadSharedApi ({ type: ' model' , systemType: props . sharedType })
208202 .pauseDownload (props .model .id )
209203 .then (() => {
210204 downModel .value = undefined
@@ -227,7 +221,7 @@ const icon = computed(() => {
227221const initInterval = () => {
228222 interval = setInterval (() => {
229223 if (currentModel .value .status === ' DOWNLOAD' ) {
230- loadSharedApi ({ type: ' model' , systemType: apiType . value })
224+ loadSharedApi ({ type: ' model' , systemType: props . sharedType })
231225 .getModelMetaById (props .model .id )
232226 .then ((ok : any ) => {
233227 downModel .value = ok .data
0 commit comments