Commit 81ad4137 authored by ztf's avatar ztf

修改选择项目代号组件和接口单-终止组件代码

parent b1173def
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
> >
<el-option <el-option
v-for="item in projectCodeOptions" v-for="item in projectCodeOptions"
:key="item.parentKey" :key="item.dictKey"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
/> />
...@@ -30,7 +30,6 @@ export default { ...@@ -30,7 +30,6 @@ export default {
} }
}, },
mounted() { mounted() {
console.log('开始获取数据了')
this.getProjectCodeList() this.getProjectCodeList()
}, },
methods: { methods: {
...@@ -56,16 +55,14 @@ export default { ...@@ -56,16 +55,14 @@ export default {
} }
} }
post('/DictData/search', params).then((res) => { post('/DictData/search', params).then((res) => {
console.log('请求了')
if (res.items.content.length) { if (res.items.content.length) {
this.projectCodeOptions = res.items.content.map((row) => { this.projectCodeOptions = res.items.content.map((row) => {
return { return {
value: row.dictKey, value: row.dictKey,
label: row.dictValue, label: row.dictValue,
parentKey: row.parentKey dictKey: row.dictKey
} }
}) })
console.log(' this.projectCodeOptions', this.projectCodeOptions)
} }
}) })
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: zhangtianfeng 3232807530@qq.com * @Author: zhangtianfeng 3232807530@qq.com
* @Date: 2024-08-13 16:59:49 * @Date: 2024-08-13 16:59:49
* @LastEditors: zhangtianfeng 3232807530@qq.com * @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditTime: 2024-08-14 20:01:08 * @LastEditTime: 2024-08-19 17:00:52
--> -->
<template> <template>
<div class="TerminateInternalInterface"> <div class="TerminateInternalInterface">
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
typeName: 'ExtInterface', typeName: 'ExtInterface',
layKey: 'Terminate-internalInterface' layKey: 'Terminate-internalInterface'
}" }"
@selectionChange="selectionChange"
/> />
<div class="btns"> <div class="btns">
<el-button type="primary" class="submitBTN" :disabled="!isDisable" @click="tosubmit">确定</el-button> <el-button type="primary" class="submitBTN" :disabled="!isDisable" @click="tosubmit">确定</el-button>
...@@ -64,21 +63,11 @@ export default { ...@@ -64,21 +63,11 @@ export default {
post(`/ExtAuditObject/recursion`, params).then(res => { post(`/ExtAuditObject/recursion`, params).then(res => {
// this.btnLoading = false // this.btnLoading = false
this.$utils.showMessageSuccess('操作成功!') this.$utils.showMessageSuccess('操作成功!')
// this.$emit('completeEven')
// this.handleClose() // this.handleClose()
}).catch(() => { }).catch(() => {
this.btnLoading = false this.btnLoading = false
}) })
// const source = this.$parent.$parent.$parent.$parent.basicData
// const params = this.selections.map(r => {
// return {
// source: source,
// operator: 'ADD',
// target: r
// }
// })
// post('ExtAuditObject/recursions', params).then(res => {
// this.$emit('completeEven')
// })
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment