|
@@ -32,18 +32,7 @@
|
|
|
<details-dialog :iframeSrc="iframeSrc" v-if="myDialog.details" :dialog="myDialog"></details-dialog>
|
|
|
<system-relevance @close="reset" :id="systemId" :dialog="myDialog"></system-relevance>
|
|
|
<!-- 不支持的输入方式 -->
|
|
|
- <el-dialog title="临时维护信息点" :visible.sync="myDialog.update" @close="handleCloseUpdate" width="670px">
|
|
|
- <el-row>
|
|
|
- 该信息点未定义对应组件,现在维护数据不确定后续是否可用。如确实需要维护,请点击<el-link @click="updateInputShow = true" type="primary" :underline="false">继续维护</el-link>。
|
|
|
- </el-row>
|
|
|
- <el-row style="margin-top:20px;" v-show="updateInputShow">
|
|
|
- <el-input type="textarea" :autosize="{ minRows: 4, maxRows: 8}" placeholder="请输入内容" v-model="updateInput"></el-input>
|
|
|
- </el-row>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="myDialog.update = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="handleClickUpdate">确 认</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
+ <editSysfloor ref="editFloor" @handleClickUpdate="handleClickUpdate"></editSysfloor>
|
|
|
<!-- 新增系统 -->
|
|
|
<el-dialog title="确定新增系统的类型" :visible.sync="myDialog.addDevice" width="30%">
|
|
|
<el-row>
|
|
@@ -78,6 +67,7 @@ import systemRelevance from "@/components/ledger/tableTransfers"
|
|
|
import Handsontable from "handsontable-pro"
|
|
|
import text from "@/utils/handsontable/mainText"
|
|
|
import 'handsontable-pro/dist/handsontable.full.css'
|
|
|
+import editSysfloor from "@/components/ledger/lib/editSysFloor";
|
|
|
|
|
|
import { mapGetters } from "vuex";
|
|
|
export default {
|
|
@@ -90,7 +80,8 @@ export default {
|
|
|
dialogAssets,
|
|
|
detailsDialog,
|
|
|
systemRelevance,
|
|
|
- myCascader
|
|
|
+ myCascader,
|
|
|
+ editSysfloor
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters("layout", ["projectId", "secret", "userId"]),
|
|
@@ -548,24 +539,20 @@ export default {
|
|
|
break;
|
|
|
}
|
|
|
if (!this.onlyRead && showTools.InputModeArr.indexOf(inputMode) == '-1') {
|
|
|
- this.updateInfoPoint = val
|
|
|
- this.updateInput = tools.dataForKey(this.tableData[row.row], val)
|
|
|
- this.myDialog.update = true
|
|
|
+ // this.updateInfoPoint = val
|
|
|
+ // this.updateInput = tools.dataForKey(this.tableData[row.row], val)
|
|
|
+ let floor = tools.dataForKey(this.tableData[row.row], val);
|
|
|
+ this.$refs.editFloor.showDialog();
|
|
|
}
|
|
|
},
|
|
|
- //关闭临时维护弹窗回调
|
|
|
- handleCloseUpdate() {
|
|
|
- this.updateInputShow = false
|
|
|
- this.updateInfoPoint = ''
|
|
|
- this.updateInput = ''
|
|
|
- },
|
|
|
//更新临时维护信息点
|
|
|
handleClickUpdate() {
|
|
|
- tools.setDataForKey(this.tableData[this.row], this.updateInfoPoint, this.updateInput)
|
|
|
- this.handleUpdataTable([[this.row, this.updateInfoPoint, null, this.updateInput]], "edit")
|
|
|
- this.updateInputShow = false
|
|
|
- this.myDialog.update = false
|
|
|
- this.updateInput = ''
|
|
|
+ // this.$message("更新成功");
|
|
|
+ // tools.setDataForKey(this.tableData[this.row], this.updateInfoPoint, this.updateInput)
|
|
|
+ // this.handleUpdataTable([[this.row, this.updateInfoPoint, null, this.updateInput]], "edit")
|
|
|
+ // this.updateInputShow = false
|
|
|
+ // this.myDialog.update = false
|
|
|
+ // this.updateInput = ''
|
|
|
},
|
|
|
//获取被筛选掉的行号
|
|
|
trimmedRows() {
|