Browse Source

reactor:质检录音新增;

zhangchong 1 year ago
parent
commit
130e6e6e61

+ 1 - 1
src/views/quality/template/components/Template-add.vue

@@ -122,7 +122,7 @@ const closeDialog = () => {
 };
 // 新增质检项
 const addItems = () => {
-	state.ruleForm.templateDetails.push({
+	state.ruleForm.templateDetails.unshift({
     itemId:'',
     templateId: '',
 		name: '',

+ 1 - 1
src/views/quality/template/components/Template-edit.vue

@@ -153,7 +153,7 @@ const close = () => {
 };
 // 新增质检项
 const addItems = () => {
-	state.ruleForm.templateDetails.push({
+	state.ruleForm.templateDetails.unshift({
 		name: '',
 		content: '',
 		grade: 0,

+ 1 - 1
src/views/quality/template/index.vue

@@ -28,7 +28,7 @@
 			<!-- 表格 -->
 			<el-table :data="state.tableData" v-loading="state.loading" row-key="id" ref="multipleTableRef" @selection-change="handleSelectionChange">
 				<el-table-column type="selection" width="55" />
-				<el-table-column prop="name" label="模版名称" show-overflow-tooltip width="130"></el-table-column>
+				<el-table-column prop="name" label="模版名称" show-overflow-tooltip width="200"></el-table-column>
 				<el-table-column prop="groupingText" label="质检分类" show-overflow-tooltip></el-table-column>
         <el-table-column label="是否启用" show-overflow-tooltip>
           <template #default="{ row }">