Kaynağa Gözat

feat: 工程登录地图半径

zh 2 yıl önce
ebeveyn
işleme
235276f36f
1 değiştirilmiş dosya ile 21 ekleme ve 4 silme
  1. 21 4
      src/views/setting/other.vue

+ 21 - 4
src/views/setting/other.vue

@@ -11,7 +11,7 @@
       <el-radio-button label="eigth">权限分类</el-radio-button>
       <el-radio-button v-if="$checkBtnRole('receipt', $route.meta.roles)" label="receipt">发票</el-radio-button>
       <el-radio-button label="warehouse">仓租费配置</el-radio-button>
-
+      <el-radio-button label="radius">商用登录地图半径</el-radio-button>
     </el-radio-group>
 
     <div v-show="formType === 'first'">
@@ -328,6 +328,19 @@
       </div>
       <el-button type="primary" size="small" @click="submitStockForm">确 定</el-button>
     </div>
+    <div v-show="formType === 'radius'">
+      <div style="margin: 40px 0 30px;">
+        <span>商用工程登录信息的工程半径配置</span>
+        <el-input
+          v-model="radiusForm.input1.dictValue"
+          style="width: 150px; margin: 0 10px"
+          placeholder=""
+          size="mini"
+        />
+        <span>公里</span>
+      </div>
+      <el-button type="primary" size="small" @click="submitForm('radius')">确 定</el-button>
+    </div>
     <!-- //弹窗 -->
     <el-dialog :title="title" :visible.sync="dialogForm" width="30%" :show-close="false" :close-on-click-modal="false">
       <el-form ref="addForm" size="mini" :rules="rules" :model="addForm" label-width="120px">
@@ -384,6 +397,9 @@ export default {
       fifthForm: {
         input1: {}
       },
+      radiusForm: {
+        input1: {}
+      },
       stockCostDict: {},
       sixthForm: [],
       seventhForm: [],
@@ -524,8 +540,8 @@ export default {
             return
           }
           this[type + 'Form'].input1 = data[0]
+          console.log(  this[type + 'Form'].input1, 999)
           // this[type + "Form"].input2 = data[1];
-          console.log(777, this[type + 'Form'].input1)
         } else {
           this[type + 'Form'].input1 = data[0]
           this[type + 'Form'].input2 = data[1]
@@ -549,6 +565,7 @@ export default {
         if (type == 'eigth') {
           this.eigthForm = res.data
         }
+
       })
     },
     getDetail(type) {
@@ -560,7 +577,8 @@ export default {
         fifth: 'PRINT_PASSWORD',
         sixth: 'MACHINE_TYPE',
         seventh: 'SIGN_TYPE',
-        eigth: 'POWER_CATEGORY'
+        eigth: 'POWER_CATEGORY',
+        radius: 'MAP_ENGIN_RATE'
       }
       if (type === 'third') {
         MAP[type].forEach(e => {
@@ -580,7 +598,6 @@ export default {
         }
         list.push(this[type + 'Form'][key])
       }
-      console.log(list, '890')
 
       editDictList(list).then(_res => {
         this.$successMsg('保存成功')