zcy 4 years ago
parent
commit
c2759f6ea0

+ 59 - 21
src/views/basics/pillar/CheckAndEditModel.vue

@@ -1,25 +1,70 @@
 <template>
 <template>
   <j-modal
   <j-modal
     :title="title"
     :title="title"
-    :width="800"
+    :width="700"
     :visible="visible"
     :visible="visible"
     :mask-closable="false"
     :mask-closable="false"
     cancel-text="关闭"
     cancel-text="关闭"
     @close="close"
     @close="close"
   >
   >
     <a-form-model ref="form" :label-col="labelCol" :wrapper-col="wrapperCol" :rules="validatorRules" :model="model">
     <a-form-model ref="form" :label-col="labelCol" :wrapper-col="wrapperCol" :rules="validatorRules" :model="model">
-      <a-form-model-item label="文书名称" prop="name">
-        <a-input v-model="model.name" />
+      <a-form-model-item label="支柱号" prop="zzh">
+        <a-input v-model="model.zzh" />
       </a-form-model-item>
       </a-form-model-item>
-<!--      <a-form-model-item label="文书类型" prop="type">-->
-<!--        <j-dict-select-tag-->
-<!--          v-model="model.type"-->
-<!--          style="width: 360px"-->
-<!--          dict-code="word_type"-->
-<!--        />-->
-<!--      </a-form-model-item>-->
-      <a-form-model-item label="文书描述" prop="remarks">
-        <a-input v-model="model.remarks" />
+      <a-form-model-item label="所属部门" prop="zzh">
+      </a-form-model-item>
+      <a-form-model-item label="线别" prop="xb">
+        <j-dict-select-tag
+          v-model="model.xb"
+          dict-code="word_type"
+        />
+      </a-form-model-item>
+      <a-form-model-item label="站场区间" prop="qj">
+        <j-dict-select-tag
+          v-model="model.qj"
+          dict-code="word_type"
+        />
+      </a-form-model-item>
+      <a-form-model-item label="行别" prop="hb">
+        <j-dict-select-tag
+          type="radioButton"
+          v-model="model.qj"
+          dict-code="word_type"
+        />
+      </a-form-model-item>
+      <a-form-model-item label="公里标" prop="glb">
+        <a-input v-model="model.glb" />
+      </a-form-model-item>
+      <a-form-model-item label="支柱类型" prop="zzlx">
+        <j-dict-select-tag
+          v-model="model.zzlx"
+          dict-code="word_type"
+        />
+      </a-form-model-item>
+      <a-form-model-item label="支柱型号" prop="zzxh">
+        <j-dict-select-tag
+          v-model="model.zzxh"
+          dict-code="word_type"
+        />
+      </a-form-model-item>
+      <a-form-model-item label="支柱用途" prop="zzyt">
+        <j-dict-select-tag
+          v-model="model.zzyt"
+          dict-code="word_type"
+        />
+      </a-form-model-item>
+      <a-form-model-item label="材质" prop="cz">
+        <j-dict-select-tag
+          v-model="model.cz"
+          dict-code="word_type"
+        />
+      </a-form-model-item>
+      <a-form-model-item label="直线/曲外/曲内" prop="lx">
+        <j-dict-select-tag
+          type="radioButton"
+          v-model="model.lx"
+          dict-code="word_type"
+        />
       </a-form-model-item>
       </a-form-model-item>
     </a-form-model>
     </a-form-model>
   </j-modal>
   </j-modal>
@@ -35,7 +80,7 @@ export default {
   data() {
   data() {
     return {
     return {
       labelCol: { span: 4 },
       labelCol: { span: 4 },
-      wrapperCol: { span: 14 },
+      wrapperCol: { span: 19 },
       dataSource: [],
       dataSource: [],
       title: '',
       title: '',
       visible: false,
       visible: false,
@@ -79,7 +124,7 @@ export default {
         }
         }
       })
       })
     },
     },
-    saveData(result) {
+    saveData() {
       let url, type
       let url, type
       if (!this.model.id) {
       if (!this.model.id) {
         url = this.url.add
         url = this.url.add
@@ -89,13 +134,6 @@ export default {
         url = this.url.edit
         url = this.url.edit
         type = 'put'
         type = 'put'
       }
       }
-      if (result) {
-        this.model.fileName = result.fileName
-        this.model.tempUrl = result.tempUrl
-      } else {
-        this.model.fileName = ''
-        this.model.tempUrl = ''
-      }
       httpAction(url, this.model, type).then((res) => {
       httpAction(url, this.model, type).then((res) => {
         if (res.code === 200) {
         if (res.code === 200) {
           this.$message.success(res.msg)
           this.$message.success(res.msg)

+ 0 - 2
src/views/basics/pillar/indexColumns.js

@@ -13,9 +13,7 @@ function columns(vm) {
       title: '线别',
       title: '线别',
       align: 'center',
       align: 'center',
       dataIndex: 'xb',
       dataIndex: 'xb',
-      scopedSlots: { customRender: 'xb' },
       key: 'xb',
       key: 'xb',
-      width: 300
     },
     },
     {
     {
       title: '区间/站场',
       title: '区间/站场',