|
@ -6,8 +6,8 @@ |
|
|
:data-source="lists" |
|
|
:data-source="lists" |
|
|
:loading="loading" |
|
|
:loading="loading" |
|
|
:row-key="record => record.id" |
|
|
:row-key="record => record.id" |
|
|
@change="handleTableChange" |
|
|
|
|
|
:scroll="{ y: height }" |
|
|
:scroll="{ y: height }" |
|
|
|
|
|
@change="handleTableChange" |
|
|
bordered |
|
|
bordered |
|
|
class="white" |
|
|
class="white" |
|
|
> |
|
|
> |
|
@ -26,7 +26,7 @@ |
|
|
<!-- 分类管理 --> |
|
|
<!-- 分类管理 --> |
|
|
<!-- <template slot="categoryManage" slot-scope="text, record"> |
|
|
<!-- <template slot="categoryManage" slot-scope="text, record"> |
|
|
<a-button @click="openCategoryManage" size="small" type="primary">仪器分类管理</a-button> |
|
|
<a-button @click="openCategoryManage" size="small" type="primary">仪器分类管理</a-button> |
|
|
</template> --> |
|
|
</template>--> |
|
|
|
|
|
|
|
|
<!-- 研究院类型 --> |
|
|
<!-- 研究院类型 --> |
|
|
<template slot="serviceType" slot-scope="text, record"> |
|
|
<template slot="serviceType" slot-scope="text, record"> |
|
@ -49,9 +49,7 @@ |
|
|
<div slot="expandedRowRender" slot-scope="record" style="margin: 0"> |
|
|
<div slot="expandedRowRender" slot-scope="record" style="margin: 0"> |
|
|
<div>简介: |
|
|
<div>简介: |
|
|
<span v-dompurify-html="record.description"></span></div> |
|
|
<span v-dompurify-html="record.description"></span></div> |
|
|
</div> --> |
|
|
</div>--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div |
|
|
<div |
|
|
class="d-flex flex-nowrap justify-space-between" |
|
|
class="d-flex flex-nowrap justify-space-between" |
|
@ -59,7 +57,10 @@ |
|
|
slot-scope="record" |
|
|
slot-scope="record" |
|
|
style="margin: 0" |
|
|
style="margin: 0" |
|
|
> |
|
|
> |
|
|
<div class="ml-3">分类:<span v-dompurify-html="record.direction"></span></div> |
|
|
<div class="ml-3"> |
|
|
|
|
|
分类: |
|
|
|
|
|
<span v-dompurify-html="record.direction"></span> |
|
|
|
|
|
</div> |
|
|
<div class="ml-3">备注:{{ record.description }}</div> |
|
|
<div class="ml-3">备注:{{ record.description }}</div> |
|
|
</div> |
|
|
</div> |
|
|
</a-table> |
|
|
</a-table> |
|
@ -72,7 +73,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import InstituteEdit from "components/Institute/InstituteEdit.vue"; |
|
|
import InstituteEdit from 'components/Institute/InstituteEdit.vue'; |
|
|
import { deleteInstitute } from 'config/api'; |
|
|
import { deleteInstitute } from 'config/api'; |
|
|
|
|
|
|
|
|
const columns = [ |
|
|
const columns = [ |
|
@ -171,7 +172,7 @@ const columns = [ |
|
|
// ]; |
|
|
// ]; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "InstituteDate", |
|
|
name: 'InstituteDate', |
|
|
components: { |
|
|
components: { |
|
|
InstituteEdit, |
|
|
InstituteEdit, |
|
|
}, |
|
|
}, |
|
@ -186,7 +187,7 @@ export default { |
|
|
height: '', |
|
|
height: '', |
|
|
editVisible: false, |
|
|
editVisible: false, |
|
|
imgVisible: false, |
|
|
imgVisible: false, |
|
|
} |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
mounted() { |
|
|
mounted() { |
|
@ -202,23 +203,23 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
showEditModal(){ |
|
|
showEditModal() { |
|
|
this.editVisible = true; |
|
|
this.editVisible = true; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async closeModal(){ |
|
|
async closeModal() { |
|
|
this.editVisible = false; |
|
|
this.editVisible = false; |
|
|
await this.$emit('getInstituteSearchBack'); |
|
|
await this.$emit('getInstituteSearchBack'); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 打开团队成员 |
|
|
// 打开团队成员 |
|
|
openTeamMember(){ |
|
|
openTeamMember() { |
|
|
const { query } = this.$route; |
|
|
const { query } = this.$route; |
|
|
this.$router.push({ path: '/RD-team-member', query }); |
|
|
this.$router.push({ path: '/RD-team-member', query }); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 打开分类管理 |
|
|
// 打开分类管理 |
|
|
openCategoryManage(){ |
|
|
openCategoryManage() { |
|
|
const { query } = this.$route; |
|
|
const { query } = this.$route; |
|
|
this.$router.push({ path: '/category-manage', query }); |
|
|
this.$router.push({ path: '/category-manage', query }); |
|
|
}, |
|
|
}, |
|
@ -232,7 +233,7 @@ export default { |
|
|
// 删除 |
|
|
// 删除 |
|
|
async onDelete(id) { |
|
|
async onDelete(id) { |
|
|
try { |
|
|
try { |
|
|
const params = { param:{id}}; |
|
|
const params = { param: { id } }; |
|
|
const res = await deleteInstitute(params); |
|
|
const res = await deleteInstitute(params); |
|
|
const { data, msg, code } = res.data; |
|
|
const { data, msg, code } = res.data; |
|
|
if (code === 200) { |
|
|
if (code === 200) { |
|
@ -254,7 +255,7 @@ export default { |
|
|
|
|
|
|
|
|
<style lang="stylus" scoped> |
|
|
<style lang="stylus" scoped> |
|
|
.main .img { |
|
|
.main .img { |
|
|
width: 100%; |
|
|
height: 65px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.main .big_img { |
|
|
.main .big_img { |
|
|