This commit is contained in:
shijing 2022-06-07 13:47:27 +08:00
parent b59cf78c4e
commit 48e10fcac5
1 changed files with 28 additions and 5 deletions

View File

@ -853,13 +853,36 @@
methods: {
noChange(index){
let that = this;
if(index==='1'){//资质无新增
qualiNoChange({qtask:this.qtask}).then(res=>{
})
that.$confirm("是否确定本月无新增资质?", "提示")
.then(async () => {
qualiNoChange({qtask:this.qtask}).then(res=>{
if (res.code >= 200 && res.code < 400) {
that.getList();
that.$message.success("成功");
}
})
})
.catch((err) => {
console.error(err);
});
}else{//能力无新增
abilityNoChange({qtask:this.qtask}).then(res=>{
})
that.$confirm("是否确定本月无新增能力?", "提示")
.then(async () => {
abilityNoChange({qtask:this.qtask}).then(res=>{
if (res.code >= 200 && res.code < 400) {
that.getList();
that.$message.success("成功");
}
})
})
.catch((err) => {
console.error(err);
});
}
},
getOptions() {
getDictList({type__code: "field_type", is_used: true}).then((res) => {
@ -943,7 +966,7 @@
this.qtask = obj.qtask;
this.qtaskName = obj.qtask_.name;
this.buttonsShow = true;
this.listQuery.task = obj.qtask;
this.listQuery.qtask = obj.qtask;
qactionMy(this.listQuery).then((res) => {
this.recordList = res.data;
})