|
@@ -82,12 +82,20 @@
|
|
style="overflow:auto;height:100%;"
|
|
style="overflow:auto;height:100%;"
|
|
>
|
|
>
|
|
<div class="flexBetween flexItemsC">
|
|
<div class="flexBetween flexItemsC">
|
|
- <el-button
|
|
|
|
- type="info"
|
|
|
|
- size="mini"
|
|
|
|
- :disabled="from.id==''"
|
|
|
|
- @click="automaticRecognition"
|
|
|
|
- >自动识别</el-button>
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <el-button
|
|
|
|
+ type="info"
|
|
|
|
+ size="mini"
|
|
|
|
+ :disabled="from.id==''"
|
|
|
|
+ @click="automaticRecognition"
|
|
|
|
+ >自动识别</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="success"
|
|
|
|
+ size="mini"
|
|
|
|
+ @click="establish()"
|
|
|
|
+ :disabled="from.id==''"
|
|
|
|
+ >关联WBS并创建元素</el-button>
|
|
|
|
+ </div>
|
|
<div
|
|
<div
|
|
class="el-icon-plus"
|
|
class="el-icon-plus"
|
|
@click="pushTableData"
|
|
@click="pushTableData"
|
|
@@ -155,12 +163,12 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <el-button
|
|
|
|
|
|
+ <!-- <el-button
|
|
type="success"
|
|
type="success"
|
|
class="martop20 dingwei"
|
|
class="martop20 dingwei"
|
|
@click="establish()"
|
|
@click="establish()"
|
|
:disabled="from.id==''"
|
|
:disabled="from.id==''"
|
|
- >关联WBS并创建元素</el-button>
|
|
|
|
|
|
+ >关联WBS并创建元素</el-button> -->
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
@@ -438,7 +446,7 @@ export default {
|
|
},
|
|
},
|
|
pushTableData () {//
|
|
pushTableData () {//
|
|
if (this.from.id) {
|
|
if (this.from.id) {
|
|
- this.tableData.push({
|
|
|
|
|
|
+ this.tableData.unshift({
|
|
eName: '',
|
|
eName: '',
|
|
eType: 1,
|
|
eType: 1,
|
|
eAllowDeviation: ''
|
|
eAllowDeviation: ''
|
|
@@ -530,8 +538,12 @@ export default {
|
|
this.addElementForm.wbsId = '';
|
|
this.addElementForm.wbsId = '';
|
|
this.addElementForm.tableType = '';
|
|
this.addElementForm.tableType = '';
|
|
this.addElementForm.tableOwner = '';
|
|
this.addElementForm.tableOwner = '';
|
|
- this.$refs.tree.setCheckedKeys([]);
|
|
|
|
- this.$refs.tree.setCurrentKey(null);
|
|
|
|
|
|
+
|
|
|
|
+ if(this.$refs.tree){
|
|
|
|
+ this.$refs.tree.setCheckedKeys([]);
|
|
|
|
+ this.$refs.tree.setCurrentKey(null);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
this.addTableData = []
|
|
this.addTableData = []
|
|
this.AssociatedPublicTap = false
|
|
this.AssociatedPublicTap = false
|