|
@@ -15,13 +15,14 @@
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="close">取 消</el-button>
|
|
|
- <el-button type="danger" @click="dialogVisible = false">确 定</el-button>
|
|
|
+ <el-button type="danger" @click="requirementSyncDpmWorkflow">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import '@/styles/PublicStyle/index.scss'
|
|
|
+import { requirementSyncDpmWorkflow } from '@/api/requirement.js'
|
|
|
export default {
|
|
|
props: {
|
|
|
visible: { type: Boolean, default: false },
|
|
@@ -32,6 +33,7 @@ export default {
|
|
|
return {
|
|
|
dia_content: this.name,
|
|
|
dialogVisible: false,
|
|
|
+ requirementId: Number(this.$route.query.id), // 需求id
|
|
|
titName: ''
|
|
|
}
|
|
|
},
|
|
@@ -53,6 +55,12 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ async requirementSyncDpmWorkflow() {
|
|
|
+ const res = await requirementSyncDpmWorkflow(this.requirementId)
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.$emit('update')
|
|
|
+ }
|
|
|
+ },
|
|
|
close() {
|
|
|
this.dialogVisible = false
|
|
|
this.$emit('update')
|