| | |
| | | <avue-tree ref="tree" v-model="CloneTreeAvueform" v-loading="loading" :data="Treedata" :defaultExpandAll="false" |
| | | :option="Treeoption" style="width: fit-content;" @node-click="nodeClick"> |
| | | <template slot-scope="{ node }"> |
| | | <span id="labelSize" v-html="node.label" ></span> |
| | | <el-tooltip class="item" effect="dark" open-delay="350" :content="$createElement('div', { domProps: { innerHTML: node.label } })" placement="right-start"> |
| | | <span id="labelSize" v-html="node.label" ></span> |
| | | </el-tooltip> |
| | | </template> |
| | | </avue-tree> |
| | | <div style="position: absolute; right: 3px; top: -1px;"> |
| | |
| | | :width="item.width" |
| | | align="center"> |
| | | </el-table-column> |
| | | <!-- 参照数据--> |
| | | <!-- <el-table-column v-for="(item,index) in referArray"--> |
| | | <!-- v-if="item.referConfig && Object.keys(item.referConfig).length > 0 && !item.hidden"--> |
| | | <!-- :key="index"--> |
| | | <!-- :label="item.title" :show-overflow-tooltip="true"--> |
| | | <!-- :sortable="item.sortable" :width="item.width" align="center"--> |
| | | <!-- :prop="item.prop">--> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <span>{{ scope.row[item.showField] }}</span>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | </el-table> |
| | | </div> |
| | | </el-row> |
| | |
| | | datetime: "datetime", |
| | | }, |
| | | tableData: [], |
| | | tableHeight: 'calc(100vh - 350px)', |
| | | tableHeight: 'calc(100vh - 300px)', |
| | | DataVisible: false, |
| | | tableHeadData: [], |
| | | items: {}, |
| | |
| | | }, |
| | | // 主数据按钮 |
| | | masterVrBtnList: [], |
| | | fileOptions: { |
| | | ownbizOid: "0", |
| | | ownbizBtm: "0", |
| | | fileDocClassify: '!=processAuditSuggest', |
| | | fileDocClassifyName: '', |
| | | hasDownload: true, |
| | | hasUpload: true, |
| | | height: 110 |
| | | }, |
| | | fileOptions:{}, |
| | | result: '', |
| | | elapsedTime: '', |
| | | }; |
| | |
| | | this.tableData = newval; |
| | | this.searchResults = newval |
| | | this.doLayout(); |
| | | this.fileOptions= { |
| | | ownbizOid: "0", |
| | | ownbizBtm: "0", |
| | | fileDocClassify: '!=processAuditSuggest', |
| | | fileDocClassifyName: '', |
| | | hasDownload: true, |
| | | hasUpload: true, |
| | | height: 'auto' |
| | | } |
| | | }, |
| | | }, |
| | | tableHeadFindData: { |
| | |
| | | this.tableHeight = 'calc(100vh - 630px)'; |
| | | this.$refs.dataTable.doLayout() |
| | | } else { |
| | | this.tableHeight = 'calc(100vh - 350px)'; |
| | | this.tableHeight = 'calc(100vh - 310px)'; |
| | | this.$refs.dataTable.doLayout() |
| | | } |
| | | }, |
| | |
| | | |
| | | .top { |
| | | overflow-y: scroll; |
| | | min-height: 55%; |
| | | min-height: 40%; |
| | | } |
| | | |
| | | .bottom { |
| | |
| | | const regex = new RegExp(this.rulesData.ruleRowBds); |
| | | if (regex.test(this.RulesForm.TestContent)) { |
| | | this.$message.success('校验成功') |
| | | }else { |
| | | this.$message.error('校验失败') |
| | | } |
| | | }, |
| | | //点击分类注入按钮 |
| | | injectBtn() { |
| | | if (this.attrSelectList.length > 1) { |
| | | this.$message.warning('只能选择一条模板数据') |
| | | } else if (this.attrSelectList.length < 1) { |
| | | return; |
| | | } |
| | | if (this.attrSelectList.length < 1) { |
| | | this.$message.warning('请选择一条模板数据') |
| | | } else if (this.attrSelectList.length === 1) { |
| | | return;; |
| | | } |
| | | if (this.attrSelectList.length === 1) { |
| | | this.injectVisible = true; |
| | | return; |
| | | } |
| | | }, |
| | | //分类注入保存 |
| | |
| | | hasDel:validatenull(this.options.hasDel) ? true :this.options.hasDel, |
| | | hasDownload:validatenull(this.options.hasDownload) ? true :this.options.hasDownload, |
| | | option: { |
| | | height:(this.options.tableHeight?this.options.tableHeight:'400'), |
| | | height:(this.options.tableHeight?this.options.tableHeight:'300'), |
| | | calcHeight: 30, |
| | | tip: false, |
| | | searchShow: false, |
| | |
| | | page: { |
| | | total: 0, |
| | | currentPage: 1, |
| | | pageSize: 100, |
| | | pageSize: 10, |
| | | pageSizes: [10, 30, 50, 100, 200], |
| | | }, |
| | | pageSize: "100", |
| | |
| | | size="small" |
| | | icon="el-icon-refresh" |
| | | v-if="permissionList.state" |
| | | @click.stop="handleState(scope.row,scope.index)">变更状态 |
| | | @click.stop="handleDoState(scope.row,scope.index)">{{scope.row.suspensionState===1?'激活':'挂起'}} |
| | | </el-button> |
| | | <el-button type="text" |
| | | size="small" |
| | |
| | | this.stateBox = true; |
| | | this.selectionId = row.id; |
| | | }, |
| | | handleDoState() { |
| | | if (!this.flowState) { |
| | | this.$message({ |
| | | type: "warn", |
| | | message: "请先选择流程状态!" |
| | | }); |
| | | return; |
| | | } |
| | | changeState({processId: this.selectionId, state: this.flowState}).then(res => { |
| | | handleDoState(row) { |
| | | // if (!this.flowState) { |
| | | // this.$message({ |
| | | // type: "warn", |
| | | // message: "请先选择流程状态!" |
| | | // }); |
| | | // return; |
| | | // } |
| | | changeState({processId: row.id, state: (row.suspensionState === 1 ? 'suspend' : 'active')}).then(res => { |
| | | const data = res.data; |
| | | if (data.success) { |
| | | this.$message({ |