| | |
| | | @ok="handleSubmit" |
| | | > |
| | | <div> |
| | | <a-alert |
| | | v-if="showAlert" |
| | | :message="message" |
| | | :description="description" |
| | | type="info" |
| | | show-icon |
| | | /> |
| | | <BasicTable @register="registerTable" @edit-change="onEditChange"> |
| | | <template #toolbar> |
| | | <a-button @click="openImg" type="primary"> 预览 </a-button> |
| | |
| | | import { isNullOrEmpty, isNullOrUnDef } from '/@/utils/is'; |
| | | import { CustModalParams } from '/@/api/tigerapi/model/systemModel'; |
| | | import { EntityCustFunctionType } from '/@/api/tigerapi/model/basModel'; |
| | | import { Alert } from 'ant-design-vue'; |
| | | |
| | | const AAlert = Alert; |
| | | const { t } = useI18n(); |
| | | const title = ref(''); |
| | | const tableName = ref(''); |
| | |
| | | const entityName = ref(''); |
| | | const ctype = ref(''); |
| | | const others = ref({}); |
| | | const showAlert = ref(false); |
| | | const message = ref(''); |
| | | const description = ref(''); |
| | | |
| | | //列表 |
| | | const ItemColumns = ref([] as BasicColumn[]); |
| | |
| | | } |
| | | } |
| | | }); |
| | | if(isNullOrEmpty(path)){ |
| | | path = dataSource.filter((q) => isNullOrEmpty(q.WORK_ORDER) || isNullOrEmpty(q.PROD_CODE))[0].LABEL_VIEW_PATH; |
| | | if (isNullOrEmpty(path)) { |
| | | path = dataSource.filter((q) => isNullOrEmpty(q.WORK_ORDER) || isNullOrEmpty(q.PROD_CODE))[0] |
| | | .LABEL_VIEW_PATH; |
| | | } |
| | | createImgPreview({ |
| | | imageList: [path], |
| | |
| | | entityName.value = data?.entityName; |
| | | ctype.value = data?.ctype; |
| | | others.value = data?.others; |
| | | showAlert.value = data?.alertConfig.showAlert; |
| | | message.value = data?.alertConfig.message; |
| | | description.value = data?.alertConfig.description; |
| | | // getForm().resetFields(); |
| | | /* 动态import实体名.ts的自定义方法 */ |
| | | try { |
| | |
| | | try { |
| | | const data = cloneDeep(record.editValueRefs); |
| | | console.log(data); |
| | | //TODO 此处将数据提交给服务器保存 |
| | | |
| | | const [{ CustFunc }] = isNullOrUnDef(custImport.value['default']) |
| | | ? EntityCustFunction.value |
| | | : custImport.value['default'](); |