This commit is contained in:
yanran200730
2022-10-26 10:09:24 +08:00
parent 6e5657e446
commit bdf6459fd6
3 changed files with 10 additions and 2 deletions

View File

@@ -62,7 +62,7 @@
@change="onChange" @change="onChange"
placeholder="请选择模板"> placeholder="请选择模板">
</ai-select> </ai-select>
<!-- <el-button type="text" @click="toAddTemplate">新建模板</el-button> --> <el-button type="text" @click="toAddTemplate">新建模板</el-button>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="表单名称" style="width: 100%" prop="templateName" :rules="[{required: true, message: '请输入表单名称', trigger: 'blur'}]"> <el-form-item label="表单名称" style="width: 100%" prop="templateName" :rules="[{required: true, message: '请输入表单名称', trigger: 'blur'}]">
@@ -201,7 +201,7 @@
}, },
toAddTemplate () { toAddTemplate () {
// this.$router.push({name: 'AppScoringTemplate'}) this.$router.push({name: '289e949df7914db282c24dabd55b8c4d', query: {isAdd: 1}})
}, },
getInfo () { getInfo () {

View File

@@ -50,6 +50,7 @@
<el-input <el-input
v-model="search1.name" v-model="search1.name"
size="small" size="small"
key="currindex1"
placeholder="请输入参评人、评分人姓名" placeholder="请输入参评人、评分人姓名"
clearable clearable
v-throttle="() => {search1.current = 1, getList1()}" v-throttle="() => {search1.current = 1, getList1()}"
@@ -109,6 +110,7 @@
<el-input <el-input
v-model="search2.name" v-model="search2.name"
size="small" size="small"
key="currindex2"
placeholder="请输入参评人姓名" placeholder="请输入参评人姓名"
clearable clearable
v-throttle="() => {search2.current = 1, getList2()}" v-throttle="() => {search2.current = 1, getList2()}"

View File

@@ -32,6 +32,12 @@
Add Add
}, },
mounted () {
if (this.$route.query.isAdd === '1') {
this.component = 'Add'
}
},
methods: { methods: {
onChange (data) { onChange (data) {
if (data.type === 'Add') { if (data.type === 'Add') {