提交 0203a22e 编写于 作者: lyf's avatar lyf

修改代码格式

上级 4871e4dd
......@@ -34,8 +34,6 @@
prop="statusRemark"
>
<el-col :span="15">
<el-select
v-model="model.statusRemark"
style="width: 135%"
......@@ -81,7 +79,7 @@
type: Boolean,
default: false,
},
rematchingOptions:{
rematchingOptions: {
type: Array,
default: null,
},
......@@ -110,14 +108,13 @@
},
};
},
watch:{
rematchingOptions(val, oldval) {
watch: {
rematchingOptions(val) {
console.log(val);
this.model.statusRemark = val[0] ? val[0] : '';
}
},
},
created() {
vm = this;
},
methods: {
......@@ -150,13 +147,13 @@
},
getBlurData(e) {
this.model.statusRemark = e.target.value;
}
},
},
};
</script>
<style lang="scss" scoped>
.message{
.message {
color: #f56c6c;
font-size: 14px;
text-align: center;
......
......@@ -32,39 +32,38 @@
props: {
isDisable: {
type: Boolean,
default: false
default: false,
},
imgList: {
type: Array,
default: ()=>{
return []
}
}
default: () => {
return [];
},
},
},
data() {
return {
dialogImageUrl: '',
dialogVisible: false,
imgArr: [
],
imgArr: [],
headers: {
token: localStorage.getItem('token'),
},
actionurl: '#',
accept: '.png,.jpeg'
accept: '.png,.jpeg',
};
},
watch:{
watch: {
imgList(newv) {
this.imgArr = newv;
}
},
},
created() {
this.actionurl = getBaseUrl('/diagnose/illness/file');
},
methods: {
handleRemove(file, fileList) {
console.log(file)
console.log(file);
this.imgArr = fileList;
},
handlePictureCardPreview(file) {
......@@ -78,28 +77,25 @@
} 个文件`
);
},
fileUpload(file) {
},
fileUpload(file) {},
sucess(response, file, fileList) {
this.imgArr = fileList;
},
setNewArr() {
const newArr = [];
if (this.imgArr && this.imgArr.length) {
this.imgArr.forEach(item => {
this.imgArr.forEach((item) => {
if (item.response) {
newArr.push(item.response.data);
} else if(item.url && item.from) {
} else if (item.url && item.from) {
newArr.push(item.url);
}
});
}
return newArr;
}
},
},
};
</script>
<style>
</style>
\ No newline at end of file
<style></style>
......@@ -33,13 +33,15 @@
class="el-upload__tip music-box"
>
<audio
v-for="(item) of musicArr"
v-for="item of musicArr"
:key="item.uid"
ref="audioWrap"
class="audio"
controls
:src="musicUrl(item)"
>您的浏览器不支持mp3播放</audio>
>
您的浏览器不支持mp3播放
</audio>
</ul>
</el-upload>
</div>
......@@ -51,14 +53,14 @@
props: {
isDisable: {
type: Boolean,
default: false
default: false,
},
musicList: {
type: Array,
default: ()=>{
return []
}
}
default: () => {
return [];
},
},
},
data() {
return {
......@@ -70,13 +72,13 @@
token: localStorage.getItem('token'),
},
loading: false,
accept: '.mp3,.mpeg'
accept: '.mp3,.mpeg',
};
},
watch:{
watch: {
musicList(newv) {
this.musicArr = newv || [];
}
},
},
created() {
this.musicArr = this.musicList;
......@@ -100,7 +102,6 @@
this.loading = false;
clearTimeout(time);
}, 1000);
},
sucess(fileList) {
this.musicArr = fileList;
......@@ -110,23 +111,22 @@
this.loading = false;
},
// 上传mp3
beforeMusicUpload() {
},
beforeMusicUpload() {},
setNewArr() {
const newArr = [];
if (this.musicArr && this.musicArr.length) {
this.musicArr.forEach(item => {
this.musicArr.forEach((item) => {
if (item.response) {
newArr.push(item.response.data.domainPath + item.response.data.path);
} else if(item.url && item.from) {
newArr.push(
item.response.data.domainPath + item.response.data.path
);
} else if (item.url && item.from) {
newArr.push(item.url);
}
});
}
return newArr;
},
},
};
</script>
......@@ -141,7 +141,7 @@
bottom: 0;
right: 0;
background: #000;
opacity: .3;
opacity: 0.3;
}
.audio {
display: block;
......@@ -161,6 +161,6 @@
}
.el-upload-list {
display: inline-block;
}
}
}
</style>
......@@ -20,7 +20,11 @@
:key="item.prop"
:prop="item.prop"
:label="item.label"
:sortable="item.prop=='appointBeginTime'||item.prop=='assistantBeginTime'?'custom':false"
:sortable="
item.prop == 'appointBeginTime' || item.prop == 'assistantBeginTime'
? 'custom'
: false
"
:show-overflow-tooltip="item.showtooltip"
min-width="170"
align="center"
......@@ -159,7 +163,7 @@
type="primary"
size="small"
class="btn"
@click="reMatchDot(scope.row,10)"
@click="reMatchDot(scope.row, 10)"
>
重新匹配医生
</el-button>
......@@ -168,7 +172,7 @@
type="primary"
size="small"
class="btn"
@click="reMatchDot(scope.row,16)"
@click="reMatchDot(scope.row, 16)"
>
重新联系助诊医生
</el-button>
......@@ -184,7 +188,7 @@
<!-- <el-button type="primary" size="small" class="btn" v-if="showBtn(scope.row,26)" @click="call(scope.row)">发起问诊</el-button>-->
<el-button
v-if="showBtn(scope.row, 3)"
:type="scope.row.completed?'danger':'primary'"
:type="scope.row.completed ? 'danger' : 'primary'"
size="small"
class="btn"
@click="doneHandle(scope.row)"
......@@ -231,8 +235,8 @@
},
tData: {
type: Array,
default: ()=>{
return []
default: () => {
return [];
},
},
pageNo: {
......@@ -257,8 +261,8 @@
},
multipleSelection: {
type: Array,
default: ()=>{
return []
default: () => {
return [];
},
},
},
......@@ -270,7 +274,6 @@
},
mounted() {},
methods: {
sortfunc(data) {
this.$emit('sortfunc', data);
},
......@@ -333,7 +336,6 @@
},
// 重新匹配医生
reMatchDot(row, type) {
this.$emit('reMatchDot', row, type);
},
// 修改时间
......
......@@ -315,7 +315,7 @@
v-if="scope.row.status != 4 && scope.row.status != 5"
type="primary"
size="small"
style="margin-top: 10px;"
style="margin-top: 10px"
@click="timeHandle(scope.row)"
>
修改时间
......@@ -324,7 +324,7 @@
v-if="scope.row.status == 3"
type="primary"
size="small"
style="margin-top: 10px;"
style="margin-top: 10px"
@click="endDiagnosis(scope.row)"
>
结束
......@@ -334,19 +334,29 @@
<!-- <el-button v-if="scope.row.status == 3 && scope.row.imStatus == 1 && scope.row.diagnoseType != 3" type="primary" size="small" @click="callAll(scope.row)" style="margin-top: 10px;">呼叫双方</el-button> -->
<!-- <el-button v-if="scope.row.status == 3 && scope.row.imStatus == 2 && scope.row.diagnoseType != 3" type="primary" size="small" @click="jionCommunicate(scope.row)" style="margin-top: 10px;">加入问诊</el-button> -->
<el-button
v-if="scope.row.status == 3 && scope.row.diagnoseType != 3 && scope.row.appointBeginTime && scope.row.appointEndTime"
v-if="
scope.row.status == 3 &&
scope.row.diagnoseType != 3 &&
scope.row.appointBeginTime &&
scope.row.appointEndTime
"
type="primary"
size="small"
style="margin-top: 10px;"
style="margin-top: 10px"
@click="jionCommunicate(scope.row)"
>
加入问诊
</el-button>
<el-button
v-if="!((scope.row.status==2 || scope.row.status==4) && scope.row.createType == 2)"
v-if="
!(
(scope.row.status == 2 || scope.row.status == 4) &&
scope.row.createType == 2
)
"
type="primary"
size="small"
style="margin-top: 10px;"
style="margin-top: 10px"
@click="sendMessage(scope.row)"
>
发送消息
......@@ -366,7 +376,7 @@
v-if="scope.row.status == 2 || scope.row.status == 3"
type="primary"
size="small"
style="margin-top: 10px;"
style="margin-top: 10px"
@click="cancelBtn(scope.row)"
>
取消预约
......@@ -376,16 +386,16 @@
v-if="scope.row.status != 5"
type="primary"
size="small"
style="margin-top: 10px;"
@click="goEditor(scope.row,1)"
style="margin-top: 10px"
@click="goEditor(scope.row, 1)"
>
编辑
</el-button>
<el-button
type="primary"
size="small"
style="margin-top: 10px;"
@click="goEditor(scope.row,2)"
style="margin-top: 10px"
@click="goEditor(scope.row, 2)"
>
预约详情
</el-button>
......@@ -414,35 +424,33 @@
props: {
tData: {
type: Array,
default: ()=>{
return []
}
default: () => {
return [];
},
},
pageNo: {
type: Number,
default: 1
default: 1,
},
pageSize: {
type: Number,
default: 20
default: 20,
},
totalRows: {
type: Number,
default: 0
default: 0,
},
loading : {
loading: {
type: Boolean,
default: false
default: false,
},
tableHeight: {
type: Number,
default: 500
}
default: 500,
},
},
data() {
return {
};
return {};
},
methods: {
timeHandle(row) {
......@@ -474,10 +482,9 @@
},
handleCurrentChange(value) {
this.$emit('handleCurrentChange', value);
}
},
},
};
</script>
<style>
</style>
<style></style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册