|
|
|
@ -1,17 +1,12 @@
|
|
|
|
|
<template>
|
|
|
|
|
<el-dialog
|
|
|
|
|
:title="title"
|
|
|
|
|
:visible.sync="showFlag"
|
|
|
|
|
width="1000px"
|
|
|
|
|
append-to-body
|
|
|
|
|
>
|
|
|
|
|
<div>
|
|
|
|
|
<el-form ref="form1" label-width="80px">
|
|
|
|
|
<el-form-item label="目标id" prop="belongGoalId">
|
|
|
|
|
<el-input v-model="belongGoalId" disabled />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<el-tabs type="border-card" v-if="belongGoalId != null">
|
|
|
|
|
<el-tab-pane :label="title">
|
|
|
|
|
<el-tab-pane :label="disTitle">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="query">
|
|
|
|
|
<el-input
|
|
|
|
@ -74,7 +69,6 @@
|
|
|
|
|
:disabled="LNextPage > LPages"
|
|
|
|
|
>下一页</el-button
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<!-- 右侧栏分页 -->
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
@ -116,11 +110,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
@ -128,7 +118,7 @@ import { getLeftList, getRightList, addSupplier, getProductLeftList, getProductR
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "QcGoalDistriBute",
|
|
|
|
|
|
|
|
|
|
props: ['belongGoalId','mode','disTitle'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
// 遮罩层
|
|
|
|
@ -200,12 +190,23 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
props: {
|
|
|
|
|
belongGoalId:undefined,
|
|
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
if (this.belongGoalId) {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getRightListFun();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
belongGoalId(newVal,oldVal) {
|
|
|
|
|
console.log(newVal);
|
|
|
|
|
if(newVal !== oldVal) {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getRightListFun();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// // 穿梭框搜索
|
|
|
|
@ -222,7 +223,7 @@ export default {
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
this.leftQueryParams.belongGoalId = this.belongGoalId;
|
|
|
|
|
if(this.model) {
|
|
|
|
|
if(this.mode) {
|
|
|
|
|
getLeftList(this.leftQueryParams).then((response) => {
|
|
|
|
|
this.LPages = Math.ceil(response.total / this.LPageSize);
|
|
|
|
|
this.leftList = response.rows;
|
|
|
|
@ -262,7 +263,7 @@ export default {
|
|
|
|
|
getRightListFun() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
this.rightQueryParams.belongGoalId = this.belongGoalId;
|
|
|
|
|
if(this.model) {
|
|
|
|
|
if(this.mode) {
|
|
|
|
|
getRightList(this.rightQueryParams).then((response) => {
|
|
|
|
|
this.RPages = Math.ceil(response.total / this.RPageSize);
|
|
|
|
|
let dataright = [];
|
|
|
|
@ -306,11 +307,6 @@ export default {
|
|
|
|
|
this.getRightListFun();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 取消按钮
|
|
|
|
|
cancel() {
|
|
|
|
|
this.showFlag = false;
|
|
|
|
|
this.reset();
|
|
|
|
|
},
|
|
|
|
|
// 表单重置
|
|
|
|
|
reset() {
|
|
|
|
|
this.form = {
|
|
|
|
@ -348,11 +344,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 提交 */
|
|
|
|
|
submitForm() {
|
|
|
|
|
this.showFlag = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|