|
@@ -398,7 +398,7 @@
|
|
|
@click="getAssetsTargetDetail(scope.row.id), changeStatus('edit')">
|
|
|
编辑
|
|
|
</el-button>
|
|
|
- <el-button type="text" size="small" @click="assetsTargetDelete(scope.row.id)">删除</el-button>
|
|
|
+ <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE'" type="text" size="small" @click="assetsTargetDelete(scope.row.id)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -992,7 +992,8 @@ export default {
|
|
|
taskRecordDTO: {
|
|
|
recordId: null,
|
|
|
taskData: {}
|
|
|
- }
|
|
|
+ },
|
|
|
+ pNode:null
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -1520,10 +1521,12 @@ export default {
|
|
|
assetsTargetSave() {
|
|
|
this.$refs.targetForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
- this.targetForm.assetsId = this.targetForm.id;
|
|
|
+ this.targetForm.assetsId = this.assetsForm.id;
|
|
|
this.targetForm.siteIds = JSON.stringify(this.targetForm.siteIds);
|
|
|
this.targetForm.filePath = JSON.stringify(this.targetForm.filePath);
|
|
|
- this.$api.assets.assetsTargetSave(this.targetForm).then(res => {
|
|
|
+ this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
|
|
|
+ this.taskRecordDTO.taskData = this.targetForm;
|
|
|
+ this.$api.assets.assetsTargetSave(this.taskRecordDTO).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.$notify({
|
|
|
title: '成功',
|