|
@@ -338,7 +338,7 @@ app.controller('fileListCtrl', ["$rootScope", "$scope", "$state", "$timeout", "$
|
338
|
338
|
// 删除历史版本确定
|
339
|
339
|
scope.delete_version_sure=function(){
|
340
|
340
|
console.log(scope.delete_version_password);
|
341
|
|
- if(scope.delete_version_password==loginUser.pwd){
|
|
341
|
+ if(md5(scope.delete_version_password).toUpperCase()==loginUser.pwd){
|
342
|
342
|
var data={"userId":loginUser.id,"versionId":$scope.versionId};
|
343
|
343
|
api_doc_data.delileVersion(data).then(function (response) {
|
344
|
344
|
if (response.status == 200) {
|
|
@@ -1098,7 +1098,7 @@ app.controller('fileListCtrl', ["$rootScope", "$scope", "$state", "$timeout", "$
|
1098
|
1098
|
}
|
1099
|
1099
|
// 删除文件确定
|
1100
|
1100
|
$scope.delete_doc_sure=function(){
|
1101
|
|
- if($scope.delete_doc_password==loginUser.pwd){
|
|
1101
|
+ if(md5($scope.delete_doc_password).toUpperCase()==loginUser.pwd){
|
1102
|
1102
|
api_user_data.rmvData("documentFile",[$scope.list_doc_id]).then(function (response) {
|
1103
|
1103
|
if (response.status == 200) {
|
1104
|
1104
|
SweetAlert.swal("操作成功!", "数据已经被删除.", "success");
|