vue.js radio

本文介绍了一个使用Vue.js框架实现的学生信息展示和排序的示例。通过绑定和计算属性,实现了学生列表的动态渲染及根据ID正序排列。代码中包含了HTML结构、JavaScript逻辑以及数组对象方法的排序实现。
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript" src="jquery-1.10.2.min.js"></script>
		<script type="text/javascript" src='vue.min.js'></script>
	</head>
	<body>
	<div id="vm">
		<ul v-if="students.length>0">
		<li v-for="(item,index) in sortStudents">
			<input type="radio" v-bind:id="item.id" v-bind:value="item.id" v-model="checkedStudent">
			<label v-bind:for="item.id">{{item.name}}</label>
		</li>
		</ul>
		<span>{{checkedStudent}}</span>
	</div>
	</body>
	<script type="text/javascript">
		var vm = new Vue({
			el: '#vm',
			data: {
				/* 所有学生 */
				students: [{
						id: 's20',
						name: '李四',
					},
					{
						id: 's10',
						name: '张三',
					},
					{
						id: 's30',
						name: '王五',
					},
					{
						id: 's40',
						name: '马六',
					},
				],
				/* 选中学生 */
				checkedStudent: 's20'
			},
			computed: {
				sortStudents: function() { /* 根据主键正序 */
					return sortByKey(this.students, 'id');
				}
			}
		});
		//数组对象方法排序:
		function sortByKey(array, key) {
			return array.sort(function(a, b) {
				var x = a[key];
				var y = b[key];
				return ((x < y) ? -1 : ((x > y) ? 1 : 0));
			});
		}
	</script>
</html>

 

