|
@@ -30,9 +30,17 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="group_header_nameOperate">
|
|
|
- <LeIcon class="text-lg text-icon-color" icon-class="icon-processInfo-mage--edit" @click="editFlowGroup('edit', item, index)" />
|
|
|
+ <LeIcon
|
|
|
+ class="text-lg text-icon-color cursor-pointer"
|
|
|
+ icon-class="icon-processInfo-mage--edit"
|
|
|
+ @click="editFlowGroup('edit', item, index)"
|
|
|
+ />
|
|
|
<el-tooltip effect="dark" content="删除" placement="top">
|
|
|
- <LeIcon class="text-lg ml-2 text-rose-700" icon-class="icon-processInfo-iconoir--trash" @click="deleteFlowGroup(item)" />
|
|
|
+ <LeIcon
|
|
|
+ class="text-lg ml-2 text-rose-700 cursor-pointer"
|
|
|
+ icon-class="icon-processInfo-iconoir--trash"
|
|
|
+ @click="deleteFlowGroup(item)"
|
|
|
+ />
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -87,37 +95,49 @@
|
|
|
<el-tooltip effect="dark" content="版本控制" placement="top">
|
|
|
<LeIcon
|
|
|
v-if="element.processVersion > 1"
|
|
|
- class="text-lg ml-2 text-icon-color"
|
|
|
+ class="text-lg ml-2 text-icon-color cursor-pointer"
|
|
|
icon-class="icon-processInfo-hugeicons--git-merge"
|
|
|
@click="historyEv(element)"
|
|
|
/>
|
|
|
</el-tooltip>
|
|
|
|
|
|
<el-tooltip effect="dark" content="编辑" placement="top">
|
|
|
- <LeIcon class="text-lg ml-2 text-icon-color" icon-class="icon-processInfo-mage--edit" @click="updateEv(element)" />
|
|
|
+ <LeIcon
|
|
|
+ class="text-lg ml-2 text-icon-color cursor-pointer"
|
|
|
+ icon-class="icon-processInfo-mage--edit"
|
|
|
+ @click="updateEv(element)"
|
|
|
+ />
|
|
|
</el-tooltip>
|
|
|
|
|
|
<el-tooltip content="复制" placement="top" effect="dark">
|
|
|
- <LeIcon class="text-lg ml-2 text-icon-color" icon-class="icon-processInfo-lucide--copy" @click="copyEv(element)" />
|
|
|
+ <LeIcon
|
|
|
+ class="text-lg ml-2 text-icon-color cursor-pointer"
|
|
|
+ icon-class="icon-processInfo-lucide--copy"
|
|
|
+ @click="copyEv(element)"
|
|
|
+ />
|
|
|
</el-tooltip>
|
|
|
|
|
|
<el-tooltip v-if="element.processState === 1" effect="dark" content="禁用" placement="top">
|
|
|
<LeIcon
|
|
|
- class="text-lg ml-2 text-icon-color"
|
|
|
+ class="text-lg ml-2 text-icon-color cursor-pointer"
|
|
|
icon-class="icon-processInfo-solar--forbidden-circle-broken"
|
|
|
- @click="enabledEv(element.processId, 0)"
|
|
|
+ @click="enabledEv(element, 0)"
|
|
|
/>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip v-if="element.processState === 0" effect="dark" content="启用" placement="top">
|
|
|
<LeIcon
|
|
|
- class="text-lg ml-2 text-icon-color"
|
|
|
+ class="text-lg ml-2 text-icon-color cursor-pointer"
|
|
|
icon-class="icon-processInfo-heroicons--lock-open"
|
|
|
- @click="enabledEv(element.processId, 1)"
|
|
|
+ @click="enabledEv(element, 1)"
|
|
|
/>
|
|
|
</el-tooltip>
|
|
|
|
|
|
<el-tooltip content="删除" placement="top" effect="dark">
|
|
|
- <LeIcon class="text-lg ml-2 text-rose-700" icon-class="icon-processInfo-iconoir--trash" @click="stopEv(element)" />
|
|
|
+ <LeIcon
|
|
|
+ class="text-lg ml-2 text-rose-700 cursor-pointer"
|
|
|
+ icon-class="icon-processInfo-iconoir--trash"
|
|
|
+ @click="stopEv(element)"
|
|
|
+ />
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -292,14 +312,16 @@ const stopEv = (ele: any) => {
|
|
|
* @param state 启用/禁用的状态,1表示启用,0表示禁用
|
|
|
* @returns 无返回值,执行异步操作
|
|
|
*/
|
|
|
-const enabledEv = async (id: any, state: number) => {
|
|
|
- try {
|
|
|
- await process.processUpdateStateApi({ id, state: state })
|
|
|
+const enabledEv = async (ele: any, state: number) => {
|
|
|
+ ElMessageBox.confirm(`您即将${state === 1 ? '启用' : '禁用'}「${ele.processName}」流程,是否确认?`, '提示', {
|
|
|
+ confirmButtonText: '确认',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(async () => {
|
|
|
+ await process.processUpdateStateApi({ id: ele.processId, state: state })
|
|
|
ElMessage.success('操作成功')
|
|
|
flowGroupListAll()
|
|
|
- } catch (e) {
|
|
|
- console.log(e)
|
|
|
- }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|