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

修改排班计划

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