|
@@ -695,16 +695,31 @@
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
<el-col :span="24" class="btn">
|
|
|
+ <el-button type="primary" @click="previewBtn()">信息预览</el-button>
|
|
|
<el-button @click="draftBtn('form')">保存草稿</el-button>
|
|
|
- <el-button type="primary" @click="submitBtn('form')">信息发布</el-button>
|
|
|
+ <el-button type="success" @click="submitBtn('form')">信息发布</el-button>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <el-dialog title="信息预览" :visible.sync="dialogVisible" width="50%" :before-close="handleClose">
|
|
|
+ <span v-if="type == '0'">
|
|
|
+ <techDetail :detailInfo="detailInfo" :displayBtn="displayBtn"></techDetail>
|
|
|
+ </span>
|
|
|
+ <span v-else-if="type == '1'">
|
|
|
+ <achiDetail :detailInfo="detailInfo" :displayBtn="displayBtn"></achiDetail>
|
|
|
+ </span>
|
|
|
+ <span v-else>
|
|
|
+ <busiDetail :detailInfo="detailInfo" :displayBtn="displayBtn"></busiDetail>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import techDetail from '@/views/market/detail/techDetail.vue';
|
|
|
+import achiDetail from '@/views/market/detail/achiDetail.vue';
|
|
|
+import busiDetail from '@/views/market/detail/busiDetail.vue';
|
|
|
import _ from 'lodash';
|
|
|
import upload from '@/components/upload.vue';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
@@ -716,6 +731,9 @@ export default {
|
|
|
},
|
|
|
components: {
|
|
|
upload,
|
|
|
+ techDetail,
|
|
|
+ achiDetail,
|
|
|
+ busiDetail,
|
|
|
},
|
|
|
data: function() {
|
|
|
return {
|
|
@@ -732,6 +750,12 @@ export default {
|
|
|
// 合作方式
|
|
|
cooperationList: [],
|
|
|
type: '0',
|
|
|
+ // 信息预览
|
|
|
+ dialogVisible: false,
|
|
|
+ // 显示按钮
|
|
|
+ displayBtn: false,
|
|
|
+ // 信息显示
|
|
|
+ detailInfo: {},
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -760,6 +784,15 @@ export default {
|
|
|
handleClick(tab) {
|
|
|
this.$set(this, `type`, tab.index);
|
|
|
},
|
|
|
+ // 信息预览
|
|
|
+ previewBtn() {
|
|
|
+ this.form.type = this.type;
|
|
|
+ this.dialogVisible = true;
|
|
|
+ this.$set(this, `detailInfo`, this.form);
|
|
|
+ },
|
|
|
+ handleClose() {
|
|
|
+ this.dialogVisible = false;
|
|
|
+ },
|
|
|
// 草稿
|
|
|
draftBtn() {
|
|
|
this.form.type = this.type;
|