Commit 094bd342 authored by liang's avatar liang
parents 3937cdef 1e4ad6b2
NODE_ENV = 'development' NODE_ENV = 'development'
VUE_APP_BASE_API = 'mockServer' VUE_APP_BASE_API = 'mockServer'
VUE_APP_BASE_API = 'http://192.168.31.140:11999/' VUE_APP_BASE_API = 'http://192.168.31.140:11999/'
VUE_APP_UPLOAD_API = 'https://ds.cixincloud.com/geca-api/disease-data/file/info/'
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true
·
\ No newline at end of file
NODE_ENV = 'production' NODE_ENV = 'production'
VUE_APP_BASE_API = '/geca-api/' VUE_APP_BASE_API = '/geca-api/'
VUE_APP_UPLOAD_API = '/geca-api/disease-data/file/info/'
...@@ -127,6 +127,9 @@ export default { ...@@ -127,6 +127,9 @@ export default {
// }) // })
// this.data.rules = rules // this.data.rules = rules
let i = this.data.rules.findIndex((e) => e.trigger) let i = this.data.rules.findIndex((e) => e.trigger)
if (i == -1) {
i = 1
}
this.data.rules[i] = { validator: checkAge, trigger: "change" } this.data.rules[i] = { validator: checkAge, trigger: "change" }
console.log(this.data.rules) console.log(this.data.rules)
}, },
......
...@@ -283,7 +283,7 @@ export default { ...@@ -283,7 +283,7 @@ export default {
}, },
// 表单赋值 // 表单赋值
initforms(formEdit) { initforms(formEdit, flag) {
this.$nextTick(() => { this.$nextTick(() => {
const form = {} const form = {}
this.forms.forEach((item) => { this.forms.forEach((item) => {
...@@ -309,6 +309,9 @@ export default { ...@@ -309,6 +309,9 @@ export default {
if (this.$refs.form && this.$refs.form.clearValidate) { if (this.$refs.form && this.$refs.form.clearValidate) {
this.$refs.form.clearValidate() this.$refs.form.clearValidate()
} }
if (flag) {
this.$emit("handleSearch", this.form)
}
}) })
}, },
......
...@@ -99,6 +99,7 @@ export default { ...@@ -99,6 +99,7 @@ export default {
? "/api" ? "/api"
: process.env.VUE_APP_BASE_API, : process.env.VUE_APP_BASE_API,
fileList: [], fileList: [],
uploadPrefix: process.env.VUE_APP_UPLOAD_API,
} }
}, },
computed: { computed: {
...@@ -119,7 +120,7 @@ export default { ...@@ -119,7 +120,7 @@ export default {
return this.value.map((_) => { return this.value.map((_) => {
return ( return (
_.url || _.url ||
`/geca-api/disease-data/file/info/${_.bucket_name}/${_.prefix}-${_.uuid_name}` this.uploadPrefix + `${_.bucket_name}/${_.prefix}-${_.uuid_name}`
) )
}) })
}, },
...@@ -132,7 +133,8 @@ export default { ...@@ -132,7 +133,8 @@ export default {
this.fileList = newValue.map((_) => { this.fileList = newValue.map((_) => {
return { return {
name: _.file_name, name: _.file_name,
url: `/geca-api/disease-data/file/info/${_.bucket_name}/${_.prefix}-${_.uuid_name}`, url:
this.uploadPrefix + `${_.bucket_name}/${_.prefix}-${_.uuid_name}`,
} }
}) })
}, },
...@@ -204,7 +206,8 @@ export default { ...@@ -204,7 +206,8 @@ export default {
let responseUrl let responseUrl
if (file.response) { if (file.response) {
const _ = file.response.data const _ = file.response.data
responseUrl = `/geca-api/disease-data/file/info/${_.bucket_name}/${_.prefix}-${_.uuid_name}` responseUrl =
this.uploadPrefix + `${_.bucket_name}/${_.prefix}-${_.uuid_name}`
} }
try { try {
if (name.match(/\.(png|jpg|jpeg)/)) { if (name.match(/\.(png|jpg|jpeg)/)) {
......
...@@ -124,6 +124,7 @@ export default { ...@@ -124,6 +124,7 @@ export default {
type: String, type: String,
default: "primary", default: "primary",
}, },
value: { value: {
type: Array, type: Array,
default: () => [], default: () => [],
...@@ -133,6 +134,7 @@ export default { ...@@ -133,6 +134,7 @@ export default {
return { return {
imgUrl: "", imgUrl: "",
title: "", title: "",
uploadPrefix: process.env.VUE_APP_UPLOAD_API,
httpPrefix: httpPrefix:
process.env.NODE_ENV === "development" process.env.NODE_ENV === "development"
? "/api" ? "/api"
...@@ -154,10 +156,7 @@ export default { ...@@ -154,10 +156,7 @@ export default {
console.log(this.value) console.log(this.value)
if (!this.value.length || this.accept != "image/*") return [] if (!this.value.length || this.accept != "image/*") return []
return this.value.map((_) => { return this.value.map((_) => {
return ( return _.url || this.uploadPrefix + `${_.bucketName}/${_.uuidName}`
_.url ||
`https://ds.cixincloud.com/geca-api/disease-data/file/info/${_.bucketName}/${_.uuidName}`
)
}) })
}, },
}, },
...@@ -168,7 +167,7 @@ export default { ...@@ -168,7 +167,7 @@ export default {
this.fileList = newValue.map((_) => { this.fileList = newValue.map((_) => {
return { return {
name: _.fileName, name: _.fileName,
url: `https://ds.cixincloud.com/geca-api/disease-data/file/info/${_.bucketName}/${_.uuidName}`, url: this.uploadPrefix + `${_.bucketName}/${_.uuidName}`,
} }
}) })
}, },
...@@ -235,7 +234,7 @@ export default { ...@@ -235,7 +234,7 @@ export default {
let responseUrl let responseUrl
if (file.response) { if (file.response) {
const _ = file.response.data const _ = file.response.data
responseUrl = `https://ds.cixincloud.com/geca-api/disease-data/file/info/${_.bucketName}/${_.uuidName}` responseUrl = this.uploadPrefix + `${_.bucketName}/${_.uuidName}`
} }
try { try {
if (name.match(/\.(png|jpg|jpeg)/)) { if (name.match(/\.(png|jpg|jpeg)/)) {
......
...@@ -368,6 +368,8 @@ export default { ...@@ -368,6 +368,8 @@ export default {
goSearch(title) { goSearch(title) {
if (title == "筛查") { if (title == "筛查") {
this.$router.push("/screening/index?checkStatus=2") this.$router.push("/screening/index?checkStatus=2")
} else if (title == "随访") {
this.$router.push("/followupquery?checkStatus=2")
} }
this.autoFlag = false this.autoFlag = false
}, },
...@@ -694,6 +696,9 @@ export default { ...@@ -694,6 +696,9 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
&:first-child {
margin-right: 20px;
}
.title { .title {
font-size: 16px; font-size: 16px;
margin: 16px 0; margin: 16px 0;
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<div class="leftImg"> <div class="leftImg">
<img <img
:src=" :src="
'https://ds.cixincloud.com/geca-api/disease-data/file/info/' + uploadPrefix +
item.imgPath[0].bucketName + item.imgPath[0].bucketName +
'/' + '/' +
item.imgPath[0].uuidName item.imgPath[0].uuidName
...@@ -99,6 +99,7 @@ export default { ...@@ -99,6 +99,7 @@ export default {
showDetail: false, showDetail: false,
// 分页数据 // 分页数据
total: 0, total: 0,
uploadPrefix: process.env.VUE_APP_UPLOAD_API,
tableData: [], tableData: [],
} }
}, },
...@@ -150,7 +151,7 @@ export default { ...@@ -150,7 +151,7 @@ export default {
viewDetail(i) { viewDetail(i) {
this.showDetail = true this.showDetail = true
this.pdfSrc = this.pdfSrc =
"https://ds.cixincloud.com/geca-api/disease-data/file/info/" + this.uploadPrefix +
this.tableData[i].filePath[0].bucketName + this.tableData[i].filePath[0].bucketName +
"/" + "/" +
this.tableData[i].filePath[0].uuidName this.tableData[i].filePath[0].uuidName
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<el-dialog <el-dialog
custom-class="pdfDialog" custom-class="pdfDialog"
:title="''" :title="''"
:width="dWidth + 'px'"
:visible.sync="showPdf" :visible.sync="showPdf"
:close-on-click-modal="true" :close-on-click-modal="true"
:close-on-press-escape="false" :close-on-press-escape="false"
...@@ -14,7 +15,7 @@ ...@@ -14,7 +15,7 @@
<div class="title">{{ curPdf.articleTitle }}</div> <div class="title">{{ curPdf.articleTitle }}</div>
<div class="refuteList"> <div class="refuteList">
<!-- <pdf :src="pdfSrc"></pdf> --> <!-- <pdf :src="pdfSrc"></pdf> -->
<pdf-view ref="pdfView" :pdfUrl="pdfSrc"></pdf-view> <pdf-view ref="pdfView" :pdfUrl="pdfSrc" @scale="setScale"></pdf-view>
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
...@@ -33,8 +34,16 @@ export default { ...@@ -33,8 +34,16 @@ export default {
data() { data() {
return { return {
showPdf: false, showPdf: false,
width: 750,
dWidth: 750,
} }
}, },
methods: {
setScale(val) {
console.log(val)
this.dWidth = this.width * (val / 100)
},
},
watch: { watch: {
showPdf(v) { showPdf(v) {
if (v) { if (v) {
...@@ -66,8 +75,7 @@ export default { ...@@ -66,8 +75,7 @@ export default {
</style> </style>
<style lang="scss"> <style lang="scss">
.pdfDialog { .pdfDialog {
width: 750px; max-height: 958px;
max-height: 858px;
.el-dialog__header { .el-dialog__header {
// display: none; // display: none;
padding: 0px !important; padding: 0px !important;
......
...@@ -104,8 +104,12 @@ export default { ...@@ -104,8 +104,12 @@ export default {
//放大 //放大
scaleD() { scaleD() {
if (this.scale == 120) {
return
}
this.scale += 5 this.scale += 5
this.$refs.pdf.$el.style.width = parseInt(this.scale) + "%" this.$refs.pdf.$el.style.width = parseInt(this.scale) + "%"
this.$emit("scale", this.scale)
}, },
//缩小 //缩小
...@@ -115,8 +119,9 @@ export default { ...@@ -115,8 +119,9 @@ export default {
return return
} }
this.scale += -5 this.scale += -5
console.log(parseInt(this.scale) + "%") // console.log(parseInt(this.scale) + "%")
this.$refs.pdf.$el.style.width = parseInt(this.scale) + "%" this.$refs.pdf.$el.style.width = parseInt(this.scale) + "%"
this.$emit("scale", this.scale)
}, },
// 切换上一页 // 切换上一页
prePage() { prePage() {
...@@ -190,7 +195,7 @@ export default { ...@@ -190,7 +195,7 @@ export default {
.show { .show {
overflow: auto; overflow: auto;
margin: auto; margin: auto;
max-width: 790px; // max-width: 790px;
max-height: 660px; max-height: 660px;
} }
.pdf_footer { .pdf_footer {
......
...@@ -82,6 +82,7 @@ export default { ...@@ -82,6 +82,7 @@ export default {
tableData: [], tableData: [],
curPdf: { articleTitle: "测试pdf" }, curPdf: { articleTitle: "测试pdf" },
pdfSrc: "", pdfSrc: "",
uploadPrefix: process.env.VUE_APP_UPLOAD_API,
} }
}, },
mounted() { mounted() {
...@@ -122,7 +123,7 @@ export default { ...@@ -122,7 +123,7 @@ export default {
this.$refs.pdfDialog.showPdf = true this.$refs.pdfDialog.showPdf = true
this.curPdf = item this.curPdf = item
this.pdfSrc = this.pdfSrc =
"https://ds.cixincloud.com/geca-api/disease-data/file/info/" + this.uploadPrefix +
item.filePath[0].bucketName + item.filePath[0].bucketName +
"/" + "/" +
item.filePath[0].uuidName item.filePath[0].uuidName
......
...@@ -100,7 +100,9 @@ ...@@ -100,7 +100,9 @@
}" }"
> >
<div>{{ index + 1 }}</div> <div>{{ index + 1 }}</div>
<div>{{ item.unionName }}</div> <div class="tooLong">
{{ item.unionName }}
</div>
<div>{{ item.nums }}</div> <div>{{ item.nums }}</div>
</li> </li>
</ul> </ul>
...@@ -158,7 +160,7 @@ ...@@ -158,7 +160,7 @@
</div> --> </div> -->
<!-- 科学研究 --> <!-- 科学研究 -->
<div class="scientificresearch"> <!-- <div class="scientificresearch">
<div class="title_box"> <div class="title_box">
<div class="title">科学研究</div> <div class="title">科学研究</div>
<div class="empty"></div> <div class="empty"></div>
...@@ -177,7 +179,7 @@ ...@@ -177,7 +179,7 @@
{{ item }} {{ item }}
</li> </li>
</ul> </ul>
</div> </div> -->
<!-- 粘性定位 --> <!-- 粘性定位 -->
<div v-show="showFixed" class="fixed_box"> <div v-show="showFixed" class="fixed_box">
<ul class="f_list"> <ul class="f_list">
...@@ -320,11 +322,13 @@ export default { ...@@ -320,11 +322,13 @@ export default {
], ],
researchList: ["筛查技术方案", "筛查指南", "学术成果", "项目进展与成果"], researchList: ["筛查技术方案", "筛查指南", "学术成果", "项目进展与成果"],
showFixed: false, showFixed: false,
uploadPrefix: process.env.VUE_APP_UPLOAD_API,
} }
}, },
created() { created() {
this.getArticleList("1") this.getArticleList("1")
this.getArticleList("6") this.getArticleList("6")
console.log(this.uploadPrefix)
}, },
mounted() { mounted() {
this.getRankTotal() this.getRankTotal()
...@@ -371,7 +375,7 @@ export default { ...@@ -371,7 +375,7 @@ export default {
this.$refs.pdfDialog.showPdf = true this.$refs.pdfDialog.showPdf = true
this.curPdf = item this.curPdf = item
this.pdfSrc = this.pdfSrc =
"https://ds.cixincloud.com/geca-api/disease-data/file/info/" + this.uploadPrefix +
item.filePath[0].bucketName + item.filePath[0].bucketName +
"/" + "/" +
item.filePath[0].uuidName item.filePath[0].uuidName
...@@ -430,6 +434,9 @@ export default { ...@@ -430,6 +434,9 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
#con { #con {
.tooLong {
white-space: nowrap;
}
.flex { .flex {
height: 100%; height: 100%;
display: flex; display: flex;
...@@ -599,7 +606,7 @@ export default { ...@@ -599,7 +606,7 @@ export default {
flex-direction: column; flex-direction: column;
flex-wrap: wrap; flex-wrap: wrap;
li { li {
width: 40%; width: 46%;
margin-bottom: 15px; margin-bottom: 15px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
......
...@@ -310,7 +310,13 @@ export default { ...@@ -310,7 +310,13 @@ export default {
}, },
checkStatus(val) { checkStatus(val) {
if (val) { if (val) {
this.handleSearch() this.$refs.form.initforms(
{
checkStatus: val,
},
true
)
// this.handleSearch()
} }
}, },
}, },
...@@ -417,7 +423,7 @@ export default { ...@@ -417,7 +423,7 @@ export default {
...this.$refs.form.form, ...this.$refs.form.form,
...form, ...form,
} }
params = Object.assign(this.cacheForm, params) // params = Object.assign(this.cacheForm, params)
for (let key in params) { for (let key in params) {
if (params[key] !== "" && params[key] !== null) { if (params[key] !== "" && params[key] !== null) {
if (key.includes("Time") && params[key]) { if (key.includes("Time") && params[key]) {
......
...@@ -374,6 +374,7 @@ export default { ...@@ -374,6 +374,7 @@ export default {
this.initForm = { this.initForm = {
checkStatus: this.$route.query.checkStatus + "", checkStatus: this.$route.query.checkStatus + "",
} }
this.cacheForm = {}
// console.log(this.searchForm) // console.log(this.searchForm)
this.handleSearch(this.initForm) this.handleSearch(this.initForm)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment