| | |
| | | </el-dialog> |
| | | <avue-tabs :option="tabsOption" @change="tabsHandleChange" style="margin-top: 30px;" v-if="isShowTabs"></avue-tabs> |
| | | <avue-form v-if="tabsType == 'tab1'" :option="tabsFormOption" v-model="tabsForm"></avue-form> |
| | | <span v-else-if="tabsType == 'tab2'">版本信息</span> |
| | | <!--<span v-else-if="tabsType == 'tab2'">版本信息</span>--> |
| | | <template v-else-if="tabsType == 'tab3'"> |
| | | <div v-html="convertToHtml(fileContent)" class="convertToHtml"></div> |
| | | </template> |
| | |
| | | icon: 'el-icon-info', |
| | | label: '节点信息', |
| | | prop: 'tab1', |
| | | }, { |
| | | }/*, { |
| | | icon: 'el-icon-warning', |
| | | label: '版本信息', |
| | | prop: 'tab2', |
| | | }] |
| | | }*/] |
| | | }, |
| | | tabsOption2: { |
| | | column: [{ |
| | | icon: 'el-icon-info', |
| | | label: '节点信息', |
| | | prop: 'tab1', |
| | | }, { |
| | | },/* { |
| | | icon: 'el-icon-warning', |
| | | label: '版本信息', |
| | | prop: 'tab2', |
| | | }, { |
| | | }, */{ |
| | | icon: 'el-icon-warning', |
| | | label: '文件内容', |
| | | prop: 'tab3' |
| | |
| | | prop: 'createTime', |
| | | disabled: true, |
| | | placeholder: " " |
| | | }, |
| | | },/* |
| | | { |
| | | label: '节点描述', |
| | | prop: 'description', |
| | | disabled: true, |
| | | placeholder: " " |
| | | }, |
| | | },*/ |
| | | { |
| | | label: '修改时间', |
| | | prop: 'updateTime', |
| | | disabled: true, |
| | | placeholder: " " |
| | | }, |
| | | }/*, |
| | | { |
| | | label: '备注', |
| | | prop: 'remark', |
| | | disabled: true, |
| | | placeholder: " " |
| | | } |
| | | }*/ |
| | | ] |
| | | }, |
| | | tabsForm: {}, |
| | |
| | | return ''; |
| | | } |
| | | } |
| | | }, |
| | | },/* |
| | | { |
| | | label: '版次', |
| | | prop: 'processEdition', |
| | |
| | | { |
| | | label: '描述', |
| | | prop: 'abc' |
| | | }, |
| | | },*/ |
| | | { |
| | | label: '类型', |
| | | prop: 'nodeTypeName' |
| | | }, |
| | | },/* |
| | | { |
| | | label: '设备', |
| | | prop: 'machineCode' |
| | | }, |
| | | |
| | | */ |
| | | { |
| | | label: '锁定状态', |
| | | prop: 'isLocked', |
| | |
| | | //非程序节点 |
| | | return ''; |
| | | }else{ |
| | | if(value==0||value==null){ |
| | | if(value==0||value==-1){ |
| | | return '未启动'; |
| | | }else if(value == 1){ |
| | | return '审批中'; |
| | | }else if(value == 2){ |
| | | return '已通过'; |
| | | }else{ |
| | | return '未定义'; |
| | | return ''; |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | },/* |
| | | { |
| | | label: '测试程序', |
| | | prop: 'abc' |
| | | }, |
| | | },*/ |
| | | { |
| | | label: '创建人', |
| | | prop: 'createUserName', |
| | | width: '180' |
| | | }, |
| | | { |
| | | label: '创建时间', |
| | | prop: 'createTime', |
| | | width: '180' |
| | | } |
| | | ], |
| | | }, |