|
|
|
@ -42,11 +42,16 @@
|
|
|
|
|
{{ ite.name }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
<a-input-number style="margin-right: 10px;" :precision="0" v-if="item.operType=='DATE_NEXT_DAY'" v-model="item.OperTypeVal" :min="1" />
|
|
|
|
|
<a-input-number
|
|
|
|
|
style="margin-right: 10px;"
|
|
|
|
|
:precision="0"
|
|
|
|
|
v-if="item.operType == 'DATE_NEXT_DAY'"
|
|
|
|
|
v-model="item.operTypeVal"
|
|
|
|
|
:min="1" />
|
|
|
|
|
<span>于是触发</span>
|
|
|
|
|
<a class="blur" v-if="item.nextActionTypeName" @click="handleOpenMexAction(index)">{{
|
|
|
|
|
<a class="blur" v-if="item.nextActionTypeName" @click="handleOpenMexAction(item, index, 2)">{{
|
|
|
|
|
item.nextActionTypeName }}</a>
|
|
|
|
|
<a class="blur" v-else @click="handleOpenMexAction(index)">选择</a>
|
|
|
|
|
<a class="blur" v-else @click="handleOpenMexAction(item, index, 1)">选择</a>
|
|
|
|
|
<span @click="handleDelAddCondit(index)" style="cursor: pointer;"><a-icon type="delete" /></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="conditRow">
|
|
|
|
@ -72,7 +77,7 @@
|
|
|
|
|
<a-button @click="handleUnable" type="danger">
|
|
|
|
|
取消启用
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button type="danger" @click="handleSaveEditCondit">
|
|
|
|
|
<a-button type="primary" @click="handleSaveEditCondit">
|
|
|
|
|
保存并启用
|
|
|
|
|
</a-button>
|
|
|
|
|
</template>
|
|
|
|
@ -167,8 +172,8 @@
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
workFlowSetEnable, workFlowSetUnPublishRelease, workFlowSaveAndEnable,
|
|
|
|
|
workFlowSetUnDelete, GetInfoBase, StatusSkuBaseSavAndEnable, projectQueryList,
|
|
|
|
|
SetUnEnableBase, workFlowSetUnPublishRelease, workFlowSaveAndEnable,
|
|
|
|
|
DeleteBase, GetInfoBase, StatusSkuBaseSavAndEnable, projectQueryList,
|
|
|
|
|
QueryActivitiesList, QueryListStatus, SaveWFActivities, CreateLiquidExpression,
|
|
|
|
|
GetShowTimeLine, BaseQueryList, GetTriggerOperTypeList, GetTriggerNextActionTypeList, SaveAndEnableStatusTriggerBase
|
|
|
|
|
} from '@/api/modular/system/appManage'
|
|
|
|
@ -337,13 +342,16 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleDelete() {
|
|
|
|
|
workFlowSetUnDelete([this.form.pkId]).then(res => {
|
|
|
|
|
this.confirmLoading = true
|
|
|
|
|
DeleteBase([this.editConditForm.pkId]).then(res => {
|
|
|
|
|
if (res.data.ext[0].succ) {
|
|
|
|
|
this.$message.success('删除成功')
|
|
|
|
|
this.visible = false
|
|
|
|
|
this.addEditBaseFlag = false
|
|
|
|
|
this.$emit('ok')
|
|
|
|
|
this.confirmLoading = false
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.data.ext[0].msg)
|
|
|
|
|
this.confirmLoading = false
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
@ -367,19 +375,24 @@ export default {
|
|
|
|
|
this.condItIndex = index
|
|
|
|
|
this.conditAct = ''
|
|
|
|
|
},
|
|
|
|
|
handleOpenMexAction(index) {
|
|
|
|
|
handleOpenMexAction(item, index, type) {
|
|
|
|
|
this.mexActionFlag = true
|
|
|
|
|
this.mexActionIndex = index
|
|
|
|
|
this.mexActionForm = {
|
|
|
|
|
nextActList: []
|
|
|
|
|
if (item.serviceActivitiesID) {
|
|
|
|
|
this.mexActionForm = item
|
|
|
|
|
}
|
|
|
|
|
if (type == 1) {
|
|
|
|
|
this.mexActionForm = {
|
|
|
|
|
nextActList: []
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleUnable() {
|
|
|
|
|
workFlowSetEnable([this.form.pkId]).then(res => {
|
|
|
|
|
SetUnEnableBase([this.editConditForm.pkId]).then(res => {
|
|
|
|
|
if (res.data.ext[0].succ) {
|
|
|
|
|
this.$message.success('取消启用成功')
|
|
|
|
|
this.$emit('ok')
|
|
|
|
|
this.visible = false
|
|
|
|
|
this.addEditBaseFlag = false
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.data.ext[0].msg)
|
|
|
|
|
}
|
|
|
|
@ -401,7 +414,15 @@ export default {
|
|
|
|
|
this.confirmLoading = true
|
|
|
|
|
GetInfoBase({ pkId: record.pkId }).then(res => {
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
if (res.data.ext.conditionList) {
|
|
|
|
|
res.data.ext.conditionList.forEach(item => {
|
|
|
|
|
if (item.operTypeVal) {
|
|
|
|
|
item.operTypeVal = Number(item.operTypeVal)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
this.editConditForm = res.data.ext
|
|
|
|
|
console.log(this.editConditForm)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.data.msg)
|
|
|
|
|
}
|
|
|
|
@ -494,9 +515,9 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handleSaveEditCondit() {
|
|
|
|
|
this.confirmLoading = true
|
|
|
|
|
this.$refs.editConditForm.validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
this.confirmLoading = true
|
|
|
|
|
SaveAndEnableStatusTriggerBase(this.editConditForm).then(res => {
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
if (this.editConditForm.pkId) {
|
|
|
|
|