|
@@ -2,7 +2,7 @@
|
|
|
<div id="index">
|
|
|
<el-row>
|
|
|
<el-col :span="24" class="main">
|
|
|
- <el-col :span="24" class="leftTop"> <span>|</span> <span>项目征集管理</span> </el-col>
|
|
|
+ <el-col :span="24" class="leftTop"> <span>|</span> <span>调查调研</span> </el-col>
|
|
|
<el-col :span="24" class="info">
|
|
|
<span v-if="display == 'list'">
|
|
|
<el-col :span="24" class="list">
|
|
@@ -19,8 +19,8 @@
|
|
|
></data-table>
|
|
|
<el-row v-else>
|
|
|
<el-col :span="24" style="text-align:right; padding:15px">
|
|
|
- <el-button type="primary" size="mini" @click="toAdd" style="margin-right:20px">添加</el-button>
|
|
|
- <el-button type="primary" size="mini" @click="tabs = 'first'">返回</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="toAdd" style="margin-right:20px">再次填报</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="tabs = 'first'">返回列表</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<data-table
|
|
@@ -30,6 +30,7 @@
|
|
|
:total="solicTotal"
|
|
|
@query="getSolicList"
|
|
|
@edit="toSolicEdit"
|
|
|
+ @view="toSolicView"
|
|
|
></data-table>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -45,16 +46,13 @@
|
|
|
<el-col :span="24" class="btn">
|
|
|
<el-button type="primary" size="mini" @click="back">返回列表</el-button>
|
|
|
</el-col>
|
|
|
- <el-col :span="24" class="title">
|
|
|
- 吉林省科技发展计划高新技术领域项目建议书
|
|
|
- </el-col>
|
|
|
<el-col :span="24" class="form">
|
|
|
<el-tabs v-model="formActive" type="card">
|
|
|
<el-tab-pane label="通知正文" name="first">
|
|
|
<questionInfo :info="info"></questionInfo>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="信息填报" name="second">
|
|
|
- <projectForm :form="form" @resetBtn="back" @onSubmit="onSubmit"></projectForm>
|
|
|
+ <projectForm :form="form" :show="show" @resetBtn="back" @onSubmit="onSubmit"></projectForm>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</el-col>
|
|
@@ -130,12 +128,19 @@ export default {
|
|
|
method: 'edit',
|
|
|
display: i => i.status === '0',
|
|
|
},
|
|
|
+ {
|
|
|
+ label: '填报详情',
|
|
|
+ method: 'view',
|
|
|
+ display: i => i.status === '1',
|
|
|
+ },
|
|
|
],
|
|
|
// 添加,修改
|
|
|
formActive: 'first',
|
|
|
// 调研调查信息
|
|
|
info: {},
|
|
|
form: {},
|
|
|
+ // 是否显示按钮
|
|
|
+ show: true,
|
|
|
};
|
|
|
},
|
|
|
async created() {
|
|
@@ -156,12 +161,14 @@ export default {
|
|
|
},
|
|
|
toAdd({ data }) {
|
|
|
this.display = 'detail';
|
|
|
+ this.$set(this, 'show', true);
|
|
|
if (data) this.$set(this, 'info', data);
|
|
|
this.form.question_id = _.get(data, '_id', this.info._id);
|
|
|
this.form.user_id = this.user.userid;
|
|
|
},
|
|
|
async toEdit({ data }) {
|
|
|
this.display = 'detail';
|
|
|
+ this.$set(this, 'show', true);
|
|
|
this.$set(this, 'info', data);
|
|
|
},
|
|
|
async toGetList({ data }) {
|
|
@@ -180,6 +187,11 @@ export default {
|
|
|
this.$set(this, 'form', data);
|
|
|
this.display = 'detail';
|
|
|
},
|
|
|
+ toSolicView({ data }) {
|
|
|
+ this.$set(this, 'show', false);
|
|
|
+ this.$set(this, 'form', data);
|
|
|
+ this.display = 'detail';
|
|
|
+ },
|
|
|
// 提交保存
|
|
|
async onSubmit({ data }) {
|
|
|
const dup = _.cloneDeep(data);
|
|
@@ -230,11 +242,6 @@ export default {
|
|
|
text-align: right;
|
|
|
margin: 0 0 10px 0;
|
|
|
}
|
|
|
- .title {
|
|
|
- font-size: 25px;
|
|
|
- margin: 40px 0;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|