InterlockSummaryDetailList.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631
  1. <template>
  2. <div>
  3. <div class="interlock-detail-header">
  4. <a-icon type="arrow-left" @click="goBack"/>
  5. <span>{{queryParam.detailName ? queryParam.detailName : '详情'}}</span>
  6. </div>
  7. <div class="iotmenu-content">
  8. <a-card :bordered="false" style="background-color: #FAFAFA;">
  9. <!-- 查询区域 -->
  10. <div class="table-page-search-wrapper">
  11. <div class="iotmenu-search-container">
  12. <div class="item-search">
  13. <a-input placeholder="请输入联锁条件" v-model="queryParam.interlockConditionTag" @change="searchQuery"></a-input>
  14. </div>
  15. </div>
  16. </div>
  17. <!-- <div class="table-page-search-wrapper">
  18. <a-form layout="inline" @keyup.enter.native="searchQuery">
  19. <a-row :gutter="24">
  20. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  21. <a-form-item label="联锁条件">
  22. <a-input placeholder="请输入联锁条件" v-model="queryParam.interlockConditionTag"></a-input>
  23. </a-form-item>
  24. </a-col>
  25. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  26. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  27. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  28. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  29. <a @click="handleToggleSearch" style="margin-left: 8px">
  30. {{ toggleSearchStatus ? '收起' : '展开' }}
  31. <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
  32. </a>
  33. </span>
  34. </a-col>
  35. </a-row>
  36. </a-form>
  37. </div> -->
  38. <!-- 查询区域-END -->
  39. <!-- 操作按钮区域 -->
  40. <!-- <div class="table-operator">
  41. <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
  42. <a-button type="primary" icon="download" @click="handleExportXls('联锁详细信息表')">导出</a-button>
  43. <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  44. <a-button type="primary" icon="import">导入</a-button>
  45. </a-upload> -->
  46. <!-- 高级查询区域 -->
  47. <!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
  48. <a-dropdown v-if="selectedRowKeys.length > 0">
  49. <a-menu slot="overlay">
  50. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  51. </a-menu>
  52. <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
  53. </a-dropdown>
  54. </div> -->
  55. <!-- table区域-begin -->
  56. <div>
  57. <!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  58. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  59. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  60. </div> -->
  61. <a-table
  62. ref="table"
  63. size="middle"
  64. :scroll="{x:true}"
  65. bordered
  66. rowKey="id"
  67. :columns="columns"
  68. :dataSource="dataSource"
  69. :pagination="ipagination"
  70. :loading="loading"
  71. class="j-table-force-nowrap"
  72. @change="handleTableChange">
  73. <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" -->
  74. <!-- 旁路状态 -->
  75. <span slot="bypass" slot-scope="text, record">
  76. <template v-if="record.bypassTag">
  77. <a-tooltip placement="top">
  78. <template slot="title">
  79. {{ record.bypassTag }}
  80. </template>
  81. <span :class="record.bypass === record.bypassYes ? 'normal-tag':'abnormal-tag'">
  82. {{ text }}
  83. </span>
  84. </a-tooltip>
  85. </template>
  86. <template v-else>
  87. <span :class="record.bypass === record.bypassYes ? 'normal-tag':'abnormal-tag'">
  88. {{ text }}
  89. </span>
  90. </template>
  91. <!-- <template v-if="record.bypassTag">
  92. <a-tooltip placement="top">
  93. <template slot="title">
  94. {{ record.bypassTag }}
  95. </template>
  96. {{ text }}
  97. </a-tooltip>
  98. </template>
  99. <template v-else>
  100. {{ text }}
  101. </template> -->
  102. </span>
  103. <!-- 仪表状态 -->
  104. <span slot="instrumentStatus" slot-scope="text, record">
  105. <template v-if="record.instrumentStatusTag">
  106. <a-tooltip placement="top">
  107. <template slot="title">
  108. {{ record.instrumentStatusTag }}
  109. </template>
  110. <span :class="record.instrumentStatus === record.instrumentStatusNormal ? 'normal-tag':'abnormal-tag'">
  111. {{ text }}
  112. </span>
  113. </a-tooltip>
  114. </template>
  115. <template v-else>
  116. <span :class="record.instrumentStatus === record.instrumentStatusNormal ? 'normal-tag':'abnormal-tag'">
  117. {{ text }}
  118. </span>
  119. </template>
  120. </span>
  121. <!-- 输入卡件状态 -->
  122. <span slot="inputStatus" slot-scope="text, record">
  123. <template v-if="record.inputStatusTag">
  124. <a-tooltip>
  125. <template slot="title">
  126. {{ record.inputStatusTag }}
  127. </template>
  128. <span :class="record.inputStatus === record.controlSystemStatusNormal ? 'normal-tag':'abnormal-tag'">
  129. {{ text }}
  130. </span>
  131. </a-tooltip>
  132. </template>
  133. <template v-else>
  134. <span :class="record.inputStatus === record.controlSystemStatusNormal ? 'normal-tag':'abnormal-tag'">
  135. {{ text }}
  136. </span>
  137. </template>
  138. </span>
  139. <!-- 输出卡件状态 -->
  140. <span slot="outputStatus" slot-scope="text, record">
  141. <template v-if="record.outputStatusTag">
  142. <a-tooltip>
  143. <template slot="title">
  144. {{ record.outputStatusTag }}
  145. </template>
  146. <span :class="record.outputStatus === record.controlSystemStatusNormal ? 'normal-tag':'abnormal-tag'">
  147. {{ text }}
  148. </span>
  149. </a-tooltip>
  150. </template>
  151. <template v-else>
  152. <span :class="record.outputStatus === record.controlSystemStatusNormal ? 'normal-tag':'abnormal-tag'">
  153. {{ text }}
  154. </span>
  155. </template>
  156. </span>
  157. <!-- MP状态 -->
  158. <span slot="mpStatus" slot-scope="text, record">
  159. <template v-if="record.mpStatusTag">
  160. <a-tooltip>
  161. <template slot="title">
  162. {{ record.mpStatusTag }}
  163. </template>
  164. <span :class="record.mpStatus === record.controlSystemStatusNormal ? 'normal-tag':'abnormal-tag'">
  165. {{ text }}
  166. </span>
  167. </a-tooltip>
  168. </template>
  169. <template v-else>
  170. <span :class="record.mpStatus === record.controlSystemStatusNormal ? 'normal-tag':'abnormal-tag'">
  171. {{ text }}
  172. </span>
  173. </template>
  174. </span>
  175. <template slot="htmlSlot" slot-scope="text">
  176. <div v-html="text"></div>
  177. </template>
  178. <template slot="imgSlot" slot-scope="text,record">
  179. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  180. <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  181. </template>
  182. <template slot="fileSlot" slot-scope="text">
  183. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  184. <a-button
  185. v-else
  186. :ghost="true"
  187. type="primary"
  188. icon="download"
  189. size="small"
  190. @click="downloadFile(text)">
  191. 下载
  192. </a-button>
  193. </template>
  194. <span slot="action" slot-scope="text, record">
  195. <a @click="handleEdit(record)">编辑</a>
  196. <a-divider type="vertical" />
  197. <a-dropdown>
  198. <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
  199. <a-menu slot="overlay">
  200. <a-menu-item>
  201. <a @click="handleDetail(record)">详情</a>
  202. </a-menu-item>
  203. <a-menu-item>
  204. <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
  205. <a>删除</a>
  206. </a-popconfirm>
  207. </a-menu-item>
  208. </a-menu>
  209. </a-dropdown>
  210. </span>
  211. </a-table>
  212. </div>
  213. <interlock-detail-modal ref="modalForm" @ok="modalFormOk"></interlock-detail-modal>
  214. </a-card>
  215. </div>
  216. </div>
  217. </template>
  218. <script>
  219. import '@/assets/less/TableExpand.less'
  220. import { mixinDevice } from '@/utils/mixin'
  221. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  222. import InterlockDetailModal from './modules/InterlockDetailModal'
  223. import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
  224. import { httpAction, getAction } from '@/api/manage'
  225. export default {
  226. name: 'InterlockDetailList',
  227. mixins:[JeecgListMixin, mixinDevice],
  228. components: {
  229. InterlockDetailModal
  230. },
  231. props: ['currentData'],
  232. data () {
  233. return {
  234. description: '联锁详细信息表管理页面',
  235. // 表头
  236. columns: [
  237. // {
  238. // title: '序号',
  239. // dataIndex: '',
  240. // key:'rowIndex',
  241. // width:60,
  242. // align:"center",
  243. // customRender:function (t,r,index) {
  244. // return parseInt(index)+1;
  245. // }
  246. // },
  247. // {
  248. // title:'联锁总表id',
  249. // align:"center",
  250. // dataIndex: 'summaryid'
  251. // },
  252. {
  253. title:'联锁名称',
  254. align:"center",
  255. dataIndex: 'interlockname',
  256. customRender:function (t,r,index) {
  257. var children = (
  258. <div class="item-node-container">
  259. <div class="item-node-title">
  260. <span class="item-node-name">
  261. <a-tooltip>
  262. <template slot="title">
  263. { r.interlockApparatusName } -- { r.interlockSystemName } -- {r.interlockname}
  264. </template>
  265. <span>
  266. {r.interlockname}
  267. </span>
  268. </a-tooltip>
  269. </span>
  270. </div>
  271. </div>
  272. )
  273. return {
  274. children: [children],
  275. attrs: {rowSpan:r.rowSpan}
  276. };
  277. },
  278. },
  279. // {
  280. // // title:'联锁条件值',
  281. // title:'联锁条件',
  282. // align:"center",
  283. // dataIndex: 'interlockCondition'
  284. // },
  285. {
  286. // title:'联锁条件点位',
  287. title:'联锁条件',
  288. align:"center",
  289. dataIndex: 'interlockCondition',
  290. customRender:(text,record,index)=> {
  291. var interlockCondition = record.interlockSetUnit ? text + record.interlockSetUnit : text
  292. var children = (
  293. <a-tooltip>
  294. <template slot="title">
  295. { record.interlockConditionTag }
  296. </template>
  297. { text }
  298. <span class="primary-tag">
  299. { record.interlockSetUnit ? record.interlockSetUnit : '' }
  300. </span>
  301. </a-tooltip>
  302. )
  303. return children
  304. },
  305. },
  306. {
  307. title:'描述',
  308. align:"center",
  309. dataIndex: 'description'
  310. },
  311. {
  312. title:'逻辑关系',
  313. align:"center",
  314. dataIndex: 'ljgx',
  315. customRender:function (t,r,index) {
  316. return {children: t,attrs: {rowSpan:r.rowSpan2}};
  317. },
  318. },
  319. {
  320. title:'联锁设定值',
  321. align:"center",
  322. dataIndex: 'interlockSetValue',
  323. customRender:function (t,r,index) {
  324. var data = r.interlockSetUnit ? t + r.interlockSetUnit : t
  325. var children = (
  326. <a-tooltip>
  327. { t }
  328. <span class="primary-tag">
  329. { r.interlockSetUnit ? r.interlockSetUnit : '' }
  330. </span>
  331. </a-tooltip>
  332. )
  333. return children
  334. },
  335. },
  336. // {
  337. // title:'当前值',
  338. // align:"center",
  339. // dataIndex: 'currentValue'
  340. // },
  341. {
  342. title:'旁路状态',
  343. align:"center",
  344. dataIndex: 'bypassName',
  345. scopedSlots: { customRender: 'bypass' }
  346. },
  347. {
  348. title:'联锁输出值',
  349. align:"center",
  350. dataIndex: 'interlockOutValue',
  351. customRender:function (t,r,index) {
  352. var children = (
  353. <a-tooltip>
  354. <template slot="title">
  355. { r.interlockOutValueTag }
  356. </template>
  357. { t }
  358. </a-tooltip>
  359. )
  360. return {children: children,attrs: {rowSpan:r.rowSpan3}};
  361. },
  362. },
  363. {
  364. title:'仪表状态',
  365. align:"center",
  366. dataIndex: 'instrumentStatusName',
  367. scopedSlots: { customRender: 'instrumentStatus' }
  368. },
  369. {
  370. title:'输入卡件状态',
  371. align:"center",
  372. dataIndex: 'inputStatusName',
  373. scopedSlots: { customRender: 'inputStatus' }
  374. },
  375. {
  376. title:'输出卡件状态',
  377. align:"center",
  378. dataIndex: 'outputStatusName',
  379. scopedSlots: { customRender: 'outputStatus' }
  380. },
  381. {
  382. title:'MP状态',
  383. align:"center",
  384. dataIndex: 'mpStatusName',
  385. scopedSlots: { customRender: 'mpStatus' }
  386. },
  387. // {
  388. // title: '操作',
  389. // dataIndex: 'action',
  390. // align:"center",
  391. // fixed:"right",
  392. // width:147,
  393. // scopedSlots: { customRender: 'action' }
  394. // }
  395. ],
  396. url: {
  397. list: "/detail/interlockDetail/list2",
  398. delete: "/detail/interlockDetail/delete",
  399. deleteBatch: "/detail/interlockDetail/deleteBatch",
  400. exportXlsUrl: "/detail/interlockDetail/exportXls",
  401. importExcelUrl: "detail/interlockDetail/importExcel",
  402. },
  403. dictOptions:{},
  404. superFieldList:[],
  405. }
  406. },
  407. // watch: {
  408. // currentData: {
  409. // handler(newVal, oldVal){
  410. // console.log(newVal, oldVal)
  411. // this.loadData()
  412. // },
  413. // immediate: true,
  414. // deep: true
  415. // }
  416. // },
  417. created() {
  418. this.queryParam.detailName = sessionStorage.getItem("detail_dname")
  419. this.getSuperFieldList();
  420. },
  421. computed: {
  422. importExcelUrl: function(){
  423. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  424. },
  425. },
  426. methods: {
  427. loadData(arg) {
  428. let that = this
  429. if(!this.url.list){
  430. this.$message.error("请设置url.list属性!")
  431. return
  432. }
  433. //加载数据 若传入参数1则加载第一页的内容
  434. if (arg === 1) {
  435. this.ipagination.current = 1;
  436. }
  437. // if (this.$route.query.summaryid) {
  438. // this.queryParam.summaryid = this.$route.query.summaryid
  439. // }
  440. // this.queryParam.interlockSystemId = this.$route.query.interlockSystemId
  441. var params = this.getQueryParams();//查询条件
  442. // params.summaryid = this.currentData.summaryid
  443. // params.interlockSystemId = this.currentData.interlockSystemId
  444. params.summaryid = sessionStorage.getItem("detail_sid")
  445. params.interlockSystemId = sessionStorage.getItem("detail_isid")
  446. this.loading = true;
  447. getAction(this.url.list, params).then((res) => {
  448. if (res.success) {
  449. //update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
  450. this.dataSource = res.result.records||res.result;
  451. if(res.result.total)
  452. {
  453. // 合并单元格
  454. //判断跨行
  455. let rowSpan = 0
  456. let rowSpan2 = 0
  457. let rowSpan3 = 0
  458. let interlockname = ''
  459. let interlocknamePD = ''
  460. let ljgx = ''
  461. let interlockOutValue = ''
  462. for (let i = that.dataSource.length-1; i >= 0; i--) {
  463. // 联锁名称合并
  464. if (interlockname == '') {
  465. that.dataSource[i].rowSpan = 0
  466. interlockname = that.dataSource[i].interlockname
  467. rowSpan++
  468. } else {
  469. if(interlockname == that.dataSource[i].interlockname){
  470. that.dataSource[i].rowSpan = 0
  471. rowSpan++
  472. }else{
  473. that.dataSource[i+1].rowSpan = rowSpan
  474. that.dataSource[i].rowSpan = 0
  475. rowSpan = 1
  476. interlockname = that.dataSource[i].interlockname
  477. }
  478. }
  479. // 联锁状态合并
  480. if (ljgx == '') {
  481. that.dataSource[i].rowSpan2 = 0
  482. ljgx = that.dataSource[i].ljgx
  483. interlocknamePD = that.dataSource[i].interlockname
  484. rowSpan2++
  485. } else {
  486. if(ljgx == that.dataSource[i].ljgx){
  487. // that.dataSource[i].rowSpan2 = 0
  488. // rowSpan2++
  489. if (interlocknamePD == that.dataSource[i].interlockname) {
  490. that.dataSource[i].rowSpan2 = 0
  491. rowSpan2++
  492. } else {
  493. that.dataSource[i+1].rowSpan2 = rowSpan2
  494. that.dataSource[i].rowSpan2 = 0
  495. rowSpan2 = 1
  496. ljgx = that.dataSource[i].ljgx
  497. interlocknamePD = that.dataSource[i].interlockname
  498. }
  499. }else{
  500. that.dataSource[i+1].rowSpan2 = rowSpan2
  501. that.dataSource[i].rowSpan2 = 0
  502. rowSpan2 = 1
  503. ljgx = that.dataSource[i].ljgx
  504. interlocknamePD = that.dataSource[i].interlockname
  505. }
  506. }
  507. // 回路健康级别合并
  508. if (interlockOutValue === '') {
  509. // console.log('第一层')
  510. that.dataSource[i].rowSpan3 = 0
  511. interlockOutValue = that.dataSource[i].interlockOutValue
  512. interlocknamePD = that.dataSource[i].interlockname
  513. rowSpan3++
  514. } else {
  515. if(interlockOutValue == that.dataSource[i].interlockOutValue){
  516. // console.log(99,i,interlocknamePD,that.dataSource[i+1].interlockname)
  517. if (interlocknamePD == that.dataSource[i+1].interlockname) {
  518. // console.log(11111)
  519. that.dataSource[i].rowSpan3 = 0
  520. rowSpan3++
  521. } else {
  522. // console.log(22222)
  523. that.dataSource[i+1].rowSpan3 = rowSpan3
  524. that.dataSource[i].rowSpan3 = 0
  525. rowSpan3 = 1
  526. interlockOutValue = that.dataSource[i].interlockOutValue
  527. interlocknamePD = that.dataSource[i].interlockname
  528. }
  529. }else{
  530. // console.log('第二层else')
  531. that.dataSource[i+1].rowSpan3 = rowSpan3
  532. that.dataSource[i].rowSpan3 = 0
  533. rowSpan3 = 1
  534. interlockOutValue = that.dataSource[i].interlockOutValue
  535. interlocknamePD = that.dataSource[i].interlockname
  536. }
  537. }
  538. }
  539. that.dataSource[0].rowSpan = rowSpan
  540. that.dataSource[0].rowSpan2 = rowSpan2
  541. that.dataSource[0].rowSpan3 = rowSpan3
  542. this.ipagination.total = res.result.total;
  543. }else{
  544. this.ipagination.total = 0;
  545. }
  546. //update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
  547. }else{
  548. this.$message.warning(res.message)
  549. }
  550. }).finally(() => {
  551. this.loading = false
  552. })
  553. },
  554. goBack(){
  555. // this.$emit('click')
  556. this.$router.push({path: "/interLock/summary"});
  557. },
  558. initDictConfig(){
  559. },
  560. getSuperFieldList(){
  561. let fieldList=[];
  562. fieldList.push({type:'string',value:'summaryid',text:'联锁总表id',dictCode:''})
  563. fieldList.push({type:'string',value:'interlockname',text:'联锁名称',dictCode:''})
  564. fieldList.push({type:'string',value:'interlockCondition',text:'联锁条件',dictCode:''})
  565. fieldList.push({type:'string',value:'interlockConditionTag',text:'联锁条件点位',dictCode:''})
  566. fieldList.push({type:'string',value:'description',text:'描述',dictCode:''})
  567. fieldList.push({type:'string',value:'deviceId',text:'设备id',dictCode:''})
  568. fieldList.push({type:'string',value:'moduleName',text:'模块名称',dictCode:''})
  569. fieldList.push({type:'string',value:'instrumentStatus',text:'仪表状态',dictCode:''})
  570. fieldList.push({type:'string',value:'instrumentStatusJuge',text:'仪表状态判断方式',dictCode:'instrument_status_juge'})
  571. fieldList.push({type:'string',value:'instrumentStatusTag',text:'仪表状态点位',dictCode:''})
  572. fieldList.push({type:'string',value:'instrumentStatusValue',text:'仪表状态值',dictCode:''})
  573. fieldList.push({type:'string',value:'ysmnlTag',text:'原始模拟量位号',dictCode:''})
  574. fieldList.push({type:'string',value:'ysmnlValue',text:'原始模拟量值',dictCode:''})
  575. fieldList.push({type:'string',value:'upperLimit',text:'高限',dictCode:''})
  576. fieldList.push({type:'string',value:'lowerLimit',text:'低限',dictCode:''})
  577. fieldList.push({type:'string',value:'thresholdValue',text:'阈值',dictCode:''})
  578. fieldList.push({type:'string',value:'thresholdTime',text:'时间',dictCode:''})
  579. fieldList.push({type:'string',value:'thresholdTimeUnit',text:'时间单位',dictCode:''})
  580. fieldList.push({type:'string',value:'interlockSetValue',text:'联锁设定值',dictCode:''})
  581. fieldList.push({type:'string',value:'interlockSetTag',text:'联锁设定值点位',dictCode:''})
  582. fieldList.push({type:'string',value:'currentValue',text:'当前值',dictCode:''})
  583. fieldList.push({type:'string',value:'currentValueTag',text:'当前值位号',dictCode:''})
  584. fieldList.push({type:'string',value:'ifBypass',text:'是否旁路',dictCode:''})
  585. fieldList.push({type:'string',value:'ifBypassTag',text:'旁路状态点位',dictCode:''})
  586. fieldList.push({type:'string',value:'inputStatus',text:'输入卡件状态',dictCode:''})
  587. fieldList.push({type:'string',value:'inputStatusTag',text:'输入卡件状态点位',dictCode:''})
  588. fieldList.push({type:'string',value:'outputStatus',text:'输出卡件状态',dictCode:''})
  589. fieldList.push({type:'string',value:'outputStatusTag',text:'输出卡件状态点位',dictCode:''})
  590. fieldList.push({type:'string',value:'mpStatus',text:'MP状态',dictCode:''})
  591. fieldList.push({type:'string',value:'mpStatusTag',text:'状态点位',dictCode:''})
  592. fieldList.push({type:'Text',value:'remark',text:'备注',dictCode:''})
  593. this.superFieldList = fieldList
  594. }
  595. }
  596. }
  597. </script>
  598. <style scoped>
  599. @import '~@assets/less/common.less';
  600. </style>
  601. <style lang="less" scoped>
  602. .item-node-title {
  603. width: 90%;
  604. }
  605. .item-node-name{
  606. padding-left: 8px;
  607. width: 90%;
  608. display: inline-block;
  609. white-space: nowrap;
  610. overflow: hidden; /*超出的文本隐藏*/
  611. text-overflow: ellipsis; /* 溢出用省略号*/
  612. vertical-align: top; //设置基准线,解决display inline-block造成的错位问题
  613. }
  614. </style>