Commit 3df96996 authored by 沈翠玲's avatar 沈翠玲

修改排班计划

parent 7df06556
......@@ -59,3 +59,12 @@ export function delWorkunit(workunitId) {
method: 'delete'
})
}
// 排版计划专用查询工作单元
export function getWorkunitByPlanId(params) {
return request({
url: '/md/cal/workunit/getWorkunitByPlanId',
method: 'get',
params
})
}
\ No newline at end of file
......@@ -28,7 +28,7 @@
:limit.sync="queryParams.pageSize"
@pagination="getTeamList"
/>
<TeamSelect ref="teamSelect" @onSelected="onTeamSelected"></TeamSelect>
<TeamSelect ref="teamSelect" @onSelected="onTeamSelected" :planId="planId"></TeamSelect>
</div>
</template>
......
......@@ -76,8 +76,7 @@
</template>
<script>
import { listTeam } from "@/api/mes/cal/team";
import { listWorkunit } from "@/api/mes/md/workunit";
import { getWorkunitByPlanId } from "@/api/mes/md/workunit";
export default {
name: "TeamSelect",
props: ['apiName'],
......@@ -134,7 +133,7 @@ export default {
/** 查询工作单元列表 */
getList() {
this.loading = true;
const fn = this.apiName ? listWorkunit : listTeam
const fn = getWorkunitByPlanId
fn(this.queryParams).then(response => {
this.workunitList = response.rows;
this.total = response.total;
......
......@@ -68,7 +68,6 @@
import { listWorkunituser, getWorkunituser, delWorkunituser, addWorkunituser, updateWorkunituser } from "@/api/system/user";
//import workunitSelect from "./workunitSelect.vue"
import workunitSelects from "./workunitSelect1.vue"
// "@/views/mes/cal/team/calTeamSelect/multi.vue"
export default {
name: "Workunitworker",
components: {workunitSelects},
......
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