|
@@ -37,10 +37,10 @@
|
|
<el-tooltip
|
|
<el-tooltip
|
|
class="box-item"
|
|
class="box-item"
|
|
effect="customized"
|
|
effect="customized"
|
|
- :content="scope.row.organizationName"
|
|
|
|
|
|
+ :content="scope.row.createOrgName"
|
|
placement="top"
|
|
placement="top"
|
|
>
|
|
>
|
|
- <span class="tooltipCC">{{scope.row.organizationName}}</span>
|
|
|
|
|
|
+ <span class="tooltipCC">{{scope.row.createOrgName}}</span>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -359,34 +359,43 @@ export default {
|
|
opinion: "考评目标启动",
|
|
opinion: "考评目标启动",
|
|
iamCode: window.localStorage.getItem('code')
|
|
iamCode: window.localStorage.getItem('code')
|
|
}
|
|
}
|
|
- apiGetdoAction(par).then(datas =>{
|
|
|
|
- if (datas && datas.data) {
|
|
|
|
- if (datas.data.isOk) {
|
|
|
|
- let params = {
|
|
|
|
- responsibilityIds: row.id
|
|
|
|
|
|
+ if (row.instId !== null || row.instId !== '') {
|
|
|
|
+ apiGetdoAction(par).then(datas =>{
|
|
|
|
+ if (datas && datas.data) {
|
|
|
|
+ if (datas.data.isOk) {
|
|
|
|
+ that.getDeptresponsibility(row)
|
|
|
|
+ } else {
|
|
|
|
+ that.$message({
|
|
|
|
+ message: datas.data.msg,
|
|
|
|
+ type: 'error'
|
|
|
|
+ });
|
|
}
|
|
}
|
|
- apiGetdeptresponsibilitygenerate(params).then(datas =>{
|
|
|
|
- if (datas && datas.data) {
|
|
|
|
- if (!datas.success) {
|
|
|
|
- that.$message({
|
|
|
|
- message: datas.message,
|
|
|
|
- type: 'error'
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- that.$message({
|
|
|
|
- message: '考评目标已启动',
|
|
|
|
- type: 'success'
|
|
|
|
- });
|
|
|
|
- that.getevaluStartList()
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ that.getDeptresponsibility(row)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ // 生成目标责任书
|
|
|
|
+ getDeptresponsibility(row) {
|
|
|
|
+ let that = this
|
|
|
|
+ let params = {
|
|
|
|
+ responsibilityIds: row.id
|
|
|
|
+ }
|
|
|
|
+ apiGetdeptresponsibilitygenerate(params).then(datas =>{
|
|
|
|
+ if (datas && datas.data) {
|
|
|
|
+ if (!datas.success) {
|
|
that.$message({
|
|
that.$message({
|
|
- message: datas.data.msg,
|
|
|
|
|
|
+ message: datas.message,
|
|
type: 'error'
|
|
type: 'error'
|
|
});
|
|
});
|
|
|
|
+ } else {
|
|
|
|
+ that.$message({
|
|
|
|
+ message: '考评目标已启动',
|
|
|
|
+ type: 'success'
|
|
|
|
+ });
|
|
}
|
|
}
|
|
|
|
+ that.getevaluStartList()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|