|
@@ -2,9 +2,9 @@
|
|
<div>
|
|
<div>
|
|
|
|
|
|
<!-- 弹窗 -->
|
|
<!-- 弹窗 -->
|
|
- <el-dialog :title="params.title" :visible.sync="dialogVisible" width="60%" append-to-body @clocse="closeParamDialog">
|
|
|
|
|
|
+ <el-dialog title="参数信息" :visible.sync="dialogVisible" width="60%" append-to-body @clocse="closeParamDialog">
|
|
<div>
|
|
<div>
|
|
- <div class="sub-title">分部工程名称</div>
|
|
|
|
|
|
+ <div class="sub-title">{{ params.paramName }}</div>
|
|
<!-- 搜索栏 -->
|
|
<!-- 搜索栏 -->
|
|
<div class="search-container">
|
|
<div class="search-container">
|
|
<div>
|
|
<div>
|
|
@@ -113,7 +113,7 @@
|
|
<!-- 选择元素弹窗 -->
|
|
<!-- 选择元素弹窗 -->
|
|
<checkEleDialog ref="checkEleDialogRef" @confirmCheck="confirmCheck"></checkEleDialog>
|
|
<checkEleDialog ref="checkEleDialogRef" @confirmCheck="confirmCheck"></checkEleDialog>
|
|
<!-- 编辑参数弹窗 -->
|
|
<!-- 编辑参数弹窗 -->
|
|
- <addParamDialog :visible.sync="editDialogVisible" :params="params"/>
|
|
|
|
|
|
+ <addParamDialog :visible.sync="editDialogVisible" :params="params" @add-parameter="addCardFinish" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -122,7 +122,7 @@ import checkEleDialog from './checkEleDialog.vue';
|
|
import { getProjectList } from "@/api/manager/projectinfo";
|
|
import { getProjectList } from "@/api/manager/projectinfo";
|
|
import { findContractByProjectId } from "@/api/manager/contractinfo";
|
|
import { findContractByProjectId } from "@/api/manager/contractinfo";
|
|
import addParamDialog from './addParamDialog.vue';
|
|
import addParamDialog from './addParamDialog.vue';
|
|
-import { remove } from "../../../api/paramter/parmter.js";
|
|
|
|
|
|
+import { remove,getProjectContractByParam} from "../../../api/paramter/parmter.js";
|
|
export default {
|
|
export default {
|
|
components:{
|
|
components:{
|
|
checkEleDialog,
|
|
checkEleDialog,
|
|
@@ -135,6 +135,9 @@ export default {
|
|
params: {
|
|
params: {
|
|
handler: function(n) {
|
|
handler: function(n) {
|
|
this.params=n
|
|
this.params=n
|
|
|
|
+ if(n.id){
|
|
|
|
+ this.getProjectListData()
|
|
|
|
+ }
|
|
},
|
|
},
|
|
deep: true,
|
|
deep: true,
|
|
},
|
|
},
|
|
@@ -187,7 +190,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
show() {
|
|
show() {
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
- this.getProjectListData()
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
closeParamDialog(){
|
|
closeParamDialog(){
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
@@ -209,6 +212,10 @@ export default {
|
|
handleEditParam(item){
|
|
handleEditParam(item){
|
|
this.editDialogVisible=true
|
|
this.editDialogVisible=true
|
|
|
|
|
|
|
|
+ },
|
|
|
|
+ addCardFinish(){
|
|
|
|
+ console.log('编辑完成');
|
|
|
|
+
|
|
},
|
|
},
|
|
handleEdit(index, row) {;
|
|
handleEdit(index, row) {;
|
|
this.addDialogVisible=true;
|
|
this.addDialogVisible=true;
|
|
@@ -230,6 +237,9 @@ export default {
|
|
type: "success",
|
|
type: "success",
|
|
message:res.data.msg
|
|
message:res.data.msg
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ this.dialogVisible=false
|
|
|
|
+ this.$emit('finshDetail');
|
|
});
|
|
});
|
|
},
|
|
},
|
|
handleDelete(index, row) {
|
|
handleDelete(index, row) {
|
|
@@ -238,9 +248,20 @@ export default {
|
|
},
|
|
},
|
|
//获取项目列表
|
|
//获取项目列表
|
|
getProjectListData() {
|
|
getProjectListData() {
|
|
|
|
+ console.log(this.params.id,'this.params.id');
|
|
|
|
+
|
|
|
|
+ if(!this.params.id ){
|
|
getProjectList(1, 999).then((res) => {
|
|
getProjectList(1, 999).then((res) => {
|
|
this.projectList = res.data.data.records;
|
|
this.projectList = res.data.data.records;
|
|
});
|
|
});
|
|
|
|
+ }else{
|
|
|
|
+ getProjectContractByParam({
|
|
|
|
+ parameterId: this.params.id
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ this.projectList = res.data.data.records;
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
changeProject(val){
|
|
changeProject(val){
|
|
|
|
|