| | |
| | | } |
| | | |
| | | //UI上下文列表查询 |
| | | export const getList = (current, size, params) => { |
| | | export const getList = (current, size, params,url) => { |
| | | let formData = new FormData() |
| | | for(let key in params){ |
| | | formData.append(key.replaceAll('"',''),params[key]) |
| | |
| | | formData.append("page",current) |
| | | formData.append("limit",size) |
| | | return request({ |
| | | url: '/api/uiDataController/dataGridQuery', |
| | | url: url||'/api/uiDataController/dataGridQuery', |
| | | method: 'post', |
| | | emulateJSON:true, |
| | | headers:{"Content-Type": "application/text"}, |
| | |
| | | } |
| | | |
| | | //UI上下文树查询 |
| | | export const getTree = (parentOid,parentBtmName, params) => { |
| | | export const getTree = (parentOid,parentBtmName, params,url) => { |
| | | let formData = new FormData() |
| | | for(let key in params){ |
| | | formData.append(key.replaceAll('"',''),params[key]) |
| | |
| | | formData.append("parentBtmName",parentBtmName) |
| | | formData.append("parentBtmType",parentBtmName) |
| | | return request({ |
| | | url: '/api/uiDataController/getDataForTree', |
| | | url: url||'/api/uiDataController/getDataForTree', |
| | | method: 'post', |
| | | headers:{"Content-Type": "application/text"}, |
| | | data: formData |
| | |
| | | :size="scope.size"></el-button> |
| | | </el-tooltip> |
| | | </template> |
| | | <template #icon="{ row }"> |
| | | <i :class="'iconfont '+row.icon"> </i> |
| | | </template> |
| | | </avue-crud> |
| | | </div> |
| | | </template> |
| | |
| | | if (!value) return true; |
| | | return data[this.defaultProps.label].indexOf(value) !== -1; |
| | | }, |
| | | sourceDataMap: function () {debugger; |
| | | sourceDataMap: function () { |
| | | const sourceDataMap = {}; |
| | | if (Object.keys(this.sourceData).length > 0) { |
| | | if (this.sourceData.oid) { |
| | |
| | | } |
| | | return sourceDataMap; |
| | | }, |
| | | getParams: function () {debugger; |
| | | getParams: function () { |
| | | let parentFieldName = ""; |
| | | if (this.componentVO.treeDefineVO.showLinkAbs) { |
| | | parentFieldName = this.componentVO.treeDefineVO.showLinkAbs.split(",")[0]; |
| | | } |
| | | const queryTemplate=this.sourceData.querytemplate || this.paramVOS.querytemplate; |
| | | const linkTypeFlag=this.sourceData.queryType==0?false:(!validatenull(this.sourceData.linkType)?true:(this.paramVOS.querytype==0?false:true)); |
| | | const linkTypeFlag=this.sourceData.querytype==0?false:(!validatenull(this.sourceData.linktype)?true:(this.paramVOS.querytype==0?false:true)); |
| | | const treeParams = { |
| | | queryAllLevel: !this.lazy, |
| | | loadType: this.componentVO.treeDefineVO.loadType, |
| | |
| | | <el-form-item label="类型名称:" prop="id"> |
| | | <el-input v-model="form.id" :readOnly="title === 'edit'"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="标签:"> |
| | | <el-input v-model="form.name"></el-input> |
| | | </el-form-item> |
| | | <el-row :span="24"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="标签:"> |
| | | <el-input v-model="form.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="图标:"> |
| | | <avue-input-icon v-model="form.icon" :icon-list="iconList" placeholder="请选择图标"> |
| | | </avue-input-icon> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form-item label="继承自:"> |
| | | <avue-input-tree :disabled="title === 'add'" |
| | | v-model="form.fName" |
| | |
| | | import func from "@/util/func"; |
| | | import {getUsedVersionRuleList, getVersionRuleAllList} from "@/api/modeling/version/api"; |
| | | import {gridLifeCycle} from "@/api/modeling/lifeCycle/api"; |
| | | import iconList from "@/config/iconList"; |
| | | |
| | | export default { |
| | | name: "index", |
| | | data() { |
| | | return { |
| | | iconList: iconList, |
| | | indexLoading: false, |
| | | indexFormRead: false, |
| | | indexAttrRow: {}, |