|
@@ -141,7 +141,7 @@
|
|
|
</div>
|
|
|
</el-tree>
|
|
|
|
|
|
- <div class="add-cont" @click="addClassifyHandle" v-if="permissionBtn.isShowBtn('dataSourcePermission','sciHongqi_classify_add')">
|
|
|
+ <div class="add-cont" @click="addClassifyHandle(null)" v-if="permissionBtn.isShowBtn('dataSourcePermission','sciHongqi_classify_add')">
|
|
|
|
|
|
<img
|
|
|
src="~@/assets/img/set_m/add_ico.png"
|
|
@@ -336,7 +336,7 @@
|
|
|
<div class="hint-dialog-wrap">
|
|
|
<p style="margin-bottom: 20px;">{{ hintText }}</p>
|
|
|
<ul class="hint-list">
|
|
|
- <li v-for="(item,index) in showHintList" :key="index" class="hint-item" @click="goToEdbBase(item)">
|
|
|
+ <li v-for="(item,index) in showHintList" :key="index" :class="{'hint-item':item.EdbInfoId}" @click="goToEdbBase(item)">
|
|
|
{{ index+1 }}、{{ item.IndexName }}({{ item.IndexCode }})
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -399,8 +399,8 @@ export default {
|
|
|
|
|
|
return {
|
|
|
0:'',
|
|
|
- 1:this.$t('YsDataPage.haved_all_msg'),//本次添加的指标均已在指标库中,请勿重复添加!
|
|
|
- 2:this.$t('YsDataPage.haved_some_msg'),//指标库中已存在以下指标,会自动过滤!
|
|
|
+ 1:this.$t('YsDataPage.haved_some_msg'),//指标库中已存在以下指标,会自动过滤!
|
|
|
+ 2:this.$t('YsDataPage.haved_all_msg'),//本次添加的指标均已在指标库中,请勿重复添加!
|
|
|
3: this.$t('SciHongqiPage.del_msg')
|
|
|
}[key]
|
|
|
},
|
|
@@ -450,7 +450,7 @@ export default {
|
|
|
title: "添加分类",
|
|
|
classify_name: "",
|
|
|
parent_classify_name: "",
|
|
|
- parent_classify_id: "",
|
|
|
+ parent_classify_id: 0,
|
|
|
},
|
|
|
classifyFormRules: {
|
|
|
classify_name: [
|
|
@@ -545,7 +545,7 @@ export default {
|
|
|
|
|
|
//跳转至指标详情
|
|
|
goToEdbBase(data){
|
|
|
- if(!EdbInfoId) return
|
|
|
+ if(!data.EdbInfoId) return
|
|
|
|
|
|
const {EdbClassifyId,EdbInfoId,EdbUniqueCode} = data||{}
|
|
|
const { href } = this.$router.resolve({
|
|
@@ -608,7 +608,7 @@ export default {
|
|
|
indexId: item.BaseFromSciHqIndexId,
|
|
|
classify_id: String(item.ClassifyId),
|
|
|
parent_classify_name:"",
|
|
|
- parent_classify_id: "",
|
|
|
+ parent_classify_id: 0,
|
|
|
};
|
|
|
},
|
|
|
async handleEditEdbApi() {
|
|
@@ -693,6 +693,7 @@ export default {
|
|
|
arr.length &&
|
|
|
arr.forEach((item) => {
|
|
|
item.ClassifyIdStr = String(item.ClassifyId)
|
|
|
+ item.disabled=(item.Level===1&&String(item.ClassifyId)!=='0'&&!item.Children.length)?true:false;
|
|
|
item.Children&&item.Children.length && this.filterNodes(item.Children);
|
|
|
if (!item.Children||!item.Children.length) {
|
|
|
delete item.Children;
|
|
@@ -911,7 +912,7 @@ export default {
|
|
|
classify_id: ClassifyId,
|
|
|
parent_classify_name:
|
|
|
node.level === 2 ? (this.currentLang==='zh'?node.parent.data.ClassifyName:node.parent.data.ClassifyNameEn) : "",
|
|
|
- parent_classify_id: node.level === 2 ? ParentId : "",
|
|
|
+ parent_classify_id: node.level === 2 ? ParentId : 0,
|
|
|
};
|
|
|
},
|
|
|
|
|
@@ -962,6 +963,7 @@ export default {
|
|
|
: {
|
|
|
title: "添加分类",
|
|
|
classify_name: "",
|
|
|
+ parent_classify_id: 0
|
|
|
};
|
|
|
},
|
|
|
|
|
@@ -971,7 +973,7 @@ export default {
|
|
|
title: "添加分类",
|
|
|
classify_name: "",
|
|
|
parent_classify_name: "",
|
|
|
- parent_classify_id: "",
|
|
|
+ parent_classify_id: 0,
|
|
|
};
|
|
|
this.openClassifyDia = false;
|
|
|
},
|
|
@@ -984,8 +986,7 @@ export default {
|
|
|
|
|
|
let params = {
|
|
|
ClassifyName: this.classifyForm.classify_name,
|
|
|
- ParentId: this.classifyForm.parent_classify_id,
|
|
|
- Level: this.classifyForm.parent_classify_id ? 1 : 0,
|
|
|
+ ParentId: this.classifyForm.parent_classify_id
|
|
|
};
|
|
|
const res = this.classifyForm.classify_id
|
|
|
? await zhuochuangRedStageInterface.classifyEdit({
|