|
@@ -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>
|
|
@@ -57,11 +46,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import {
|
|
|
- getTableHeader,
|
|
|
- getBillSystemList,
|
|
|
- updateBusiness,
|
|
|
BeatchQueryParam,
|
|
|
- delBatchList,
|
|
|
getDataDictionary,
|
|
|
queryLinkSys,
|
|
|
updateGeneralSys,
|
|
@@ -80,13 +65,11 @@ import dialogAssets from "@/components/ledger/addDialog/dialogSystem"
|
|
|
import detailsDialog from "@/components/business_space/lib/detailsDia"
|
|
|
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 zhCN from 'handsontable-pro/languages/zh-CN'
|
|
|
+import editSysfloor from "@/components/ledger/lib/editSysFloor";
|
|
|
|
|
|
-import {
|
|
|
- mapGetters,
|
|
|
- mapActions
|
|
|
-} from "vuex";
|
|
|
+import { mapGetters } from "vuex";
|
|
|
export default {
|
|
|
components: {
|
|
|
qrcode, //二维码页面
|
|
@@ -97,7 +80,8 @@ export default {
|
|
|
dialogAssets,
|
|
|
detailsDialog,
|
|
|
systemRelevance,
|
|
|
- myCascader
|
|
|
+ myCascader,
|
|
|
+ editSysfloor
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters("layout", ["projectId", "secret", "userId"]),
|
|
@@ -187,7 +171,7 @@ export default {
|
|
|
getDataDictionary(params, res => {
|
|
|
this.tableHeader = res.Content;
|
|
|
this.tableHeader.forEach(item => {
|
|
|
- if(item.Path && item.InputMode){
|
|
|
+ if (item.Path && item.InputMode) {
|
|
|
this.inputMap[item.Path] = item.InputMode
|
|
|
}
|
|
|
})
|
|
@@ -272,6 +256,9 @@ export default {
|
|
|
let arr = tools.copyArr(list)
|
|
|
let data = showTools.headerTextFilter(arr, 'system', this.onlyRead, this.showType)
|
|
|
data.unshift("操作", "关联设备数量");
|
|
|
+ if (this.showType == "all") {
|
|
|
+ data.splice(3, 0, "所属建筑楼层")
|
|
|
+ }
|
|
|
return data;
|
|
|
},
|
|
|
//格式化表内容
|
|
@@ -295,6 +282,13 @@ export default {
|
|
|
item.readOnly = true
|
|
|
})
|
|
|
}
|
|
|
+ if (this.showType == "all") {
|
|
|
+ data.splice(3, 0, {
|
|
|
+ data: "sysInBuildFloor",
|
|
|
+ renderer: text.sysInBuildFloor,
|
|
|
+ readOnly: this.onlyRead
|
|
|
+ })
|
|
|
+ }
|
|
|
return data;
|
|
|
},
|
|
|
//获取动态参数
|
|
@@ -478,7 +472,7 @@ export default {
|
|
|
async removeSys(param) {
|
|
|
await deleteGeneralSys(param, res => {
|
|
|
this.$message.success("删除成功")
|
|
|
- this.$emit('close','')
|
|
|
+ this.$emit('close', '')
|
|
|
this.getTableData()
|
|
|
})
|
|
|
},
|
|
@@ -488,7 +482,7 @@ export default {
|
|
|
Content: [],
|
|
|
Projection: []
|
|
|
}, keyList = [];
|
|
|
- //生成要修改字段列表
|
|
|
+ //生成要修改字段列表
|
|
|
change.map(item => {
|
|
|
let key = item[1].split(".")[0]
|
|
|
if (item[1] && keyList.indexOf(key) == -1) {
|
|
@@ -520,7 +514,11 @@ export default {
|
|
|
//操作
|
|
|
case 'caozuo':
|
|
|
// window.open(`http://adm.sagacloud.cn:8058/system?id=${infos.id}&pid=${this.projectId}&secret=${this.secret}`,"_blank")
|
|
|
- this.$message("开发中...")
|
|
|
+ // this.$message("开发中...")
|
|
|
+ this.$router.push({
|
|
|
+ path: "/ledger/systemDetail",
|
|
|
+ query: { SysID: infos.SysID, Name: infos.SysLocalName || infos.SysName, SysType:infos.Category }
|
|
|
+ })
|
|
|
return false
|
|
|
//设备二维码图片
|
|
|
case 'EquipQRCode':
|
|
@@ -541,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 = ''
|
|
|
+ handleClickUpdate() {
|
|
|
+ // 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() {
|