log.js:24 [HMR] Waiting for update signal from WDS... vue.runtime.esm.js:8429 Download the Vue Devtools extension for a better development experience: https://github.com/vuejs/vue-devtools permission.js:27 [vue-router] Non-nested routes must include a leading slash character. Fix the following routes: - http://192.168.12.58:9086/#/cms/main/cmsIndex warn @ vue-router.esm.js:16 createRouteMap @ vue-router.esm.js:1339 addRoutes @ vue-router.esm.js:1523 addRoutes @ vue-router.esm.js:3036 (anonymous) @ permission.js:27 vue.runtime.esm.js:619 [Vue warn]: Method "parseTime" has type "undefined" in the component definition. Did you reference the function correctly? found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 initMethods @ vue.runtime.esm.js:4857 initState @ vue.runtime.esm.js:4640 Vue._init @ vue.runtime.esm.js:5006 VueComponent @ vue.runtime.esm.js:5154 createComponentInstanceForVnode @ vue.runtime.esm.js:3283 init @ vue.runtime.esm.js:3114 merged @ vue.runtime.esm.js:3301 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 merged @ vue.runtime.esm.js:3301 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 updateChildren @ vue.runtime.esm.js:6216 patchVnode @ vue.runtime.esm.js:6319 patch @ vue.runtime.esm.js:6482 Vue._update @ vue.runtime.esm.js:3948 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1318 [Vue warn]: Property or method "uploadPcbTopImage" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1318 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 merged @ vue.runtime.esm.js:3301 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 merged @ vue.runtime.esm.js:3301 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 updateChildren @ vue.runtime.esm.js:6216 patchVnode @ vue.runtime.esm.js:6319 patch @ vue.runtime.esm.js:6482 Vue._update @ vue.runtime.esm.js:3948 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1323 [Vue warn]: Property or method "uploadPcbBottomImage" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1323 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 merged @ vue.runtime.esm.js:3301 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 merged @ vue.runtime.esm.js:3301 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 updateChildren @ vue.runtime.esm.js:6216 patchVnode @ vue.runtime.esm.js:6319 patch @ vue.runtime.esm.js:6482 Vue._update @ vue.runtime.esm.js:3948 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1331 [Vue warn]: Property or method "uploadPcmPortImage" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1331 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 merged @ vue.runtime.esm.js:3301 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 merged @ vue.runtime.esm.js:3301 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 updateChildren @ vue.runtime.esm.js:6216 patchVnode @ vue.runtime.esm.js:6319 patch @ vue.runtime.esm.js:6482 Vue._update @ vue.runtime.esm.js:3948 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1371 [Vue warn]: Property or method "uploadNtcTable1" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1371 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 merged @ vue.runtime.esm.js:3301 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 merged @ vue.runtime.esm.js:3301 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 updateChildren @ vue.runtime.esm.js:6216 patchVnode @ vue.runtime.esm.js:6319 patch @ vue.runtime.esm.js:6482 Vue._update @ vue.runtime.esm.js:3948 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1378 [Vue warn]: Property or method "uploadNtcTable2" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1378 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 merged @ vue.runtime.esm.js:3301 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 merged @ vue.runtime.esm.js:3301 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 updateChildren @ vue.runtime.esm.js:6216 patchVnode @ vue.runtime.esm.js:6319 patch @ vue.runtime.esm.js:6482 Vue._update @ vue.runtime.esm.js:3948 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 element-ui.common.js:9140 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: http://localhost:9086/static/fonts/element-icons.535877f5.woff index.vue:1318 [Vue warn]: Property or method "uploadPcbTopImage" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1318 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1323 [Vue warn]: Property or method "uploadPcbBottomImage" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1323 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1331 [Vue warn]: Property or method "uploadPcmPortImage" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1331 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1371 [Vue warn]: Property or method "uploadNtcTable1" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1371 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1378 [Vue warn]: Property or method "uploadNtcTable2" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1378 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 f054162a-9c11-412a-aca7-35f65983bbee-blob:1 Failed to load resource: the server responded with a status of 404 (Not Found) index.vue:1318 [Vue warn]: Property or method "uploadPcbTopImage" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1318 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1323 [Vue warn]: Property or method "uploadPcbBottomImage" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1323 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1331 [Vue warn]: Property or method "uploadPcmPortImage" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1331 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1371 [Vue warn]: Property or method "uploadNtcTable1" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1371 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1378 [Vue warn]: Property or method "uploadNtcTable2" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1378 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1318 [Vue warn]: Property or method "uploadPcbTopImage" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1318 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1323 [Vue warn]: Property or method "uploadPcbBottomImage" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1323 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1331 [Vue warn]: Property or method "uploadPcmPortImage" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1331 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1371 [Vue warn]: Property or method "uploadNtcTable1" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1371 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 index.vue:1378 [Vue warn]: Property or method "uploadNtcTable2" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 warnNonPresent @ vue.runtime.esm.js:2015 get @ vue.runtime.esm.js:2070 render @ index.vue:1378 Vue._render @ vue.runtime.esm.js:3548 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 vue.runtime.esm.js:619 [Vue warn]: Invalid handler for event "change": got undefined found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 updateListeners @ vue.runtime.esm.js:2200 updateDOMListeners @ vue.runtime.esm.js:6951 invokeCreateHooks @ vue.runtime.esm.js:6069 createElm @ vue.runtime.esm.js:5956 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 updateChildren @ vue.runtime.esm.js:6216 patchVnode @ vue.runtime.esm.js:6319 updateChildren @ vue.runtime.esm.js:6193 patchVnode @ vue.runtime.esm.js:6319 patch @ vue.runtime.esm.js:6482 Vue._update @ vue.runtime.esm.js:3948 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 vue.runtime.esm.js:619 [Vue warn]: Invalid handler for event "change": got undefined found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 updateListeners @ vue.runtime.esm.js:2200 updateDOMListeners @ vue.runtime.esm.js:6951 invokeCreateHooks @ vue.runtime.esm.js:6069 createElm @ vue.runtime.esm.js:5956 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 updateChildren @ vue.runtime.esm.js:6216 patchVnode @ vue.runtime.esm.js:6319 updateChildren @ vue.runtime.esm.js:6193 patchVnode @ vue.runtime.esm.js:6319 patch @ vue.runtime.esm.js:6482 Vue._update @ vue.runtime.esm.js:3948 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 vue.runtime.esm.js:619 [Vue warn]: Invalid handler for event "change": got undefined found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 updateListeners @ vue.runtime.esm.js:2200 updateDOMListeners @ vue.runtime.esm.js:6951 invokeCreateHooks @ vue.runtime.esm.js:6069 createElm @ vue.runtime.esm.js:5956 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 updateChildren @ vue.runtime.esm.js:6216 patchVnode @ vue.runtime.esm.js:6319 updateChildren @ vue.runtime.esm.js:6193 patchVnode @ vue.runtime.esm.js:6319 patch @ vue.runtime.esm.js:6482 Vue._update @ vue.runtime.esm.js:3948 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 vue.runtime.esm.js:619 [Vue warn]: Invalid handler for event "change": got undefined found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 updateListeners @ vue.runtime.esm.js:2200 updateDOMListeners @ vue.runtime.esm.js:6951 invokeCreateHooks @ vue.runtime.esm.js:6069 createElm @ vue.runtime.esm.js:5956 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 updateChildren @ vue.runtime.esm.js:6216 patchVnode @ vue.runtime.esm.js:6319 updateChildren @ vue.runtime.esm.js:6193 patchVnode @ vue.runtime.esm.js:6319 patch @ vue.runtime.esm.js:6482 Vue._update @ vue.runtime.esm.js:3948 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 vue.runtime.esm.js:619 [Vue warn]: Invalid handler for event "change": got undefined found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 updateListeners @ vue.runtime.esm.js:2200 updateDOMListeners @ vue.runtime.esm.js:6951 invokeCreateHooks @ vue.runtime.esm.js:6069 createElm @ vue.runtime.esm.js:5956 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 patch @ vue.runtime.esm.js:6477 Vue._update @ vue.runtime.esm.js:3945 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 Watcher @ vue.runtime.esm.js:4468 mountComponent @ vue.runtime.esm.js:4073 push../node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 createComponent @ vue.runtime.esm.js:5978 createElm @ vue.runtime.esm.js:5925 createChildren @ vue.runtime.esm.js:6053 createElm @ vue.runtime.esm.js:5954 updateChildren @ vue.runtime.esm.js:6216 patchVnode @ vue.runtime.esm.js:6319 updateChildren @ vue.runtime.esm.js:6193 patchVnode @ vue.runtime.esm.js:6319 patch @ vue.runtime.esm.js:6482 Vue._update @ vue.runtime.esm.js:3948 updateComponent @ vue.runtime.esm.js:4066 get @ vue.runtime.esm.js:4479 run @ vue.runtime.esm.js:4554 flushSchedulerQueue @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 flushCallbacks @ vue.runtime.esm.js:1906 vue.runtime.esm.js:619 [Vue warn]: Property or method "uploadPcbTopImage" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 vue.runtime.esm.js:619 [Vue warn]: Property or method "uploadPcbBottomImage" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 vue.runtime.esm.js:619 [Vue warn]: Property or method "uploadPcmPortImage" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 vue.runtime.esm.js:619 [Vue warn]: Property or method "uploadNtcTable1" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 vue.runtime.esm.js:619 [Vue warn]: Property or method "uploadNtcTable2" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 vue.runtime.esm.js:619 [Vue warn]: Invalid handler for event "change": got undefined found in ---> <SpecificationData> at src/views/cms/productionSpecification/index.vue <AppMain> at src/layout/components/AppMain.vue <Layout> at src/layout/index.vue <App> at src/App.vue <Root> warn @ vue.runtime.esm.js:619 vue.runtime.esm.js:619 [Vue warn]: Error in nextTick: "TypeError: Cannot read properties of undefined (reading '_wrapper')" warn @ vue.runtime.esm.js:619 vue.runtime.esm.js:1888 TypeError: Cannot read properties of undefined (reading '_wrapper') at remove$2 (vue.runtime.esm.js:6938:1) at updateListeners (vue.runtime.esm.js:2220:1) at Array.updateDOMListeners (vue.runtime.esm.js:6951:1) at patchVnode (vue.runtime.esm.js:6314:48) at updateChildren (vue.runtime.esm.js:6193:1) at patchVnode (vue.runtime.esm.js:6319:28) at updateChildren (vue.runtime.esm.js:6193:1) at patchVnode (vue.runtime.esm.js:6319:28) at updateChildren (vue.runtime.esm.js:6193:1) at patchVnode (vue.runtime.esm.js:6319:28) logError @ vue.runtime.esm.js:1888 :9086/#/cms/specification/productionSpecification:1 Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden. Element with focus: <input.el-radio__original> Ancestor with aria-hidden: <input.el-radio__original> <input type=​"radio" aria-hidden=​"true" tabindex=​"-1" autocomplete=​"off" class=​"el-radio__original" value=​"机密">​ :9086/#/cms/specification/productionSpecification:1 Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden. Element with focus: <input.el-radio__original> Ancestor with aria-hidden: <input.el-radio__original> <input type=​"radio" aria-hidden=​"true" tabindex=​"-1" autocomplete=​"off" class=​"el-radio__original" value=​"内部公开">​ :9086/#/cms/specification/productionSpecification:1 Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden. Element with focus: <input.el-radio__original> Ancestor with aria-hidden: <input.el-radio__original> <input type=​"radio" aria-hidden=​"true" tabindex=​"-1" autocomplete=​"off" class=​"el-radio__original" value=​"外部公开">​ :9086/#/cms/specification/productionSpecification:1 Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden. Element with focus: <input.el-radio__original> Ancestor with aria-hidden: <input.el-radio__original> <input type=​"radio" aria-hidden=​"true" tabindex=​"-1" autocomplete=​"off" class=​"el-radio__original" value=​"绝密">​
最新发布
11-20
你提供的日志信息中包含多个 **Vue 警告和错误**,主要包括以下几类问题: --- ## 🚨 一、`Property or method is not defined` 错误 ### 错误示例: ``` [Vue warn]: Property or method "uploadPcbTopImage" is not defined on the instance but referenced during render. ``` ### 原因: 你在模板中使用了 `uploadPcbTopImage`、`uploadPcbBottomImage`、`uploadPcmPortImage`、`uploadNtcTable1`、`uploadNtcTable2` 等方法或属性,但它们**没有在 `methods` 或 `data` 中定义**。 ### ✅ 修复方法: 在组件的 `methods` 中定义这些方法,例如: ```js export default { data() { return { specForm: { confidentialLevel: '内部公开' } }; }, methods: { uploadPcbTopImage(file) { console.log('上传PCB顶部图片', file); }, uploadPcbBottomImage(file) { console.log('上传PCB底部图片', file); }, uploadPcmPortImage(file) { console.log('上传PCM端口图', file); }, uploadNtcTable1(file) { console.log('上传NTC表1', file); }, uploadNtcTable2(file) { console.log('上传NTC表2', file); } } }; ``` --- ## 🚨 二、`Invalid handler for event "change": got undefined` ### 错误示例: ``` [Vue warn]: Invalid handler for event "change": got undefined ``` ### 原因: 你在组件上绑定了 `@change="uploadPcbTopImage"`,但该方法没有定义或拼写错误。 ### ✅ 修复方法: 确保事件绑定的函数名与 `methods` 中定义的一致,例如: ```html <el-upload :on-change="uploadPcbTopImage" action="/api/upload" > <el-button>上传PCB顶部图片</el-button> </el-upload> ``` --- ## 🚨 三、路由警告:`Non-nested routes must include a leading slash character` ### 错误示例: ``` [vue-router] Non-nested routes must include a leading slash character. Fix the following routes: - http://192.168.12.58:9086/#/cms/main/cmsIndex ``` ### 原因: 你在定义路由时,路径没有以 `/` 开头,例如: ```js { path: 'cms/main/cmsIndex', name: 'CmsIndex', component: () => import('@/views/cms/index.vue') } ``` ### ✅ 修复方法: 确保所有路由路径以 `/` 开头: ```js { path: '/cms/main/cmsIndex', name: 'CmsIndex', component: () => import('@/views/cms/index.vue') } ``` --- ## 🚨 四、可访问性警告:`Blocked aria-hidden on an element because its descendant retained focus` ### 错误示例: ``` Blocked aria-hidden on an element because its descendant retained focus. ``` ### 原因: Element Plus 的 `el-radio` 组件中使用了 `aria-hidden="true"` 来隐藏原生 radio,但有时它仍然获得了焦点。 ### ✅ 修复方法: 使用 CSS 隐藏原生 radio,而不是使用 `aria-hidden`: ```css .el-radio__original { opacity: 0; position: absolute; clip: rect(0 0 0 0); pointer-events: none; } ``` --- ## ✅ 最终修复建议 ### ✅ 模板部分(`el-radio-group`)保持不变: ```html <el-radio-group v-model="specForm.confidentialLevel"> <el-radio label="绝密">绝密</el-radio> <el-radio label="机密">机密</el-radio> <el-radio label="内部公开">内部公开</el-radio> <el-radio label="外部公开">外部公开</el-radio> </el-radio-group> ``` ### ✅ JS 部分补充缺失的方法: ```js export default { data() { return { specForm: { confidentialLevel: '内部公开' } }; }, methods: { uploadPcbTopImage(file) { console.log('上传PCB顶部图片', file); }, uploadPcbBottomImage(file) { console.log('上传PCB底部图片', file); }, uploadPcmPortImage(file) { console.log('上传PCM端口图', file); }, uploadNtcTable1(file) { console.log('上传NTC表1', file); }, uploadNtcTable2(file) { console.log('上传NTC表2', file); } } }; ``` ### ✅ CSS 修复可访问性问题: ```css .el-radio__original { opacity: 0; position: absolute; clip: rect(0 0 0 0); pointer-events: none; } ``` --- ##
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值