111
This commit is contained in:
+224
-87
@@ -383,25 +383,54 @@
|
|||||||
<up-popup
|
<up-popup
|
||||||
:round="10"
|
:round="10"
|
||||||
zIndex="9"
|
zIndex="9"
|
||||||
|
:closeOnClickOverlay="false"
|
||||||
:show="showCase"
|
:show="showCase"
|
||||||
mode="bottom"
|
mode="bottom"
|
||||||
@close="closeCase"
|
@close="closeCase"
|
||||||
>
|
>
|
||||||
<view class="votepop casepop">
|
<view class="votepop casepop">
|
||||||
<view class="titlebox">
|
<view class="titlebox">
|
||||||
<view class="left" @click="showCase = false">取消</view>
|
<view class="left" @click="cancelCase">取消</view>
|
||||||
<view class="left continue" @click="continueCase" v-show="level != 3"
|
|
||||||
>继续选择</view
|
|
||||||
>
|
|
||||||
<view class="right" @click="confirmCase">确定</view>
|
<view class="right" @click="confirmCase">确定</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="stepbox">
|
||||||
|
<up-steps :current="level-1" direction="column" :key="freshKey">
|
||||||
|
<up-steps-item >
|
||||||
|
<template v-slot:content>
|
||||||
|
<view class="slot-content" @click="openCaseLevel('1')">
|
||||||
|
|
||||||
|
<view class="left">{{!caseValue1.label_name?'请选择选项':caseValue1.label_name}}</view>
|
||||||
|
<u-icon name="arrow-right"></u-icon>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
</up-steps-item>
|
||||||
|
<up-steps-item v-if="caseValue1.label_name && labelObj.list2.length>0">
|
||||||
|
<template v-slot:content>
|
||||||
|
<view class="slot-content" @click="openCaseLevel('2')">
|
||||||
|
<view class="left">{{!caseValue2.label_name?'请选择选项':caseValue2.label_name}}</view>
|
||||||
|
<u-icon name="arrow-right"></u-icon>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
</up-steps-item>
|
||||||
|
<up-steps-item v-if="caseValue2.label_name && labelObj.list3.length>0">
|
||||||
|
<template v-slot:content>
|
||||||
|
<view class="slot-content" @click="openCaseLevel('3')">
|
||||||
|
<view class="left">{{!caseValue3.label_name?'请选择选项':caseValue3.label_name}}</view>
|
||||||
|
<u-icon name="arrow-right"></u-icon>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
</up-steps-item>
|
||||||
|
</up-steps>
|
||||||
|
</view>
|
||||||
<scroll-view class="casecon" scroll-y="true">
|
<scroll-view class="casecon" scroll-y="true">
|
||||||
<view v-show="level == 1" calss="casePadding">
|
<view v-show="level == 1" >
|
||||||
<up-radio-group
|
<up-radio-group
|
||||||
v-model="caseValue1"
|
v-model="caseValue1.app_iden"
|
||||||
|
name="group1"
|
||||||
iconPlacement="right"
|
iconPlacement="right"
|
||||||
placement="column"
|
placement="column"
|
||||||
|
@change="groupChange1"
|
||||||
>
|
>
|
||||||
<view
|
<view
|
||||||
class="column"
|
class="column"
|
||||||
@@ -416,9 +445,11 @@
|
|||||||
</view>
|
</view>
|
||||||
</up-radio-group>
|
</up-radio-group>
|
||||||
</view>
|
</view>
|
||||||
<view v-show="level == 2" calss="casePadding">
|
<view v-show="level == 2" >
|
||||||
<up-radio-group
|
<up-radio-group
|
||||||
v-model="caseValue2"
|
name="group2"
|
||||||
|
@change="groupChange2"
|
||||||
|
v-model="caseValue2.app_iden"
|
||||||
iconPlacement="right"
|
iconPlacement="right"
|
||||||
placement="column"
|
placement="column"
|
||||||
>
|
>
|
||||||
@@ -435,10 +466,11 @@
|
|||||||
</view>
|
</view>
|
||||||
</up-radio-group>
|
</up-radio-group>
|
||||||
</view>
|
</view>
|
||||||
<view v-show="level == 3" calss="casePadding">
|
<view v-show="level == 3" >
|
||||||
<up-radio-group
|
<up-radio-group
|
||||||
v-model="caseValue3"
|
name="group3"
|
||||||
|
@change="groupChange3"
|
||||||
|
v-model="caseValue3.app_iden"
|
||||||
iconPlacement="right"
|
iconPlacement="right"
|
||||||
placement="column"
|
placement="column"
|
||||||
>
|
>
|
||||||
@@ -482,18 +514,9 @@ const isFlag = ref(false);
|
|||||||
const delId = ref("");
|
const delId = ref("");
|
||||||
const showModal = ref(false);
|
const showModal = ref(false);
|
||||||
const delType = ref("delDraft"); //delDraft saveDraft
|
const delType = ref("delDraft"); //delDraft saveDraft
|
||||||
const showCase = ref(false);
|
|
||||||
const caseValue1 = ref("");
|
|
||||||
const caseValue2 = ref("");
|
|
||||||
const caseValue3 = ref("");
|
|
||||||
const level = ref(1);
|
|
||||||
const isPublish = ref(false);
|
const isPublish = ref(false);
|
||||||
const exchange_id=ref('');
|
const exchange_id=ref('');
|
||||||
const labelObj = reactive({
|
|
||||||
list1: [],
|
|
||||||
list2: [],
|
|
||||||
list3: [],
|
|
||||||
});
|
|
||||||
const bottomHeight=ref(200);
|
const bottomHeight=ref(200);
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
exchange_title: "",
|
exchange_title: "",
|
||||||
@@ -524,6 +547,29 @@ const editorCtxResult = ref(null);
|
|||||||
const isFocusInfo = ref(false);
|
const isFocusInfo = ref(false);
|
||||||
const isFocusResult = ref(false);
|
const isFocusResult = ref(false);
|
||||||
const labelList = ref([]);
|
const labelList = ref([]);
|
||||||
|
|
||||||
|
|
||||||
|
const level = ref(1);
|
||||||
|
const freshKey=ref(0);
|
||||||
|
const showCase = ref(false);
|
||||||
|
const canOpenCase = ref(false);
|
||||||
|
const caseValue1 = reactive({
|
||||||
|
app_iden:'',
|
||||||
|
label_name:'',
|
||||||
|
});
|
||||||
|
const caseValue2 = reactive({
|
||||||
|
app_iden:'',
|
||||||
|
label_name:'',
|
||||||
|
});
|
||||||
|
const caseValue3 = reactive({
|
||||||
|
app_iden:'',
|
||||||
|
label_name:'',
|
||||||
|
});
|
||||||
|
const labelObj = reactive({
|
||||||
|
list1: [],
|
||||||
|
list2: [],
|
||||||
|
list3: []
|
||||||
|
});
|
||||||
const goBack = () => {
|
const goBack = () => {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1,
|
delta: 1,
|
||||||
@@ -534,9 +580,7 @@ const openDraftList=()=>{
|
|||||||
getDraftList();
|
getDraftList();
|
||||||
showDraft.value=true;
|
showDraft.value=true;
|
||||||
}
|
}
|
||||||
const closeCase = () => {
|
|
||||||
showCase.value = false;
|
|
||||||
};
|
|
||||||
const epaste=(e)=>{
|
const epaste=(e)=>{
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
@@ -756,7 +800,7 @@ const saveDraft = async () => {
|
|||||||
const resResult = await editorCtxResult.value.getLastContent();
|
const resResult = await editorCtxResult.value.getLastContent();
|
||||||
form.exchange_summary = resResult.html;
|
form.exchange_summary = resResult.html;
|
||||||
if(labelList.value.length>0){
|
if(labelList.value.length>0){
|
||||||
form.case_exchange_label = labelList.value;
|
form.case_exchange_label = labelList.value;
|
||||||
}
|
}
|
||||||
api.saveDraft(form).then((res) => {
|
api.saveDraft(form).then((res) => {
|
||||||
isLock.value = false;
|
isLock.value = false;
|
||||||
@@ -1100,84 +1144,157 @@ const getDraftList = () => {
|
|||||||
draftList.value = res.data.data.data;
|
draftList.value = res.data.data.data;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const openCaseLevel=(lev)=>{
|
||||||
|
freshKey.value++;
|
||||||
|
level.value=lev;
|
||||||
|
if(lev==1){
|
||||||
|
caseValue2.label_name='';
|
||||||
|
caseValue2.app_iden='';
|
||||||
|
labelObj.list2=[]
|
||||||
|
}else if(lev==2){
|
||||||
|
labelObj.list3=[];
|
||||||
|
caseValue3.label_name='';
|
||||||
|
caseValue3.app_iden=''
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const groupChange1=(e)=>{
|
||||||
|
caseValue1.app_iden=e;
|
||||||
|
for (var i = 0; i <labelObj.list1.length; i++) {
|
||||||
|
if(labelObj.list1[i].app_iden==caseValue1.app_iden){
|
||||||
|
caseValue1.label_name=labelObj.list1[i].label_name;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
console.log(caseValue1);
|
||||||
|
getCaseLabel(2,e)
|
||||||
|
}
|
||||||
|
const groupChange2=(e)=>{
|
||||||
|
caseValue2.app_iden=e;
|
||||||
|
for (var i = 0; i <labelObj.list2.length; i++) {
|
||||||
|
if(labelObj.list2[i].app_iden==caseValue2.app_iden){
|
||||||
|
caseValue2.label_name=labelObj.list2[i].label_name;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
getCaseLabel(3,e)
|
||||||
|
}
|
||||||
|
const groupChange3=(e)=>{
|
||||||
|
caseValue3.app_iden=e;
|
||||||
|
level.value =3
|
||||||
|
for (var i = 0; i <labelObj.list3.length; i++) {
|
||||||
|
if(labelObj.list3[i].app_iden==caseValue3.app_iden){
|
||||||
|
caseValue3.label_name=labelObj.list3[i].label_name;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
const getCaseLabel = (lev,pid=0) => {
|
const getCaseLabel = (lev,pid=0) => {
|
||||||
api.getCaseLabel({
|
api.getCaseLabel({
|
||||||
pId:pid
|
pId:pid
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
level.value = lev;
|
||||||
if (lev == 1) {
|
if (lev == 1) {
|
||||||
labelObj.list1 = res.data.data;
|
labelObj.list1 = res.data.data;
|
||||||
|
//label_iden.value = caseValue1.value;
|
||||||
|
|
||||||
} else if (lev == 2) {
|
} else if (lev == 2) {
|
||||||
labelObj.list2 = res.data.data;
|
labelObj.list2 = res.data.data;
|
||||||
|
if(res.data.data.length==0){
|
||||||
|
level.value = 1
|
||||||
|
}
|
||||||
|
//label_iden.value = caseValue2.value;
|
||||||
|
|
||||||
} else if (lev == 3) {
|
} else if (lev == 3) {
|
||||||
labelObj.list3 = res.data.data;
|
labelObj.list3 = res.data.data;
|
||||||
}
|
if(res.data.data.length==0){
|
||||||
level.value = lev;
|
level.value = 2
|
||||||
|
}
|
||||||
|
//label_iden.value = caseValue3.value;
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const confirmCase = () => {
|
const openCase=()=>{
|
||||||
if (level.value == 1 && caseValue1.value == "") {
|
|
||||||
uni.showToast({ title: "请选择疾病", icon: "none" });
|
showCase.value = true;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
if (level.value == 2 && caseValue2.value == "") {
|
const cancelCase=()=>{
|
||||||
uni.showToast({ title: "请选择疾病", icon: "none" });
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (level.value == 3 && caseValue3.value == "") {
|
|
||||||
uni.showToast({ title: "请选择疾病", icon: "none" });
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
showCase.value = false;
|
showCase.value = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
const clearCase=()=>{
|
||||||
|
level.value=1;
|
||||||
|
caseValue1.app_iden='';
|
||||||
|
caseValue1.label_name='';
|
||||||
|
caseValue2.app_iden='';
|
||||||
|
caseValue2.label_name='';
|
||||||
|
caseValue3.app_iden='';
|
||||||
|
caseValue3.label_name='';
|
||||||
|
labelObj.list2=[];
|
||||||
|
labelObj.list3=[];
|
||||||
|
freshKey.value++;
|
||||||
|
|
||||||
|
}
|
||||||
|
const confirmCase = () => {
|
||||||
|
if (level.value == 1 && caseValue1.app_iden == "") {
|
||||||
|
uni.showToast({ title: "请选择疾病选项", icon: "none" });
|
||||||
|
return false;
|
||||||
|
};
|
||||||
if(level.value == 1){
|
if(level.value == 1){
|
||||||
let label = labelObj.list1.find((item) => item.app_iden == caseValue1.value);
|
let {app_iden,label_name}=caseValue1;
|
||||||
console.log(label);
|
labelList.value.push({
|
||||||
labelList.value.push({
|
app_iden,
|
||||||
app_iden:label.app_iden,
|
label_name
|
||||||
label_name:label.label_name,
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
if(level.value == 2 ){
|
|
||||||
let label = labelObj.list2.find((item) => item.app_iden == caseValue2.value);
|
|
||||||
labelList.value.push({
|
|
||||||
app_iden:label.app_iden,
|
|
||||||
label_name:label.label_name,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if(level.value == 3 ){
|
|
||||||
let label = labelObj.list3.find((item) => item.app_iden == caseValue3.value);
|
|
||||||
labelList.value.push({
|
|
||||||
app_iden:label.app_iden,
|
|
||||||
label_name:label.label_name,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
//去重
|
|
||||||
labelList.value=labelList.value.filter((item, index) => labelList.value.findIndex(i => i.app_iden === item.app_iden) === index);
|
|
||||||
caseValue1.value = "";
|
|
||||||
caseValue2.value = "";
|
|
||||||
caseValue3.value = "";
|
|
||||||
|
|
||||||
};
|
|
||||||
const continueCase = () => {
|
|
||||||
if (level.value == 1 && caseValue1.value == "") {
|
|
||||||
uni.showToast({ title: "请选择疾病", icon: "none" });
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (level.value == 2 && caseValue2.value == "") {
|
|
||||||
uni.showToast({ title: "请选择疾病", icon: "none" });
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (level.value == 3 && caseValue3.value == "") {
|
|
||||||
uni.showToast({ title: "请选择疾病", icon: "none" });
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if(level.value == 1 ){
|
|
||||||
getCaseLabel(2,caseValue1.value);
|
|
||||||
}else if(level.value == 2 ){
|
}else if(level.value == 2 ){
|
||||||
getCaseLabel(3,caseValue2.value);
|
if(!caseValue2.app_iden){
|
||||||
|
let {app_iden,label_name}=caseValue1;
|
||||||
|
labelList.value.push({
|
||||||
|
app_iden,
|
||||||
|
label_name
|
||||||
|
});
|
||||||
|
|
||||||
|
}else{
|
||||||
|
let {app_iden,label_name}=caseValue2;
|
||||||
|
labelList.value.push({
|
||||||
|
app_iden,
|
||||||
|
label_name
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}else if(level.value == 3 ){
|
||||||
|
if(!caseValue3.app_iden){
|
||||||
|
let {app_iden,label_name}=caseValue2;
|
||||||
|
labelList.value.push({
|
||||||
|
app_iden,
|
||||||
|
label_name
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
let {app_iden,label_name}=caseValue3;
|
||||||
|
labelList.value.push({
|
||||||
|
app_iden,
|
||||||
|
label_name
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
labelList.value=labelList.value.filter((item, index) => labelList.value.findIndex(i => i.app_iden === item.app_iden) === index);
|
||||||
|
console.log(labelList.value);
|
||||||
|
showCase.value=false;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
const closeCase = () => {
|
||||||
|
showCase.value = false;
|
||||||
|
};
|
||||||
|
|
||||||
const delLabel = (index) => {
|
const delLabel = (index) => {
|
||||||
labelList.value.splice(index, 1);
|
labelList.value.splice(index, 1);
|
||||||
};
|
};
|
||||||
@@ -1186,6 +1303,7 @@ const openLabelPop=()=>{
|
|||||||
uni.showToast({ title: "最多添加5个标签", icon: "none" });
|
uni.showToast({ title: "最多添加5个标签", icon: "none" });
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
clearCase();
|
||||||
showCase.value=true;
|
showCase.value=true;
|
||||||
getCaseLabel(1,0);
|
getCaseLabel(1,0);
|
||||||
}
|
}
|
||||||
@@ -1206,6 +1324,20 @@ onLoad((optoions) => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang='scss' scoped>
|
<style lang='scss' scoped>
|
||||||
|
.stepbox{
|
||||||
|
padding:15rpx 30rpx;
|
||||||
|
border-bottom: 2rpx dotted #f3f4f6;
|
||||||
|
:deep(.u-steps-item__content){
|
||||||
|
margin-top: -5rpx!important;
|
||||||
|
}
|
||||||
|
.slot-content{
|
||||||
|
width:100%;
|
||||||
|
margin-bottom: 25rpx;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
}
|
||||||
.casepop{
|
.casepop{
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -1798,6 +1930,7 @@ onLoad((optoions) => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
padding: 25rpx 25rpx 10rpx;
|
padding: 25rpx 25rpx 10rpx;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
|
flex-wrap:wrap;
|
||||||
}
|
}
|
||||||
.add {
|
.add {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -1805,13 +1938,17 @@ onLoad((optoions) => {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: #3cc7c0;
|
color: #3cc7c0;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
margin-left: 18rpx;
|
margin-left: 18rpx;
|
||||||
}
|
}
|
||||||
.sick {
|
.sick {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 0 60rpx 0 30rpx;
|
padding: 0 60rpx 0 30rpx;
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
white-space: nowrap;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
margin-right: 10rpx;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: #f9f9f9;
|
background: #f9f9f9;
|
||||||
|
|||||||
@@ -281,11 +281,11 @@
|
|||||||
<up-popup
|
<up-popup
|
||||||
:zIndex="60"
|
:zIndex="60"
|
||||||
:overlayStyle="{ zIndex: 59 }"
|
:overlayStyle="{ zIndex: 59 }"
|
||||||
:closeOnClickOverlay="false"
|
|
||||||
:show="showDeal"
|
:show="showDeal"
|
||||||
:round="10"
|
:round="10"
|
||||||
mode="bottom"
|
mode="bottom"
|
||||||
@close="closeDeal"
|
|
||||||
>
|
>
|
||||||
<view class="dealbox">
|
<view class="dealbox">
|
||||||
<view class="dealcell" @click="goEdit">编辑</view>
|
<view class="dealcell" @click="goEdit">编辑</view>
|
||||||
@@ -336,6 +336,7 @@ const label_iden=ref('');
|
|||||||
const dropTitle=ref('发布时间');
|
const dropTitle=ref('发布时间');
|
||||||
const orderFilter=ref('1')
|
const orderFilter=ref('1')
|
||||||
const uDropdownRef=ref(null);
|
const uDropdownRef=ref(null);
|
||||||
|
const dealId=ref('')
|
||||||
const options= ref([
|
const options= ref([
|
||||||
{
|
{
|
||||||
label: "发布时间",
|
label: "发布时间",
|
||||||
@@ -357,6 +358,7 @@ const order=reactive({
|
|||||||
})
|
})
|
||||||
const showCase = ref(false);
|
const showCase = ref(false);
|
||||||
const canOpenCase = ref(false);
|
const canOpenCase = ref(false);
|
||||||
|
const freshKey=ref(0);
|
||||||
const caseValue1 = reactive({
|
const caseValue1 = reactive({
|
||||||
value:'',
|
value:'',
|
||||||
name:'',
|
name:'',
|
||||||
|
|||||||
@@ -249,6 +249,7 @@ const order=reactive({
|
|||||||
})
|
})
|
||||||
const showCase = ref(false);
|
const showCase = ref(false);
|
||||||
const canOpenCase = ref(false);
|
const canOpenCase = ref(false);
|
||||||
|
const freshKey=ref(0);
|
||||||
const caseValue1 = reactive({
|
const caseValue1 = reactive({
|
||||||
value:'',
|
value:'',
|
||||||
name:'',
|
name:'',
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"u-steps.js","sources":["node_modules/uview-plus/components/u-steps/u-steps.vue","../../software/HBuilderX.4.23.2024070804/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovR2l0V29ya1BsYWNlL2Nhc2VEYXRhQmFzZS9ub2RlX21vZHVsZXMvdXZpZXctcGx1cy9jb21wb25lbnRzL3Utc3RlcHMvdS1zdGVwcy52dWU"],"sourcesContent":["<template>\n\t<view\n\t class=\"u-steps\"\n\t :class=\"[`u-steps--${direction}`]\"\n\t>\n\t\t<slot></slot>\n\t</view>\n</template>\n\n<script>\n\timport { props } from './props';\n\timport { mpMixin } from '../../libs/mixin/mpMixin';\n\timport { mixin } from '../../libs/mixin/mixin';\n\timport test from '../../libs/function/test';\n\t/**\n\t * Steps 步骤条\n\t * @description 该组件一般用于完成一个任务要分几个步骤,标识目前处于第几步的场景。\n\t * @tutorial https://uview-plus.jiangruyi.com/components/steps.html\n\t * @property {String}\t\t\tdirection\t\trow-横向,column-竖向 (默认 'row' )\n\t * @property {String | Number}\tcurrent\t\t\t设置当前处于第几步 (默认 0 )\n\t * @property {String}\t\t\tactiveColor\t\t激活状态颜色 (默认 '#3c9cff' )\n\t * @property {String}\t\t\tinactiveColor\t未激活状态颜色 (默认 '#969799' )\n\t * @property {String}\t\t\tactiveIcon\t\t激活状态的图标\n\t * @property {String}\t\t\tinactiveIcon\t未激活状态图标 \n\t * @property {Boolean}\t\t\tdot\t\t\t\t是否显示点类型 (默认 false )\n\t * @example <u-steps current=\"0\"><u-steps-item title=\"已出库\" desc=\"10:35\" ></u-steps-item></u-steps>\n\t */\n\texport default {\n\t\tname: 'u-steps',\n\t\tmixins: [mpMixin, mixin, props],\n\t\tdata() {\n\t\t\treturn {\n\t\t\t}\n\t\t},\n\t\twatch: {\n\t\t\tchildren() {\n\t\t\t\tthis.updateChildData()\n\t\t\t},\n\t\t\tparentData() {\n\t\t\t\tthis.updateChildData()\n\t\t\t}\n\t\t},\n\t\tcomputed: {\n\t\t\t// 监听参数的变化,通过watch中,手动去更新子组件的数据,否则子组件不会自动变化\n\t\t\tparentData() {\n\t\t\t\treturn [this.current, this.direction, this.activeColor, this.inactiveColor, this.activeIcon, this.inactiveIcon, this.dot]\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\t// 更新子组件的数据\n\t\t\tupdateChildData() {\n\t\t\t\tthis.children.map(child => {\n\t\t\t\t\t// 先判断子组件是否存在对应的方法\n\t\t\t\t\ttest.func((child || {}).updateFromParent()) && child.updateFromParent()\n\t\t\t\t})\n\t\t\t},\n\t\t\t// 接受子组件的通知,去修改其他子组件的数据\n\t\t\tupdateFromChild() {\n\t\t\t\tthis.updateChildData()\n\t\t\t}\n\t\t},\n\t\tcreated() {\n\t\t\tthis.children = []\n\t\t},\n\t\toptions: {\n\t\t\tvirtualHost: false\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t@import \"../../libs/css/components.scss\";\n\n\t.u-steps {\n\t\t@include flex;\n\n\t\t&--column {\n\t\t\tflex-direction: column\n\t\t}\n\n\t\t&--row {\n\t\t\tflex-direction: row;\n\t\t\tflex: 1;\n\t\t\t/* #ifdef MP */\n\t\t\tdisplay: grid;\n\t\t\tgrid-template-columns: repeat(auto-fit, minmax(100px, 1fr));\n\t\t\t/* #endif */\n\t\t}\n\t}\n</style>\n","import Component from 'D:/GitWorkPlace/caseDataBase/node_modules/uview-plus/components/u-steps/u-steps.vue'\nwx.createComponent(Component)"],"names":["mpMixin","mixin","props","test"],"mappings":";;AA2BC,MAAK,YAAU;AAAA,EACd,MAAM;AAAA,EACN,QAAQ,CAACA,cAAAA,SAASC,cAAK,OAAEC,sBAAK;AAAA,EAC9B,OAAO;AACN,WAAO,CACP;AAAA,EACA;AAAA,EACD,OAAO;AAAA,IACN,WAAW;AACV,WAAK,gBAAgB;AAAA,IACrB;AAAA,IACD,aAAa;AACZ,WAAK,gBAAgB;AAAA,IACtB;AAAA,EACA;AAAA,EACD,UAAU;AAAA;AAAA,IAET,aAAa;AACZ,aAAO,CAAC,KAAK,SAAS,KAAK,WAAW,KAAK,aAAa,KAAK,eAAe,KAAK,YAAY,KAAK,cAAc,KAAK,GAAG;AAAA,IACzH;AAAA,EACA;AAAA,EACD,SAAS;AAAA;AAAA,IAER,kBAAkB;AACjB,WAAK,SAAS,IAAI,WAAS;AAE1BC,2BAAK,MAAM,SAAS,CAAA,GAAI,kBAAkB,KAAK,MAAM,iBAAiB;AAAA,OACtE;AAAA,IACD;AAAA;AAAA,IAED,kBAAkB;AACjB,WAAK,gBAAgB;AAAA,IACtB;AAAA,EACA;AAAA,EACD,UAAU;AACT,SAAK,WAAW,CAAC;AAAA,EACjB;AAAA,EACD,SAAS;AAAA,IACR,aAAa;AAAA,EACd;AACD;;;;;;;AClED,GAAG,gBAAgB,SAAS;","x_google_ignoreList":[0]}
|
{"version":3,"file":"u-steps.js","sources":["node_modules/uview-plus/components/u-steps/u-steps.vue","../../software/HBuilderX.4.23.2024070804/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovR2l0V29ya1BsYWNlL2Nhc2VEYXRhQmFzZS9ub2RlX21vZHVsZXMvdXZpZXctcGx1cy9jb21wb25lbnRzL3Utc3RlcHMvdS1zdGVwcy52dWU"],"sourcesContent":["<template>\n\t<view\n\t class=\"u-steps\"\n\t :class=\"[`u-steps--${direction}`]\"\n\t>\n\t\t<slot></slot>\n\t</view>\n</template>\n\n<script>\n\timport { props } from './props';\n\timport { mpMixin } from '../../libs/mixin/mpMixin';\n\timport { mixin } from '../../libs/mixin/mixin';\n\timport test from '../../libs/function/test';\n\t/**\n\t * Steps 步骤条\n\t * @description 该组件一般用于完成一个任务要分几个步骤,标识目前处于第几步的场景。\n\t * @tutorial https://uview-plus.jiangruyi.com/components/steps.html\n\t * @property {String}\t\t\tdirection\t\trow-横向,column-竖向 (默认 'row' )\n\t * @property {String | Number}\tcurrent\t\t\t设置当前处于第几步 (默认 0 )\n\t * @property {String}\t\t\tactiveColor\t\t激活状态颜色 (默认 '#3c9cff' )\n\t * @property {String}\t\t\tinactiveColor\t未激活状态颜色 (默认 '#969799' )\n\t * @property {String}\t\t\tactiveIcon\t\t激活状态的图标\n\t * @property {String}\t\t\tinactiveIcon\t未激活状态图标 \n\t * @property {Boolean}\t\t\tdot\t\t\t\t是否显示点类型 (默认 false )\n\t * @example <u-steps current=\"0\"><u-steps-item title=\"已出库\" desc=\"10:35\" ></u-steps-item></u-steps>\n\t */\n\texport default {\n\t\tname: 'u-steps',\n\t\tmixins: [mpMixin, mixin, props],\n\t\tdata() {\n\t\t\treturn {\n\t\t\t}\n\t\t},\n\t\twatch: {\n\t\t\tchildren() {\n\t\t\t\tthis.updateChildData()\n\t\t\t},\n\t\t\tparentData() {\n\t\t\t\tthis.updateChildData()\n\t\t\t}\n\t\t},\n\t\tcomputed: {\n\t\t\t// 监听参数的变化,通过watch中,手动去更新子组件的数据,否则子组件不会自动变化\n\t\t\tparentData() {\n\t\t\t\treturn [this.current, this.direction, this.activeColor, this.inactiveColor, this.activeIcon, this.inactiveIcon, this.dot]\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\t// 更新子组件的数据\n\t\t\tupdateChildData() {\n\t\t\t\tthis.children.map(child => {\n\t\t\t\t\t// 先判断子组件是否存在对应的方法\n\t\t\t\t\ttest.func((child || {}).updateFromParent()) && child.updateFromParent()\n\t\t\t\t})\n\t\t\t},\n\t\t\t// 接受子组件的通知,去修改其他子组件的数据\n\t\t\tupdateFromChild() {\n\t\t\t\tthis.updateChildData()\n\t\t\t}\n\t\t},\n\t\tcreated() {\n\t\t\tthis.children = []\n\t\t},\n\t\toptions: {\n\t\t\tvirtualHost: false\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t@import \"../../libs/css/components.scss\";\n\n\t.u-steps {\n\t\t@include flex;\n\n\t\t&--column {\n\t\t\tflex-direction: column\n\t\t}\n\n\t\t&--row {\n\t\t\tflex-direction: row;\n\t\t\tflex: 1;\n\t\t\t/* #ifdef MP */\n\t\t\tdisplay: grid;\n\t\t\tgrid-template-columns: repeat(auto-fit, minmax(100px, 1fr));\n\t\t\t/* #endif */\n\t\t}\n\t}\n</style>\n","import Component from 'D:/GitWorkPlace/caseDataBase/node_modules/uview-plus/components/u-steps/u-steps.vue'\nwx.createComponent(Component)"],"names":["mpMixin","mixin","props","test"],"mappings":";;AA2BC,MAAK,YAAU;AAAA,EACd,MAAM;AAAA,EACN,QAAQ,CAACA,cAAAA,SAASC,cAAK,OAAEC,qBAAK;AAAA,EAC9B,OAAO;AACN,WAAO,CACP;AAAA,EACA;AAAA,EACD,OAAO;AAAA,IACN,WAAW;AACV,WAAK,gBAAgB;AAAA,IACrB;AAAA,IACD,aAAa;AACZ,WAAK,gBAAgB;AAAA,IACtB;AAAA,EACA;AAAA,EACD,UAAU;AAAA;AAAA,IAET,aAAa;AACZ,aAAO,CAAC,KAAK,SAAS,KAAK,WAAW,KAAK,aAAa,KAAK,eAAe,KAAK,YAAY,KAAK,cAAc,KAAK,GAAG;AAAA,IACzH;AAAA,EACA;AAAA,EACD,SAAS;AAAA;AAAA,IAER,kBAAkB;AACjB,WAAK,SAAS,IAAI,WAAS;AAE1BC,2BAAK,MAAM,SAAS,CAAA,GAAI,kBAAkB,KAAK,MAAM,iBAAiB;AAAA,OACtE;AAAA,IACD;AAAA;AAAA,IAED,kBAAkB;AACjB,WAAK,gBAAgB;AAAA,IACtB;AAAA,EACA;AAAA,EACD,UAAU;AACT,SAAK,WAAW,CAAC;AAAA,EACjB;AAAA,EACD,SAAS;AAAA,IACR,aAAa;AAAA,EACd;AACD;;;;;;;AClED,GAAG,gBAAgB,SAAS;","x_google_ignoreList":[0]}
|
||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+85
-85
@@ -12842,6 +12842,74 @@ const props$u = defineMixin({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
const props$t = defineMixin({
|
const props$t = defineMixin({
|
||||||
|
props: {
|
||||||
|
// 标题
|
||||||
|
title: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: () => props$B.stepsItem.title
|
||||||
|
},
|
||||||
|
// 描述文本
|
||||||
|
desc: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: () => props$B.stepsItem.desc
|
||||||
|
},
|
||||||
|
// 图标大小
|
||||||
|
iconSize: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: () => props$B.stepsItem.iconSize
|
||||||
|
},
|
||||||
|
// 当前步骤是否处于失败状态
|
||||||
|
error: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => props$B.stepsItem.error
|
||||||
|
},
|
||||||
|
// 自定义样式
|
||||||
|
itemStyle: {
|
||||||
|
type: [Object],
|
||||||
|
default: {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const props$s = defineMixin({
|
||||||
|
props: {
|
||||||
|
// 排列方向
|
||||||
|
direction: {
|
||||||
|
type: String,
|
||||||
|
default: () => props$B.steps.direction
|
||||||
|
},
|
||||||
|
// 设置第几个步骤
|
||||||
|
current: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: () => props$B.steps.current
|
||||||
|
},
|
||||||
|
// 激活状态颜色
|
||||||
|
activeColor: {
|
||||||
|
type: String,
|
||||||
|
default: () => props$B.steps.activeColor
|
||||||
|
},
|
||||||
|
// 未激活状态颜色
|
||||||
|
inactiveColor: {
|
||||||
|
type: String,
|
||||||
|
default: () => props$B.steps.inactiveColor
|
||||||
|
},
|
||||||
|
// 激活状态的图标
|
||||||
|
activeIcon: {
|
||||||
|
type: String,
|
||||||
|
default: () => props$B.steps.activeIcon
|
||||||
|
},
|
||||||
|
// 未激活状态图标
|
||||||
|
inactiveIcon: {
|
||||||
|
type: String,
|
||||||
|
default: () => props$B.steps.inactiveIcon
|
||||||
|
},
|
||||||
|
// 是否显示点类型
|
||||||
|
dot: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => props$B.steps.dot
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const props$r = defineMixin({
|
||||||
props: {
|
props: {
|
||||||
// radio的名称
|
// radio的名称
|
||||||
name: {
|
name: {
|
||||||
@@ -12910,7 +12978,7 @@ const props$t = defineMixin({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const props$s = defineMixin({
|
const props$q = defineMixin({
|
||||||
props: {
|
props: {
|
||||||
// 绑定的值
|
// 绑定的值
|
||||||
modelValue: {
|
modelValue: {
|
||||||
@@ -12999,7 +13067,7 @@ const props$s = defineMixin({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const props$r = defineMixin({
|
const props$p = defineMixin({
|
||||||
props: {
|
props: {
|
||||||
// 当前选中项的value值
|
// 当前选中项的value值
|
||||||
modelValue: {
|
modelValue: {
|
||||||
@@ -13035,7 +13103,7 @@ const props$r = defineMixin({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const props$q = defineMixin({
|
const props$o = defineMixin({
|
||||||
props: {
|
props: {
|
||||||
// 菜单标题和选项的激活态颜色
|
// 菜单标题和选项的激活态颜色
|
||||||
activeColor: {
|
activeColor: {
|
||||||
@@ -13094,74 +13162,6 @@ const props$q = defineMixin({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const props$p = defineMixin({
|
|
||||||
props: {
|
|
||||||
// 标题
|
|
||||||
title: {
|
|
||||||
type: [String, Number],
|
|
||||||
default: () => props$B.stepsItem.title
|
|
||||||
},
|
|
||||||
// 描述文本
|
|
||||||
desc: {
|
|
||||||
type: [String, Number],
|
|
||||||
default: () => props$B.stepsItem.desc
|
|
||||||
},
|
|
||||||
// 图标大小
|
|
||||||
iconSize: {
|
|
||||||
type: [String, Number],
|
|
||||||
default: () => props$B.stepsItem.iconSize
|
|
||||||
},
|
|
||||||
// 当前步骤是否处于失败状态
|
|
||||||
error: {
|
|
||||||
type: Boolean,
|
|
||||||
default: () => props$B.stepsItem.error
|
|
||||||
},
|
|
||||||
// 自定义样式
|
|
||||||
itemStyle: {
|
|
||||||
type: [Object],
|
|
||||||
default: {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
const props$o = defineMixin({
|
|
||||||
props: {
|
|
||||||
// 排列方向
|
|
||||||
direction: {
|
|
||||||
type: String,
|
|
||||||
default: () => props$B.steps.direction
|
|
||||||
},
|
|
||||||
// 设置第几个步骤
|
|
||||||
current: {
|
|
||||||
type: [String, Number],
|
|
||||||
default: () => props$B.steps.current
|
|
||||||
},
|
|
||||||
// 激活状态颜色
|
|
||||||
activeColor: {
|
|
||||||
type: String,
|
|
||||||
default: () => props$B.steps.activeColor
|
|
||||||
},
|
|
||||||
// 未激活状态颜色
|
|
||||||
inactiveColor: {
|
|
||||||
type: String,
|
|
||||||
default: () => props$B.steps.inactiveColor
|
|
||||||
},
|
|
||||||
// 激活状态的图标
|
|
||||||
activeIcon: {
|
|
||||||
type: String,
|
|
||||||
default: () => props$B.steps.activeIcon
|
|
||||||
},
|
|
||||||
// 未激活状态图标
|
|
||||||
inactiveIcon: {
|
|
||||||
type: String,
|
|
||||||
default: () => props$B.steps.inactiveIcon
|
|
||||||
},
|
|
||||||
// 是否显示点类型
|
|
||||||
dot: {
|
|
||||||
type: Boolean,
|
|
||||||
default: () => props$B.steps.dot
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
const props$n = defineMixin({
|
const props$n = defineMixin({
|
||||||
props: {
|
props: {
|
||||||
// input的label提示语
|
// input的label提示语
|
||||||
@@ -16271,20 +16271,6 @@ const transitionMixin = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
const props$7 = defineMixin({
|
const props$7 = defineMixin({
|
||||||
props: {
|
|
||||||
// 分组标题
|
|
||||||
title: {
|
|
||||||
type: String,
|
|
||||||
default: () => props$B.cellGroup.title
|
|
||||||
},
|
|
||||||
// 是否显示外边框
|
|
||||||
border: {
|
|
||||||
type: Boolean,
|
|
||||||
default: () => props$B.cellGroup.border
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
const props$6 = defineMixin({
|
|
||||||
props: {
|
props: {
|
||||||
// 主题颜色
|
// 主题颜色
|
||||||
type: {
|
type: {
|
||||||
@@ -16473,6 +16459,20 @@ const value = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
const props$6 = defineMixin({
|
||||||
|
props: {
|
||||||
|
// 分组标题
|
||||||
|
title: {
|
||||||
|
type: String,
|
||||||
|
default: () => props$B.cellGroup.title
|
||||||
|
},
|
||||||
|
// 是否显示外边框
|
||||||
|
border: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => props$B.cellGroup.border
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
const props$5 = defineMixin({
|
const props$5 = defineMixin({
|
||||||
props: {
|
props: {
|
||||||
color: {
|
color: {
|
||||||
|
|||||||
Vendored
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
const common_vendor = require("../../../../common/vendor.js");
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "u-cell-group",
|
name: "u-cell-group",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$30],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$31],
|
||||||
methods: {
|
methods: {
|
||||||
addStyle: common_vendor.addStyle
|
addStyle: common_vendor.addStyle
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
const common_vendor = require("../../../../common/vendor.js");
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "u-dropdown-item",
|
name: "u-dropdown-item",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$9],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$11],
|
||||||
options: {
|
options: {
|
||||||
styleIsolation: "shared"
|
styleIsolation: "shared"
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
const common_vendor = require("../../../../common/vendor.js");
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "u-dropdown",
|
name: "u-dropdown",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$10],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$12],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
showDropdown: true,
|
showDropdown: true,
|
||||||
|
|||||||
Vendored
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
const common_vendor = require("../../../../common/vendor.js");
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "u-radio-group",
|
name: "u-radio-group",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$8],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$10],
|
||||||
computed: {
|
computed: {
|
||||||
// 这里computed的变量,都是子组件u-radio需要用到的,由于头条小程序的兼容性差异,子组件无法实时监听父组件参数的变化
|
// 这里computed的变量,都是子组件u-radio需要用到的,由于头条小程序的兼容性差异,子组件无法实时监听父组件参数的变化
|
||||||
// 所以需要手动通知子组件,这里返回一个parentData变量,供watch监听,在其中去通知每一个子组件重新从父组件(u-radio-group)
|
// 所以需要手动通知子组件,这里返回一个parentData变量,供watch监听,在其中去通知每一个子组件重新从父组件(u-radio-group)
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
const common_vendor = require("../../../../common/vendor.js");
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "u-radio",
|
name: "u-radio",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$7],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$9],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
checked: false,
|
checked: false,
|
||||||
|
|||||||
Vendored
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
const common_vendor = require("../../../../common/vendor.js");
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "u-steps-item",
|
name: "u-steps-item",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$11],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$7],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
index: 0,
|
index: 0,
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
const common_vendor = require("../../../../common/vendor.js");
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "u-steps",
|
name: "u-steps",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$12],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$8],
|
||||||
data() {
|
data() {
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
const common_vendor = require("../../../../common/vendor.js");
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "up-text",
|
name: "up-text",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.value, common_vendor.buttonMixin, common_vendor.openType, common_vendor.props$31],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.value, common_vendor.buttonMixin, common_vendor.openType, common_vendor.props$30],
|
||||||
emits: ["click"],
|
emits: ["click"],
|
||||||
computed: {
|
computed: {
|
||||||
wrapStyle() {
|
wrapStyle() {
|
||||||
|
|||||||
+227
-131
@@ -12,9 +12,11 @@ if (!Array) {
|
|||||||
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
|
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
|
||||||
const _easycom_up_empty2 = common_vendor.resolveComponent("up-empty");
|
const _easycom_up_empty2 = common_vendor.resolveComponent("up-empty");
|
||||||
const _easycom_up_overlay2 = common_vendor.resolveComponent("up-overlay");
|
const _easycom_up_overlay2 = common_vendor.resolveComponent("up-overlay");
|
||||||
|
const _easycom_up_steps_item2 = common_vendor.resolveComponent("up-steps-item");
|
||||||
|
const _easycom_up_steps2 = common_vendor.resolveComponent("up-steps");
|
||||||
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
|
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
|
||||||
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
|
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
|
||||||
(_easycom_u_icon2 + _easycom_up__textarea2 + _easycom_up_icon2 + _easycom_up__image2 + _easycom_up_input2 + _easycom_up_popup2 + _easycom_up_empty2 + _easycom_up_overlay2 + _easycom_up_radio2 + _easycom_up_radio_group2)();
|
(_easycom_u_icon2 + _easycom_up__textarea2 + _easycom_up_icon2 + _easycom_up__image2 + _easycom_up_input2 + _easycom_up_popup2 + _easycom_up_empty2 + _easycom_up_overlay2 + _easycom_up_steps_item2 + _easycom_up_steps2 + _easycom_up_radio2 + _easycom_up_radio_group2)();
|
||||||
}
|
}
|
||||||
const _easycom_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
|
const _easycom_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
|
||||||
const _easycom_up__textarea = () => "../../node-modules/uview-plus/components/u--textarea/u--textarea.js";
|
const _easycom_up__textarea = () => "../../node-modules/uview-plus/components/u--textarea/u--textarea.js";
|
||||||
@@ -24,10 +26,12 @@ const _easycom_up_input = () => "../../node-modules/uview-plus/components/u-inpu
|
|||||||
const _easycom_up_popup = () => "../../node-modules/uview-plus/components/u-popup/u-popup.js";
|
const _easycom_up_popup = () => "../../node-modules/uview-plus/components/u-popup/u-popup.js";
|
||||||
const _easycom_up_empty = () => "../../node-modules/uview-plus/components/u-empty/u-empty.js";
|
const _easycom_up_empty = () => "../../node-modules/uview-plus/components/u-empty/u-empty.js";
|
||||||
const _easycom_up_overlay = () => "../../node-modules/uview-plus/components/u-overlay/u-overlay.js";
|
const _easycom_up_overlay = () => "../../node-modules/uview-plus/components/u-overlay/u-overlay.js";
|
||||||
|
const _easycom_up_steps_item = () => "../../node-modules/uview-plus/components/u-steps-item/u-steps-item.js";
|
||||||
|
const _easycom_up_steps = () => "../../node-modules/uview-plus/components/u-steps/u-steps.js";
|
||||||
const _easycom_up_radio = () => "../../node-modules/uview-plus/components/u-radio/u-radio.js";
|
const _easycom_up_radio = () => "../../node-modules/uview-plus/components/u-radio/u-radio.js";
|
||||||
const _easycom_up_radio_group = () => "../../node-modules/uview-plus/components/u-radio-group/u-radio-group.js";
|
const _easycom_up_radio_group = () => "../../node-modules/uview-plus/components/u-radio-group/u-radio-group.js";
|
||||||
if (!Math) {
|
if (!Math) {
|
||||||
(_easycom_u_icon + _easycom_up__textarea + svEditor + _easycom_up_icon + _easycom_up__image + _easycom_up_input + _easycom_up_popup + _easycom_up_empty + _easycom_up_overlay + _easycom_up_radio + _easycom_up_radio_group)();
|
(_easycom_u_icon + _easycom_up__textarea + svEditor + _easycom_up_icon + _easycom_up__image + _easycom_up_input + _easycom_up_popup + _easycom_up_empty + _easycom_up_overlay + _easycom_up_steps_item + _easycom_up_steps + _easycom_up_radio + _easycom_up_radio_group)();
|
||||||
}
|
}
|
||||||
const svEditor = () => "../../uni_modules/sv-editor/components/sv-editor/sv-editor.js";
|
const svEditor = () => "../../uni_modules/sv-editor/components/sv-editor/sv-editor.js";
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
@@ -38,18 +42,8 @@ const _sfc_main = {
|
|||||||
const delId = common_vendor.ref("");
|
const delId = common_vendor.ref("");
|
||||||
const showModal = common_vendor.ref(false);
|
const showModal = common_vendor.ref(false);
|
||||||
const delType = common_vendor.ref("delDraft");
|
const delType = common_vendor.ref("delDraft");
|
||||||
const showCase = common_vendor.ref(false);
|
|
||||||
const caseValue1 = common_vendor.ref("");
|
|
||||||
const caseValue2 = common_vendor.ref("");
|
|
||||||
const caseValue3 = common_vendor.ref("");
|
|
||||||
const level = common_vendor.ref(1);
|
|
||||||
const isPublish = common_vendor.ref(false);
|
const isPublish = common_vendor.ref(false);
|
||||||
const exchange_id = common_vendor.ref("");
|
const exchange_id = common_vendor.ref("");
|
||||||
const labelObj = common_vendor.reactive({
|
|
||||||
list1: [],
|
|
||||||
list2: [],
|
|
||||||
list3: []
|
|
||||||
});
|
|
||||||
const bottomHeight = common_vendor.ref(200);
|
const bottomHeight = common_vendor.ref(200);
|
||||||
const form = common_vendor.reactive({
|
const form = common_vendor.reactive({
|
||||||
exchange_title: "",
|
exchange_title: "",
|
||||||
@@ -79,6 +73,27 @@ const _sfc_main = {
|
|||||||
const isFocusInfo = common_vendor.ref(false);
|
const isFocusInfo = common_vendor.ref(false);
|
||||||
const isFocusResult = common_vendor.ref(false);
|
const isFocusResult = common_vendor.ref(false);
|
||||||
const labelList = common_vendor.ref([]);
|
const labelList = common_vendor.ref([]);
|
||||||
|
const level = common_vendor.ref(1);
|
||||||
|
const freshKey = common_vendor.ref(0);
|
||||||
|
const showCase = common_vendor.ref(false);
|
||||||
|
common_vendor.ref(false);
|
||||||
|
const caseValue1 = common_vendor.reactive({
|
||||||
|
app_iden: "",
|
||||||
|
label_name: ""
|
||||||
|
});
|
||||||
|
const caseValue2 = common_vendor.reactive({
|
||||||
|
app_iden: "",
|
||||||
|
label_name: ""
|
||||||
|
});
|
||||||
|
const caseValue3 = common_vendor.reactive({
|
||||||
|
app_iden: "",
|
||||||
|
label_name: ""
|
||||||
|
});
|
||||||
|
const labelObj = common_vendor.reactive({
|
||||||
|
list1: [],
|
||||||
|
list2: [],
|
||||||
|
list3: []
|
||||||
|
});
|
||||||
const goBack = () => {
|
const goBack = () => {
|
||||||
common_vendor.index.navigateBack({
|
common_vendor.index.navigateBack({
|
||||||
delta: 1
|
delta: 1
|
||||||
@@ -88,11 +103,8 @@ const _sfc_main = {
|
|||||||
getDraftList();
|
getDraftList();
|
||||||
showDraft.value = true;
|
showDraft.value = true;
|
||||||
};
|
};
|
||||||
const closeCase = () => {
|
|
||||||
showCase.value = false;
|
|
||||||
};
|
|
||||||
const epaste = (e) => {
|
const epaste = (e) => {
|
||||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:541", e);
|
common_vendor.index.__f__("log", "at pages/publish/publish.vue:585", e);
|
||||||
};
|
};
|
||||||
const addOption = () => {
|
const addOption = () => {
|
||||||
voteData.case_exchange_vote_option.push({
|
voteData.case_exchange_vote_option.push({
|
||||||
@@ -170,7 +182,7 @@ const _sfc_main = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
const ready = (e) => {
|
const ready = (e) => {
|
||||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:645", e);
|
common_vendor.index.__f__("log", "at pages/publish/publish.vue:689", e);
|
||||||
editorCtx.value = e;
|
editorCtx.value = e;
|
||||||
let html = "<p>【患者信息】:</p><br/><p>【主诉】:</p><br/><p>【现病史及既往史】:</p><br/><p>【检查】:</p><br/><p>【临床诊断】:</p><br/><p>【治疗经过及结果】:</p><br/><br/>";
|
let html = "<p>【患者信息】:</p><br/><p>【主诉】:</p><br/><p>【现病史及既往史】:</p><br/><p>【检查】:</p><br/><p>【临床诊断】:</p><br/><p>【治疗经过及结果】:</p><br/><br/>";
|
||||||
editorCtx.value.initHtml(html);
|
editorCtx.value.initHtml(html);
|
||||||
@@ -190,7 +202,7 @@ const _sfc_main = {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
const clearMuBan = () => {
|
const clearMuBan = () => {
|
||||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:671", "清空模板");
|
common_vendor.index.__f__("log", "at pages/publish/publish.vue:715", "清空模板");
|
||||||
editorCtx.value.initHtml("");
|
editorCtx.value.initHtml("");
|
||||||
};
|
};
|
||||||
const focusInfo = () => {
|
const focusInfo = () => {
|
||||||
@@ -260,7 +272,7 @@ const _sfc_main = {
|
|||||||
};
|
};
|
||||||
const getExchangeDetail = (id) => {
|
const getExchangeDetail = (id) => {
|
||||||
api_api.api.getExchangeDetail(id).then((res) => {
|
api_api.api.getExchangeDetail(id).then((res) => {
|
||||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:772", res.data.data);
|
common_vendor.index.__f__("log", "at pages/publish/publish.vue:816", res.data.data);
|
||||||
let {
|
let {
|
||||||
exchange_content,
|
exchange_content,
|
||||||
exchange_title,
|
exchange_title,
|
||||||
@@ -316,7 +328,7 @@ const _sfc_main = {
|
|||||||
};
|
};
|
||||||
const confirmDel = () => {
|
const confirmDel = () => {
|
||||||
showModal.value = false;
|
showModal.value = false;
|
||||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:840", delType.value);
|
common_vendor.index.__f__("log", "at pages/publish/publish.vue:884", delType.value);
|
||||||
if (delType.value == "delDraft") {
|
if (delType.value == "delDraft") {
|
||||||
delDraft(delId.value);
|
delDraft(delId.value);
|
||||||
} else if (delType.value == "saveDraft") {
|
} else if (delType.value == "saveDraft") {
|
||||||
@@ -427,7 +439,7 @@ const _sfc_main = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:969", err);
|
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1013", err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -457,7 +469,7 @@ const _sfc_main = {
|
|||||||
return randomNumber;
|
return randomNumber;
|
||||||
};
|
};
|
||||||
const getImageFormat = (imageUrl) => {
|
const getImageFormat = (imageUrl) => {
|
||||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:999", imageUrl);
|
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1043", imageUrl);
|
||||||
const lastDotIndex = imageUrl.lastIndexOf(".");
|
const lastDotIndex = imageUrl.lastIndexOf(".");
|
||||||
if (lastDotIndex !== -1) {
|
if (lastDotIndex !== -1) {
|
||||||
return imageUrl.substring(lastDotIndex + 1);
|
return imageUrl.substring(lastDotIndex + 1);
|
||||||
@@ -489,7 +501,7 @@ const _sfc_main = {
|
|||||||
//从相册选择
|
//从相册选择
|
||||||
extension: [".mp4", ".webm", ".ogg"],
|
extension: [".mp4", ".webm", ".ogg"],
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1026", res.tempFilePath);
|
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1070", res.tempFilePath);
|
||||||
HandleAddVideo(res.tempFilePath);
|
HandleAddVideo(res.tempFilePath);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -527,7 +539,7 @@ const _sfc_main = {
|
|||||||
async success(res2) {
|
async success(res2) {
|
||||||
if (res2.statusCode === 204) {
|
if (res2.statusCode === 204) {
|
||||||
let url = host + "/" + dir + filename + imgType;
|
let url = host + "/" + dir + filename + imgType;
|
||||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1068", editorCtx2);
|
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1112", editorCtx2);
|
||||||
let imgUrl = "https://cn.bing.com//th?id=OHR.FlamingosNamibia_ZH-CN3639748956_1920x1080.jpg";
|
let imgUrl = "https://cn.bing.com//th?id=OHR.FlamingosNamibia_ZH-CN3639748956_1920x1080.jpg";
|
||||||
const fileThumbnail = await editorCtx2.createCoverThumbnail(
|
const fileThumbnail = await editorCtx2.createCoverThumbnail(
|
||||||
imgUrl
|
imgUrl
|
||||||
@@ -541,7 +553,7 @@ const _sfc_main = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1083", err);
|
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1127", err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -561,79 +573,131 @@ const _sfc_main = {
|
|||||||
draftList.value = res.data.data.data;
|
draftList.value = res.data.data.data;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
const openCaseLevel = (lev) => {
|
||||||
|
freshKey.value++;
|
||||||
|
level.value = lev;
|
||||||
|
if (lev == 1) {
|
||||||
|
caseValue2.label_name = "";
|
||||||
|
caseValue2.app_iden = "";
|
||||||
|
labelObj.list2 = [];
|
||||||
|
} else if (lev == 2) {
|
||||||
|
labelObj.list3 = [];
|
||||||
|
caseValue3.label_name = "";
|
||||||
|
caseValue3.app_iden = "";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const groupChange1 = (e) => {
|
||||||
|
caseValue1.app_iden = e;
|
||||||
|
for (var i = 0; i < labelObj.list1.length; i++) {
|
||||||
|
if (labelObj.list1[i].app_iden == caseValue1.app_iden) {
|
||||||
|
caseValue1.label_name = labelObj.list1[i].label_name;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1172", caseValue1);
|
||||||
|
getCaseLabel(2, e);
|
||||||
|
};
|
||||||
|
const groupChange2 = (e) => {
|
||||||
|
caseValue2.app_iden = e;
|
||||||
|
for (var i = 0; i < labelObj.list2.length; i++) {
|
||||||
|
if (labelObj.list2[i].app_iden == caseValue2.app_iden) {
|
||||||
|
caseValue2.label_name = labelObj.list2[i].label_name;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
getCaseLabel(3, e);
|
||||||
|
};
|
||||||
|
const groupChange3 = (e) => {
|
||||||
|
caseValue3.app_iden = e;
|
||||||
|
level.value = 3;
|
||||||
|
for (var i = 0; i < labelObj.list3.length; i++) {
|
||||||
|
if (labelObj.list3[i].app_iden == caseValue3.app_iden) {
|
||||||
|
caseValue3.label_name = labelObj.list3[i].label_name;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
const getCaseLabel = (lev, pid = 0) => {
|
const getCaseLabel = (lev, pid = 0) => {
|
||||||
api_api.api.getCaseLabel({
|
api_api.api.getCaseLabel({
|
||||||
pId: pid
|
pId: pid
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
level.value = lev;
|
||||||
if (lev == 1) {
|
if (lev == 1) {
|
||||||
labelObj.list1 = res.data.data;
|
labelObj.list1 = res.data.data;
|
||||||
} else if (lev == 2) {
|
} else if (lev == 2) {
|
||||||
labelObj.list2 = res.data.data;
|
labelObj.list2 = res.data.data;
|
||||||
|
if (res.data.data.length == 0) {
|
||||||
|
level.value = 1;
|
||||||
|
}
|
||||||
} else if (lev == 3) {
|
} else if (lev == 3) {
|
||||||
labelObj.list3 = res.data.data;
|
labelObj.list3 = res.data.data;
|
||||||
|
if (res.data.data.length == 0) {
|
||||||
|
level.value = 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
level.value = lev;
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const confirmCase = () => {
|
const cancelCase = () => {
|
||||||
if (level.value == 1 && caseValue1.value == "") {
|
|
||||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (level.value == 2 && caseValue2.value == "") {
|
|
||||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (level.value == 3 && caseValue3.value == "") {
|
|
||||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
showCase.value = false;
|
showCase.value = false;
|
||||||
|
};
|
||||||
|
const clearCase = () => {
|
||||||
|
level.value = 1;
|
||||||
|
caseValue1.app_iden = "";
|
||||||
|
caseValue1.label_name = "";
|
||||||
|
caseValue2.app_iden = "";
|
||||||
|
caseValue2.label_name = "";
|
||||||
|
caseValue3.app_iden = "";
|
||||||
|
caseValue3.label_name = "";
|
||||||
|
labelObj.list2 = [];
|
||||||
|
labelObj.list3 = [];
|
||||||
|
freshKey.value++;
|
||||||
|
};
|
||||||
|
const confirmCase = () => {
|
||||||
|
if (level.value == 1 && caseValue1.app_iden == "") {
|
||||||
|
common_vendor.index.showToast({ title: "请选择疾病选项", icon: "none" });
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (level.value == 1) {
|
if (level.value == 1) {
|
||||||
let label = labelObj.list1.find((item) => item.app_iden == caseValue1.value);
|
let { app_iden, label_name } = caseValue1;
|
||||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1133", label);
|
|
||||||
labelList.value.push({
|
labelList.value.push({
|
||||||
app_iden: label.app_iden,
|
app_iden,
|
||||||
label_name: label.label_name
|
label_name
|
||||||
});
|
|
||||||
}
|
|
||||||
if (level.value == 2) {
|
|
||||||
let label = labelObj.list2.find((item) => item.app_iden == caseValue2.value);
|
|
||||||
labelList.value.push({
|
|
||||||
app_iden: label.app_iden,
|
|
||||||
label_name: label.label_name
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (level.value == 3) {
|
|
||||||
let label = labelObj.list3.find((item) => item.app_iden == caseValue3.value);
|
|
||||||
labelList.value.push({
|
|
||||||
app_iden: label.app_iden,
|
|
||||||
label_name: label.label_name
|
|
||||||
});
|
});
|
||||||
|
} else if (level.value == 2) {
|
||||||
|
if (!caseValue2.app_iden) {
|
||||||
|
let { app_iden, label_name } = caseValue1;
|
||||||
|
labelList.value.push({
|
||||||
|
app_iden,
|
||||||
|
label_name
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
let { app_iden, label_name } = caseValue2;
|
||||||
|
labelList.value.push({
|
||||||
|
app_iden,
|
||||||
|
label_name
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else if (level.value == 3) {
|
||||||
|
if (!caseValue3.app_iden) {
|
||||||
|
let { app_iden, label_name } = caseValue2;
|
||||||
|
labelList.value.push({
|
||||||
|
app_iden,
|
||||||
|
label_name
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
let { app_iden, label_name } = caseValue3;
|
||||||
|
labelList.value.push({
|
||||||
|
app_iden,
|
||||||
|
label_name
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
labelList.value = labelList.value.filter((item, index) => labelList.value.findIndex((i) => i.app_iden === item.app_iden) === index);
|
labelList.value = labelList.value.filter((item, index) => labelList.value.findIndex((i) => i.app_iden === item.app_iden) === index);
|
||||||
caseValue1.value = "";
|
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1290", labelList.value);
|
||||||
caseValue2.value = "";
|
showCase.value = false;
|
||||||
caseValue3.value = "";
|
|
||||||
};
|
};
|
||||||
const continueCase = () => {
|
const closeCase = () => {
|
||||||
if (level.value == 1 && caseValue1.value == "") {
|
showCase.value = false;
|
||||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (level.value == 2 && caseValue2.value == "") {
|
|
||||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (level.value == 3 && caseValue3.value == "") {
|
|
||||||
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (level.value == 1) {
|
|
||||||
getCaseLabel(2, caseValue1.value);
|
|
||||||
} else if (level.value == 2) {
|
|
||||||
getCaseLabel(3, caseValue2.value);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
const delLabel = (index) => {
|
const delLabel = (index) => {
|
||||||
labelList.value.splice(index, 1);
|
labelList.value.splice(index, 1);
|
||||||
@@ -643,6 +707,7 @@ const _sfc_main = {
|
|||||||
common_vendor.index.showToast({ title: "最多添加5个标签", icon: "none" });
|
common_vendor.index.showToast({ title: "最多添加5个标签", icon: "none" });
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
clearCase();
|
||||||
showCase.value = true;
|
showCase.value = true;
|
||||||
getCaseLabel(1, 0);
|
getCaseLabel(1, 0);
|
||||||
};
|
};
|
||||||
@@ -901,68 +966,99 @@ const _sfc_main = {
|
|||||||
show: showModal.value,
|
show: showModal.value,
|
||||||
["mask-click-able"]: true
|
["mask-click-able"]: true
|
||||||
}),
|
}),
|
||||||
aG: common_vendor.o(($event) => showCase.value = false),
|
aG: common_vendor.o(cancelCase),
|
||||||
aH: common_vendor.o(continueCase),
|
aH: common_vendor.o(confirmCase),
|
||||||
aI: level.value != 3,
|
aI: common_vendor.t(!caseValue1.label_name ? "请选择选项" : caseValue1.label_name),
|
||||||
aJ: common_vendor.o(confirmCase),
|
aJ: common_vendor.p({
|
||||||
aK: common_vendor.f(labelObj.list1, (item, k0, i0) => {
|
name: "arrow-right"
|
||||||
return {
|
|
||||||
a: "bfce3555-29-" + i0 + ",bfce3555-28",
|
|
||||||
b: common_vendor.p({
|
|
||||||
activeColor: "#3CC7C0 ",
|
|
||||||
label: item.label_name,
|
|
||||||
name: item.app_iden
|
|
||||||
}),
|
|
||||||
c: item.app_iden
|
|
||||||
};
|
|
||||||
}),
|
}),
|
||||||
aL: common_vendor.o(($event) => caseValue1.value = $event),
|
aK: common_vendor.o(($event) => openCaseLevel("1")),
|
||||||
aM: common_vendor.p({
|
aL: caseValue1.label_name && labelObj.list2.length > 0
|
||||||
iconPlacement: "right",
|
}, caseValue1.label_name && labelObj.list2.length > 0 ? {
|
||||||
placement: "column",
|
aM: common_vendor.t(!caseValue2.label_name ? "请选择选项" : caseValue2.label_name),
|
||||||
modelValue: caseValue1.value
|
aN: common_vendor.p({
|
||||||
|
name: "arrow-right"
|
||||||
}),
|
}),
|
||||||
aN: level.value == 1,
|
aO: common_vendor.o(($event) => openCaseLevel("2"))
|
||||||
aO: common_vendor.f(labelObj.list2, (item, k0, i0) => {
|
} : {}, {
|
||||||
return {
|
aP: caseValue2.label_name && labelObj.list3.length > 0
|
||||||
a: "bfce3555-31-" + i0 + ",bfce3555-30",
|
}, caseValue2.label_name && labelObj.list3.length > 0 ? {
|
||||||
b: common_vendor.p({
|
aQ: common_vendor.t(!caseValue3.label_name ? "请选择选项" : caseValue3.label_name),
|
||||||
activeColor: "#3CC7C0 ",
|
aR: common_vendor.p({
|
||||||
label: item.label_name,
|
name: "arrow-right"
|
||||||
name: item.app_iden
|
|
||||||
}),
|
|
||||||
c: item.app_iden
|
|
||||||
};
|
|
||||||
}),
|
}),
|
||||||
aP: common_vendor.o(($event) => caseValue2.value = $event),
|
aS: common_vendor.o(($event) => openCaseLevel("3"))
|
||||||
aQ: common_vendor.p({
|
} : {}, {
|
||||||
iconPlacement: "right",
|
aT: freshKey.value,
|
||||||
placement: "column",
|
|
||||||
modelValue: caseValue2.value
|
|
||||||
}),
|
|
||||||
aR: level.value == 2,
|
|
||||||
aS: common_vendor.f(labelObj.list3, (item, k0, i0) => {
|
|
||||||
return {
|
|
||||||
a: "bfce3555-33-" + i0 + ",bfce3555-32",
|
|
||||||
b: common_vendor.p({
|
|
||||||
activeColor: "#3CC7C0 ",
|
|
||||||
label: item.label_name,
|
|
||||||
name: item.app_iden
|
|
||||||
}),
|
|
||||||
c: item.app_iden
|
|
||||||
};
|
|
||||||
}),
|
|
||||||
aT: common_vendor.o(($event) => caseValue3.value = $event),
|
|
||||||
aU: common_vendor.p({
|
aU: common_vendor.p({
|
||||||
|
current: level.value - 1,
|
||||||
|
direction: "column"
|
||||||
|
}),
|
||||||
|
aV: common_vendor.f(labelObj.list1, (item, k0, i0) => {
|
||||||
|
return {
|
||||||
|
a: "bfce3555-36-" + i0 + ",bfce3555-35",
|
||||||
|
b: common_vendor.p({
|
||||||
|
activeColor: "#3CC7C0 ",
|
||||||
|
label: item.label_name,
|
||||||
|
name: item.app_iden
|
||||||
|
}),
|
||||||
|
c: item.app_iden
|
||||||
|
};
|
||||||
|
}),
|
||||||
|
aW: common_vendor.o(groupChange1),
|
||||||
|
aX: common_vendor.o(($event) => caseValue1.app_iden = $event),
|
||||||
|
aY: common_vendor.p({
|
||||||
|
name: "group1",
|
||||||
iconPlacement: "right",
|
iconPlacement: "right",
|
||||||
placement: "column",
|
placement: "column",
|
||||||
modelValue: caseValue3.value
|
modelValue: caseValue1.app_iden
|
||||||
}),
|
}),
|
||||||
aV: level.value == 3,
|
aZ: level.value == 1,
|
||||||
aW: common_vendor.o(closeCase),
|
ba: common_vendor.f(labelObj.list2, (item, k0, i0) => {
|
||||||
aX: common_vendor.p({
|
return {
|
||||||
|
a: "bfce3555-38-" + i0 + ",bfce3555-37",
|
||||||
|
b: common_vendor.p({
|
||||||
|
activeColor: "#3CC7C0 ",
|
||||||
|
label: item.label_name,
|
||||||
|
name: item.app_iden
|
||||||
|
}),
|
||||||
|
c: item.app_iden
|
||||||
|
};
|
||||||
|
}),
|
||||||
|
bb: common_vendor.o(groupChange2),
|
||||||
|
bc: common_vendor.o(($event) => caseValue2.app_iden = $event),
|
||||||
|
bd: common_vendor.p({
|
||||||
|
name: "group2",
|
||||||
|
iconPlacement: "right",
|
||||||
|
placement: "column",
|
||||||
|
modelValue: caseValue2.app_iden
|
||||||
|
}),
|
||||||
|
be: level.value == 2,
|
||||||
|
bf: common_vendor.f(labelObj.list3, (item, k0, i0) => {
|
||||||
|
return {
|
||||||
|
a: "bfce3555-40-" + i0 + ",bfce3555-39",
|
||||||
|
b: common_vendor.p({
|
||||||
|
activeColor: "#3CC7C0 ",
|
||||||
|
label: item.label_name,
|
||||||
|
name: item.app_iden
|
||||||
|
}),
|
||||||
|
c: item.app_iden
|
||||||
|
};
|
||||||
|
}),
|
||||||
|
bg: common_vendor.o(groupChange3),
|
||||||
|
bh: common_vendor.o(($event) => caseValue3.app_iden = $event),
|
||||||
|
bi: common_vendor.p({
|
||||||
|
name: "group3",
|
||||||
|
iconPlacement: "right",
|
||||||
|
placement: "column",
|
||||||
|
modelValue: caseValue3.app_iden
|
||||||
|
}),
|
||||||
|
bj: level.value == 3,
|
||||||
|
bk: common_vendor.o(closeCase),
|
||||||
|
bl: common_vendor.p({
|
||||||
round: 10,
|
round: 10,
|
||||||
zIndex: "9",
|
zIndex: "9",
|
||||||
|
closeOnClickOverlay: false,
|
||||||
show: showCase.value,
|
show: showCase.value,
|
||||||
mode: "bottom"
|
mode: "bottom"
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -10,6 +10,8 @@
|
|||||||
"up-popup": "../../node-modules/uview-plus/components/u-popup/u-popup",
|
"up-popup": "../../node-modules/uview-plus/components/u-popup/u-popup",
|
||||||
"up-empty": "../../node-modules/uview-plus/components/u-empty/u-empty",
|
"up-empty": "../../node-modules/uview-plus/components/u-empty/u-empty",
|
||||||
"up-overlay": "../../node-modules/uview-plus/components/u-overlay/u-overlay",
|
"up-overlay": "../../node-modules/uview-plus/components/u-overlay/u-overlay",
|
||||||
|
"up-steps-item": "../../node-modules/uview-plus/components/u-steps-item/u-steps-item",
|
||||||
|
"up-steps": "../../node-modules/uview-plus/components/u-steps/u-steps",
|
||||||
"up-radio": "../../node-modules/uview-plus/components/u-radio/u-radio",
|
"up-radio": "../../node-modules/uview-plus/components/u-radio/u-radio",
|
||||||
"up-radio-group": "../../node-modules/uview-plus/components/u-radio-group/u-radio-group",
|
"up-radio-group": "../../node-modules/uview-plus/components/u-radio-group/u-radio-group",
|
||||||
"sv-editor": "../../uni_modules/sv-editor/components/sv-editor/sv-editor"
|
"sv-editor": "../../uni_modules/sv-editor/components/sv-editor/sv-editor"
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -23,6 +23,20 @@
|
|||||||
/* 垂直间距 */
|
/* 垂直间距 */
|
||||||
/* 透明度 */
|
/* 透明度 */
|
||||||
/* 文章场景相关 */
|
/* 文章场景相关 */
|
||||||
|
.stepbox.data-v-bfce3555 {
|
||||||
|
padding: 15rpx 30rpx;
|
||||||
|
border-bottom: 2rpx dotted #f3f4f6;
|
||||||
|
}
|
||||||
|
.stepbox.data-v-bfce3555 .u-steps-item__content {
|
||||||
|
margin-top: -5rpx !important;
|
||||||
|
}
|
||||||
|
.stepbox .slot-content.data-v-bfce3555 {
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 25rpx;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
.casepop.data-v-bfce3555 {
|
.casepop.data-v-bfce3555 {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -593,6 +607,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
padding: 25rpx 25rpx 10rpx;
|
padding: 25rpx 25rpx 10rpx;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
.form .add.data-v-bfce3555 {
|
.form .add.data-v-bfce3555 {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -600,13 +615,17 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: #3cc7c0;
|
color: #3cc7c0;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
margin-left: 18rpx;
|
margin-left: 18rpx;
|
||||||
}
|
}
|
||||||
.form .sick.data-v-bfce3555 {
|
.form .sick.data-v-bfce3555 {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 0 60rpx 0 30rpx;
|
padding: 0 60rpx 0 30rpx;
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
white-space: nowrap;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
margin-right: 10rpx;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: #f9f9f9;
|
background: #f9f9f9;
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ const _sfc_main = {
|
|||||||
const dropTitle = common_vendor.ref("发布时间");
|
const dropTitle = common_vendor.ref("发布时间");
|
||||||
const orderFilter = common_vendor.ref("1");
|
const orderFilter = common_vendor.ref("1");
|
||||||
const uDropdownRef = common_vendor.ref(null);
|
const uDropdownRef = common_vendor.ref(null);
|
||||||
|
const dealId = common_vendor.ref("");
|
||||||
const options = common_vendor.ref([
|
const options = common_vendor.ref([
|
||||||
{
|
{
|
||||||
label: "发布时间",
|
label: "发布时间",
|
||||||
@@ -74,6 +75,7 @@ const _sfc_main = {
|
|||||||
});
|
});
|
||||||
const showCase = common_vendor.ref(false);
|
const showCase = common_vendor.ref(false);
|
||||||
common_vendor.ref(false);
|
common_vendor.ref(false);
|
||||||
|
const freshKey = common_vendor.ref(0);
|
||||||
const caseValue1 = common_vendor.reactive({
|
const caseValue1 = common_vendor.reactive({
|
||||||
value: "",
|
value: "",
|
||||||
name: ""
|
name: ""
|
||||||
@@ -202,7 +204,7 @@ const _sfc_main = {
|
|||||||
showDeal.value = true;
|
showDeal.value = true;
|
||||||
dealId.value = id;
|
dealId.value = id;
|
||||||
vote.value = voteObj;
|
vote.value = voteObj;
|
||||||
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:502", id);
|
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:504", id);
|
||||||
};
|
};
|
||||||
const alertDel = () => {
|
const alertDel = () => {
|
||||||
showDeal.value = false;
|
showDeal.value = false;
|
||||||
@@ -295,7 +297,7 @@ const _sfc_main = {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
const queryList = (pageNo, pageSize) => {
|
const queryList = (pageNo, pageSize) => {
|
||||||
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:604", 666666);
|
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:606", 666666);
|
||||||
const params = {
|
const params = {
|
||||||
page: pageNo,
|
page: pageNo,
|
||||||
page_size: pageSize
|
page_size: pageSize
|
||||||
@@ -513,7 +515,7 @@ const _sfc_main = {
|
|||||||
}),
|
}),
|
||||||
J: common_vendor.o(($event) => openCaseLevel("3"))
|
J: common_vendor.o(($event) => openCaseLevel("3"))
|
||||||
} : {}, {
|
} : {}, {
|
||||||
K: _ctx.freshKey,
|
K: freshKey.value,
|
||||||
L: common_vendor.p({
|
L: common_vendor.p({
|
||||||
current: level.value - 1,
|
current: level.value - 1,
|
||||||
direction: "column"
|
direction: "column"
|
||||||
@@ -589,20 +591,18 @@ const _sfc_main = {
|
|||||||
ad: common_vendor.o(goEdit),
|
ad: common_vendor.o(goEdit),
|
||||||
ae: common_vendor.o(alertDel),
|
ae: common_vendor.o(alertDel),
|
||||||
af: common_vendor.o(closeDealPop),
|
af: common_vendor.o(closeDealPop),
|
||||||
ag: common_vendor.o(_ctx.closeDeal),
|
ag: common_vendor.p({
|
||||||
ah: common_vendor.p({
|
|
||||||
zIndex: 60,
|
zIndex: 60,
|
||||||
overlayStyle: {
|
overlayStyle: {
|
||||||
zIndex: 59
|
zIndex: 59
|
||||||
},
|
},
|
||||||
closeOnClickOverlay: false,
|
|
||||||
show: showDeal.value,
|
show: showDeal.value,
|
||||||
round: 10,
|
round: 10,
|
||||||
mode: "bottom"
|
mode: "bottom"
|
||||||
}),
|
}),
|
||||||
ai: common_vendor.o(($event) => showModal.value = false),
|
ah: common_vendor.o(($event) => showModal.value = false),
|
||||||
aj: common_vendor.o(confirmDel),
|
ai: common_vendor.o(confirmDel),
|
||||||
ak: common_vendor.p({
|
aj: common_vendor.p({
|
||||||
show: showModal.value,
|
show: showModal.value,
|
||||||
["mask-click-able"]: true
|
["mask-click-able"]: true
|
||||||
})
|
})
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -68,6 +68,7 @@ const _sfc_main = {
|
|||||||
});
|
});
|
||||||
const showCase = common_vendor.ref(false);
|
const showCase = common_vendor.ref(false);
|
||||||
common_vendor.ref(false);
|
common_vendor.ref(false);
|
||||||
|
const freshKey = common_vendor.ref(0);
|
||||||
const caseValue1 = common_vendor.reactive({
|
const caseValue1 = common_vendor.reactive({
|
||||||
value: "",
|
value: "",
|
||||||
name: ""
|
name: ""
|
||||||
@@ -247,8 +248,8 @@ const _sfc_main = {
|
|||||||
return common_vendor.dayjs(date).format("YYYY-MM-DD");
|
return common_vendor.dayjs(date).format("YYYY-MM-DD");
|
||||||
};
|
};
|
||||||
const goDetail = (id) => {
|
const goDetail = (id) => {
|
||||||
common_vendor.index.__f__("log", "at pages/videoList/videoList.vue:452", 11111);
|
common_vendor.index.__f__("log", "at pages/videoList/videoList.vue:453", 11111);
|
||||||
common_vendor.index.__f__("log", "at pages/videoList/videoList.vue:453", id);
|
common_vendor.index.__f__("log", "at pages/videoList/videoList.vue:454", id);
|
||||||
let type = isArticle.value ? "article" : "video";
|
let type = isArticle.value ? "article" : "video";
|
||||||
utils_navTo.navTo({
|
utils_navTo.navTo({
|
||||||
url: `/pages/detail/detail?id=${id}&type=${type}`
|
url: `/pages/detail/detail?id=${id}&type=${type}`
|
||||||
@@ -329,7 +330,7 @@ const _sfc_main = {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
const queryList = (pageNo, pageSize) => {
|
const queryList = (pageNo, pageSize) => {
|
||||||
common_vendor.index.__f__("log", "at pages/videoList/videoList.vue:536", 666666);
|
common_vendor.index.__f__("log", "at pages/videoList/videoList.vue:537", 666666);
|
||||||
const params = {
|
const params = {
|
||||||
page: pageNo,
|
page: pageNo,
|
||||||
page_size: pageSize
|
page_size: pageSize
|
||||||
@@ -465,7 +466,7 @@ const _sfc_main = {
|
|||||||
}),
|
}),
|
||||||
O: common_vendor.o(($event) => openCaseLevel("3"))
|
O: common_vendor.o(($event) => openCaseLevel("3"))
|
||||||
} : {}, {
|
} : {}, {
|
||||||
P: _ctx.freshKey,
|
P: freshKey.value,
|
||||||
Q: common_vendor.p({
|
Q: common_vendor.p({
|
||||||
current: level.value - 1,
|
current: level.value - 1,
|
||||||
direction: "column"
|
direction: "column"
|
||||||
|
|||||||
Reference in New Issue
Block a user