From 8f2a8595313aaa7a1b5320a8add4eef4dfe942c4 Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期六, 05 八月 2023 23:34:59 +0800
Subject: [PATCH] 财产修改
---
ruoyi-ui/src/views/doctor/index.vue | 52 ++++++++++++++++++++++++++++++++++------------------
1 files changed, 34 insertions(+), 18 deletions(-)
diff --git a/ruoyi-ui/src/views/doctor/index.vue b/ruoyi-ui/src/views/doctor/index.vue
index 5ca2704..0a287ce 100644
--- a/ruoyi-ui/src/views/doctor/index.vue
+++ b/ruoyi-ui/src/views/doctor/index.vue
@@ -195,8 +195,8 @@
<el-table-column type="selection" :reserve-selection="true" width="25" align="center" />
<el-table-column fixed label="搴忓彿" sortable type="index" align="center" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="60"/>
<el-table-column label="绫诲瀷" prop="type" sortable width="80" align="center">
- <template slot-scope="scope">{{ getSrc(scope.row.type) }}</template>
-<!-- <template slot-scope="scope">{{scope.row.type? scope.row.type: '鈥斺�斺�斺��'}}</template>-->
+<!-- <template slot-scope="scope">{{ getSrc(scope.row.type) }}</template>-->
+ <template slot-scope="scope">{{scope.row.type? scope.row.type: '鈥斺�斺�斺��'}}</template>
</el-table-column>
<el-table-column label="鐥囩姸" prop="symptom" sortable :show-overflow-tooltip="true" width="120" align="center" >
<template slot-scope="scope">{{scope.row.symptom? scope.row.symptom: '鈥斺�斺�斺��'}}</template>
@@ -290,6 +290,7 @@
<el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value"
></el-option>
</el-select>
+ <el-input v-model="newOption" v-if="showInput" placeholder="鑻ユ湭鍦ㄤ笂杩伴�夐」涓壘鍒板搴旂被鍒紝璇峰湪姝よ緭鍏ユ柊鐨勭被鍒�" @change="addNewOption"></el-input>
</el-form-item>
<el-form-item label="鐥囩姸" prop="symptom">
@@ -439,11 +440,8 @@
dateRange: [],
// 鏁版嵁鑼冨洿閫夐」
fot:[".jpg",".jif"],
- fileList:[
- ],
- fileListOther:[
-
- ],
+ fileList:[],
+ fileListOther:[],
dsb:true,
btn:false,
fit:['fill'],
@@ -489,7 +487,7 @@
rules: {
type: [{
- required: true,
+ // required: true,
message: '璇疯緭鍏ョ被鍨�',
trigger: 'blur'
}],
@@ -540,6 +538,8 @@
value:'鍐呯',
label:'鍐呯'
}],
+ newOption: undefined,
+ showInput: true
};
},
created() {
@@ -564,6 +564,13 @@
return "statistics-warning-row";
}
},
+ //绫诲埆
+ addNewOption() {
+ const newOption = this.newOption.trim();
+ if (newOption && !this.typeOptions.includes(newOption)) {
+ this.typeOptions.push(newOption);
+ }
+ },
/** 鏌ヨ璁板綍鍒楄〃 */
getList() {
this.loading = true;
@@ -580,16 +587,16 @@
);
},
/** 鏌ヨ绫诲埆淇℃伅 */
- getCateInfor()
- {
- let _this = this
- getCategory().then(response=>{
-
- response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{
- _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]})
- })
- })
- },
+ // getCateInfor()
+ // {
+ // let _this = this
+ // getCategory().then(response=>{
+ //
+ // response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{
+ // _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]})
+ // })
+ // })
+ // },
//绫诲埆閫夋嫨
getSrc(type) {
if (type === '绁炵粡绉�'){
@@ -802,6 +809,15 @@
}).catch(() => { Message({ message: "瀵煎叆澶辫触", type: 'error' })});
}
+ },
+ watch: {
+ type(value) {
+ if (value === '') {
+ this.showInput = true;
+ } else {
+ this.showInput = false;
+ }
+ }
}
};
</script>
--
Gitblit v1.9.1