|
@@ -62,7 +62,7 @@
|
|
|
<el-table-column label="姓名" align="center" prop="xm" />
|
|
|
<el-table-column label="性别" align="center" prop="xb" >
|
|
|
<template v-slot="scope">
|
|
|
- <dict-tag :options="dict.type.CZ007" :value="scope.row.zzzt"/>
|
|
|
+ <dict-tag :options="dict.type.C0007" :value="scope.row.zzzt"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="出生日期" align="center" prop="csrq" >
|
|
@@ -80,13 +80,13 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="handleUpdate(scope.row)"
|
|
|
- v-hasPermi="['lnst:yg:edit']"
|
|
|
- >修改</el-button>
|
|
|
+ <!--<el-button-->
|
|
|
+ <!-- size="mini"-->
|
|
|
+ <!-- type="text"-->
|
|
|
+ <!-- icon="el-icon-edit"-->
|
|
|
+ <!-- @click="handleUpdate(scope.row)"-->
|
|
|
+ <!-- v-hasPermi="['lnst:yg:edit']"-->
|
|
|
+ <!-->修改</el-button>-->
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
@@ -137,7 +137,7 @@
|
|
|
|
|
|
export default {
|
|
|
name: "Yg",
|
|
|
- dicts: ['CZ001', 'CZ007'],
|
|
|
+ dicts: ['CZ001', 'C0007'],
|
|
|
data() {
|
|
|
return {
|
|
|
// 遮罩层
|
|
@@ -288,14 +288,15 @@
|
|
|
addYg(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
|
+ this.getList()
|
|
|
// this.getList();
|
|
|
/****** sks 需要改动的地方 start ******/
|
|
|
- if (this.queryParams.pageSize===this.ygList.length)
|
|
|
- {
|
|
|
- this.ygList.pop();
|
|
|
- }
|
|
|
- this.ygList.unshift({...this.form,id:response.data});
|
|
|
- this.total++;
|
|
|
+ // if (this.queryParams.pageSize===this.ygList.length)
|
|
|
+ // {
|
|
|
+ // this.ygList.pop();
|
|
|
+ // }
|
|
|
+ // this.ygList.unshift({...this.form,id:response.data});
|
|
|
+ // this.total++;
|
|
|
/****** sks 需要改动的地方 end ******/
|
|
|
}).finally(()=>this.submitFormLoading =false);
|
|
|
}
|