|
@@ -5,6 +5,7 @@
|
|
|
v-on="onEvent"
|
|
v-on="onEvent"
|
|
|
v-model="form"
|
|
v-model="form"
|
|
|
:page.sync="page"
|
|
:page.sync="page"
|
|
|
|
|
+ :before-open="handleBeforeOpen"
|
|
|
@on-load="getList"
|
|
@on-load="getList"
|
|
|
>
|
|
>
|
|
|
<template slot="menuLeft">
|
|
<template slot="menuLeft">
|
|
@@ -78,6 +79,19 @@
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
+ <template slot="qlrForm">
|
|
|
|
|
+ <avue-array v-model="form.qlr" placeholder="请输入 权利人"></avue-array>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <template slot="fmrForm">
|
|
|
|
|
+ <avue-array v-model="form.fmr" placeholder="请输入 发明人"></avue-array>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <template slot="canyunZhuchiForm">
|
|
|
|
|
+ <avue-array v-model="form.canyunZhuchi" placeholder="请输入 参与/主持"></avue-array>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<template slot="attachment" slot-scope="{ row }">
|
|
<template slot="attachment" slot-scope="{ row }">
|
|
|
<div v-for="(file, index) of row.attachment" :key="index">
|
|
<div v-for="(file, index) of row.attachment" :key="index">
|
|
|
<el-link type="primary" @click="handleDownFile(file)">{{ file.label }}</el-link>
|
|
<el-link type="primary" @click="handleDownFile(file)">{{ file.label }}</el-link>
|
|
@@ -134,6 +148,20 @@ export default window.$crudCommon({
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ handleBeforeOpen(done, type) {
|
|
|
|
|
+ if (type == 'add') {
|
|
|
|
|
+ this.form = { qlr: [""], fmr: [""], canyunZhuchi: [""] };
|
|
|
|
|
+ } else if (type == 'edit') {
|
|
|
|
|
+ this.form = {
|
|
|
|
|
+ ...this.form,
|
|
|
|
|
+ qlr: this.form.qlr ? this.form.qlr.split(";") : [""],
|
|
|
|
|
+ fmr: this.form.fmr ? this.form.fmr.split(";") : [""],
|
|
|
|
|
+ canyunZhuchi: this.form.canyunZhuchi ? this.form.canyunZhuchi.split(";") : [""],
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+ console.log(this.form)
|
|
|
|
|
+ done();
|
|
|
|
|
+ },
|
|
|
getSearchParams() {
|
|
getSearchParams() {
|
|
|
const newParams = { ...this.params, ...this.extraParams };
|
|
const newParams = { ...this.params, ...this.extraParams };
|
|
|
if (newParams.shouquanRq && newParams.shouquanRq.length) {
|
|
if (newParams.shouquanRq && newParams.shouquanRq.length) {
|
|
@@ -178,7 +206,7 @@ export default window.$crudCommon({
|
|
|
this.getList(this.page);
|
|
this.getList(this.page);
|
|
|
},
|
|
},
|
|
|
getFormData() {
|
|
getFormData() {
|
|
|
- let newFormData = { ...this.form };
|
|
|
|
|
|
|
+ let newFormData = { ...this.form, qlr: this.form.qlr.join(";"), fmr: this.form.fmr.join(";"), canyunZhuchi: this.form.canyunZhuchi.join(";") };
|
|
|
if (!!newFormData.xmId) {
|
|
if (!!newFormData.xmId) {
|
|
|
let projectList = this.$refs.proSelect.projectList;
|
|
let projectList = this.$refs.proSelect.projectList;
|
|
|
let selPro = projectList.find(item => item.id === newFormData.xmId );
|
|
let selPro = projectList.find(item => item.id === newFormData.xmId );
|