Przeglądaj źródła

风险场所管控列表删除

hm 1 tydzień temu
rodzic
commit
2794923fa3

+ 9 - 2
src/views/left/dialog/components/dialog/RiskLocationControlDialog.vue

@@ -28,8 +28,8 @@
               <!-- <el-button class="column_btn">查看</el-button>
             <el-button color="#a83126" :dark="true" plain>删除</el-button> -->
               <div class="column_btn_box">
-                <div class="column_btn">查看</div>
-                <div class="column_btn">删除</div>
+                <div class="column_btn" @click="viewTableItem(scope.row)">查看</div>
+                <div class="column_btn" @click="delTableItem(scope.$index)">删除</div>
               </div>
             </slot>
           </template>
@@ -157,6 +157,13 @@ const getImgSrc = picName => {
   return new URL(`${basePath}${picName}.png`, import.meta.url).href
 }
 
+function viewTableItem(row) {
+   
+}
+
+function delTableItem(index) {
+   dialogOptions.value.tableData.splice(index,1)
+}
 
 </script>
 <style lang="scss" scoped>