This commit is contained in:
xuyucheng 2022-10-27 16:52:03 +08:00
parent 8f5d2e335b
commit f1fe8b40c3
3 changed files with 15 additions and 2 deletions

View File

@ -62,7 +62,7 @@
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:page-sizes="[5, 10, 15]"
:page-size="page.page"
:page-size="page.pagesize"
layout="total, sizes, prev, pager, next"
:total="total"
v-if="page"

View File

@ -87,6 +87,7 @@
? '#2db7f5'
: '#87d068',
}"
@click="toIndicator(value.value['二级指标'])"
>{{ value.value["二级指标"] }}</span
>
</template>
@ -257,6 +258,18 @@ export default {
return highlight(code, languages.js);
},
toIndicator(val) {
console.log(val)
request.get(`/index_store/indicator/${val}`).then((res) => {
this.$store.commit("set_tabs_key", "indicator" + res.id);
this.$store.commit("set_tabs", {
id: "indicator" + res.id,
title: res.cname,
content: "indicatorsDetails",
});
});
},
openDialog() {
this.editVisible = true;
this.checkedValue = JSON.stringify(this.data[this.active], null, 4);

View File

@ -1,6 +1,6 @@
const { name } = require('./package');
module.exports = {
publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
publicPath: process.env.NODE_ENV === "production" ? "/webapp/rating_manager" : "/",
outputDir: "dist",
productionSourceMap: false,
lintOnSave: true,