|
@@ -127,8 +127,22 @@
|
|
|
<el-table-column label="联系人" align="center" prop="contactsName" />
|
|
|
<el-table-column label="联系方式" align="center" prop="contactsPhone" />
|
|
|
<el-table-column label="项目介绍" align="center" prop="projectIntroduction" />
|
|
|
- <el-table-column label="上报状态" align="center" prop="reportStatus" />
|
|
|
- <el-table-column label="附件url" align="center" prop="url" />
|
|
|
+ <el-table-column label="上报状态" align="center" prop="reportStatus" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>{{scope.row.reportStatus == 0 ? '未上报' : '已上报'}}</div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="附件url" align="center" prop="url" width="120px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div><img class="imjuety" v-if="scope.row.url !== null" :src="scope.row.url" alt="">
|
|
|
+ <img class="imjuety" v-if="scope.row.url == null" src="../../../assets/404_images/weiy.png" alt=""></div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- <el-table-column label="附件url" align="center" prop="url" />
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>{{scope.row.url}}</div>
|
|
|
+ </template>
|
|
|
+ </el-table-column> -->
|
|
|
<!-- <el-table-column label="项目id*" align="center" prop="bmProjectId" />-->
|
|
|
<!-- <el-table-column label="是否删除" align="center" prop="isDel" />-->
|
|
|
<el-table-column label="备注" align="center" prop="remark" />
|
|
@@ -161,7 +175,7 @@
|
|
|
/>
|
|
|
|
|
|
<!-- 添加或修改项目上报对话框 -->
|
|
|
- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
+ <el-dialog :title="title" :visible.sync="open" width="900px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
<el-form-item label="项目名称" prop="projectName">
|
|
|
<el-input v-model="form.projectName" placeholder="请输入项目名称" />
|
|
@@ -179,7 +193,8 @@
|
|
|
<editor v-model="form.projectIntroduction" :min-height="192"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="附件url" prop="url">
|
|
|
- <el-input v-model="form.url" type="textarea" placeholder="请输入内容" />
|
|
|
+ <img class="imjue" v-if="form.url !== null" :src="form.url" alt="">
|
|
|
+ <img class="imjue" v-if="form.url == null" src="../../../assets/404_images/weiy.png" alt="">
|
|
|
</el-form-item>
|
|
|
<el-form-item label="是否删除" prop="isDel">
|
|
|
<el-select v-model="form.isDel" placeholder="请选择是否删除">
|
|
@@ -270,6 +285,7 @@ export default {
|
|
|
this.loading = true;
|
|
|
listReport(this.queryParams).then(response => {
|
|
|
this.reportList = response.rows;
|
|
|
+ console.log(this.reportList)
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
@@ -331,6 +347,7 @@ export default {
|
|
|
const id = row.id || this.ids
|
|
|
getReport(id).then(response => {
|
|
|
this.form = response.data;
|
|
|
+ console.log(this.form.url)
|
|
|
this.open = true;
|
|
|
this.title = "修改项目上报";
|
|
|
});
|
|
@@ -403,3 +420,13 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
+<style>
|
|
|
+ .imjue{
|
|
|
+ width: 200px;
|
|
|
+ height: 200px;
|
|
|
+ }
|
|
|
+ .imjuety{
|
|
|
+ width: 100px;
|
|
|
+ height: 100px;
|
|
|
+ }
|
|
|
+</style>
|