| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- import { downloadFileByUrl } from "@/util/util";
- export default {
- height: "auto",
- calcHeight: 30,
- tip: false,
- searchShow: true,
- searchMenuSpan: 6,
- border: true,
- index: true,
- selection: true,
- addBtn: true,
- delBtn: true,
- labelWidth: 110,
- menuWidth: 140,
- dialogClickModal: false,
- dialogWidth: 520,
- dialogType: "drawer",
- column: [
- {
- label: "软件名称",
- prop: "rjmc",
- span: 24,
- minWidth: 160,
- search: true,
- showOverflowTooltip: true,
- rules: [
- {
- required: true,
- message: "请输入软件名称",
- trigger: "blur",
- },
- ],
- },
- {
- label: "软件简称",
- prop: "rjjc",
- span: 24,
- search: true,
- width: 120,
- align: "center",
- showOverflowTooltip: true,
- },
- {
- label: "版本号",
- prop: "bbh",
- span: 24,
- search: true,
- width: 80,
- align: "center",
- showOverflowTooltip: true,
- },
- {
- label: "登记号",
- prop: "djh",
- span: 24,
- width: 100,
- search: true,
- align: "center",
- showOverflowTooltip: true,
- },
- {
- label: "开发完成日期",
- prop: "kfwcrq",
- type: "date",
- valueFormat: 'yyyy-MM-dd',
- span: 24,
- width: 100,
- search: true,
- align: "center",
- showOverflowTooltip: true,
- rules: [
- {
- required: true,
- message: "请选择开发完成时间",
- trigger: "blur",
- },
- ],
- },
- {
- label: "首次发布日期",
- prop: "scfbrq",
- type: "date",
- valueFormat: 'yyyy-MM-dd',
- span: 24,
- width: 95,
- align: "center",
- search: true,
- showOverflowTooltip: true,
- rules: [
- {
- required: true,
- message: "请选择首次发布日期",
- trigger: "blur",
- },
- ],
- },
- {
- label: "登记批准日期",
- prop: "djpzrq",
- type: "date",
- valueFormat: 'yyyy-MM-dd',
- align: "center",
- span: 24,
- width: 95,
- search: true,
- showOverflowTooltip: true,
- },
- {
- label: "取得方式",
- prop: "qdfs",
- type: "select",
- span: 24,
- width: 75,
- align: "center",
- search: true,
- dicUrl: "/api/kd-system/dict/dictionary?code=rjzzqdfs",
- props: {
- label: "dictValue",
- value: "dictKey",
- },
- showOverflowTooltip: true,
- rules: [
- {
- required: true,
- message: "请选择取得方式",
- trigger: "change",
- },
- ],
- },
- {
- label: "关联研发项目情况",
- prop: "canyunZhuchi",
- align: 'center',
- children: [
- {
- label: "研发项目名称",
- prop: 'xmId',
- width: 120,
- span: 24,
- hide: true,
- // rules: [
- // {
- // required: true,
- // message: "请选择项目",
- // trigger: "blur",
- // },
- // ],
- },
- {
- label: "研发项目名称",
- prop: 'xmmc',
- width: 120,
- search: true,
- showOverflowTooltip: true,
- display: false
- },
- {
- label: "研发项目编号",
- prop: 'xmbh',
- width: 100,
- align: 'center',
- search: true,
- showOverflowTooltip: true,
- display: false
- },
- ],
- },
- {
- label: "附件信息",
- prop: "attachment",
- minWidth: 200,
- type: "upload",
- multiple: true,
- span: 24,
- dataType: "object",
- action: '/api/kd-resource/oss/endpoint/put-file',
- uploadPreview: (file, column, done) => {
- downloadFileByUrl(file.url, file.name);
- return;
- },
- propsHttp: {
- url: "link",
- name: "originalName",
- res: "data",
- },
- showOverflowTooltip: true,
- },
- ],
- };
|