Przeglądaj źródła

feat():修改bug

geek 4 lat temu
rodzic
commit
6dbccdaae0
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      src/views/city/list.vue

+ 4 - 4
src/views/city/list.vue

@@ -18,7 +18,7 @@
 
       <el-table-column align="center" label="城市">
         <template slot-scope="scope">
-          <span>{{ scope.row.name }}</span>
+          <span>{{ scope.row.sname }}</span>
         </template>
       </el-table-column>
       <el-table-column class-name="status-col" label="状态" width="80ß">
@@ -49,8 +49,8 @@
     <pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.pageSize" @pagination="getList" />
     <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible">
       <el-form ref="dataForm" :model="temp" label-position="left" label-width="70px" style="width: 400px; margin-left:50px;">
-        <el-form-item label="城市" prop="name">
-          <el-input v-model="temp.name" />
+        <el-form-item label="城市" prop="sname">
+          <el-input v-model="temp.sname" />
         </el-form-item>
         <el-form-item label="排序" prop="sort">
           <el-input v-model="temp.sort" placeholder="倒序" />
@@ -98,7 +98,7 @@ export default {
       },
       temp: {
         id: undefined,
-        name: '',
+        sname: '',
         sort: 0
       },
       dialogFormVisible: false,