|
@@ -71,32 +71,10 @@
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <CzrDialog
|
|
|
|
- :show="state.detail.show"
|
|
|
|
- title="创建工作流"
|
|
|
|
- @onClose="state.detail.show = false"
|
|
|
|
- @onSubmit="onSubmitAdd"
|
|
|
|
- width="42.5rem"
|
|
|
|
- height="auto"
|
|
|
|
- >
|
|
|
|
- <div class="bm-form">
|
|
|
|
- <CzrForm ref="ref_form" layout="y">
|
|
|
|
- <CzrFormColumn
|
|
|
|
- required
|
|
|
|
- label="工作流名称"
|
|
|
|
- :span="24"
|
|
|
|
- v-model:param="state.form.name"
|
|
|
|
- />
|
|
|
|
- <CzrFormColumn
|
|
|
|
- label="工作流简介"
|
|
|
|
- :span="24"
|
|
|
|
- v-model:param="state.form.name"
|
|
|
|
- type="textarea"
|
|
|
|
- :rows="4"
|
|
|
|
- />
|
|
|
|
- </CzrForm>
|
|
|
|
- </div>
|
|
|
|
- </CzrDialog>
|
|
|
|
|
|
+ <detailCom
|
|
|
|
+ v-model:show="state.detail.show"
|
|
|
|
+ :transfer="state.detail.transfer"
|
|
|
|
+ />
|
|
</CzrDialog>
|
|
</CzrDialog>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -117,8 +95,7 @@ import { Search } from '@element-plus/icons-vue'
|
|
import { pluginGetInstanceList } from '@/api/modules/model'
|
|
import { pluginGetInstanceList } from '@/api/modules/model'
|
|
import { YMDHms } from '@/utils/czr-util'
|
|
import { YMDHms } from '@/utils/czr-util'
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
-import detailCom from '@/views/manage/model/detail.vue'
|
|
|
|
-import { appAdd, appCopy, appEdit } from '@/api/modules/app'
|
|
|
|
|
|
+import detailCom from '@/views/manage/app/make/workflow-detail.vue'
|
|
|
|
|
|
const DialogStore = useDialogStore()
|
|
const DialogStore = useDialogStore()
|
|
const DictionaryStore = useDictionaryStore()
|
|
const DictionaryStore = useDictionaryStore()
|
|
@@ -201,7 +178,7 @@ const onPage = (pageNum, pageSize) => {
|
|
params[k] = v
|
|
params[k] = v
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- state.query.loading = true
|
|
|
|
|
|
+ // state.query.loading = true
|
|
pluginGetInstanceList(params)
|
|
pluginGetInstanceList(params)
|
|
.then(({ data }: any) => {
|
|
.then(({ data }: any) => {
|
|
state.query.result.total = data.total
|
|
state.query.result.total = data.total
|
|
@@ -229,39 +206,10 @@ const onSubmit = () => {
|
|
const onView = (row) => {}
|
|
const onView = (row) => {}
|
|
const onAdd = () => {
|
|
const onAdd = () => {
|
|
state.detail.transfer = {
|
|
state.detail.transfer = {
|
|
- type: 'add',
|
|
|
|
|
|
+ mode: 'add',
|
|
}
|
|
}
|
|
state.detail.show = true
|
|
state.detail.show = true
|
|
}
|
|
}
|
|
-const onSubmitAdd = () => {
|
|
|
|
- ref_form.value
|
|
|
|
- .submit()
|
|
|
|
- .then(() => {
|
|
|
|
- DialogStore.confirm({
|
|
|
|
- content: `请确认是否提交?`,
|
|
|
|
- onSubmit: () => {
|
|
|
|
- // state.loading = true
|
|
|
|
- // appAdd(state.form)
|
|
|
|
- // .then(() => {
|
|
|
|
- // ElMessage.success(`${titleCpt.value}成功!`)
|
|
|
|
- // emit('update:show', false)
|
|
|
|
- // emit('refresh')
|
|
|
|
- // })
|
|
|
|
- // .catch(() => {})
|
|
|
|
- // .finally(() => {
|
|
|
|
- // state.loading = false
|
|
|
|
- // })
|
|
|
|
- },
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- .catch((e) => {
|
|
|
|
- ElMessage({
|
|
|
|
- message: e[0].message,
|
|
|
|
- grouping: true,
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
-}
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
initDictionary()
|
|
initDictionary()
|
|
})
|
|
})
|