修改excil权限的名字

This commit is contained in:
X1627315083
2024-04-03 16:57:50 +08:00
parent e7a6822bc1
commit 44efcc4283
8 changed files with 6 additions and 16 deletions

View File

@@ -225,8 +225,6 @@ export default defineComponent({
let submitProcess = () =>{ let submitProcess = () =>{
Https.axiosPost(Https.httpUrls.countProductUpdateProcess, {}).then( Https.axiosPost(Https.httpUrls.countProductUpdateProcess, {}).then(
(rv: any) => { (rv: any) => {
console.log(rv.process);
if(rv.status != 1 && showDesignMark.value){ if(rv.status != 1 && showDesignMark.value){
let designProgressNew:any = rv.process * 100 let designProgressNew:any = rv.process * 100
designProgress.value = parseInt(designProgressNew) designProgress.value = parseInt(designProgressNew)

View File

@@ -111,8 +111,6 @@ export default defineComponent({
storeNameData.value = data.storeNameData storeNameData.value = data.storeNameData
await storeQueryAll() await storeQueryAll()
storeList.value = backupStoreList.value.filter((v:any) => storeIds.indexOf(v.id) == -1) storeList.value = backupStoreList.value.filter((v:any) => storeIds.indexOf(v.id) == -1)
console.log(storeList.value);
} }
addStoreModal.value = true addStoreModal.value = true
addStoreType.value = data.type addStoreType.value = data.type
@@ -184,8 +182,6 @@ export default defineComponent({
storeNameData.value.forEach((item:any) => { storeNameData.value.forEach((item:any) => {
storeData[item] = 0 storeData[item] = 0
}); });
console.log(storeData);
Https.axiosPost(Https.httpUrls.queryProductStore,{}).then( Https.axiosPost(Https.httpUrls.queryProductStore,{}).then(
(rv: any) => { (rv: any) => {
if (rv) { if (rv) {

View File

@@ -51,7 +51,7 @@
</div> </div>
<div class="upload_max_tip"> <div class="upload_max_tip">
<WarningFilled class="icon-zhuyi"/> <WarningFilled class="icon-zhuyi"/>
<span>Maximum 100 images can be uploaded, Maximum 2M per image</span> <span>Maximum 100 images can be uploaded, Maximum 5M per image</span>
</div> </div>
</div> </div>
<div class="modal_button_list"> <div class="modal_button_list">

View File

@@ -33,7 +33,6 @@ axios.interceptors.response.use((res) =>{
return Promise.resolve(res.data.data); return Promise.resolve(res.data.data);
} else if(!res.data.errMsg){ } else if(!res.data.errMsg){
console.log(res);
let obj = { let obj = {
data:res.data, data:res.data,
type:res.headers['content-type'], type:res.headers['content-type'],

View File

@@ -164,7 +164,6 @@ const exportExcil=(data,sheetNames,fileName,configuration)=>{
const cellAddress = { r: R, c: C }; const cellAddress = { r: R, c: C };
const cellRef = XLSX.utils.encode_cell(cellAddress); const cellRef = XLSX.utils.encode_cell(cellAddress);
if (!worksheet[cellRef]) continue; if (!worksheet[cellRef]) continue;
console.log(worksheet[cellRef]);
worksheet[cellRef].s = { alignment: { horizontal: 'center', vertical: 'center',wrapText: true, } }; // 设置文本水平和垂直居中 worksheet[cellRef].s = { alignment: { horizontal: 'center', vertical: 'center',wrapText: true, } }; // 设置文本水平和垂直居中
} }
} }

View File

@@ -100,7 +100,7 @@ export default defineComponent({
}, },
{ {
name:'Report Exporting', name:'Report Exporting',
code:'MI_TU_EXPORT', code:'REPORT_EXPORTING',
route:'/home/exportExcil', route:'/home/exportExcil',
icon:'icon-xiazaiwenjian', icon:'icon-xiazaiwenjian',
key:'/home/exportExcil', key:'/home/exportExcil',
@@ -181,7 +181,6 @@ export default defineComponent({
for(let menu of menuList){ for(let menu of menuList){
if(role.code === menu.code){ if(role.code === menu.code){
console.log(menu,role);
menu.isShow = role.select == 1 ? true :false menu.isShow = role.select == 1 ? true :false
if(role.operationList){ if(role.operationList){
menu.operationList = role.operationList menu.operationList = role.operationList

View File

@@ -14,7 +14,9 @@
allowClear allowClear
></a-select> ></a-select>
</filterComponent> </filterComponent>
<filterComponent :title="'Export Time'"> <a-range-picker size="large" v-model:value="date" :placeholder="['Start Time', 'End Time']" format="YYYY-MM-DD" valueFormat="YYYY-MM-DD"/></filterComponent> <filterComponent :title="'Export Time'">
<a-range-picker size="large" v-model:value="date" :show-time="{ format: 'HH:mm:ss' }" format="YYYY-MM-DD HH:mm:ss" valueFormat="YYYY-MM-DD HH:mm:ss" :placeholder="['Start Time', 'End Time']"/>
</filterComponent>
</div> </div>
</div> </div>
<div class="list_top_button_content"> <div class="list_top_button_content">
@@ -137,8 +139,6 @@ export default defineComponent({
let setExport = (data:any,index:any) =>{ let setExport = (data:any,index:any) =>{
Https.axiosGet(Https.httpUrls.miTuExportExport+`/${data.id}`,{responseType: 'blob'}).then((rv)=>{ Https.axiosGet(Https.httpUrls.miTuExportExport+`/${data.id}`,{responseType: 'blob'}).then((rv)=>{
console.log(rv.name);
let name = rv.name.split('=')[1]; let name = rv.name.split('=')[1];
let url = window.URL.createObjectURL(new Blob([rv.data], { type: rv.type })); let url = window.URL.createObjectURL(new Blob([rv.data], { type: rv.type }));
const link = document.createElement('a'); const link = document.createElement('a');

View File

@@ -53,7 +53,7 @@
<div> <div>
<div class="form_item_title required">Role Permission</div> <div class="form_item_title required">Role Permission</div>
<a-checkbox class="form_check_all" size="large" v-model:checked="permissionCheckAll" @change="perCheckAll">All</a-checkbox> <a-checkbox class="form_check_all" size="large" v-model:checked="permissionCheckAll" @change="perCheckAll">All</a-checkbox>
<table class="permission_table">{{ rolePermission }} <table class="permission_table">
<tr v-for="(role) in rolePermission" :key="role.code"> <tr v-for="(role) in rolePermission" :key="role.code">
<td class="first_td"> <td class="first_td">
<div class="table_td_block"><a-checkbox size="large" v-model:checked="role.select" @change="checkLevelFirst(role)">{{role.resource}}</a-checkbox></div> <div class="table_td_block"><a-checkbox size="large" v-model:checked="role.select" @change="checkLevelFirst(role)">{{role.resource}}</a-checkbox></div>
@@ -194,7 +194,6 @@ export default defineComponent({
if (rv) { if (rv) {
rolePermission.value = changeSelectBoolean(rv) rolePermission.value = changeSelectBoolean(rv)
backupRolePermission.value = changeSelectBoolean(rv) backupRolePermission.value = changeSelectBoolean(rv)
console.log(rolePermission.value);
} }
} }