|
@@ -14,7 +14,11 @@
|
|
:filter-node-method="filterNode"
|
|
:filter-node-method="filterNode"
|
|
ref="tree"
|
|
ref="tree"
|
|
@node-click="handleNodeClick"
|
|
@node-click="handleNodeClick"
|
|
- ></el-tree>
|
|
|
|
|
|
+ >
|
|
|
|
+ <span class="custom-tree-node" slot-scope="{ node, data }">
|
|
|
|
+ <span :class="{'green': greenColorMenus.includes(data.id)}">{{ node.label }}</span>
|
|
|
|
+ </span>
|
|
|
|
+ </el-tree>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
<!-- 右侧列表 -->
|
|
<!-- 右侧列表 -->
|
|
@@ -46,16 +50,38 @@
|
|
<span v-else>{{ (scope.row.res * 100).toFixed(2) + '%' }}</span>
|
|
<span v-else>{{ (scope.row.res * 100).toFixed(2) + '%' }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="source" label="来源" width="200"></el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="" label="来源" width="200">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span :class="{'green': scope.row.source === '人工录入' }">{{ scope.row.source }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="" label="操作" width="120">
|
|
|
|
+ <template slot="header" v-if="greenColorMenus.includes(ruleId)">
|
|
|
|
+ <span>操作</span>
|
|
|
|
+ <i class="el-icon-edit" @click="onChangeValue" style="margin-left: 15px;"></i>
|
|
|
|
+ </template>
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <!-- 全年不可修改 -->
|
|
|
|
+ <!-- 非人工录入不可修改 -->
|
|
|
|
+ <!-- 菜单未标记的不可修改 -->
|
|
|
|
+ <el-button type="text" @click="onChangeValue(scope.row)" v-if="scope.row.source === '人工录入' && scope.row.time !== '全年' && greenColorMenus.includes(this.ruleId)">修改</el-button>
|
|
|
|
+ <span v-else>--</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ <ChangeCaseIndexValueDialogVue v-if="dialogData.bSwitch" :data="dialogData" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import ChangeCaseIndexValueDialogVue from './components/ChangeCaseIndexValueDialog.vue';
|
|
export default {
|
|
export default {
|
|
|
|
+ components: {
|
|
|
|
+ ChangeCaseIndexValueDialogVue
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
menus: [
|
|
menus: [
|
|
@@ -504,6 +530,11 @@ export default {
|
|
return year < timeYear;
|
|
return year < timeYear;
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ greenColorMenus: [11, 112, 12, 121, 122, 13, 132],
|
|
|
|
+ dialogData: {
|
|
|
|
+ bSwitch: false,
|
|
|
|
+ rows: []
|
|
|
|
+ }
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -527,23 +558,54 @@ export default {
|
|
watch: {
|
|
watch: {
|
|
filterText(val) {
|
|
filterText(val) {
|
|
this.$refs.tree.filter(val);
|
|
this.$refs.tree.filter(val);
|
|
- },
|
|
|
|
- $route(to, from) {
|
|
|
|
- if (to.query.type === 'children' || from.query.type === 'children') {
|
|
|
|
- }
|
|
|
|
- // if (from.path == '/caseIndexList' && from.query.ruleId == 33) {
|
|
|
|
- // this.$router.go(0)
|
|
|
|
- // }
|
|
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ onChangeValue(row) {
|
|
|
|
+ if (row.time) {
|
|
|
|
+ // 单个修改
|
|
|
|
+ const { time } = row
|
|
|
|
+ const obj = {
|
|
|
|
+ year: time.split('-')[0],
|
|
|
|
+ month: time.split('-')[1],
|
|
|
|
+ flag: Number(this.ruleId.toString().slice(0, 2)),
|
|
|
|
+ type: this.judgeNum,
|
|
|
|
+ num: row[this.judgeNum]
|
|
|
|
+ }
|
|
|
|
+ // 先清空在赋值,防止重复
|
|
|
|
+ this.$set(this.dialogData, 'rows', [])
|
|
|
|
+ this.dialogData.rows.push(obj)
|
|
|
|
+ } else {
|
|
|
|
+ // 批量修改
|
|
|
|
+ // 先清空在赋值,防止重复
|
|
|
|
+ console.log(this.tableData)
|
|
|
|
+ this.$set(this.dialogData, 'rows', [])
|
|
|
|
+ this.tableData.map(item => {
|
|
|
|
+ const { time, source } = item
|
|
|
|
+ if (source === '人工录入') {
|
|
|
|
+ const obj = {
|
|
|
|
+ year: time.split('-')[0],
|
|
|
|
+ month: time.split('-')[1],
|
|
|
|
+ flag: Number(this.ruleId.toString().slice(0, 2)),
|
|
|
|
+ type: this.judgeNum,
|
|
|
|
+ num: item[this.judgeNum]
|
|
|
|
+ }
|
|
|
|
+ this.dialogData.rows.push(obj)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ this.dialogData.bSwitch = true
|
|
|
|
+ },
|
|
// 返回
|
|
// 返回
|
|
onBack() {
|
|
onBack() {
|
|
this.$router.go(-1)
|
|
this.$router.go(-1)
|
|
},
|
|
},
|
|
// 病案指标列表跳转
|
|
// 病案指标列表跳转
|
|
toCaseIndexPage(row) {
|
|
toCaseIndexPage(row) {
|
|
- const { time } = row;
|
|
|
|
|
|
+ const { time, source } = row;
|
|
|
|
+ if ( source === '人工录入') {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
this.$router.push({ path: '/caseIndexList', query: { time, ruleId: Number(`${this.ruleId}`.slice(0, 2)), type: this.judgeNum } });
|
|
this.$router.push({ path: '/caseIndexList', query: { time, ruleId: Number(`${this.ruleId}`.slice(0, 2)), type: this.judgeNum } });
|
|
},
|
|
},
|
|
// 菜单筛选
|
|
// 菜单筛选
|
|
@@ -635,4 +697,7 @@ export default {
|
|
::v-deep.el-table .el-table__header tr th:nth-child(3) {
|
|
::v-deep.el-table .el-table__header tr th:nth-child(3) {
|
|
border-radius: 0px 5px 5px 0px;
|
|
border-radius: 0px 5px 5px 0px;
|
|
}
|
|
}
|
|
|
|
+.green {
|
|
|
|
+ color: #67C23A;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|