提交 6a248277 authored 作者: 王腾飞's avatar 王腾飞

1113

上级 30140206
......@@ -2,6 +2,6 @@ module.exports = {
NODE_ENV: '"development"',
ENV_CONFIG: '"dev"',
//BASE_API: '"http://192.168.2.175:8808"'
//BASE_API: '"http://test16.zhongdianyun.com:8808"'
BASE_API: '"http://localhost:8808"'
BASE_API: '"http://test16.zhongdianyun.com:8808"'
//BASE_API: '"http://localhost:8808"'
}
\ No newline at end of file
......@@ -2,6 +2,6 @@ module.exports = {
NODE_ENV: '"production"',
ENV_CONFIG: '"prod"',
//BASE_API: '"http://192.168.2.175:8808"'
//BASE_API: '"http://test16.zhongdianyun.com:8808"'
BASE_API: '"http://localhost:8808"'
BASE_API: '"http://test16.zhongdianyun.com:8808"'
//BASE_API: '"http://localhost:8808"'
}
\ No newline at end of file
......@@ -2,6 +2,6 @@ module.exports = {
NODE_ENV: '"production"',
ENV_CONFIG: '"sit"',
//BASE_API: '"http://192.168.2.175:8808"'
//BASE_API: '"http://test16.zhongdianyun.com:8808"'
BASE_API: '"http://localhost:8808"'
BASE_API: '"http://test16.zhongdianyun.com:8808"'
//BASE_API: '"http://localhost:8808"'
}
\ No newline at end of file
......@@ -101,6 +101,22 @@ export function updataAtlasInfoByIdAPI(data) { //更新图册信息
})
}
export function getEntityListAPI(params) { //关联实体选择
return request({
url: `${requestPath.common}/participle/relation/all`,
method: 'get',
params
})
}
export function getlinkedResAPI(params) { //关联实体弹窗的已链接资源
return request({
url: `${requestPath.common}/people/get/resource`,
method: 'get',
params
})
}
......
......@@ -4,7 +4,7 @@
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="listQuery.pageNum"
:page-sizes="[30,50,100,200,500]"
:page-sizes="listQuery.pageSizes"
:page-size="listQuery.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
......@@ -16,15 +16,19 @@
//<pagination @pagesize="pagesizeFun" :total="total" @currentPage="currentPageFun"></pagination>
export default {
name: "pagination",
props: ["total","pageNum","pageSize"],
props: ["total","pageNum","pageSize", 'pageSizes'],
data() {
return {
listQuery: {
pageNum: 1,
pageSize: 30
pageSize: 30,
pageSizes: [30,50,100,200,500]
}
};
},
mounted() {
this.getNewData();
},
methods: {
handleSizeChange(val) {
this.$emit("pagesize", val);
......@@ -32,6 +36,19 @@ export default {
handleCurrentChange(val) {
this.$emit("currentPage", val);
// console.log(`当前页: ${val}`);
},
getNewData() {
if (this.pageSize) {
this.listQuery.pageSize = this.pageSize;
} else {
return;
}
if (this.pageSizes) {
this.listQuery.pageSizes = this.pageSizes;
} else {
return;
}
}
}
};
......
......@@ -16,8 +16,8 @@ export const requestPath = {
}
//export const uploadUrl = `http://192.168.2.175:8808/file/file/`
//export const uploadUrl = `http://test16.zhongdianyun.com:8808/file/file/`
export const uploadUrl = `http://localhost:8808/file/file/`
export const uploadUrl = `http://test16.zhongdianyun.com:8808/file/file/`
//export const uploadUrl = `http://localhost:8808/file/file/`
// BASE_API: '"http://rsks.class.com.cn"'
export const downloadPath = 'download'
export const uploadPath = 'upload'
\ No newline at end of file
......@@ -28,3 +28,10 @@
// top:80%;
// }
}
.contentBoxLeft {
.el-form-item__content {
display:flex;
}
}
......@@ -110,8 +110,8 @@
<el-form label-width="110px">
<el-form-item label="关联实体选择:">
<div style="display:flex;">
<div autocomplete="off" :disabled="true" style="height:36px; border:1px solid #DCDFE6; border-top-left-radius:4px; border-bottom-left-radius:4px; flex:1;">
<span v-for="(item, key) in entityData" :key="key" class="entitySpan" @click="deleteEntity(key, item)">{{ item.name }}<i class="el-icon-error" style="padding-left:5px;"></i></span>
<div class="entityDataCon" autocomplete="off" :disabled="true">
<span v-for="(item, key) in entityData" :key="key" class="entitySpan" @click="deleteEntity(key, item)">{{ item.keyword }}<i class="el-icon-error" style="padding-left:5px;"></i></span>
</div>
<i class="el-icon-star-off" @click="showEntityMark" style="width:111px; text-align:center; line-height:36px; color:#fff; background:#409EFF; border-top-right-radius:4px; border-bottom-right-radius:4px; cursor:pointer;">请选择实体</i>
</div>
......@@ -227,6 +227,13 @@ export default {
// resourceId: ''//新增不传
// }
],
relationParticiple:[
{
// keyword:
// participleId:
// participleType:
}
],
responsibility: '',
copyright: '',
score: null
......@@ -321,7 +328,18 @@ export default {
this.isShowLineEntityMark = val;
},
getEntity(val) {
console.log(val, '121212121');
this.entityData = val;
let entityArr = [];
val.map((item, index) => {
let entityObj = {
keyword: item.keyword,
participleId: item.id,
participleType: item.state
};
entityArr.push(entityObj)
});
this.formData.relationParticiple = entityArr;
},
deleteEntity(key,item) {
this.entityData.splice(key, 1);
......@@ -494,6 +512,9 @@ export default {
this.$set(item, 'label', item.typeName);
this.optionResourceDiyTypeShow.push(item.value);
})
if (res.data.data.participleList) {
this.entityData = res.data.data.participleList
}
}
})
} else {
......@@ -653,6 +674,19 @@ export default {
margin:0 10px 10px 0;
cursor:pointer;
}
.entityDataCon {
height:36px;
border:1px solid #DCDFE6;
border-top-left-radius:4px;
border-bottom-left-radius:4px;
flex:1;
overflow-y:auto;
padding:0 9px;
&::-webkit-scrollbar {
width:5px;
height:5px;
}
}
</style>
<style lang="scss">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论