|
@@ -12,6 +12,7 @@
|
|
|
</template>
|
|
|
<script type="text/javascript">
|
|
|
import Toast from '../common/Toast.vue';
|
|
|
+import {moduleCP} from '@utils/tools';
|
|
|
export default{
|
|
|
name:'Label',
|
|
|
data(){
|
|
@@ -79,9 +80,9 @@ import Toast from '../common/Toast.vue';
|
|
|
const temp = this.tempItem;
|
|
|
// 从store中取origin的值
|
|
|
let origin,newItem;
|
|
|
- if(this.moduleType==2){
|
|
|
+ if(this.moduleType==moduleCP['diagT']){
|
|
|
origin = this.$store.state.diagnose.origin
|
|
|
- }else if(this.moduleType == 3){
|
|
|
+ }else if(this.moduleType == moduleCP['other']){
|
|
|
origin = this.$store.state.others.origin
|
|
|
}
|
|
|
if(origin){
|