+
+
+
Api Key:
+
+ 复制
+
-
-
+
+
Api Server备用:
+
+ 复制
+
-
+
@@ -52,12 +62,12 @@
- ¥{{scope.row.modelPrice*1000}}/k
+ ¥{{NumFilter4(scope.row.modelPrice*1000)}}/k
- ¥{{scope.row.modelPrice*1000}}/k
+ ¥{{NumFilter4(scope.row.modelPrice*1000)}}/k
@@ -71,6 +81,7 @@
import { getCertIndex } from '@/api/cert/index'
import { ref } from 'vue';
+const { proxy } = getCurrentInstance();
const modelList = ref([]);
const serverUrl = ref("");
const serverUrl2 = ref("");
@@ -89,6 +100,32 @@ function getIndex() {
})
}
+function handleCopy(id){
+ // 获取需要复制的元素以及元素内的文本内容
+ const text = id;
+ // 添加一个input元素放置需要的文本内容
+ const input = document.createElement("input");
+ input.value = text;
+ document.body.appendChild(input);
+ // 选中并复制文本到剪切板
+ input.select();
+ document.execCommand("copy");
+ // 移除input元素
+ document.body.removeChild(input);
+ proxy.$modal.msgSuccess("复制成功");
+}
+
+function NumFilter (value) {
+ // 截取当前数据到小数点后两位
+ let realVal = parseFloat(value).toFixed(2)
+ return realVal
+}
+function NumFilter4 (value) {
+ // 截取当前数据到小数点后两位
+ let realVal = parseFloat(value).toFixed(4)
+ return realVal
+}
+
getIndex()