Browse Source

去掉资费修改名称功能

吴sir 3 months ago
parent
commit
c01b36ffd3
1 changed files with 1 additions and 39 deletions
  1. 1 39
      src/views/tariffManagement/index.vue

+ 1 - 39
src/views/tariffManagement/index.vue

@@ -18,11 +18,7 @@
       <template #id="{ record }">
         <!-- 修改 -->
         <a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="dictShowModel(2, record)"
-          v-if="role.getRole == 1">{{
-            $t('form.alter')
-          }}</a>
-        <a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="EditName(record)"
-          v-if="role.getRole == 1">修改资费名称</a>
+          v-if="role.getRole == 1">编辑</a>
         <a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="meal(record)" v-if="role.getRole == 1">{{
           $t('tariffManagement.SetMeal') }}</a>
         <!-- 删除 -->
@@ -60,17 +56,6 @@
     </a-modal>
 
 
-    <a-modal width="30%" :visible="putLabel" title="修改资费名称" @ok="handleSubmitEditName" @cancel="handleCancel">
-      <!-- 搜索条件区 -->
-      <div class="search-section">
-        <a-form :model="Form" layout="inline">
-          <a-form-item field="label" label="资费名称">
-            <a-input v-model="Form.name" placeholder="请输入资费名称" allow-clear style="width: 300px;"/>
-          </a-form-item>
-        </a-form>
-      </div>
-    </a-modal>
-
     <Meal v-model:model-value="modealShow" :traffIds="ids" @submit="intData()" />
     <Add v-model:model-value="visible" :type-index="typeCurrent" ref="addDetaile" @submit="intData()"></Add>
   </div>
@@ -117,7 +102,6 @@ const state = ref({
   },
   ids: null,
   methodList: [],
-  putLabel: false,
   Form: {
     id: "",
     name: "",
@@ -140,7 +124,6 @@ const {
   rowSelectionPlan,
   ids,
   methodList,
-  putLabel,
   Form
 } = toRefs(state.value);
 
@@ -198,24 +181,6 @@ const handleCancelTarriName = ()=>{
   Form.value.name = ''
 }
 
-const EditName = (item) => {
-  Form.value.id = item.id
-  Form.value.name = item.label
-  putLabel.value = true
-}
-
-const handleSubmitEditName = async () => {
-   let res = await UpdateTariffName(Form.value)
-   if(res.code===200){
-    Message.success({
-      content: '修改成功',
-      duration: 2000,
-    })
-    intData()
-    handleCancelTarriName()
-   }
-}
-
 // 删除
 const handleDel = async (id) => {
   const { code } = await deleteTariff({ id })
@@ -246,9 +211,6 @@ const resetSearchPlan = () => {
 const handleSearchPlan = () => {
 
 }
-const handleCancel = () => {
-  planVisible.value = false
-}
 
 const handleSubmitPlan = () => {
   if (selectedKeysPlan.value.length > 0) {