| | |
| | | <div class="testbox"> |
| | | <div> |
| | | <el-button plain size="small" type="primary" @click="addvisible = true" |
| | | >增加 |
| | | >增加 |
| | | </el-button> |
| | | <el-button plain size="small" type="primary" @click="editHandler" |
| | | >编辑 |
| | | >编辑 |
| | | </el-button> |
| | | <el-button plain size="small" type="primary" @click="openBatchImport('batchImportApply')">批量导入申请</el-button> |
| | | <el-button plain size="small" type="primary" @click="openBatchImport('historyImport')">历史数据导入</el-button> |
| | |
| | | <el-button plain size="small" type="primary">查看流程历史</el-button> |
| | | <el-button plain size="small" type="primary">删除</el-button> |
| | | <el-button plain size="small" type="primary" @click="setHandler" |
| | | >发布</el-button |
| | | >发布</el-button |
| | | > |
| | | <el-button plain size="small" type="primary" @click="DataChange" |
| | | >数据更改</el-button |
| | | >数据更改</el-button |
| | | > |
| | | <el-button plain size="small" type="primary" @click="huishouHandler" |
| | | >回收</el-button |
| | | >回收</el-button |
| | | > |
| | | <el-button plain size="small" type="primary" @click="openD" |
| | | >导出 |
| | | >导出 |
| | | </el-button> |
| | | <el-button plain size="small" type="primary" @click="findHandler" |
| | | >查询 |
| | | >查询 |
| | | </el-button> |
| | | <el-button plain size="small" type="primary" @click="similarHandler" |
| | | >相似项查询</el-button |
| | | >相似项查询</el-button |
| | | > |
| | | <el-button plain size="small" type="primary">刷新</el-button> |
| | | <el-input |
| | |
| | | :label="item.label" |
| | | :prop="item.prop" |
| | | :sortable="item.sortable" |
| | | :formatter="formatBoolean" |
| | | :formatter="item.formatter" |
| | | :width="item.label.length >=4 ?'150':item.label.length==3 ?'120':'90'" |
| | | :show-overflow-tooltip="true" |
| | | align="center" |
| | |
| | | import SetPersonnel from "@/components/template/SetPersonnel"; |
| | | import ResembleQueryDialog from "@/components/FormTemplate/ResembleQueryDialog.vue"; |
| | | import BatchImport from '@/components/BatchImport' |
| | | import { validatenull } from "@/util/validate"; |
| | | export default { |
| | | components: { |
| | | integrationTransfer, |
| | |
| | | code: "", |
| | | type: "PUBLIC", |
| | | template: "", |
| | | vars:{ |
| | | codeClassifyOid:"" |
| | | } |
| | | }, |
| | | visibleFlow: false, |
| | | transferData: [], |
| | |
| | | this.doLayout(); |
| | | }, |
| | | watch: { |
| | | tableHeadDataFateher:{ |
| | | tableHeadDataFateher:{ |
| | | handler(newval,oldval){ |
| | | this.options=newval.tableDefineVO.seniorQueryColumns |
| | | } |
| | |
| | | codeClassifyOid: { |
| | | handler(newval, oldval) { |
| | | this.codeClassifyOid = newval; |
| | | this.parameter.vars.codeClassifyOid=newval |
| | | }, |
| | | deep: true, |
| | | }, |
| | |
| | | }, |
| | | tableHeadFindData: { |
| | | handler(newval, oldval) { |
| | | newval.forEach((record,_index) =>{ |
| | | if(record.field == 'id' && validatenull(record.templet)){ |
| | | //企业编码的默认添加超链接,暂未实现 |
| | | record.formatter = ''; |
| | | }else { |
| | | if (record.templet && typeof (record.templet) == 'string' && !validatenull(record.templet) && record.templet.indexOf("function(row,column)")>-1) { |
| | | record.formatter = eval("(" + record.templet + ")"); |
| | | //function(row,column){return row[column.property]=='true' || row[column.property]=='1'?'是':'否'} |
| | | }else if(record.fieldType=="truefalse"){ |
| | | record.formatter = function(row,column){return row[column.property]=='true' || row[column.property]=='1'?'是':'否'} |
| | | } |
| | | } |
| | | }) |
| | | this.tableHeadFindDatas = newval; |
| | | }, |
| | | }, |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | // 转换数据true和false |
| | | formatBoolean(row, column) { |
| | | if (column.property === "xiaoshouwl" |
| | | ||column.property === "shifoupihaoguanli" |
| | | ||column.property === "caigouwl" |
| | | ||column.property === "kucunwl" |
| | | ||column.property === "passing") { |
| | | return row[column.property] =='true'? "是" : "否"; |
| | | } |
| | | return row[column.property]; |
| | | }, |
| | | // 发布 |
| | | setHandler() { |
| | | if (this.selectRow.length <= 0) { |
| | |
| | | this.$message.warning("编码状态不是“编辑中”,不可编辑"); |
| | | } else { |
| | | this.editvisible = true; |
| | | this.rowOid = this.selectRow[0]['oid'] |
| | | } |
| | | }, |
| | | //高级查询按钮 |