mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
fix:修改字数限制
This commit is contained in:
@@ -44,7 +44,7 @@ export default defineComponent({
|
||||
const store = useStore();
|
||||
const isLogin = ref(false);
|
||||
// console.log("router", router.getRoutes(), route);
|
||||
console.log("版本0.9.6------------");
|
||||
console.log("版本0.9.7------------");
|
||||
const routes = computed(() => {
|
||||
return router.getRoutes().filter((e) => e.meta?.isLink);
|
||||
});
|
||||
@@ -118,7 +118,8 @@ export default defineComponent({
|
||||
store.commit("getOrgtreeList", JSON.parse(orgtreeList));
|
||||
return;
|
||||
}
|
||||
api.getOrgInfo({
|
||||
api
|
||||
.getOrgInfo({
|
||||
keyWord: "",
|
||||
id: -1,
|
||||
pageNo: 1,
|
||||
@@ -127,7 +128,7 @@ export default defineComponent({
|
||||
.then((res) => {
|
||||
localStorage.setItem("orgtreeList", JSON.stringify(res.data.data));
|
||||
store.commit("getOrgtreeList", res.data.data);
|
||||
})
|
||||
});
|
||||
};
|
||||
init();
|
||||
return {
|
||||
|
||||
@@ -632,7 +632,7 @@
|
||||
<div style="width: 5px; display: inline-block"></div>
|
||||
<span class="yi">项</span>
|
||||
<span class="zon">列表选项总数:</span>
|
||||
<span class="th">{{ tableDataTotal }}</span>
|
||||
<span class="th">{{ stuTotal }}</span>
|
||||
<span class="yi"> 条</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1405,6 +1405,7 @@ export default {
|
||||
docChecked: true,
|
||||
currentPage: 1,
|
||||
tableDataTotal: -1,
|
||||
stuTotal: 0,
|
||||
pageSize: 10,
|
||||
visiblene: false,
|
||||
sh: false,
|
||||
@@ -1739,6 +1740,7 @@ export default {
|
||||
console.log("获取学员列表", res);
|
||||
let data = res.data.data.rows || null;
|
||||
state.tableDataTotal = res.data.data.total;
|
||||
state.stuTotal = res.data.data.total;
|
||||
state.tableData = [];
|
||||
if (data.length) {
|
||||
for (let i in data) {
|
||||
|
||||
@@ -593,7 +593,6 @@
|
||||
style="
|
||||
width: 120px;
|
||||
text-align: center;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
||||
@@ -606,7 +606,16 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="width: 120px; text-align: center">
|
||||
<div
|
||||
style="
|
||||
width: 120px;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
"
|
||||
:title="element.creater"
|
||||
>
|
||||
{{ element.creater }}
|
||||
</div>
|
||||
<div style="width: 120px; text-align: center">
|
||||
@@ -1402,25 +1411,23 @@ export default {
|
||||
};
|
||||
array.push(obj);
|
||||
});
|
||||
console.log(array)
|
||||
if(array[0].id=='0'){
|
||||
console.log(array);
|
||||
if (array[0].id == "0") {
|
||||
state.level = [];
|
||||
// state.tableData = array[0]
|
||||
// 当无阶段任务出现时 显示当前数据
|
||||
if (array[0].taskList.length !== 0) {
|
||||
getTableData(array[0].taskList)
|
||||
getTableData(array[0].taskList);
|
||||
}
|
||||
|
||||
} else {
|
||||
let datearr = []
|
||||
let datearr = [];
|
||||
for (let i = 0; i < array.length; i++) {
|
||||
if (array[i].id !== 0 && array[i].taskList.length !== 0) {
|
||||
datearr.push(array[i])
|
||||
datearr.push(array[i]);
|
||||
}
|
||||
}
|
||||
state.level = datearr;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
const tableDataFunc = () => {
|
||||
@@ -1557,12 +1564,15 @@ export default {
|
||||
api
|
||||
.templateDetail(localStorage.getItem("projectTemplateId"))
|
||||
.then((res) => {
|
||||
console.log('获取的任务列表信息',res)
|
||||
console.log("获取的任务列表信息", res);
|
||||
if (res.status == 200) {
|
||||
console.log("22222", res.data.data.stageList);
|
||||
state.projectTitle = res.data.data.projectTemplateInfo.name;
|
||||
state.picUrl = res.data.data.projectTemplateInfo.picUrl;
|
||||
let leng = res.data.data.stageList[0].name!==null ?res.data.data.stageList.length:0;
|
||||
let leng =
|
||||
res.data.data.stageList[0].name !== null
|
||||
? res.data.data.stageList.length
|
||||
: 0;
|
||||
if (leng > 0) {
|
||||
let stage = localStorage.getItem("templateStageId")
|
||||
? localStorage.getItem("templateStageId")
|
||||
@@ -1816,7 +1826,7 @@ export default {
|
||||
"0px 1px 35px 0px rgba(118, 136, 166, 0.07)";
|
||||
});
|
||||
const showDrawerOnline = (id, eleId) => {
|
||||
console.log(id, eleId)
|
||||
console.log(id, eleId);
|
||||
state.addonlinevisible = true;
|
||||
state.EditOnlineId = id;
|
||||
state.projectTaskId = eleId;
|
||||
|
||||
Reference in New Issue
Block a user