Explorar el Código

Merge branch 'deploy' of http://git.chelingzhu.com/chelingzhu-web/zxyj-admin-html into deploy

lilei hace 4 años
padre
commit
2e6b8df127
Se han modificado 1 ficheros con 2 adiciones y 11 borrados
  1. 2 11
      src/views/equipmentManage/network/editModal.vue

+ 2 - 11
src/views/equipmentManage/network/editModal.vue

@@ -25,17 +25,6 @@
           placeholder="请输入网点名称(最多30个字符)"
           allowClear />
       </a-form-item>
-      <!-- <a-form-item label="地址" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
-        <a-cascader
-          id="network-edit-areas"
-          v-decorator="[
-            'options',
-            {initialValue: areas,
-             rules: [{ required: true, message: '请选择省市区' }]}
-          ]"
-          :options="options"
-          placeholder="请选择省市区" />
-      </a-form-item> -->
       <a-form-item label="地址" required :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" style="margin: 0;">
         <a-row :gutter="20">
           <!-- 地址 -->
@@ -206,6 +195,8 @@ export default {
       stationFind({ id: this.networkId }).then(res => {
         if (res.status == 200) {
           //  省市区
+          this.getCityList(res.data.provinceCode)
+          this.getAreaList(res.data.cityCode)
           this.form.setFieldsValue({ 'formData.name': res.data.name })
           this.form.setFieldsValue({ 'formData.provinceCode': res.data.provinceCode })
           this.form.setFieldsValue({ 'formData.cityCode': res.data.cityCode })