|
|
|
@ -13,8 +13,7 @@ import { |
|
|
|
Edit, |
|
|
|
Share, |
|
|
|
View, |
|
|
|
Star, |
|
|
|
Hide |
|
|
|
Star |
|
|
|
} from '@element-plus/icons-vue' |
|
|
|
//引入组件 |
|
|
|
import AppContainer from '@/views/sysworkflow/lowcodepage/newLowCode/appLayout/appContainer.vue' |
|
|
|
@ -98,20 +97,7 @@ const delFormApp = (val:customerFormCont) => { |
|
|
|
loadingApp.value = false |
|
|
|
}) |
|
|
|
} |
|
|
|
/** |
|
|
|
@ 作者: 秦东 |
|
|
|
@ 时间: 2024-07-24 09:36:37 |
|
|
|
@ 功能: 改变App状态 |
|
|
|
*/ |
|
|
|
const editAppFormState = (val:customerFormCont) => { |
|
|
|
let stateVal = val.states==1?2:1; |
|
|
|
editProductionFormStatus({id:[val.id.toString()],status:stateVal,is_delete:false}) |
|
|
|
.then(({data})=>{ |
|
|
|
getFormAppList(props.searchQuery) |
|
|
|
}) |
|
|
|
.finally(() => { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ 作者: 秦东 |
|
|
|
@ -395,24 +381,21 @@ defineExpose({ |
|
|
|
{{scope.row.creatertimeStr}} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="状态" width="100" align="center"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-switch |
|
|
|
v-model="scope.row.isOpen" |
|
|
|
inline-prompt |
|
|
|
:active-action-icon="View" |
|
|
|
:inactive-action-icon="Hide" |
|
|
|
@change="editAppFormState(scope.row)" |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column fixed="right" label="操作" width="200" align="center"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-button-group v-if="scope.row.classify==3" class="ml-4"> |
|
|
|
<el-button size="small" title="查看" :icon="View" @click="lookAppList(scope.row)" /> |
|
|
|
<el-button size="small" title="设为常用" :icon="Star" :color="scope.row.isoften?'#79bbff':''" @click="setOften(scope.row)" /> |
|
|
|
(scope.row)" /> |
|
|
|
l-button size="small" title="查看" :icon="View" @click="lookFormList(scope.row)" /> |
|
|
|
<el-button size="small" title="设为常用" :icon="Star" :color="scope.row.isoften?'#FF0000':''" @click="setOften(scope.row)" /> |
|
|
|
<el-button size="small" title="编辑" type="success" :icon="Edit" @click="editForm(scope.row)" /> |
|
|
|
|
|
|
|
<el-popconfirm title="请问是否真的删除?删除后数据将无法找回!" @confirm="delFormApp(scope.row)"> |
|
|
|
<template #reference> |
|
|
|
<el-button size="small" title="删除" type="danger" :icon="Delete" /> |
|
|
|
</template> |
|
|
|
</el-popconfirm> |
|
|
|
</el-button-group> |
|
|
|
<el-button-group v-else class="ml-4"> |
|
|
|
<el-button size="small" title="查看" :icon="View" @click="lookFormList(scope.row)" /> |
|
|
|
<el-button size="small" title="编辑" type="success" :icon="Edit" @click="editFormApp(scope.row)" /> |
|
|
|
<el-popconfirm title="请问是否真的删除?删除后数据将无法找回!" @confirm="delFormApp(scope.row)"> |
|
|
|
<template #reference> |
|
|
|
|