This commit is contained in:
宋伟佳
2021-07-08 17:04:20 +08:00
parent 51ac4e8453
commit b117f49a63
7 changed files with 62 additions and 42 deletions
@@ -978,6 +978,7 @@ export default {
for (let i = 0; i < data.length; i++) {
this.selectedList.push(data[i].id);
}
console.log(this.selectedList);
},
//标准表格选择框改变
selectStandChange(data) {
@@ -76,7 +76,12 @@
<el-table-column
prop="ffzrr"
label="分发责任人">
<template>
<el-input
placeholder="请选择分发责任人"
>
</el-input>
</template>
</el-table-column>
</el-table>
</div>
@@ -270,12 +275,12 @@
align="center">
</el-table-column>
<el-table-column
prop="issueTime"
prop="productLine"
label="产品线">
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="textStatus"
prop="projectManager"
label="产品线责任人">
</el-table-column>
</el-table>
@@ -399,32 +404,14 @@ export default {
isSubmit: false,
saveLoading: false,
selectedList: [], //拆分标准的选择框
dataList:[
{
id: 1,
productLine: '风景线',
cpxzrr: '李四',
ffzrr: '张三',
},
{
id: 2,
productLine: '风景线',
cpxzrr: '李四',
ffzrr: '张三',
}, {
id: 3,
productLine: '风景线',
cpxzrr: '李四',
ffzrr: '张三',
},
],
dataList:[],
page: 1,
total: 0,
pageSize: this.$store.getters.userInfo.configContent,
pageNo: 1,
totalNo: 0,
pageSizeNo: this.$store.getters.userInfo.configContent,
product: new Map(),
listForm: {
standNumber: "", //标准编号
standName: "",//标准名称
@@ -491,7 +478,20 @@ export default {
},
//确认添加事件
okStand() {
this.standModel = false
if(this.standList.length >= 1){
let deposit = new Map();
this.sarAccessListDatas.forEach(item => {
deposit.set(item.id, item);
});
let bringData = [];
for (let i = 0; i < this.standList.length; i++) {
bringData.push(deposit.get(this.standList[i]));
}
console.log(bringData);
this.standModel = false
}else{
this.$message.warning('请选择一条数据进行添加')
}
},
//保存事件
handleSave() {
@@ -581,7 +581,10 @@ export default {
},
//添加产品线select的改变
selectThree(data) {
this.standList = data;
this.standList = [];
for(let i=0;i<data.length; i++){
this.standList.push(data[i].id)
}
},
choiceZRR(type, title, id) {
this.nodeList = [];
@@ -607,10 +610,21 @@ export default {
pageSizeChangeNo(pageSize) {
this.pageSizeNo = this.$store.getters.userInfo.configContent;
},
//获取产品线数据
getProductData() {
this.$http.get('sarStandProjectLibrary/queryProjectManager','',{
_this: this
}, res => {
this.productData = res.data
}, e => {
})
},
},
computed: {},
mounted() {
this.getTree();
this.getProductData()
}
};
@@ -11,7 +11,7 @@
<div class="process-name" @click="handleCreateProcess('5')">标准发放申请流程</div>
<div class="process-name" @click="handleCreateProcess('6')">标准清单发布/更新流程</div>
<div class="process-name" @click="handleCreateProcess('7')">项目合规评估流程</div>
<div class="process-name" @click="handleCreateProcess('7')">未符合项整改流程</div>
<div class="process-name" @click="handleCreateProcess('8')">未符合项整改流程</div>
</div>
</div>
<div v-if="zcgllc">
@@ -88,7 +88,7 @@ export default {
case '7':
//项目评估流程
this.$router.push({
name:'xmpgStep1'
name: 'xmpgStep1'
})
break
case '8':