调整代码

This commit is contained in:
zyy 2020-03-13 19:04:28 +08:00
parent ce21ff9d91
commit 5dbd676ccf
2 changed files with 10 additions and 2 deletions

View File

@ -52,3 +52,11 @@ export function deleteIbpInfo(id) {
method: 'delete' method: 'delete'
}); });
} }
// 根据id查询IBP数据
export function getIbpInfo(id) {
return request({
url: `/api/draftIbp/${id}`,
method: 'get'
});
}

View File

@ -11,9 +11,9 @@
</template> </template>
<script> <script>
import Cookies from 'js-cookie'; // import Cookies from 'js-cookie';
import { getStationList } from '@/api/runplan'; import { getStationList } from '@/api/runplan';
import ConstConfig from '@/scripts/ConstConfig'; // import ConstConfig from '@/scripts/ConstConfig';
import { postIbpPublish, getIbpAllList, deleteIbpInfo } from '@/api/ibp'; import { postIbpPublish, getIbpAllList, deleteIbpInfo } from '@/api/ibp';
import CreateIbp from './create'; import CreateIbp from './create';