|
@@ -46,7 +46,7 @@
|
|
type="textarea"
|
|
type="textarea"
|
|
:rows="4"
|
|
:rows="4"
|
|
placeholder="请输入内容"
|
|
placeholder="请输入内容"
|
|
- v-model="value"
|
|
|
|
|
|
+ v-model="names"
|
|
>
|
|
>
|
|
</el-input>
|
|
</el-input>
|
|
<div class="martop20">
|
|
<div class="martop20">
|
|
@@ -126,6 +126,7 @@
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-select
|
|
<el-select
|
|
|
|
+ style="width:100%;"
|
|
v-model="scope.row.eType"
|
|
v-model="scope.row.eType"
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
>
|
|
>
|
|
@@ -203,6 +204,7 @@ export default {
|
|
cascaderPanel: false,
|
|
cascaderPanel: false,
|
|
options: [],
|
|
options: [],
|
|
value: '',
|
|
value: '',
|
|
|
|
+ names: '',//替换元素得值
|
|
tableData: [],//table表
|
|
tableData: [],//table表
|
|
options2: [{
|
|
options2: [{
|
|
value: '编辑元素字段',
|
|
value: '编辑元素字段',
|
|
@@ -266,14 +268,12 @@ export default {
|
|
}, 500)
|
|
}, 500)
|
|
},
|
|
},
|
|
RightClick2 (tr, td, x1, x2, y1, y2) {
|
|
RightClick2 (tr, td, x1, x2, y1, y2) {
|
|
- // console.log(window.event.clientX, window.event.clientY);
|
|
|
|
this.table = {
|
|
this.table = {
|
|
tr,
|
|
tr,
|
|
td
|
|
td
|
|
}
|
|
}
|
|
this.top = window.event.clientY - 80
|
|
this.top = window.event.clientY - 80
|
|
this.left = window.event.clientX - 300
|
|
this.left = window.event.clientX - 300
|
|
- // console.log(tr, td, x1, x2, y1, y2);
|
|
|
|
this.cascaderPanel = true
|
|
this.cascaderPanel = true
|
|
clearTimeout(this.setTimeout)
|
|
clearTimeout(this.setTimeout)
|
|
this.setTimeout = setTimeout(() => {
|
|
this.setTimeout = setTimeout(() => {
|
|
@@ -300,6 +300,14 @@ export default {
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ getInformation2 (a, b, c) {
|
|
|
|
+ if (this.AddNewElementField) {
|
|
|
|
+ this.table = {
|
|
|
|
+ tr: b,
|
|
|
|
+ td: c
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
async cop () {
|
|
async cop () {
|
|
let _that = this
|
|
let _that = this
|
|
var MyComponent = await Vue.extend({
|
|
var MyComponent = await Vue.extend({
|
|
@@ -313,8 +321,8 @@ export default {
|
|
RightClick (tr, td, x1, x2, y1, y2) {//鼠标右键事件
|
|
RightClick (tr, td, x1, x2, y1, y2) {//鼠标右键事件
|
|
_that.RightClick2(tr, td, x1, x2, y1, y2)
|
|
_that.RightClick2(tr, td, x1, x2, y1, y2)
|
|
},
|
|
},
|
|
- getInformation(a,b,c) {
|
|
|
|
-
|
|
|
|
|
|
+ getInformation (a, b, c) {
|
|
|
|
+ _that.getInformation2(a, b, c)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -335,6 +343,9 @@ export default {
|
|
RightClick (tr, td, x1, x2, y1, y2) {//鼠标右键事件
|
|
RightClick (tr, td, x1, x2, y1, y2) {//鼠标右键事件
|
|
_that.RightClick2(tr, td, x1, x2, y1, y2)
|
|
_that.RightClick2(tr, td, x1, x2, y1, y2)
|
|
},
|
|
},
|
|
|
|
+ getInformation (a, b, c) {
|
|
|
|
+ _that.getInformation2(a, b, c)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
var component = new MyComponent().$mount()
|
|
var component = new MyComponent().$mount()
|
|
@@ -353,7 +364,13 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
returns () {
|
|
returns () {
|
|
- this.$router.go(-1)
|
|
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: '/project/tree',
|
|
|
|
+ query: {
|
|
|
|
+ pid: this.$route.query.pid,
|
|
|
|
+ wbsid: this.$route.query.wbsid,
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
//#region 左侧替换元素
|
|
//#region 左侧替换元素
|
|
cancelReplace () {//替换元素取消按钮
|
|
cancelReplace () {//替换元素取消按钮
|
|
@@ -420,10 +437,10 @@ export default {
|
|
this.tableData.splice(key, 1)
|
|
this.tableData.splice(key, 1)
|
|
},
|
|
},
|
|
pushNewElementField () {//确定添加按钮
|
|
pushNewElementField () {//确定添加按钮
|
|
- if (this.tableData) {
|
|
|
|
|
|
+ if (this.tableData.length > 0) {
|
|
let tag = true
|
|
let tag = true
|
|
this.tableData.forEach(val => {
|
|
this.tableData.forEach(val => {
|
|
- if (!val | !val | !val) {
|
|
|
|
|
|
+ if (!(val.eName && val.eType)) {
|
|
tag = false
|
|
tag = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -486,14 +503,23 @@ export default {
|
|
label: '公式配置',
|
|
label: '公式配置',
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ 'value' (values) {
|
|
|
|
+ if (values) {
|
|
|
|
+ this.options.forEach(val => {
|
|
|
|
+ if (val.id == values) {
|
|
|
|
+ this.names = val.eName
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.editElement {
|
|
.editElement {
|
|
- // padding-bottom: 40px !important;
|
|
|
|
|
|
+ padding-bottom: 40px !important;
|
|
.header {
|
|
.header {
|
|
color: rgb(240, 114, 10);
|
|
color: rgb(240, 114, 10);
|
|
}
|
|
}
|