+
查看
- 编辑
- 编辑
+ 删除
@@ -167,7 +173,7 @@
-
+
@@ -196,6 +202,14 @@
"
/>
+
+
+
@@ -420,6 +438,7 @@ const pageSize = ref(50);
const lassificationform = ref({}); //分类表单
const lassificationformedit = ref({}); //编辑分类表单
const title = ref(true); //标题
+const EditEnable = ref(true);//是否可以编辑
const EditID = ref(true); //编辑需要的ID
const currentPage = ref(1);
const newlyAdded = ref(false); //新增弹窗
@@ -595,7 +614,6 @@ const Photoviewing = val => {
dialogImageUrl.value = val.url;
};
-
// 获取指标分类
const Obtainclassification = () => {
$_selectParentCalssifyList().then(res => {
@@ -692,23 +710,23 @@ const BatchDelete = () => {
};
// 导出
-const exportList=()=>{
+const exportList = () => {
ElMessageBox.confirm('是否导出数据?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
- console.log('导出数据');
- let data={
- ...searchFrom.value
- }
- $_exportIndicatorsList(data).then(res => {
+ console.log('导出数据');
+ let data = {
+ ...searchFrom.value,
+ };
+ $_exportIndicatorsList(data).then(res => {
downloadXls(res.data, `导出数据.xlsx`);
});
})
.catch(() => {});
-}
+};
// 分类删除
const CategoryDeletion = val => {
ElMessageBox.confirm(`是否删除${val.row.classifyName}分类?`, 'Warning', {
@@ -795,12 +813,12 @@ const selectionChange = list => {
selectionList.value = list;
console.log(selectionList.value, '已经选中的数据');
};
-function ProhibitSelection(val,index){
- if(val.isEdit=='0'){
- return false
- }else{
- return true
- }
+function ProhibitSelection(val, index) {
+ if (val.isEdit == '0') {
+ return false;
+ } else {
+ return true;
+ }
}
const searchHide = () => {
search.value = !search.value;
@@ -932,6 +950,12 @@ const ClassificationIndicatorView = val => {
// 编辑弹窗展开
const ClassificationDditing = async val => {
+ console.log(val, '编辑弹窗展开');
+ if(val.row.isEdit ==1){
+ EditEnable.value=false;
+ }else if(val.row.isEdit == 2){
+ EditEnable.value=true;
+ }
srcList.value = [];
fileList.value = [];
$_findIndicatorsDetail({ id: val.row.id })
@@ -1015,6 +1039,10 @@ const IndicatorEditingFn = () => {
.then(res => {
console.log(res, '编辑成功');
if (res.data.code == 200) {
+ ElMessage({
+ message: res.data.msg,
+ type: 'success',
+ });
IndicatorEditing.value = false; //编辑弹窗关闭
onLoad();
}
@@ -1097,7 +1125,7 @@ const timeChange = val => {
margin-right: 10px;
}
.el-btn {
- width: auto;
+ width: auto;
margin-right: 0;
margin-left: auto;
}
diff --git a/vite.config.js b/vite.config.js
index ae895c5c..8ad784e1 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -25,13 +25,13 @@ export default ({ mode, command }) => {
// target: 'http://192.168.6.122:8777',
// target: 'http://192.168.3.14:13000',
// target: 'http://192.168.10.25:2888',
- // target: 'http://192.168.6.161:9777',//CYZ
+ // target: 'http://192.168.6.161:9777',//CY
// target: 'http://192.168.10.57:13000',
// target: 'http://192.168.10.200:13000',
// target: 'http://192.168.10.29:13000',
- target: 'http://192.168.3.5:13000',//?
+ // target: 'http://192.168.3.5:13000',//?
// target: 'http://h5uapi.huitongys.com',
- // target: 'http://test.api.huo5you.com',
+ target: 'http://test.api.huo5you.com',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, ''),